/* Quick view discount note text fix */
.afp-widget .afp-discount-note--quickview {
  display: grid !important;
  grid-template-columns: 1fr !important;
  align-items: stretch !important;
  gap: 14px !important;
}

.afp-widget .afp-discount-note--quickview .afp-discount-note__main {
  display: grid !important;
  grid-template-columns: 46px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 14px !important;
  width: 100% !important;
  min-width: 0 !important;
}

.afp-widget .afp-discount-note--quickview .afp-discount-note__content {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 4px !important;
  min-width: 0 !important;
  width: 100% !important;
  writing-mode: horizontal-tb !important;
}

.afp-widget .afp-discount-note--quickview .afp-discount-note__content strong,
.afp-widget .afp-discount-note--quickview .afp-discount-note__content span {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  hyphens: auto !important;
}

.afp-widget .afp-discount-note--quickview .afp-discount-note__action {
  display: flex !important;
  width: 100% !important;
  justify-content: flex-end !important;
  align-items: center !important;
}

.afp-widget .afp-discount-note--quickview .afp-discount-note__button.button,
.afp-widget .afp-discount-note--quickview .afp-discount-note__action .afp-note-link-button.button {
  min-width: 220px !important;
  max-width: 100% !important;
}

@media (max-width: 640px) {
  .afp-widget .afp-discount-note--quickview {
    padding: 16px !important;
    gap: 12px !important;
  }

  .afp-widget .afp-discount-note--quickview .afp-discount-note__main {
    grid-template-columns: 40px minmax(0, 1fr) !important;
    gap: 12px !important;
  }

  .afp-widget .afp-discount-note--quickview .afp-discount-note__action {
    justify-content: stretch !important;
  }

  .afp-widget .afp-discount-note--quickview .afp-discount-note__button.button,
  .afp-widget .afp-discount-note--quickview .afp-discount-note__action .afp-note-link-button.button {
    width: 100% !important;
    min-width: 0 !important;
  }
}
