.cross-discount-bundle {
  order: 4;
  margin-top: 14px;
}

.cross-discount-bundle-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.cross-discount-item {
  position: relative;
  margin: 0;
  display: block;
  height: 100%;
  cursor: pointer;
}

.cross-discount-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cross-discount-item-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  height: 100%;
  min-height: 108px;
  padding: 8px 10px;
  border: 1px solid #d3d7e1;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 2px 5px rgba(34, 49, 75, 0.08);
  vertical-align: middle;
  transition: box-shadow 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}

.cross-discount-cart-toggle {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(47, 60, 86, 0.18);
  border-radius: 999px;
  background: #ffffff;
  color: #2f3c56;
  box-shadow: 0 1px 3px rgba(34, 49, 75, 0.08);
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.cross-discount-cart-toggle:hover,
.cross-discount-cart-toggle:focus {
  color: #224a23;
  border-color: rgba(34, 74, 35, 0.35);
}

.cross-discount-cart-toggle.is-selected {
  color: #224a23;
  background: #ecf5e8;
  border-color: rgba(34, 74, 35, 0.25);
}

.cross-discount-item input:checked+.cross-discount-item-card {
  border-color: #d3d7e1;
  background: #ffffff;
  box-shadow: 0 2px 5px rgba(34, 49, 75, 0.08);
}

.cross-discount-selected-badge {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: none;
  padding: 2px 6px;
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
  font-weight: 600;
  letter-spacing: .2px;
  text-transform: uppercase;
  color: #224a23;
  background: #dff0d8;
  border-radius: 8px 8px 0 0;
  border-bottom: 1px solid #bce1bd;
}

.cross-discount-item input:checked+.cross-discount-item-card .cross-discount-selected-badge {
  display: block;
}

.cross-discount-item-image {
  flex: 0 0 72px;
  width: 72px;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.cross-discount-item-image img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.cross-discount-quickview-trigger {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  padding: 0;
  border: 1px solid rgba(47, 60, 86, 0.18);
  border-radius: 999px;
  background: #ffffff;
  color: #2f3c56;
  box-shadow: 0 1px 3px rgba(34, 49, 75, 0.08);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.cross-discount-quickview-trigger:hover,
.cross-discount-quickview-trigger:focus {
  color: #224a23;
  border-color: rgba(34, 74, 35, 0.35);
  background: #f6fbf4;
}

.cross-discount-item-info {
  flex: 1 1 auto;
  align-self: stretch;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
}

.cross-discount-item-info span.cross-discount-item-name {
  color: #2a3242;
  font-size: 15px;
  line-height: 1.25;
  min-height: 35px;
  padding-right: 36px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cross-discount-option-state {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #5c6a82;
  font-size: 12px;
  line-height: 1.35;
  text-align: left;
}

.cross-discount-option-state.is-actionable {
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(92, 106, 130, 0.4);
}

.cross-discount-option-state.is-selected {
  color: #224a23;
  font-weight: 600;
}

.cross-discount-option-state.is-pending {
  color: #b4233a;
}

.cross-discount-item-info .cross-discount-item-prices {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.cross-discount-item-info .cross-discount-price-discount,
.cross-discount-item-info .cross-discount-price-normal {
  color: rgba(42, 50, 66, 0.8);
  font-size: 19px;
  line-height: 1;
  font-weight: 600;
}

.cross-discount-item-info .cross-discount-price-official {
  color: #224a23;
  font-size: 16px;
  text-decoration: none;
  line-height: 1.2;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  white-space: nowrap;
  flex: 0 0 auto;
}

.cross-discount-item-info .cross-discount-price-official-label {
  font-size: 13px;
  line-height: 1.15;
  font-weight: 600;
}

.cross-discount-item-info .cross-discount-price-official-value {
  line-height: 1.2;
  font-weight: 600;
}

.cross-discount-item-info .cross-discount-price-official.is-hidden {
  display: none;
}

.cross-discount-summary {
  font-size: 14px;
  display: block;
  color: #224a23;
  background-color: #ecf5e8;
  border-radius: 5px;
  margin-bottom: 10px;
}

.cross-discount-summary-content {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.cross-discount-summary .js-cross-discount-summary-text {
  min-width: 0;
}

.cross-discount-summary-amount {
  color: #d9164f;
  font-weight: 700;
}

.cross-discount-info-trigger {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(34, 74, 35, 0.2);
  border-radius: 999px;
  background: #ffffff;
  color: #224a23;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.cross-discount-info-trigger:hover,
.cross-discount-info-trigger:focus {
  background: #f6fbf4;
  border-color: rgba(34, 74, 35, 0.35);
}

.cross-discount-info-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9998;
  border: 0;
  background: rgba(34, 49, 75, 0.18);
}

.cross-discount-popup-feedback {
  margin-bottom: 12px;
}

html.cross-discount-selector-mode .cross-discount-selector-ui-hidden,
body.cross-discount-selector-mode .cross-discount-selector-ui-hidden,
html.cross-discount-selector-mode .product-info .cart,
html.cross-discount-selector-mode .product-info .button-group-page,
html.cross-discount-selector-mode .product-info .product-options-qty-actions,
html.cross-discount-selector-mode .product-info .stepper-group.cart-group,
html.cross-discount-selector-mode .product-info #button-cart,
html.cross-discount-selector-mode .product-info #button-nwa-duplicate,
html.cross-discount-selector-mode .product-info .btn-cart-quickbuy,
html.cross-discount-selector-mode .product-info [data-quick-buy],
html.cross-discount-selector-mode .product-info .btn[data-action="cart"],
html.cross-discount-selector-mode .product-info .btn[data-action="quickbuy"],
html.cross-discount-selector-mode .product-info .option-qty-action-btn[data-action="cart"],
html.cross-discount-selector-mode .product-info .option-qty-action-btn[data-action="quickbuy"],
body.cross-discount-selector-mode .product-info .cart,
body.cross-discount-selector-mode .product-info .button-group-page,
body.cross-discount-selector-mode .product-info .product-options-qty-actions,
body.cross-discount-selector-mode .product-info .stepper-group.cart-group,
body.cross-discount-selector-mode .product-info #button-cart,
body.cross-discount-selector-mode .product-info #button-nwa-duplicate,
body.cross-discount-selector-mode .product-info .btn-cart-quickbuy,
body.cross-discount-selector-mode .product-info [data-quick-buy],
body.cross-discount-selector-mode .product-info .btn[data-action="cart"],
body.cross-discount-selector-mode .product-info .btn[data-action="quickbuy"],
body.cross-discount-selector-mode .product-info .option-qty-action-btn[data-action="cart"],
body.cross-discount-selector-mode .product-info .option-qty-action-btn[data-action="quickbuy"] {
  display: none !important;
}

html.cross-discount-selector-mode .product-info .product-details>.cross-discount-selector-confirm-bar,
body.cross-discount-selector-mode .product-info .product-details>.cross-discount-selector-confirm-bar,
.cross-discount-selector-confirm-bar {
  margin-top: 14px !important;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.btn.cross-discount-selector-confirm-btn {
  min-width: 180px;
  border-radius: 5px !important;
}

.btn.cross-discount-selector-quickview-btn {
  min-width: 54px;
  border-radius: 5px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cross-discount-selector-help {
  margin-top: 14px !important;
  margin-bottom: 0;
  border: 1px solid #bce1bd;
  border-radius: 10px;
  background: #ecf5e8;
  color: #224a23;
  box-shadow: 0 2px 5px rgba(34, 49, 75, 0.08);
  text-align: justify;
  text-align-last: left;
}

.cross-discount-selector-help-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.cross-discount-selector-help-title {
  color: #224a23;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.cross-discount-selector-help-icon {
  flex: 0 0 auto;
  transition: transform 0.16s ease;
}

.cross-discount-selector-help.is-expanded .cross-discount-selector-help-icon {
  transform: rotate(180deg);
}

.cross-discount-selector-help-body {
  display: none;
  margin-top: 5px;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-line;
}

.cross-discount-info-popup {
  position: absolute;
  z-index: 9999;
  width: min(320px, calc(100vw - 24px));
  padding: 14px 16px;
  border: 1px solid #bce1bd;
  border-radius: 10px;
  background: #ecf5e8;
  color: #224a23;
  font-family: 'Chakra Petch', sans-serif !important;
  box-shadow: 0 10px 24px rgba(34, 49, 75, 0.14);
}

.cross-discount-info-popup.is-modal {
  position: fixed;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%);
}

.cross-discount-info-popup-title {
  margin-bottom: 6px;
  padding-right: 18px;
  color: #224a23;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.cross-discount-info-popup-body {
  font-size: 14px;
  line-height: 1.45;
}

.cross-discount-info-popup-close {
  position: absolute;
  top: 6px;
  right: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #224a23;
  font-size: 22px;
  line-height: 1;
}


.cross-discount-item-card .is-hidden {
  display: none !important;
}

.popup-wrapper.cross-discount-product-popup .popup-container {
  width: min(960px, calc(100vw - 32px));
  max-width: 960px;
  border-radius: 18px;
  overflow: visible;
}

.popup-wrapper.cross-discount-product-popup .popup-body,
.popup-wrapper.cross-discount-product-popup .popup-inner-body {
  overflow: visible;
}

.popup-wrapper.cross-discount-product-popup .popup-inner-body {
  padding: 26px;
  background: #fff;
  border-radius: 18px;
}

.popup-wrapper.cross-discount-product-popup .popup-close {
  position: absolute;
  top: 10px;
  right: -14px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #d9164f !important;
  box-shadow: 0 8px 22px rgba(217, 22, 79, 0.35);
}

.cross-discount-popup-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 28px;
}

.cross-discount-popup-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cross-discount-popup-main-image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  padding: 18px;
  border: 1px solid #edf0f5;
  border-radius: 16px;
  background: #fff;
}

.cross-discount-popup-main-image img {
  max-width: 100%;
  max-height: 360px;
  object-fit: contain;
}

.cross-discount-popup-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cross-discount-popup-thumb {
  width: 72px;
  height: 72px;
  padding: 6px;
  border: 1px solid #d8dee8;
  border-radius: 12px;
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.cross-discount-popup-thumb.is-active,
.cross-discount-popup-thumb:hover,
.cross-discount-popup-thumb:focus {
  border-color: #d9164f;
  box-shadow: 0 4px 14px rgba(217, 22, 79, 0.12);
}

.cross-discount-popup-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cross-discount-popup-content {
  min-width: 0;
}

.cross-discount-popup-title {
  margin: 0 0 14px;
  color: #2a3242;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
}

.cross-discount-popup-pricing {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding: 12px 16px;
  border: 1px solid #edf0f5;
  border-radius: 14px;
  background: #fafbfd;
}

.cross-discount-popup-price-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cross-discount-popup-price-row+.cross-discount-popup-price-row {
  margin-top: 0;
}

.cross-discount-popup-price-row--primary {
  align-items: center;
  flex: 1 1 auto;
  flex-wrap: wrap;
}

.cross-discount-popup-price-row--secondary {
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.cross-discount-popup-price-row--secondary .cross-discount-popup-price-label {
  font-size: 13px;
  line-height: 1.2;
}

.cross-discount-popup-price-label,
.cross-discount-popup-meta strong,
.cross-discount-popup-section-title,
.cross-discount-popup-option-title {
  color: #2f3c56;
  font-weight: 700;
}

.cross-discount-popup-price-value {
  text-align: right;
  font-weight: 700;
}

.cross-discount-popup-price-value--original {
  color: #6b7280;
  font-size: 14px;
  line-height: 1.25;
  white-space: nowrap;
  text-decoration: line-through;
}

.cross-discount-popup-price-value--discount {
  color: #d9164f;
  font-size: 30px;
  line-height: 1;
  white-space: nowrap;
}

@media (max-width: 575px) {
  .cross-discount-popup-pricing {
    gap: 12px;
  }

  .cross-discount-popup-price-value--discount {
    font-size: 26px;
  }
}

.cross-discount-popup-options {
  margin-top: 18px;
}

.cross-discount-popup-section-title {
  margin-bottom: 12px;
  font-size: 16px;
}

.cross-discount-popup-standard-option+.cross-discount-popup-standard-option {
  margin-top: 14px;
}

.cross-discount-popup-option-image,
.cross-discount-popup-choice-image {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}

.cross-discount-popup-choice-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cross-discount-popup-choice-list--single {
  gap: 10px;
}

.cross-discount-popup-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #e4e9f1;
  border-radius: 12px;
  background: #fff;
}

.cross-discount-popup-choice--pill {
  position: relative;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.cross-discount-popup-choice--pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cross-discount-popup-choice--pill span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 35px;
  font-size: 16px;
  padding: 8px 5px;
  border-radius: 5px;
  background: rgba(221, 221, 221, 1) !important;
  color: #000000;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: opacity .2s ease, transform .2s ease, box-shadow .2s ease;
}

.cross-discount-popup-choice--pill .cross-discount-popup-choice-image+span {
  padding-left: 12px;
}

.cross-discount-popup-choice--pill:hover span,
.cross-discount-popup-choice--pill:focus-within span {
  opacity: .92;
}

.cross-discount-popup-choice--pill input:checked+span,
.cross-discount-popup-choice--pill input:checked+.cross-discount-popup-choice-image+span {
  color: #ffffff;
  background: #000 !important;
  border-color: #000;
  transform: translateY(-1px);
}

.cross-discount-popup-choice--pill .cross-discount-popup-choice-image {
  margin-left: 12px;
}

.cross-discount-popup-options--single .cross-discount-popup-standard-option {
  margin-top: 0;
}

.cross-discount-popup-standard-option .form-control {
  border-radius: 12px;
  min-height: 44px;
}

.cross-discount-popup-confirm {
  width: 100%;
  margin-top: 18px;
  border-radius: 12px !important;
}

.cross-discount-popup-help {
  margin-top: 18px !important;
  margin-bottom: 0;
}

@media (max-width: 991px) {
  .popup-wrapper.cross-discount-product-popup .popup-container {
    width: calc(100vw - 20px);
  }

  .popup-wrapper.cross-discount-product-popup .popup-close {
    top: 10px;
    right: 10px;
  }

  .popup-wrapper.cross-discount-product-popup .popup-inner-body {
    max-height: none;
    overflow-y: auto;
    padding: 14px;
  }

  .cross-discount-popup-gallery {
    gap: 8px;
  }

  .cross-discount-popup-thumbs {
    gap: 8px;
  }

  .cross-discount-popup-thumb {
    width: 50px;
    height: 50px;
  }

  .cross-discount-popup-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .cross-discount-popup-main-image {
    min-height: 210px;
    padding: 12px;
  }

  .cross-discount-popup-title {
    margin-bottom: 10px;
    font-size: 20px;
  }

  .cross-discount-popup-pricing {
    gap: 10px;
    margin-bottom: 10px;
    padding: 10px 12px;
  }

  .cross-discount-popup-options {
    margin-top: 14px;
  }

  .cross-discount-popup-section-title {
    margin-bottom: 8px;
    font-size: 15px;
  }

  .cross-discount-popup-choice-list {
    gap: 6px;
  }

  .cross-discount-popup-choice-list--single {
    gap: 8px;
  }

  .cross-discount-popup-confirm {
    margin-top: 14px;
  }

  .cross-discount-popup-help {
    margin-top: 14px !important;
  }
}

@media (max-width: 1620px) and (min-width: 768px) {
  .cross-discount-bundle-items {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cross-discount-item-card {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    column-gap: 10px;
    row-gap: 6px;
    align-items: start;
  }

  .cross-discount-item-image {
    grid-column: 1;
    grid-row: 1 / span 2;
    flex: 0 0 64px;
    width: 64px;
    align-self: start;
    justify-content: flex-start;
  }

  .cross-discount-item-image img {
    width: 64px;
    height: 64px;
  }

  .cross-discount-item-info {
    display: contents;
  }

  .cross-discount-item-info span.cross-discount-item-name {
    grid-column: 2;
    min-height: 32px;
  }

  .cross-discount-option-state {
    grid-column: 2;
  }

  .cross-discount-item-info .cross-discount-item-prices {
    grid-column: 1 / -1;
    margin-top: 4px;
    padding-top: 6px;
    align-items: flex-end;
    justify-content: space-between;
    width: 100%;
  }

  .cross-discount-item-info .cross-discount-price-discount,
  .cross-discount-item-info .cross-discount-price-normal {
    font-size: 18px;
  }

  .cross-discount-item-info .cross-discount-price-official {
    font-size: 14px;
  }

  .cross-discount-item-info .cross-discount-price-official-label {
    font-size: 12px;
  }
}

@media (max-width: 991px) {
  .cross-discount-bundle-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cross-discount-price-discount,
  .cross-discount-price-normal {
    font-size: 24px;
  }

  .cross-discount-item-card {
    min-height: 100px;
  }

  .cross-discount-summary-content {
    justify-content: center;
  }

  .cross-discount-summary .js-cross-discount-summary-text {
    text-align: center;
    white-space: nowrap;
    font-size: 14px;
  }
}

@media (max-width: 575px) {
  .cross-discount-bundle-items {
    grid-template-columns: 1fr;
  }

  .cross-discount-summary {
    padding-left: 10px;
    padding-right: 10px;
  }

  .cross-discount-summary .js-cross-discount-summary-text {
    font-size: 15x;
  }
}