/* ==========================================================================
   Modal Component (Reusable Global System)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Modal Overlay / Backdrop
   -------------------------------------------------------------------------- */
.modal_overlay,
.modal_backdrop,
.modal_wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background-color: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.3s ease;
  overflow-y: auto;
  overflow-x: hidden;
}

.modal_overlay.show,
.modal_backdrop.show,
.modal_wrapper.show,
.modal_overlay.active,
.modal_backdrop.active,
.modal_wrapper.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* --------------------------------------------------------------------------
   Modal Dialog / Content Box
   -------------------------------------------------------------------------- */
.modal_dialog {
  position: relative;
  width: 100%;
  max-width: 64rem;
  margin: auto;
  background-color: var(--neutral-1, #ffffff);
  border-radius: 1.8rem;
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.15);
  padding: 3.2rem 3.6rem 2.4rem 3.6rem;
  box-sizing: border-box;
  transform: scale(0.92) translateY(12px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

.modal_overlay.show .modal_dialog,
.modal_backdrop.show .modal_dialog,
.modal_wrapper.show .modal_dialog,
.modal_overlay.active .modal_dialog,
.modal_backdrop.active .modal_dialog,
.modal_wrapper.active .modal_dialog {
  transform: scale(1) translateY(0);
}

/* Modal Sizes */
.modal_dialog.modal_sm {
  max-width: 42rem;
}

.modal_dialog.modal_md {
  max-width: 64rem;
}

.modal_dialog.modal_lg {
  max-width: 82rem;
}

.modal_dialog.modal_full {
  max-width: 95vw;
  height: 90vh;
  height: 90dvh;
  display: flex;
  flex-direction: column;
}

/* --------------------------------------------------------------------------
   Modal Close Button
   -------------------------------------------------------------------------- */
.modal_close,
.modal_btn_close {
  position: absolute;
  top: 1.8rem;
  right: 1.8rem;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--neutral-4, #737373);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.25s ease;
  z-index: 10;
}

.modal_close svg,
.modal_btn_close svg {
  width: 1.8rem;
  height: 1.8rem;
  stroke-width: 2;
}

.modal_close:hover,
.modal_btn_close:hover {
  background-color: var(--neutral-2, #f2f1f1);
  color: var(--neutral-9, #3c3c3c);
  transform: rotate(90deg);
}

.modal_title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--brand-1);
  margin: 0 0 0.73em 0;
}

/* --------------------------------------------------------------------------
   Modal Body / Content
   -------------------------------------------------------------------------- */
.modal_body {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--neutral-6, #444141);
}

.modal_body p {
  font-size: 1.3em;
  margin-top: 0;
  margin-bottom: 1.2rem;
}

.modal_body ol,
.modal_body ul {
  font-size: 1.3em;
  margin: 0.8rem 0 1.2rem 2rem;
  padding: 0;
}

.modal_body li {
  margin-bottom: 0.4rem;
}

.modal_body a {
  color: var(--brand-3, #f27a24);
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.2s ease;
}

.modal_body a:hover {
  color: var(--secondary-2, #c85e12);
}

/* --------------------------------------------------------------------------
   Modal Custom Checkboxes (e.g. Consent / Cookies)
   -------------------------------------------------------------------------- */
.modal_checkbox_group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.6rem 0;
  margin: 1.8rem 0;
  border-top: 1px dashed var(--neutral-7, #e5e5e5);
  border-bottom: 1px dashed var(--neutral-7, #e5e5e5);
}

.modal_checkbox_item {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
  user-select: none;
}

.modal_checkbox_item input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background-color: var(--brand-1, #006e45);
  border: 1.5px solid var(--brand-1, #006e45);
  display: grid;
  place-content: center;
  cursor: pointer;
  margin: 0;
  transition: all 0.2s ease;
}

.modal_checkbox_item input[type="checkbox"]::before {
  content: "";
  width: 1rem;
  height: 0.5rem;
  border-left: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(-45deg) translate(1px, -1px);
  transition: 0.15s transform ease-in-out;
}

.modal_checkbox_item input[type="checkbox"]:not(:checked) {
  background-color: #ffffff;
  border-color: var(--neutral-10, #cbcbcb);
}

.modal_checkbox_item input[type="checkbox"]:not(:checked)::before {
  opacity: 0;
}

.modal_checkbox_label {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--secondary-8, #023321);
}

/* --------------------------------------------------------------------------
   Modal Footer & Actions
   -------------------------------------------------------------------------- */
.modal_footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.4rem;
  margin-top: 2.4rem;
}

.modal_actions_grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
  width: 100%;
  margin-top: 2.4rem;
}

.modal_btn {
  /* font-size: 1rem;
  font-weight: 500; */
  font-size: 1.6rem;
  padding: 1.4rem 2rem;
  border-radius: 1.4rem;
  /* height: 4.4em; */
  height: 3em;
  border-radius: 0.8rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.25s ease;
  font-family: inherit;
  line-height: 1.2;
}

.b .modal_btn > span {
  font-size: 1.5em;
}

.modal_btn_primary {
  background-color: var(--brand-1, #006e45);
  color: var(--neutral-1, #ffffff);
}

.modal_btn_primary:hover {
  background-color: var(--secondary-8, #023321);
}

.modal_btn_outline {
  background-color: transparent;
  border: 1.5px solid var(--brand-1, #006e45);
  color: var(--brand-1, #006e45);
}

.modal_btn_outline:hover {
  background-color: var(--secondary-9, rgba(139, 197, 61, 0.1));
}

.modal_btn_danger {
  background-color: var(--secondary-5, #e8241b);
  color: #ffffff;
}

.modal_btn_danger:hover {
  background-color: #c01d15;
}

/* --------------------------------------------------------------------------
   Sale Banner Modal (Image-First Popup)
   -------------------------------------------------------------------------- */
.modal_sale_overlay {
  background-color: rgba(0, 0, 0, 0.6);
}

.modal_banner_dialog {
  max-width: 54rem;
  padding: 0;
  background: transparent;
  border-radius: 2rem;
  box-shadow: 0 2.4rem 6rem rgba(0, 0, 0, 0.45);
  overflow: visible;
}

.modal_banner_link {
  display: block;
  width: 100%;
  border-radius: 2rem;
  overflow: hidden;
  line-height: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal_banner_link:hover {
  transform: scale(1.02);
}

.modal_banner_img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 2rem;
}

.modal_banner_close {
  position: absolute;
  top: -1.6rem;
  right: -1.6rem;
  width: 3.8rem;
  height: 3.8rem;
  background-color: var(--neutral-1, #ffffff);
  color: var(--neutral-9, #3c3c3c);
  box-shadow: 0 0.4rem 1.6rem rgba(0, 0, 0, 0.25);
  border-radius: 50%;
  z-index: 30;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.modal_banner_close:hover {
  background-color: var(--brand-3, #f27a24);
  color: #ffffff;
  transform: rotate(90deg) scale(1.05);
}

/* --------------------------------------------------------------------------
   Confirm Modal ("Are you sure?")
   -------------------------------------------------------------------------- */
.modal_confirm_dialog {
  max-width: 44rem;
  padding: 3.2rem 2.4rem 2.4rem;
  border-radius: 2.4rem;
  text-align: center;
}

.modal_confirm_icon {
  width: 5.6rem;
  height: 5.6rem;
  margin: 0 auto 1.8rem;
  border-radius: 50%;
  background-color: var(--brand-3);
  color: var(--neutral-1, #ffffff);
  display: flex;
  align-items: center;
  justify-content: center;
  /* Soft outer ring */
  box-shadow:
    0 0 0 0.4rem #ffffff,
    0 0 0 0.5rem rgba(242, 122, 36, 0.25);
}

.modal_confirm_icon svg {
  width: 2.6rem;
  height: 2.6rem;
}

.modal_confirm_icon.modal_confirm_icon--amber {
  background-color: #fff7ed;
  color: #f27a24;
  box-shadow:
    0 0 0 0.4rem #ffffff,
    0 0 0 0.5rem rgba(242, 122, 36, 0.15);
}

.modal_confirm_header {
  margin-bottom: 1rem;
  padding-right: 0;
}

.modal_confirm_header .modal_title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--neutral-9, #3c3c3c);
}

.modal_confirm_body {
  font-size: 1.5rem;
  color: var(--neutral-12, #6b6868);
}

.modal_confirm_actions {
  margin-top: 3.2rem;
}

.modal_confirm_overlay .modal_actions_grid,
.modal_confirm_dialog .modal_actions_grid {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  margin-top: 2.4rem;
}

.modal_confirm_overlay .modal_actions_grid:has(> :only-child),
.modal_confirm_actions:has(> :only-child) {
  display: flex;
  max-width: 20rem;
  margin-left: auto;
  margin-right: auto;
}

.modal_confirm_overlay .modal_btn,
.modal_confirm_dialog .modal_btn {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 1.2rem 2rem;
  gap: 1rem;
  height: 4.4rem;
  min-height: 4.4rem;
  border-radius: 1rem;
  flex: 1 1 0;
  font-family: "Poppins", sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 2rem;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.2s ease;
}

/* Secondary Button (Cancel) */
.modal_confirm_overlay .modal_btn_cancel,
.modal_confirm_dialog .modal_btn_cancel {
  background: var(--neutral-1, #ffffff);
  border: 1px solid var(--brand-1, #006e45);
  color: var(--brand-1, #006e45);
}

.modal_confirm_overlay .modal_btn_cancel:hover,
.modal_confirm_dialog .modal_btn_cancel:hover {
  background: var(--secondary-9, rgba(139, 197, 61, 0.1));
  border-color: var(--brand-1, #006e45);
  color: var(--brand-1, #006e45);
}

/* Primary Button (Green / Confirm / View Unpaid Order) */
.modal_confirm_overlay .modal_btn_green,
.modal_confirm_overlay .modal_btn_confirm,
.modal_confirm_dialog .modal_btn_green,
.modal_confirm_dialog .modal_btn_confirm {
  background: var(--brand-1, #006e45);
  border: 1px solid var(--brand-1, #006e45);
  color: var(--neutral-1, #ffffff);
}

.modal_confirm_overlay .modal_btn_green:hover,
.modal_confirm_overlay .modal_btn_confirm:hover,
.modal_confirm_dialog .modal_btn_green:hover,
.modal_confirm_dialog .modal_btn_confirm:hover {
  background: var(--secondary-8, #023321);
  border-color: var(--secondary-8, #023321);
  color: var(--neutral-1, #ffffff);
}

.modal_btn_cancel,
.modal_btn_confirm {
  font-size: 1.6rem;
  padding: 1.4rem 2rem;
  border-radius: 1.4rem;
}

.modal_btn_cancel {
  background-color: var(--neutral-1, #ffffff);
  border: 1.5px solid var(--neutral-9, #3c3c3c);
  color: var(--neutral-9, #3c3c3c);
}

.modal_btn_cancel:hover {
  background-color: var(--neutral-3, #f5f5f5);
}

.modal_btn_confirm {
  background-color: var(--brand-3);
  border: 1.5px solid var(--brand-3);
  color: var(--neutral-1, #ffffff);
}

.modal_btn_confirm:hover {
  background-color: var(--brand-2, #8bc53d);
  border-color: var(--brand-2, #8bc53d);
}

.modal_btn_green,
.modal_btn_primary {
  background-color: var(--brand-1, #006e45);
  border: 1.5px solid var(--brand-1, #006e45);
  color: var(--neutral-1, #ffffff);
  cursor: pointer;
  font-weight: 600;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.modal_btn_green:hover,
.modal_btn_primary:hover {
  background-color: #005636;
  border-color: #005636;
}

.modal_confirm_dialog .modal_btn_outline,
.modal_btn_outline_green {
  background-color: var(--neutral-1, #ffffff);
  border: 1.5px solid var(--brand-1, #006e45);
  color: var(--brand-1, #006e45);
  border-radius: 1rem;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.modal_confirm_dialog .modal_btn_outline:hover,
.modal_btn_outline_green:hover {
  background-color: var(--secondary-9, rgba(139, 197, 61, 0.1));
}

/* --------------------------------------------------------------------------
   About Back-order Items Modal
   -------------------------------------------------------------------------- */
.modal_backorder_dialog {
  font-size: 1rem;
  width: 100%;
  max-width: 64em !important;
  padding: 2.4em;
  border-radius: 1.6em;
  background-color: var(--neutral-1);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 1.4em;
}

.modal_backorder_info_icon {
  width: 4.8em;
  height: 4.8em;
  padding: 1.2em;
  border-radius: 50%;
  background-color: #f1f9e6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal_backorder_info_icon > span {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #def1b8;
  color: #4d881e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 1.6em;
}

.modal_backorder_header .modal_title {
  font-size: 1.8em;
  font-weight: 600;
  color: var(--neutral-9);
}

.modal_backorder_body {
  font-size: 1em;
  color: var(--neutral-6);
}

.modal_backorder_body > p {
  font-size: 1.4em;
  color: var(--neutral-6);
  margin-bottom: 1.6em;
}

.backorder_cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6em;
}

.backorder_card {
  border: 1px solid var(--neutral-7);
  border-radius: 1.6em;
  padding: 1.2em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1em;
  background-color: var(--neutral-1, #ffffff);
  box-sizing: border-box;
}

.backorder_card_thumb {
  width: 10em;
  height: 10em;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
}

.backorder_card_thumb > img {
  width: 100%;
  height: 100%;
}

.backorder_badge {
  font-size: 1.3em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 2em;
  font-weight: 600;
  padding: 0.45em 1.2em;
}

.backorder_badge_instock {
  background-color: #e8f7ed;
  color: var(--brand-1);
}

.backorder_badge_backorder {
  background-color: #fff1e7;
  color: var(--brand-3);
}

.backorder_card p {
  font-size: 1.3em;
  color: var(--neutral-6, #4b5563);
}

.backorder_expect {
  background-color: #f8faf8;
  border-radius: 1.4em;
  padding: 1.8em 2em;
  margin-bottom: 1em;
}

.backorder_expect_title {
  display: flex;
  align-items: center;
  gap: 0.8em;
  font-size: 1.5em;
  font-weight: 600;
  color: var(--neutral-9, #1f2937);
  margin-bottom: 1em;
}

.backorder_expect_icon {
  width: 1.8em;
  height: 1.8em;
  border-radius: 50%;
  background-color: var(--brand-2, #8bc53d);
  color: var(--neutral-1, #ffffff);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85em;
  font-weight: 500;
}

.backorder_expect > ul {
  margin: 0;
  padding-left: 2em;
  list-style-type: disc;
}

.backorder_expect > ul > li {
  font-size: 1.5em;
  color: var(--neutral-6, #4b5563);
  font-weight: 300;
}

.modal_backorder_actions {
  width: 100%;
}

.modal_backorder_actions > .modal_btn_cancel {
  display: none;
  font-size: 1rem;
  height: 4.4em;
  width: 100%;
}

.modal_backorder_actions > .modal_btn_cancel > span {
  font-size: 1.5em;
}

.modal_btn_block {
  font-size: 1rem;
  width: 100%;
  height: 4.4em;
  border-radius: 1.2em;
}

.modal_btn_block > span {
  font-size: 1.5em;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Apply Voucher Modal
   -------------------------------------------------------------------------- */
.modal_voucher_dialog {
  font-size: 1rem;
  width: 100%;
  padding: 0;
  border-radius: 1.6em;
  background-color: var(--neutral-1);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Header */
.modal_voucher_header {
  padding: 2.4em 2.4em 1.6em;
  border-bottom: 1px solid var(--neutral-7);
}

.modal_voucher_header .modal_title {
  font-size: 1.8em;
  font-weight: 600;
  color: var(--neutral-9);
}

/* Body: scrollable */
.modal_voucher_body {
  flex: 1;
  overflow-y: auto;
  padding: 1.6em 2.4em;
  display: flex;
  flex-direction: column;
  gap: 1.8em;
  max-height: 56vh;
}

/* Input group */
.voucher_input_group {
  font-size: 1rem;
  display: flex;
  gap: 1em;
  align-items: center;
  width: 100%;
}

.voucher_input_field {
  flex: 1;
  font-size: 1.4em;
  height: 2.7143em;
  padding: 0.7143em 0.7143em 0.7143em 0.8571em;
  border: 1px solid var(--neutral-7);
  border-radius: 0.8em;
  color: var(--neutral-9);
  outline: none;
  background-color: var(--neutral-1);
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

.voucher_input_field::placeholder {
  color: var(--neutral-11);
}

.voucher_input_field:focus {
  border-color: var(--brand-1);
  box-shadow: 0 0 0 0.25em rgba(0, 110, 69, 0.12);
}

.voucher_btn_apply {
  font-size: 1rem;
  height: 3.8em;
  padding: 0 1.8em;
  border-radius: 0.8em;
  border: none;
  background-color: var(--neutral-7);
  color: var(--neutral-5);
  cursor: not-allowed;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.voucher_btn_apply > span {
  font-size: 1.4em;
  font-weight: 600;
}

.voucher_btn_apply:not(:disabled) {
  background-color: var(--brand-1);
  color: var(--neutral-1);
  cursor: pointer;
}

.voucher_btn_apply:not(:disabled):hover {
  background-color: var(--secondary-4);
}

/* Section */
.voucher_section {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.voucher_section_title {
  font-size: 1.6em;
  font-weight: 600;
  color: var(--brand-1);
  margin: 0;
}

/* List */
.voucher_list {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

/* Item */
.voucher_item {
  display: block;
  cursor: pointer;
  user-select: none;
  position: relative;
}

.voucher_checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.voucher_item_box {
  display: flex;
  align-items: center;
  gap: 1.4em;
  padding: 1.2em 1.4em;
  border-radius: 1em;
  background-color: var(--secondary-6);
  border: 1px solid transparent;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease;
}

/* Icons: square rounded, colored bg */
.voucher_item_icon {
  width: 5em;
  height: 5em;
  border-radius: 1em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.voucher_item_icon > svg {
  width: 2.4em;
  height: 2.4em;
  margin-top: 0.8em;
}

/* Green icon for shipping */
.voucher_icon_shipping {
  background-color: var(--neutral-1);
  color: var(--brand-2);
}

/* Lime icon for order */
.voucher_icon_order {
  background-color: var(--neutral-1);
  color: var(--brand-2);
}

/* Item info */
.voucher_item_info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4em;
}

.voucher_item_name {
  font-size: 1.4em;
  font-weight: 600;
  color: var(--neutral-9);
  line-height: 1.3;
}

.voucher_item_expiry {
  font-size: 1.2em;
  color: var(--neutral-4);
}

/* Check mark indicator: pure CSS circle 20px x 20px (2em x 2em) */
.voucher_check_mark {
  width: 2em;
  height: 2em;
  border-radius: 50%;
  border: 1.5px solid #d5d5d5;
  background-color: var(--neutral-1);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  transition: all 0.2s ease;
  position: relative;
}

/* Ẩn triệt để SVG nếu trình duyệt hoặc server còn cache HTML cũ */
.voucher_check_mark svg {
  display: none !important;
}

.voucher_check_mark::after {
  content: "";
  display: block;
  width: 0.5em;
  height: 0.9em;
  border: solid var(--neutral-1);
  border-width: 0 0.2em 0.2em 0;
  transform: rotate(45deg);
  margin-top: -0.15em;
  opacity: 0;
  transition: opacity 0.15s ease;
}

/* Selected state */
.voucher_checkbox:checked + .voucher_item_box {
  border-color: var(--secondary-15);
  background-color: #8bc53d1a;
}

.voucher_checkbox:checked + .voucher_item_box .voucher_check_mark {
  background-color: var(--brand-1);
  border-color: var(--brand-1);
}

.voucher_checkbox:checked + .voucher_item_box .voucher_check_mark::after {
  opacity: 1;
}

/* Divider */
.voucher_divider {
  border: none;
  border-top: 1px dashed var(--neutral-7);
  margin: 0;
}

/* Empty state — no eligible vouchers */
.voucher_empty_box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  padding: 3.2rem 2rem;
  text-align: center;
}

.voucher_empty_icon {
  width: 6.4rem;
  height: 6.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--secondary-6, #f4f9f5);
  border-radius: 50%;
  flex-shrink: 0;
}

.voucher_empty_svg {
  width: 3.2rem;
  height: 3.2rem;
  color: var(--secondary-2, #4c9c6e);
  stroke: currentColor;
}

.voucher_empty_title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--neutral-9, #1a1a1a);
  margin: 0;
  line-height: 2.4rem;
}

.voucher_empty_text {
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--neutral-4, #737373);
  margin: 0;
  line-height: 2rem;
  max-width: 32rem;
}

/* Actions: sticky */
.modal_voucher_actions {
  padding: 1.4em 2.4em 2em;
  border-top: 1px solid var(--neutral-7);
  background-color: var(--neutral-1);
}

.modal_btn_voucher_submit {
  font-size: 1rem;
  width: 100%;
  height: 4.8em;
  border-radius: 1em;
  border: none;
  background-color: var(--secondary-4, #024a2f);
  color: var(--neutral-1);
  cursor: pointer;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal_btn_voucher_submit > span {
  font-size: 1.5em;
  font-weight: 600;
}

.modal_btn_voucher_submit:hover {
  background-color: var(--brand-1, #006e45);
}

/* --------------------------------------------------------------------------
   Favorite Login Required Modal
   -------------------------------------------------------------------------- */
.favorite_auth_required_dialog,
.auth_required_dialog {
  max-width: 40rem;
  padding: 0;
  border-radius: 1.6rem;
  background-color: var(--neutral-1, #ffffff);
  overflow: hidden;
}

.favorite_auth_required_close,
.auth_required_close {
  position: absolute;
  width: 4.4rem;
  height: 4.4rem;
  right: 1.6rem;
  top: 1.6rem;
  border-radius: 0.8rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 2;
  color: var(--neutral-4, #737373);
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.favorite_auth_required_close:hover,
.auth_required_close:hover {
  background-color: var(--neutral-3, #f5f5f5);
  color: var(--neutral-9, #3c3c3c);
}

.favorite_auth_required_close svg,
.auth_required_close svg {
  width: 2rem;
  height: 2rem;
}

.favorite_auth_required_content,
.auth_required_content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 2.4rem 2.4rem 0;
  gap: 1.6rem;
  width: 100%;
  box-sizing: border-box;
}

.favorite_auth_required_icon_wrap,
.auth_required_icon_wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.8rem;
  height: 4.8rem;
  background-color: #fff0db;
  border: 0.8rem solid #fffaf3;
  border-radius: 2.8rem;
  box-sizing: border-box;
  flex-shrink: 0;
}

.favorite_auth_required_icon_wrap svg,
.auth_required_icon_wrap svg {
  width: 2.4rem;
  height: 2.4rem;
}

.favorite_auth_required_text,
.auth_required_text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  gap: 0.4rem;
  width: 100%;
}

.favorite_auth_required_title,
.auth_required_title {
  margin: 0;
  font-weight: 600;
  font-size: 1.8rem;
  line-height: 2.6rem;
  color: var(--neutral-9, #3c3c3c);
  text-align: left;
}

.favorite_auth_required_desc,
.auth_required_desc {
  margin: 0;
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1.8rem;
  color: var(--neutral-12, #6b6868);
  text-align: left;
}

.favorite_auth_required_actions,
.auth_required_actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 3.2rem 2.4rem 2.4rem;
  gap: 1.2rem;
  width: 100%;
  box-sizing: border-box;
}

.favorite_auth_required_btn,
.auth_required_btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 4.4rem;
  padding: 1.2rem 2rem;
  border-radius: 1rem;
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 2rem;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  box-shadow: 0 0.1rem 0.2rem rgba(16, 24, 40, 0.05);
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.favorite_auth_required_btn--secondary,
.auth_required_btn--secondary {
  background-color: var(--neutral-1, #ffffff);
  border: 0.1rem solid var(--brand-1, #006e45);
  color: var(--brand-1, #006e45);
}

.favorite_auth_required_btn--secondary:hover,
.auth_required_btn--secondary:hover {
  background-color: var(--secondary-6, #f8faf8);
  border-color: var(--secondary-4, #024a2f);
  color: var(--secondary-4, #024a2f);
}

.favorite_auth_required_btn--primary,
.auth_required_btn--primary {
  background-color: var(--brand-1, #006e45);
  border: 0.1rem solid var(--brand-1, #006e45);
  color: var(--neutral-1, #ffffff);
}

.favorite_auth_required_btn--primary:hover,
.auth_required_btn--primary:hover {
  background-color: var(--secondary-4, #024a2f);
  border-color: var(--secondary-4, #024a2f);
  color: var(--neutral-1, #ffffff);
}

/* --------------------------------------------------------------------------
   Distributor MOQ Modal ("Complete Your Pallet to Continue")
   -------------------------------------------------------------------------- */
.distributor_moq_dialog {
  max-width: 48rem;
  padding: 3.2rem;
  border-radius: 1.6rem;
  background-color: var(--neutral-1, #ffffff);
  text-align: left;
  position: relative;
  box-sizing: border-box;
  box-shadow:
    0 2rem 2.4rem -0.4rem rgba(16, 24, 40, 0.08),
    0 0.8rem 0.8rem -0.4rem rgba(16, 24, 40, 0.03);
}

.distributor_moq_dialog .modal_close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.8rem;
  background: transparent;
  border: none;
  color: var(--neutral-12, #6b7280);
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.distributor_moq_dialog .modal_close:hover {
  background-color: var(--neutral-3, #f5f5f5);
  color: var(--neutral-9, #1f2937);
}

.distributor_moq_icon_wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5.6rem;
  height: 5.6rem;
  background-color: #fff0db;
  border: 0.8rem solid #fffaf3;
  border-radius: 50%;
  box-sizing: border-box;
  margin: 0 0 2rem 0;
  flex-shrink: 0;
}

.distributor_moq_icon_wrap svg {
  width: 2.4rem;
  height: 2.4rem;
}

.distributor_moq_dialog .modal_header {
  padding: 0;
  margin-bottom: 1.2rem;
  border: none;
  text-align: left;
}

.distributor_moq_dialog .modal_title {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--neutral-9, #1f2937);
  margin: 0;
  text-align: left;
}

.distributor_moq_dialog .modal_body {
  padding: 0;
  margin-bottom: 3.2rem;
  font-size: 1.6rem;
  line-height: 1.55;
  color: var(--neutral-12, #4b5563);
  text-align: left;
}

.distributor_moq_dialog .modal_body p {
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.55;
  color: var(--neutral-12, #4b5563);
  text-align: left;
}

.distributor_moq_dialog .modal_body strong {
  font-weight: 700;
  color: var(--neutral-9, #1f2937);
}

.distributor_moq_overlay .modal_actions_grid {
  display: flex;
  padding: 0;
  margin: 0;
  width: 100%;
}

.distributor_moq_btn {
  width: 100%;
  height: 4.8rem;
  padding: 1.2rem 2.4rem;
  background-color: var(--brand-1, #006838);
  color: #ffffff;
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 2.4rem;
  border-radius: 0.8rem;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-sizing: border-box;
  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
  box-shadow: 0 0.1rem 0.2rem rgba(16, 24, 40, 0.05);
}

.distributor_moq_btn:hover {
  background-color: var(--secondary-4, #004d2a);
  box-shadow: 0 0.4rem 0.6rem rgba(16, 24, 40, 0.1);
}

.distributor_moq_btn:active {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 575px) {
  .modal_overlay,
  .modal_backdrop,
  .modal_wrapper {
    padding: 1.6rem;
  }

  .modal_title {
    font-size: 1.9rem;
  }

  .modal_body {
    font-size: 1.2rem;
  }

  .modal_checkbox_group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
  }

  .modal_close,
  .modal_btn_close {
    top: 0.8rem;
    right: 0.8rem;
    background-color: var(--neutral-2, #f2f1f1);
    color: var(--neutral-9, #3c3c3c);
  }

  .modal_checkbox_label {
    font-size: 1.2rem;
  }

  .modal_banner_dialog {
    max-width: calc(100vw - 3.2rem);
    border-radius: 1.4rem;
  }

  .modal_banner_link,
  .modal_banner_img {
    border-radius: 1.4rem;
  }

  .modal_banner_close {
    top: -1.2rem;
    right: -1.2rem;
    width: 3.2rem;
    height: 3.2rem;
  }

  .modal_confirm_header .modal_title {
    font-size: 2rem;
    font-weight: 600;
  }

  .modal_backorder_header .modal_title {
    font-size: clamp(1.7em, 5.2vw, 2.2em);
  }

  .backorder_cards {
    grid-template-columns: 1fr;
    gap: 1.2em;
  }

  .backorder_card_thumb {
    width: 9em;
    height: 9em;
  }

  .backorder_expect {
    padding: 1.4em 1.4em;
  }

  .backorder_badge {
    font-size: 1.2em;
  }

  .modal_backorder_body > p {
    font-size: 1.1em;
  }

  .backorder_card p {
    font-size: 1.1em;
  }

  .backorder_expect_title {
    font-size: 1.3em;
  }

  .backorder_expect > ul > li {
    font-size: 1.1em;
  }

  .modal_backorder_actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1em;
  }

  .modal_backorder_actions > .modal_btn_cancel {
    display: block;
  }

  .modal_voucher_body {
    padding: 1em 0.5em;
  }

  .modal_voucher_dialog {
    padding: 2em 1.6em 1.8em;
    border-radius: 1.4em;
  }

  .voucher_item_box {
    padding: 1em 1.2em;
    gap: 1em;
  }

  .voucher_item_name {
    font-size: 1.3em;
  }

  .voucher_item {
    font-size: 1rem;
  }

  .voucher_section_title {
    font-size: 1.4em;
  }

  .favorite_auth_required_dialog,
  .auth_required_dialog {
    max-width: calc(100vw - 3.2rem);
  }

  .favorite_auth_required_content,
  .auth_required_content {
    padding: 2rem 1.6rem 0;
    gap: 1.2rem;
  }

  .favorite_auth_required_actions,
  .auth_required_actions {
    padding: 2.4rem 1.6rem 1.6rem;
    gap: 1rem;
  }

  .favorite_auth_required_btn,
  .auth_required_btn {
    height: 4.2rem;
    padding: 1rem 1.4rem;
    font-size: 1.4rem;
  }

  .distributor_moq_dialog {
    max-width: calc(100vw - 3.2rem);
    padding: 2.4rem 2rem;
  }

  .distributor_moq_dialog .modal_title {
    font-size: 2rem;
  }

  .distributor_moq_dialog .modal_body,
  .distributor_moq_dialog .modal_body p {
    font-size: 1.4rem;
    margin-bottom: 2.4rem;
  }

  .distributor_moq_btn {
    height: 4.4rem;
    font-size: 1.5rem;
  }
}
