/* ── Shared ── */
.mdb-spend-save {
    margin: 12px 0;
    color: #323e46;
    font-size: 14px;
    line-height: 1.5;
}

.mdb-spend-save--cart-wrap,
.mdb-spend-save--checkout-wrap {
    margin-bottom: 20px;
}

/* ── Cart: group by category + compact notice bar ── */
.mdb-spend-save__cart-group-header td {
    background: #f0fafa;
    border-top: 2px solid #30cfd2;
    border-bottom: 1px solid #d8f3f4;
    padding: 12px 16px !important;
}

.mdb-spend-save__cart-group-title {
    font-size: 15px;
    font-weight: 700;
    color: #30cfd2;
    margin-right: 12px;
}

.mdb-spend-save__cart-group-subtotal {
    font-size: 14px;
    font-weight: 600;
    color: #323e46;
}

.mdb-spend-save__cart-notice-row td {
    padding: 0 0 16px !important;
    border-bottom: 2px solid #eeeeee;
    background: #fafafa;
}

.mdb-spend-save__cart-bar {
    margin: 0;
    border-radius: 0;
    font-size: 13px;
    line-height: 1.45;
}

.mdb-spend-save__cart-bar--pending {
    background: #f7fdfd;
    border-top: 1px solid #d8f3f4;
    border-bottom: 1px solid #d8f3f4;
}

.mdb-spend-save__cart-bar--applied {
    background: #f3fbf3;
    border-top: 1px solid #c8e6c9;
    border-bottom: 1px solid #c8e6c9;
}

.mdb-spend-save__cart-bar-toggle {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    padding: 10px 16px;
    margin: 0;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
    color: #323e46;
    font-size: 13px;
    line-height: 1.45;
}

.mdb-spend-save__cart-bar-toggle:hover,
.mdb-spend-save__cart-bar-toggle:focus {
    background: rgba(48, 207, 210, 0.06);
    outline: none;
}

.mdb-spend-save__cart-bar--applied .mdb-spend-save__cart-bar-toggle:hover,
.mdb-spend-save__cart-bar--applied .mdb-spend-save__cart-bar-toggle:focus {
    background: rgba(76, 175, 80, 0.08);
}

.mdb-spend-save__cart-bar-icon {
    flex-shrink: 0;
    width: 20px;
    text-align: center;
    font-size: 14px;
    line-height: 1.4;
}

.mdb-spend-save__cart-bar--applied .mdb-spend-save__cart-bar-icon {
    color: #2e7d32;
    font-weight: 700;
}

.mdb-spend-save__cart-bar-summary {
    flex: 1;
    font-weight: 600;
}

.mdb-spend-save__cart-bar-chevron {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    margin-top: 4px;
    border-right: 2px solid #30cfd2;
    border-bottom: 2px solid #30cfd2;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.mdb-spend-save__cart-bar--open .mdb-spend-save__cart-bar-chevron {
    transform: rotate(-135deg);
    margin-top: 8px;
}

.mdb-spend-save__cart-bar-details {
    padding: 0 16px 12px 46px;
    border-top: 1px solid rgba(48, 207, 210, 0.15);
    background: #fff;
}

.mdb-spend-save__cart-bar--applied .mdb-spend-save__cart-bar-details {
    border-top-color: rgba(76, 175, 80, 0.2);
}

.mdb-spend-save__cart-bar-details-inner {
    padding-top: 10px;
    font-size: 13px;
}

.mdb-spend-save__cart-bar-details-inner .mdb-spend-save__category-line {
    margin-bottom: 6px;
}

.mdb-spend-save__cart-bar-details-inner .mdb-spend-save__applied,
.mdb-spend-save__cart-bar-details-inner .mdb-spend-save__notice,
.mdb-spend-save__cart-bar-details-inner .mdb-spend-save__progress {
    margin-bottom: 6px;
}

.mdb-spend-save__cart-bar-details-inner .mdb-spend-save__progress:last-child,
.mdb-spend-save__cart-bar-details-inner .mdb-spend-save__notice:last-child,
.mdb-spend-save__cart-bar-details-inner .mdb-spend-save__applied:last-child {
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .mdb-spend-save__cart-bar-details {
        padding-left: 16px;
    }

    .mdb-spend-save__cart-group-header td {
        padding: 10px 12px !important;
    }
}

.mdb-spend-save__box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    margin-bottom: 10px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
}

.mdb-spend-save__box--teal {
    background: #f7fdfd;
    border: 1px solid #30cfd2;
    border-left-width: 3px;
}

.mdb-spend-save__box-icon {
    flex-shrink: 0;
    font-size: 18px;
    line-height: 1.4;
}

.mdb-spend-save__static,
.mdb-spend-save__cart-body {
    margin: 0;
    flex: 1;
}

.mdb-spend-save__static strong,
.mdb-spend-save__cart-body strong {
    font-weight: 700;
    color: #30cfd2;
}

.mdb-spend-save__category-line {
    margin: 0 0 8px;
    color: #323e46;
}

.mdb-spend-save__applied {
    color: #30cfd2;
    font-weight: 600;
    margin: 0 0 8px;
}

.mdb-spend-save__notice {
    color: #323e46;
    font-weight: 600;
    margin: 0 0 8px;
}

.mdb-spend-save__progress {
    color: #656565;
    margin: 0;
}

.mdb-spend-save__progress--max {
    color: #30cfd2;
    font-weight: 600;
}

/* ── Product page ── */
.mdb-spend-save--product {
    display: block;
    width: 100%;
    clear: both;
    margin: 0 0 16px;
    padding: 0;
    border: none;
    background: transparent;
}

.mdb-spend-save--product .mdb-spend-save__box {
    margin-bottom: 10px;
}

.mdb-spend-save--product .mdb-spend-save__box:last-child {
    margin-bottom: 0;
}

.mdb-spend-save__projected-tier[hidden] {
    display: none !important;
}

.mdb-spend-save__price-savings[hidden] {
    display: none !important;
}

/* ── Payment area (mockup: bordered box, price left, buttons right) ── */
.cpo-payment-area.mdb-spend-save__payment-area {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.cpo-payment-area.mdb-spend-save__payment-area > .grid-35,
.cpo-payment-area.mdb-spend-save__payment-area > .mdb-spend-save__price-col {
    float: none !important;
    width: auto !important;
    flex: 1 1 260px;
    max-width: 100%;
    margin: 0 !important;
}

.mdb-spend-save__payment-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    flex: 0 1 auto;
    margin-left: auto;
}

.mdb-spend-save__payment-actions .single_add_to_cart_button,
.mdb-spend-save__payment-actions #js-uni-cpo-calculate-btn {
    float: none;
    margin: 0 !important;
    vertical-align: middle;
}

/* Price block — same size for actual price and “as low as” line */
.cpo-payment-area .mdb-spend-save__price-col .uni-cpo-total,
.cpo-payment-area .grid-35 .uni-cpo-total {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: #323e46;
    margin: 0 0 4px !important;
}

.cpo-payment-area .mdb-spend-save__price-col .uni-cpo-total-sum,
.cpo-payment-area .grid-35 .uni-cpo-total-sum {
    text-decoration: none !important;
    color: #323e46;
    font-weight: 700;
    font-size: inherit;
}

.cpo-payment-area.mdb-spend-save__payment-area--has-savings .uni-cpo-total,
.cpo-payment-area.mdb-spend-save__payment-area--has-savings .grid-35 .uni-cpo-total,
.cpo-payment-area.mdb-spend-save__payment-area--has-savings .uni-cpo-total-sum {
    font-size: 16px;
    line-height: 1.4;
    color: #323e46;
    font-weight: 700;
}

.cpo-payment-area .grid-35 .mdb-spend-save__price-savings,
.cpo-payment-area .mdb-spend-save__price-col .mdb-spend-save__price-savings {
    margin-top: 4px;
    clear: both;
}

/* “As low as” — same font size; price figure in turquoise */
.mdb-spend-save__price-savings-as-low,
.mdb-spend-save__price-savings-headline {
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 14.5px;
    line-height: 1.4;
    font-weight: 600;
    color: #323e46;
}

.mdb-spend-save__price-savings-as-low-text strong,
.mdb-spend-save__price-savings-headline strong {
    color: #30cfd2;
    font-weight: 700;
}

.mdb-spend-save__price-savings-sub {
    margin: 0;
    display: none;
}

.mdb-spend-save__price-savings-percent strong {
    color: #656565;
    font-weight: 600;
}

.mdb-spend-save__price-savings-as-low .mdb-spend-save__tooltip-wrap,
.mdb-spend-save__price-savings-sub .mdb-spend-save__tooltip-wrap {
    flex-shrink: 0;
}

.mdb-spend-save__tooltip-panel[hidden] {
    display: none !important;
}

.mdb-spend-save__tooltip-note {
    margin: 0 0 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e8e8e8;
    font-size: 12px;
    line-height: 1.45;
    color: #656565;
}

.mdb-spend-save__tooltip-note strong {
    color: #30cfd2;
}

/* ── Discount line tooltip ── */
.mdb-spend-save__tooltip-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.mdb-spend-save__price-savings-as-low .mdb-spend-save__tooltip-panel,
.mdb-spend-save__price-savings-sub .mdb-spend-save__tooltip-panel {
    min-width: 280px;
    top: auto;
    bottom: calc(100% + 8px);
    z-index: 200;
}

.mdb-spend-save__price-savings-as-low .mdb-spend-save__tooltip-wrap,
.mdb-spend-save__price-savings-sub .mdb-spend-save__tooltip-wrap {
    position: relative;
    z-index: 9999;
}

.cpo-payment-area .single_add_to_cart_button {
    vertical-align: middle;
}

.mdb-spend-save__tooltip-trigger {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #30cfd2;
    background: #fff;
    color: #30cfd2;
    font-size: 13px;
    font-weight: 700;
    font-style: italic;
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mdb-spend-save__tooltip-trigger:hover,
.mdb-spend-save__tooltip-trigger[aria-expanded="true"] {
    background: #30cfd2;
    color: #fff;
}

.mdb-spend-save__tooltip-panel {
    position: absolute;
    z-index: 100;
    left: 50%;
    top: calc(100% + 8px);
    transform: translateX(-50%);
    min-width: 260px;
    padding: 12px 14px;
    background: #fff;
    color: #323e46;
    border: 1px solid #30cfd2;
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(48, 207, 210, 0.15);
    font-size: 13px;
    text-align: left;
}

.mdb-spend-save__tooltip-title {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #323e46;
}

.mdb-spend-save__tooltip-panel ul {
    margin: 0;
    padding-left: 18px;
    list-style: disc;
}

.mdb-spend-save__tooltip-panel li {
    margin-bottom: 4px;
}

@media (max-width: 767px) {
    .cpo-payment-area.mdb-spend-save__payment-area {
        flex-direction: column;
        align-items: stretch;
    }

    .mdb-spend-save__payment-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .cpo-payment-area.mdb-spend-save__payment-area--has-savings .uni-cpo-total-sum,
    .mdb-spend-save__price-savings-as-low,
    .mdb-spend-save__price-savings-headline {
        font-size: 16px;
    }

    .mdb-spend-save__tooltip-panel {
        left: auto;
        right: 0;
        transform: none;
    }
    .cpo-payment-area.mdb-spend-save__payment-area > .grid-35,
    .cpo-payment-area.mdb-spend-save__payment-area > .mdb-spend-save__price-col {
        flex: 1 1 70px;
    }
}
@media (max-width: 450px) {
    .mdb-spend-save__price-savings-as-low .mdb-spend-save__tooltip-wrap {
        width: 100%;
        margin-bottom: 20px;
    }
    .mdb-spend-save__tooltip-panel {
        left: -40px;
        right: auto;
        transform: none;
    }
}
/* ── Checkout: same notice bar as cart, site typography ── */
.woocommerce-checkout .mdb-spend-save--checkout-wrap {
    margin: 0 0 28px;
}

.woocommerce-checkout .mdb-spend-save--checkout-wrap .mdb-spend-save__cart-bar {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    line-height: 1.55;
    color: #656565;
    border-left: 3px solid #323e46;
    margin-bottom: 12px;
}

.woocommerce-checkout .mdb-spend-save--checkout-wrap .mdb-spend-save__cart-bar--applied {
    border-left-color: #30cfd2;
}

.woocommerce-checkout .mdb-spend-save--checkout-wrap .mdb-spend-save__cart-bar-toggle {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    padding: 14px 18px;
}

.woocommerce-checkout .mdb-spend-save--checkout-wrap .mdb-spend-save__cart-bar-summary {
    font-weight: 500;
    color: #323e46;
}

.woocommerce-checkout .mdb-spend-save--checkout-wrap .mdb-spend-save__cart-bar-details {
    font-family: 'Roboto', sans-serif;
    background: #fff;
}

.woocommerce-checkout .mdb-spend-save--checkout-wrap .mdb-spend-save__cart-bar-details-inner strong,
.woocommerce-checkout .mdb-spend-save--checkout-wrap .mdb-spend-save__applied {
    color: #30cfd2;
}

.woocommerce-checkout .mdb-spend-save--checkout-wrap .mdb-spend-save__category-line strong {
    color: #323e46;
}

/* Legacy checkout box (unused on checkout; kept for reference) */
.woocommerce-checkout .mdb-spend-save--checkout {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.55;
    color: #656565;
    background: #fff;
    border: 1px solid #eee;
    border-top: 3px solid #323e46;
    border-left-width: 1px;
    border-radius: 0;
    padding: 18px 20px;
    margin-bottom: 14px;
    box-shadow: 0 1px 3px rgba(50, 62, 70, 0.06);
}

.woocommerce-checkout .mdb-spend-save--checkout:last-child {
    margin-bottom: 0;
}

.woocommerce-checkout .mdb-spend-save--checkout.mdb-spend-save__box--checkout-applied {
    border-top-color: #30cfd2;
    background: #fafafa;
}

.woocommerce-checkout .mdb-spend-save--checkout .mdb-spend-save__box-icon {
    font-size: 15px;
    line-height: 1.55;
    opacity: 0.9;
}

.woocommerce-checkout .mdb-spend-save--checkout .mdb-spend-save__category-line {
    margin-bottom: 10px;
    font-size: 14px;
    color: #323e46;
}

.woocommerce-checkout .mdb-spend-save--checkout .mdb-spend-save__category-line strong {
    font-weight: 700;
    color: #323e46;
}

.woocommerce-checkout .mdb-spend-save--checkout .mdb-spend-save__applied {
    color: #323e46;
    font-weight: 500;
    margin-bottom: 10px;
}

.woocommerce-checkout .mdb-spend-save--checkout .mdb-spend-save__applied::before {
    content: '';
}

.woocommerce-checkout .mdb-spend-save--checkout .mdb-spend-save__notice {
    color: #656565;
    font-weight: 400;
    margin-bottom: 10px;
}

.woocommerce-checkout .mdb-spend-save--checkout .mdb-spend-save__progress {
    color: #656565;
    font-size: 14px;
}

.woocommerce-checkout .mdb-spend-save--checkout .mdb-spend-save__progress--max {
    color: #323e46;
    font-weight: 500;
}

.woocommerce-checkout .mdb-spend-save--checkout .mdb-spend-save__cart-body strong,
.woocommerce-checkout .mdb-spend-save--checkout .mdb-spend-save__static strong {
    font-weight: 700;
    color: #30cfd2;
}

@media (max-width: 767px) {
    .woocommerce-checkout .mdb-spend-save--checkout {
        padding: 14px 16px;
        font-size: 14px;
    }
}
