/*
 * Shared modal close controls
 * Content dialogs use a quiet charcoal close control; image and video viewers
 * use a translucent white control so it remains visible over media.
 */

/* Content dialogs and side panels */
.modal-close-btn,
.np-discount-close,
.np-care-close,
.np-info-modal-close,
.quote-close-btn,
.quote-preview-close,
.benefits-modal-close,
.cart-close-btn {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  color: #4b5563 !important;
  cursor: pointer;
  font-size: 0 !important;
  line-height: 1;
  box-sizing: border-box;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.quote-close-btn,
.quote-preview-close,
.cart-close-btn {
  position: relative;
  display: grid !important;
  place-items: center;
}

.benefits-modal-close {
  position: absolute !important;
  top: 16px !important;
  right: 16px !important;
  display: grid !important;
  place-items: center;
}

.modal-close-btn::before,
.modal-close-btn::after,
.np-discount-close::before,
.np-discount-close::after,
.np-care-close::before,
.np-care-close::after,
.np-info-modal-close::before,
.np-info-modal-close::after,
.quote-close-btn::before,
.quote-close-btn::after,
.quote-preview-close::before,
.quote-preview-close::after,
.benefits-modal-close::before,
.benefits-modal-close::after,
.cart-close-btn::before,
.cart-close-btn::after {
  content: "";
  position: absolute;
  top: 19px;
  left: 11px;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.modal-close-btn::before,
.np-discount-close::before,
.np-care-close::before,
.np-info-modal-close::before,
.quote-close-btn::before,
.quote-preview-close::before,
.benefits-modal-close::before,
.cart-close-btn::before {
  transform: rotate(45deg);
}

.modal-close-btn::after,
.np-discount-close::after,
.np-care-close::after,
.np-info-modal-close::after,
.quote-close-btn::after,
.quote-preview-close::after,
.benefits-modal-close::after,
.cart-close-btn::after {
  transform: rotate(-45deg);
}

.quote-close-btn svg,
.quote-preview-close svg,
.benefits-modal-close svg,
.cart-close-btn svg {
  display: none !important;
}

.modal-close-btn:hover,
.np-care-close:hover,
.np-info-modal-close:hover,
.quote-close-btn:hover,
.quote-preview-close:hover,
.benefits-modal-close:hover,
.cart-close-btn:hover {
  background: #f1f3f5 !important;
  color: #111827 !important;
  transform: none;
}

/* This dialog has a visual at its top edge, so it keeps a light surface beneath the close icon. */
.np-discount-close {
  background: rgba(255, 255, 255, 0.92) !important;
}

.np-discount-close:hover {
  background: #fff !important;
  color: #111827 !important;
  transform: none;
}

.modal-close-btn:focus-visible,
.np-discount-close:focus-visible,
.np-care-close:focus-visible,
.np-info-modal-close:focus-visible,
.quote-close-btn:focus-visible,
.quote-preview-close:focus-visible,
.benefits-modal-close:focus-visible,
.cart-close-btn:focus-visible,
.video-modal-close:focus-visible,
#reviewModalClose:focus-visible {
  outline: 2px solid #2277ff;
  outline-offset: 2px;
}

/* Media viewers and review galleries */
.video-modal-close,
#reviewModalClose {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
  cursor: pointer;
  font-size: 0 !important;
  line-height: 1;
  box-sizing: border-box;
  transition: background-color 160ms ease, transform 160ms ease;
}

.video-modal-close {
  display: grid !important;
  place-items: center;
}

.video-modal-close::before,
.video-modal-close::after,
#reviewModalClose::before,
#reviewModalClose::after {
  content: "";
  position: absolute;
  top: 23px;
  left: 13px;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.video-modal-close::before,
#reviewModalClose::before { transform: rotate(45deg); }
.video-modal-close::after,
#reviewModalClose::after { transform: rotate(-45deg); }

.video-modal-close svg { display: none !important; }

.video-modal-close:hover,
#reviewModalClose:hover {
  background: rgba(255, 255, 255, 0.36) !important;
  transform: scale(1.04) !important;
}

/* Review detail keeps its close button outside the content so it never covers photos or text. */
#reviewModalClose {
  top: -60px !important;
  right: 0 !important;
  display: grid !important;
  place-items: center;
}

@media (max-width: 600px) {
  .modal-close-btn,
  .np-discount-close,
  .np-care-close,
  .np-info-modal-close,
  .quote-close-btn,
  .quote-preview-close,
  .benefits-modal-close,
  .cart-close-btn {
    width: 40px !important;
    height: 40px !important;
  }

  #reviewModalClose {
    top: -58px !important;
  }
}

/* ==========================================================================
   Sliding Cart Drawer
   ========================================================================== */

.cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.cart-drawer-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 440px;
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    background-color: #f3f3f3;
    z-index: 100001;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
}
.cart-drawer.is-open {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 16px;
    flex: 0 0 auto;
}
.cart-title {
    font-size: 20px;
    font-weight: 500;
    color: #111;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}
.cart-count {
    background: #232323;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.cart-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #111;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 0 24px 24px;
}

.cart-shipping-msg {
    font-size: 14px;
    color: #111;
    margin-bottom: 8px;
}
.cart-shipping-bar {
    height: 2px;
    background: #e5e5e5;
    border-radius: 2px;
    margin-bottom: 24px;
}
.cart-shipping-progress {
    height: 100%;
    background: #111;
    border-radius: 2px;
}

.cart-items {
    display: flex;
    flex-direction: column;
    background-color: #F8FAFC;
    border-radius: 16px;
    padding: 16px;
    gap: 0;
    border: none;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 20px;
}

.cart-item {
    display: block;
    background-color: transparent;
    border-radius: 0;
    padding: 14px 0;
    border: none;
    margin: 0;
    min-height: unset;
    height: auto;
    width: 100%;
    box-sizing: border-box;
}

.cart-item:first-child {
    padding-top: 0;
}

.cart-item:last-child {
    padding-bottom: 0;
}

.cart-item + .cart-item {
    border-top: 1px solid #e5e7eb;
}

.cart-item-info {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0;
    width: 100%;
    box-sizing: border-box;
}

.cart-item-info img {
    width: 72px;
    height: 72px;
    min-width: 72px;
    max-width: 72px;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    object-fit: contain;
    padding: 0;
    margin: 0 14px 0 0;
    flex: 0 0 72px;
}

.cart-item-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    flex: 1 1 calc(100% - 86px);
    min-width: 0;
    padding: 0;
    margin: 0;
}

.cart-item-title {
    font-size: 15px;
    font-weight: 700;
    color: #191c1d;
    line-height: 1.25;
    margin: 0;
    text-align: left;
}

.cart-item-variant {
    font-size: 13px;
    color: #64748b;
    margin: 1px 0 2px 0;
}

.cart-item-price-wrap {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
    margin: 2px 0;
}

.cart-item-price {
    font-size: 16px;
    font-weight: 700;
    color: #191c1d;
}

.cart-item-original {
    font-size: 13px;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 400;
}

.cart-item-discount-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 7px;
    background: #fee2e2;
    color: #b91c1c;
    border-radius: 4px;
    border: none;
    margin: 2px 0 0 0;
}

.cart-item-discount-badge svg {
    width: 12px;
    height: 12px;
    stroke-width: 2;
}

.cart-item-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: calc(100% - 86px);
    margin: 10px 0 0 86px;
    padding: 0;
    min-height: unset;
}

.cart-qty-selector {
    width: 92px;
    height: 30px;
    min-height: 30px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.cart-qty-btn {
    width: 26px;
    height: 100%;
    min-width: 26px;
    background: transparent;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.cart-qty-input {
    width: 40px;
    height: 100%;
    flex: 1;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: #191c1d;
    padding: 0;
}

.cart-remove-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    border-radius: 6px;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.cart-remove-btn:hover {
    color: #2277ff;
    background-color: #eaf2ff;
}

.cart-remove-btn svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.8px;
    color: inherit;
}

/* Trust Badges matching cart.html */
.cart-drawer .cart-trust-panel {
    background-color: #F8FAFC;
    border-radius: 16px;
    padding: 16px 18px;
    border: none;
    margin-top: 0;
    margin-bottom: 20px;
}

.cart-drawer .cart-trust-panel h2 {
    font-size: 15px;
    font-weight: 700;
    color: #191c1d;
    margin: 0 0 10px 0;
}

.cart-drawer .cart-trust-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.cart-drawer .cart-trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    color: #191c1d;
    font-weight: 400;
}

.cart-drawer .cart-trust-item img {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    object-fit: contain;
    filter: brightness(0);
}

/* Reviews */
.cart-reviews {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid #e5e5e5;
}
.cart-reviews-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: #111;
}
.cart-review-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 12px;
}
.cart-review-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.cart-review-avatar {
    width: 32px;
    height: 32px;
    background: #e5e5e5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    color: #111;
}
.cart-review-meta {
    display: flex;
    flex-direction: column;
}
.cart-review-name {
    font-size: 14px;
    font-weight: 600;
    color: #111;
}
.cart-review-date {
    font-size: 12px;
    color: #666;
}
.cart-review-heading {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #111;
}
.cart-review-text {
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    margin: 0 0 16px 0;
}
.cart-review-more {
    font-weight: 600;
    color: #111;
    text-decoration: underline;
}
.cart-review-img {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    object-fit: cover;
}

/* Footer */
.cart-footer {
    padding: 24px;
    background: #ebebeb;
    border-top: 1px solid #dedede;
    flex: 0 1 auto;
}

/* On shorter laptop screens, keep the cart items visible and scrollable.
   The summary stays inside the drawer, instead of covering the products. */
@media (min-width: 769px) and (max-height: 920px) {
    .cart-header {
        padding: 18px 24px 12px;
    }

    .cart-body {
        min-height: 260px;
        padding-bottom: 16px;
    }

    .pc-cart-footer {
        max-height: calc(100dvh - 340px);
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 16px 24px;
    }

    .pc-cart-footer .cart-discount-input-wrapper,
    .pc-cart-footer .cart-totals {
        margin-bottom: 16px;
    }

    .pc-cart-footer .cart-delivery-estimate {
        margin-bottom: 16px;
    }
}
.cart-discount-input-wrapper {
    margin-bottom: 24px;
}
.cart-discount-input {
    width: 100%;
    height: 48px;
    border: 1px solid #d4d4d4;
    border-radius: 8px;
    padding: 0 16px;
    font-size: 14px;
    background: transparent;
}
.cart-totals {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}
.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cart-total-label {
    font-size: 18px;
    color: #111;
}
.cart-total-price {
    font-size: 20px;
    font-weight: 500;
    color: #111;
}
.cart-savings-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cart-savings-label {
    font-size: 13px;
    color: #2277ff;
}
.cart-savings-amount {
    font-size: 13px;
    color: #e74343;
}
.cart-taxes-msg {
    font-size: 13px;
    color: #666;
}
.cart-taxes-msg a {
    color: #666;
    text-decoration: underline;
}
.cart-order-note {
    font-size: 13px;
    color: #666;
    text-decoration: underline;
    margin-top: 4px;
}

.cart-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 8px;
}
.btn-view-cart, .btn-checkout {
    width: 100%;
    flex: 0 0 auto;
    height: 52px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-view-cart {
    background: #fff;
    border: 1px solid #111;
    color: #111;
}
.btn-view-cart:hover {
    background: #f9f9f9;
}
.btn-checkout {
    background: #232323;
    border: none;
    color: #fff;
}
.btn-checkout:hover {
    background: #000;
}

/* ==========================================================================
   New Cart Features (Sales, Trust Badges, Delivery)
   ========================================================================== */

.cart-sales-badge {
    display: inline-flex;
    align-items: center;
    background-color: #f2f7ff;
    color: #2277ff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid #cfe0ff;
    width: fit-content;
}

.cart-trust-badges {
    background: #f9f9f9;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    border: 1px solid #e5e5e5;
}
.cart-trust-title {
    font-size: 15px;
    font-weight: 600;
    color: #111;
    margin: 0 0 12px 0;
}
.cart-trust-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.cart-trust-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #444;
}
.cart-trust-list li svg {
    color: #2277ff;
}

.cart-delivery-estimate {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #cfe0ff;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}
.cart-delivery-estimate .delivery-text {
    font-size: 13px;
    color: #111;
}
.cart-delivery-estimate strong {
    color: #2277ff;
}

.cart-delivery-estimate svg {
    stroke: #2277ff;
}

/* ==========================================================================
   Tiered Promo Bar
   ========================================================================== */
.cart-tiered-promo {
    background-color: #fdf7e6;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
    border: 1px solid #fae6c6;
}
.tiered-promo-header {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin-bottom: 24px;
}
.tiered-promo-icon {
    color: #e09923;
    margin-top: 2px;
}
.tiered-promo-text {
    font-size: 13px;
    color: #111;
    line-height: 1.4;
}
.tiered-promo-text strong {
    color: #d95e29;
}
.tiered-promo-bar-container {
    position: relative;
    padding: 0 10px; 
}
.tiered-promo-bar {
    height: 6px;
    background: #f1dfc5;
    border-radius: 4px;
    position: relative;
    margin-bottom: 12px;
}
.tiered-promo-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #f2a632;
    border-radius: 4px;
    z-index: 1;
}
.tiered-node {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #f1dfc5;
    z-index: 2;
}
.tiered-node.reached {
    border-color: #f2a632;
    background: #f2a632;
}
.tiered-node.current {
    border-color: #f2a632;
    background: #fff;
}
.tiered-promo-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #666;
    text-align: center;
    position: relative;
    left: -10px;
    width: calc(100% + 20px);
}
.tiered-promo-labels .tier-label {
    position: absolute;
    transform: translateX(-50%);
    white-space: nowrap;
    line-height: 1.2;
}

/* ==========================================================================
   PC Cart Drawer Reference Styling
   ========================================================================== */

@media (min-width: 769px) {
    .cart-drawer {
        width: 560px;
        background: #ffffff;
        box-shadow: -10px 0 34px rgba(15, 23, 42, 0.12);
        overflow: hidden;
        scrollbar-color: #b8b8b8 transparent;
        scrollbar-width: thin;
    }

    .cart-drawer::-webkit-scrollbar {
        width: 8px;
    }

    .cart-drawer::-webkit-scrollbar-thumb {
        background: #b8b8b8;
        border-radius: 999px;
    }

    .cart-header {
        padding: 38px 40px 26px;
        background: #ffffff;
    }

    .cart-title {
        font-size: 30px;
        line-height: 1;
        font-weight: 650;
        letter-spacing: 0;
        gap: 12px;
    }

    .cart-count {
        width: 34px;
        height: 34px;
        font-size: 16px;
        font-weight: 700;
        background: #202124;
        box-shadow: none;
    }

    .cart-close-btn {
        color: #374151;
        padding: 6px;
    }

    .cart-close-btn svg {
        width: 28px;
        height: 28px;
        stroke-width: 1.8;
    }

    .cart-body {
        padding: 0 40px 28px;
        background: #ffffff;
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .cart-tiered-promo {
        padding: 26px 26px 24px;
        margin-bottom: 24px;
        border-radius: 10px;
        background: #fff8f2;
        border-color: #ffd9bd;
        box-shadow: inset 0 0 28px rgba(227, 78, 24, 0.04);
    }

    .tiered-promo-header {
        gap: 18px;
        margin-bottom: 30px;
        align-items: center;
    }

    .tiered-promo-icon {
        color: #e34e18;
        margin-top: 0;
    }

    .tiered-promo-icon svg {
        width: 30px;
        height: 30px;
        stroke-width: 1.8;
    }

    .tiered-promo-text {
        font-size: 19px;
        line-height: 1.35;
        color: #111111;
    }

    .tiered-promo-text strong {
        color: #e34e18;
        font-weight: 700;
    }

    .tiered-promo-bar-container {
        padding: 0 2px;
    }

    .tiered-promo-bar {
        height: 6px;
        margin-bottom: 22px;
        background: #ece7e2;
    }

    .tiered-promo-progress {
        background: #e34e18;
    }

    .tiered-node {
        width: 16px;
        height: 16px;
        border-width: 0;
        background: #e34e18;
    }

    .tiered-node.current {
        width: 18px;
        height: 18px;
        border: 4px solid #ffffff;
        background: #e34e18;
        box-shadow: 0 0 0 1px #e34e18;
    }

    .tiered-promo-labels {
        left: 0;
        width: 100%;
        font-size: 15px;
        color: #5f6368;
    }

    .tiered-promo-labels .tier-label strong {
        font-weight: 700;
        color: #4b5563;
    }

    .cart-sales-badge {
        padding: 8px 16px;
        margin-bottom: 34px;
        border-radius: 999px;
        background: #ffffff;
        color: #2277ff;
        border: 1px solid #e5e7eb;
        font-size: 16px;
        font-weight: 500;
    }

    .cart-items {
        background-color: #F8FAFC;
        border-radius: 16px;
        padding: 20px;
        margin-bottom: 24px;
        gap: 0;
    }

    .cart-item {
        padding: 16px 0;
    }

    .cart-item-info img {
        width: 80px;
        height: 80px;
        min-width: 80px;
        max-width: 80px;
        flex: 0 0 80px;
        margin: 0 16px 0 0;
    }

    .cart-item-details {
        flex: 1 1 calc(100% - 96px);
    }

    .cart-item-title {
        font-size: 16px;
    }

    .cart-item-price {
        font-size: 17px;
    }

    .cart-item-actions {
        width: calc(100% - 96px);
        margin: 12px 0 0 96px;
    }

    .cart-trust-badges,
    .cart-trust-panel {
        padding: 18px 20px;
        margin-bottom: 24px;
        background: #F8FAFC;
        border: none;
        border-radius: 16px;
    }

    .cart-trust-title {
        margin-bottom: 24px;
        font-size: 20px;
        font-weight: 700;
    }

    .cart-trust-list {
        gap: 18px;
    }

    .cart-trust-list li {
        font-size: 16px;
        line-height: 1.3;
        color: #333333;
    }

    .cart-trust-list li svg {
        width: 22px;
        height: 22px;
        color: #2277ff;
    }

    .pc-cart-footer {
        padding: 18px 40px 20px;
        background: #ffffff;
        border-top: 1px solid #e5e7eb;
        flex: 0 0 auto;
        max-height: none;
        overflow: visible;
        box-shadow: 0 -6px 14px rgba(15, 23, 42, 0.06);
    }

    .pc-cart-summary {
        margin-bottom: 14px;
    }

    .pc-cart-summary-heading {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
    }

    .pc-cart-summary .cart-total-label {
        font-size: 18px;
        line-height: 1.2;
        font-weight: 500;
    }

    .cart-apply-code {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        padding: 0;
        border: 0;
        background: transparent;
        color: #111111;
        font-size: 15px;
        line-height: 1.2;
        text-decoration: none;
        cursor: pointer;
        transition: color 0.15s ease;
    }

    .cart-apply-code:hover {
        color: #2277ff;
    }

    .cart-apply-code .cart-apply-code-icon {
        display: inline-block;
        width: 14px;
        height: 14px;
        stroke: currentColor;
        stroke-width: 2.5;
        transition: transform 0.25s ease;
    }

    .cart-apply-code[aria-expanded="true"] .cart-apply-code-icon {
        transform: rotate(180deg);
    }

    .cart-apply-code[aria-expanded="true"] {
        color: #2277ff;
    }

    .pc-cart-summary .cart-total-price {
        margin-top: 4px;
        font-size: 27px;
        line-height: 1;
        font-weight: 700;
    }

    .cart-delivery-estimate {
        padding: 0;
        margin-bottom: 16px;
        border: 0;
        border-radius: 0;
        background: #ffffff;
    }

    .cart-delivery-estimate svg {
        width: 20px;
        height: 20px;
        stroke: #2277ff;
    }

    .cart-delivery-estimate .delivery-text {
        font-size: 14px;
        line-height: 1.3;
    }

    .cart-delivery-estimate strong {
        color: #2277ff;
        font-weight: 700;
    }

    .cart-actions {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 0;
    }

    .btn-view-cart,
    .btn-checkout {
        width: 100%;
        flex: 0 0 auto;
        height: 52px;
        border-radius: 999px;
        font-size: 18px;
        font-weight: 700;
    }

    .btn-view-cart {
        border-color: #111111;
        color: #111111;
        background: #ffffff;
    }

    .btn-checkout {
        background: #232323;
        border-color: #232323;
        color: #ffffff;
    }
}

/* ==========================================================================
   Cart Footer Updated Summary (Mobile & Drawer style)
   ========================================================================== */

.mobile-cart-footer {
    display: none;
    flex-direction: column;
}

@media (max-width: 768px) {
    .cart-drawer {
        display: flex;
        flex-direction: column;
        overflow: hidden;
        background: #ffffff;
        right: calc(100% - 100vw);
    }
    .cart-header {
        position: relative;
        background: #ffffff;
    }
    .cart-body {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        overscroll-behavior: contain;
        background: #ffffff;
    }
    .pc-cart-footer {
        display: none !important;
    }
    .mobile-cart-footer {
        display: flex !important;
        flex: 0 0 auto;
        width: 100%;
        box-sizing: border-box;
        padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
        background: #ffffff;
        border-top: 1px solid #e5e7eb;
        box-shadow: 0 -6px 14px rgba(15, 23, 42, 0.06);
    }

    .mobile-cart-summary {
        margin-bottom: 10px;
    }

    .mobile-cart-summary-heading {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
    }

    .mobile-cart-summary .cart-total-label {
        font-size: 18px;
        line-height: 1.2;
        font-weight: 500;
    }

    .mobile-cart-footer .cart-apply-code {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        padding: 0;
        border: 0;
        background: transparent;
        color: #111111;
        font-size: 15px;
        line-height: 1.2;
        text-decoration: none;
        cursor: pointer;
        transition: color 0.15s ease;
    }

    .mobile-cart-footer .cart-apply-code:hover {
        color: #2277ff;
    }

    .mobile-cart-footer .cart-apply-code .cart-apply-code-icon {
        display: inline-block;
        width: 14px;
        height: 14px;
        stroke: currentColor;
        stroke-width: 2.5;
        transition: transform 0.25s ease;
    }

    .mobile-cart-footer .cart-apply-code[aria-expanded="true"] .cart-apply-code-icon {
        transform: rotate(180deg);
    }

    .mobile-cart-footer .cart-apply-code[aria-expanded="true"] {
        color: #2277ff;
    }

    .mobile-cart-summary .cart-total-price {
        margin-top: 4px;
        font-size: 27px;
        line-height: 1;
        font-weight: 700;
    }

    .mobile-cart-footer .cart-delivery-estimate {
        padding: 0;
        margin-bottom: 10px;
        border: 0;
        border-radius: 0;
        background: #ffffff;
    }

    .mobile-cart-footer .cart-delivery-estimate svg {
        width: 20px;
        height: 20px;
        flex: 0 0 auto;
        stroke: #2277ff;
    }

    .mobile-cart-footer .cart-delivery-estimate .delivery-text {
        font-size: 14px;
        line-height: 1.3;
    }

    .mobile-cart-footer .cart-delivery-estimate strong {
        color: #2277ff;
        font-weight: 700;
    }

    .mobile-cart-footer .cart-actions {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 0;
    }

    .mobile-cart-footer .btn-view-cart,
    .mobile-cart-footer .btn-checkout {
        width: 100%;
        flex: 0 0 auto;
        height: 48px;
        min-height: 48px;
        border-radius: 999px;
        font-size: 17px;
        font-weight: 700;
    }

    .mobile-cart-footer .btn-view-cart {
        border-color: #111111;
        color: #111111;
        background: #ffffff;
    }

    .mobile-cart-footer .btn-checkout {
        background: #232323;
        border-color: #232323;
        color: #ffffff;
    }
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #444;
    margin-bottom: 12px;
}

.summary-row.discount-row {
    color: #e74343; /* Often red/orange for discount */
    font-weight: 500;
}

.summary-value.free-text {
    color: #008060;
    font-weight: 600;
}

.summary-sub-note {
    font-size: 12px;
    color: #888;
    margin-top: -8px;
    margin-bottom: 12px;
}

.promo-input-group {
    display: flex;
    margin-top: 8px;
    margin-bottom: 8px;
}

.promo-input-group input {
    flex: 1;
    padding: 12px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    background-color: #f3f3f3; /* Gray background block */
    transition: background-color 0.2s, border-color 0.2s;
}

.promo-input-group input:focus {
    border-color: #111;
    background-color: #fff;
}

.promo-notice {
    font-size: 12px;
    color: #888;
    margin-bottom: 24px;
    line-height: 1.4;
}

.summary-delivery-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    margin-bottom: 24px;
    font-size: 13px;
    color: #111;
}

.summary-delivery-box svg {
    flex-shrink: 0;
}

.summary-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-bottom: 24px;
}

.total-label {
    font-size: 16px;
    font-weight: 700;
    color: #111;
}

.total-value {
    font-size: 24px;
    font-weight: 700;
    color: #111;
}

.btn-checkout-primary {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #232323;
    color: #fff;
    border: none;
    border-radius: 100px;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
    margin-bottom: 8px;
}

.btn-checkout-primary:hover {
    background: #000;
}

.payment-methods-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.pay-icon {
    font-size: 11px;
    color: #555;
    background: #f3f3f3; /* Gray block */
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    font-weight: 500;
}

/* ==========================================================================
   B2B Quotation Feature
   ========================================================================== */

.btn-quote-secondary {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #fff;
    color: #444;
    border: 1px solid #ccc;
    border-radius: 100px;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 0px;
    margin-bottom: 24px;
}

.btn-quote-secondary:hover {
    background: #f9f9f9;
    border-color: #999;
}

/* Modal Overlay */
.quote-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100010;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
}

.quote-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

/* Modal Box */
.quote-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 90%;
    max-width: 500px;
    background: #fff;
    border-radius: 12px;
    z-index: 100011;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.quote-modal.is-open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.quote-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quote-modal-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #111;
}

.quote-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quote-modal-body {
    padding: 24px;
}

.quote-form-group {
    margin-bottom: 16px;
}

.quote-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}

.quote-form-group label span {
    color: #e74343;
    font-size: 11px;
    margin-left: 4px;
}

.quote-form-group input[type="text"],
.quote-form-group input[type="email"],
.quote-form-group input[type="tel"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.quote-form-group input:focus {
    border-color: #e74343;
}

.quote-input-wrapper {
    display: flex;
    gap: 8px;
}

.quote-input-wrapper select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #f9f9f9;
    font-size: 14px;
    outline: none;
    min-width: 80px;
}

.quote-terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 20px;
    margin-bottom: 24px;
}

.quote-terms-checkbox input {
    margin-top: 3px;
}

.quote-terms-checkbox label {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.btn-quote-submit {
    width: 100%;
    background: #232323;
    color: #fff;
    border: none;
    border-radius: 100px;
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.btn-quote-submit:hover {
    background: #000;
}

/* Printable Template Styles */
.print-quote-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background: #fff;
    color: #333;
    font-family: "Noto Sans JP", sans-serif;
}

.quote-header {
    text-align: center;
    border-bottom: 2px solid #111;
    padding-bottom: 20px;
    margin-bottom: 30px;
    position: relative;
}

.quote-header h1 {
    font-size: 28px;
    letter-spacing: 4px;
    margin: 0;
}

.quote-date {
    position: absolute;
    right: 0;
    bottom: 10px;
    font-size: 14px;
}

.quote-info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.quote-address h2 {
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 10px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
}

.quote-address p {
    font-size: 14px;
    margin: 4px 0;
}

.quote-total-display {
    margin-top: 20px;
    font-size: 18px;
}

.quote-total-display strong {
    font-size: 24px;
    border-bottom: 2px solid #111;
    padding-bottom: 2px;
}

.quote-sender {
    text-align: right;
    font-size: 13px;
    line-height: 1.6;
}

.quote-sender p {
    margin: 2px 0;
}

.quote-items-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.quote-items-table th,
.quote-items-table td {
    border: 1px solid #111;
    padding: 12px;
    text-align: center;
    font-size: 13px;
}

.quote-items-table th {
    background: #f0f0f0;
    font-weight: 700;
}

.quote-totals-box {
    width: 50%;
    margin-left: auto;
    margin-bottom: 40px;
}

.quote-totals-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    border-bottom: 1px dashed #ccc;
    font-size: 14px;
}

.quote-final-row {
    border-bottom: 2px solid #111;
    font-weight: 700;
    font-size: 16px;
    background: #f9f9f9;
}

.quote-notes {
    font-size: 12px;
    color: #555;
    background: #f9f9f9;
    padding: 16px;
    border-radius: 4px;
}

.quote-notes h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 13px;
}

.quote-notes p {
    margin: 4px 0;
}
body.quote-layer-open {
    overflow: hidden;
}

/* Full-screen quotation result */
.quote-preview-overlay {
    position: fixed;
    inset: 0;
    z-index: 100020;
    background: #f3f3f3;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.quote-preview-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.quote-preview-panel {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-rows: 64px minmax(0, 1fr) auto;
    background: #f3f3f3;
}

.quote-preview-toolbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    padding: 0 32px;
    background: #fff;
    border-bottom: 1px solid #dedede;
}

.quote-preview-toolbar h2 {
    margin: 0;
    color: #111;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0;
}

.quote-preview-back,
.quote-preview-close {
    border: 0;
    background: transparent;
    color: #333;
    cursor: pointer;
}

.quote-preview-back {
    justify-self: start;
    padding: 8px 0;
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.quote-preview-close {
    width: 40px;
    height: 40px;
    justify-self: end;
    display: grid;
    place-items: center;
    padding: 0;
}

.quote-preview-scroll {
    min-height: 0;
    overflow: auto;
    padding: 36px 24px 48px;
}

.quote-preview-scroll .print-quote-container {
    max-width: 1040px;
    box-sizing: border-box;
    border: 1px solid #d8d8d8;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.quote-preview-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 32px calc(16px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid #dedede;
}

.quote-preview-edit,
.quote-preview-download {
    min-width: 180px;
    min-height: 46px;
    padding: 12px 18px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.quote-preview-edit {
    border: 1px solid #aaa;
    background: #fff;
    color: #222;
}

.quote-preview-download {
    border: 1px solid #111;
    background: #111;
    color: #fff;
}

.quote-preview-download:disabled {
    cursor: wait;
    opacity: 0.65;
}

.quote-preview-back:focus-visible,
.quote-preview-close:focus-visible,
.quote-preview-edit:focus-visible,
.quote-preview-download:focus-visible {
    outline: 2px solid #e74343;
    outline-offset: 2px;
}

.print-quote-container {
    box-sizing: border-box;
}

.quote-info-row {
    align-items: flex-start;
    gap: 40px;
}

.quote-contact-line {
    color: #666;
}

.quote-contact-line.is-empty {
    display: none;
}

.quote-items-table th {
    background: #111;
    color: #fff;
}

@media (max-width: 768px) {
    .quote-preview-panel {
        grid-template-rows: 56px minmax(0, 1fr) auto;
    }

    .quote-preview-toolbar {
        grid-template-columns: auto minmax(0, 1fr) 40px;
        gap: 10px;
        padding: 0 12px 0 16px;
    }

    .quote-preview-toolbar h2 {
        overflow: hidden;
        text-align: center;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .quote-preview-back {
        font-size: 13px;
    }

    .quote-preview-scroll {
        padding: 0;
        background: #fff;
    }

    .quote-preview-scroll .print-quote-container {
        max-width: none;
        padding: 24px 16px 32px;
        border: 0;
        box-shadow: none;
    }

    .quote-header {
        padding-bottom: 16px;
        margin-bottom: 24px;
    }

    .quote-header h1 {
        font-size: 22px;
        letter-spacing: 2px;
    }

    .quote-date {
        position: static;
        margin-top: 10px;
        text-align: right;
        font-size: 12px;
    }

    .quote-info-row {
        flex-direction: column;
        gap: 22px;
        margin-bottom: 24px;
    }

    .quote-address,
    .quote-sender {
        width: 100%;
    }

    .quote-address h2 {
        font-size: 18px;
    }

    .quote-total-display {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 4px 8px;
        margin-top: 16px;
        font-size: 14px;
    }

    .quote-total-display strong {
        font-size: 20px;
    }

    .quote-sender {
        padding-top: 18px;
        border-top: 1px solid #ddd;
        text-align: left;
    }

    .quote-items-table,
    .quote-items-table tbody,
    .quote-items-table tr,
    .quote-items-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .quote-items-table thead {
        display: none;
    }

    .quote-items-table tr {
        margin-bottom: 12px;
        border: 1px solid #bbb;
    }

    .quote-items-table td {
        display: grid;
        grid-template-columns: minmax(92px, 38%) minmax(0, 1fr);
        align-items: center;
        gap: 12px;
        padding: 10px 12px;
        border: 0;
        border-bottom: 1px solid #e5e5e5;
        text-align: right;
        overflow-wrap: anywhere;
    }

    .quote-items-table td:last-child {
        border-bottom: 0;
    }

    .quote-items-table td::before {
        content: attr(data-label);
        color: #555;
        font-size: 12px;
        font-weight: 700;
        text-align: left;
    }

    .quote-items-table td:first-child {
        background: #111;
        color: #fff;
        font-weight: 700;
    }

    .quote-items-table td:first-child::before {
        color: #fff;
    }

    .quote-totals-box {
        width: 100%;
        margin-bottom: 28px;
    }

    .quote-notes {
        padding: 14px;
        line-height: 1.5;
    }

    .quote-preview-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
        gap: 8px;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    }

    .quote-preview-edit,
    .quote-preview-download {
        min-width: 0;
        width: 100%;
        min-height: 44px;
        padding: 10px 8px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .quote-modal {
        width: calc(100% - 24px);
        max-height: calc(100% - 24px);
        overflow-y: auto;
        border-radius: 8px;
    }

    .quote-modal-header,
    .quote-modal-body {
        padding-left: 18px;
        padding-right: 18px;
    }
}

/* Support Dropdown */
.support-dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.support-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: #FFFFFF;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 999;
    margin-top: 4px;
}

.support-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -16px;
    left: 0;
    right: 0;
    height: 16px;
}

.support-dropdown-wrapper:hover .support-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.support-dropdown-menu a {
    color: var(--color-text-main);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background 0.2s;
    display: block;
}

.support-dropdown-menu a:hover {
    background-color: #F3F4F6;
    color: var(--color-text-main);
}

/* Mobile adjustments for cart quantity selector */
@media (max-width: 480px) {
    .cart-qty {
        height: 28px !important;
        padding: 0 2px !important;
    }
    .qty-btn {
        width: 24px !important;
        height: 24px !important;
    }
    .qty-btn svg {
        width: 10px;
        height: 10px;
    }
    .qty-val {
        font-size: 13px !important;
        width: 18px !important;
    }
    .cart-item-controls {
        margin-top: -24px !important;
    }
}

/* ========================================================= */
/* Global Video Modal */
/* ========================================================= */
.global-video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.video-modal-container {
  position: relative;
  width: 90%;
  max-width: 1000px;
  max-height: 90vh;
  z-index: 10000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #000;
  transition: max-width 0.3s ease, aspect-ratio 0.3s ease;
}

.video-modal-container.is-vertical {
  aspect-ratio: 9 / 16;
  max-width: 450px;
}

.video-modal-container video {
  width: 100%;
  height: 100%;
  max-height: 90vh;
  object-fit: contain;
  display: block;
}

.video-modal-container.is-vertical video {
  object-fit: cover;
}

.video-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10001;
  transition: background 0.2s;
}

.video-modal-close:hover {
  background: rgba(255, 255, 255, 0.4);
}

.video-modal-close svg {
  width: 24px;
  height: 24px;
}

@media (min-width: 1025px) {
    .cart-drawer .cart-trust-item img {
        width: 28px;
        height: 28px;
    }
    .cart-drawer .cart-trust-item span {
        font-size: 15px; /* Slightly larger text on desktop to balance */
    }
}

/* ==========================================================================
   CART DISCOUNT ACCORDION (Interactive Promo Code Module)
   ========================================================================== */
.cart-discount-accordion {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-bottom: 0;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, margin 0.25s ease;
}

.cart-discount-accordion.is-open {
    max-height: 200px;
    opacity: 1;
    margin-bottom: 14px;
}

.cart-drawer-discount-box {
    padding: 2px 0 4px;
}

.cart-discount-label {
    display: block;
    font-size: 14.5px;
    font-weight: 700;
    color: #191c1d;
    margin-bottom: 6px;
    line-height: 1.3;
}

.cart-discount-accordion .cart-discount-entry {
    display: flex;
    align-items: stretch;
    height: 42px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cart-discount-accordion .cart-discount-entry:focus-within {
    border-color: #2277ff;
    box-shadow: 0 0 0 2px rgba(34, 119, 255, 0.12);
}

.cart-discount-accordion .cart-discount-input {
    flex: 1;
    width: 100%;
    min-width: 0;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 500;
    color: #191c1d;
    font-family: inherit;
    box-sizing: border-box;
}

.cart-discount-accordion .cart-discount-input::placeholder {
    color: #9ca3af;
    font-size: 14px;
}

.cart-discount-accordion .cart-discount-apply {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 20px;
    border: none;
    border-left: 1px solid #e5e7eb;
    border-radius: 0;
    background: #ffffff;
    color: #2277ff;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.cart-discount-accordion .cart-discount-apply:hover {
    background-color: #f8fafc;
    color: #0056ff;
}

.cart-discount-note {
    margin-top: 5px;
    margin-bottom: 0;
    font-size: 11.5px;
    color: #64748b;
    line-height: 1.35;
}

.cart-discount-feedback {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.4;
    padding: 6px 10px;
    border-radius: 6px;
}

.cart-discount-feedback.is-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.cart-discount-feedback.is-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.cart-total-original {
    text-decoration: line-through;
    color: #9ca3af;
    font-size: 19px;
    font-weight: 500;
    margin-right: 6px;
}


