/*
 * Cart page background.
 * Loaded only on the WooCommerce cart page by MomokoArt Custom.
 */

body.woocommerce-cart {
    background:
        radial-gradient(circle at 12% 10%, rgba(243, 227, 220, 0.36), rgba(243, 227, 220, 0) 32%),
        linear-gradient(135deg, #f9f2ea 0%, #f3e8de 42%, #eef3ed 100%);
}

body.woocommerce-cart .main-page-wrapper {
    background: linear-gradient(135deg, #f6eee5 0%, #efe3d2 24%, #f3e3dc 48%, #e7ede3 72%, #e8edf0 100%);
}

body.woocommerce-cart .main-page-wrapper .content-layout-wrapper,
body.woocommerce-cart .main-page-wrapper .site-content {
    background: transparent;
}

body.woocommerce-cart .cart-content-wrapper {
    --wd-row-gap: 12px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(120, 100, 80, 0.08);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(95, 85, 72, 0.035);
    padding: 12px 22px 14px;
}

body.woocommerce-cart .cart-content-wrapper,
body.woocommerce-cart .cart-content-wrapper > *,
body.woocommerce-cart .cart-content-wrapper .woocommerce-notices-wrapper,
body.woocommerce-cart .cart-content-wrapper .woocommerce-cart-form,
body.woocommerce-cart .cart-content-wrapper .cart-collaterals,
body.woocommerce-cart .cart-content-wrapper .cart_totals,
body.woocommerce-cart .cart-content-wrapper table.shop_table {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
}

body.woocommerce-cart .cart-content-wrapper > .woocommerce-notices-wrapper,
body.woocommerce-cart .cart-content-wrapper > .woocommerce-message,
body.woocommerce-cart .cart-content-wrapper > .woocommerce-info,
body.woocommerce-cart .cart-content-wrapper > .woocommerce-error,
body.woocommerce-cart .cart-content-wrapper > .woocommerce-cart-notice,
body.woocommerce-cart .cart-content-wrapper > div.wc-block-components-notice-banner {
    margin-bottom: 0;
}

body.woocommerce-cart .cart-content-wrapper > .woocommerce-notices-wrapper {
    margin-bottom: 0;
}

body.woocommerce-cart .cart-content-wrapper > .woocommerce-notices-wrapper > * {
    margin-bottom: 12px;
}

body.woocommerce-cart .cart-content-wrapper > .woocommerce-notices-wrapper > :last-child {
    margin-bottom: 0;
}

body.woocommerce-cart .cart-content-wrapper > .woocommerce-notices-wrapper + .woocommerce-cart-form,
body.woocommerce-cart .cart-content-wrapper > .woocommerce-message + .woocommerce-cart-form,
body.woocommerce-cart .cart-content-wrapper > .woocommerce-info + .woocommerce-cart-form,
body.woocommerce-cart .cart-content-wrapper > .woocommerce-error + .woocommerce-cart-form,
body.woocommerce-cart .cart-content-wrapper > .woocommerce-cart-notice + .woocommerce-cart-form,
body.woocommerce-cart .cart-content-wrapper > div.wc-block-components-notice-banner + .woocommerce-cart-form {
    margin-top: 12px;
}

body.woocommerce-cart .cart-content-wrapper .woocommerce-cart-form > .cart .cart-actions {
    margin-top: 20px;
}

body.woocommerce-cart .cart-content-wrapper > .cart_totals .cart-totals-inner {
    border-color: rgba(120, 100, 80, 0.1);
}

body.woocommerce-cart .cart-content-wrapper button[name="apply_coupon"],
body.woocommerce-cart .cart-content-wrapper button[name="update_cart"],
body.woocommerce-cart .cart-content-wrapper .wc-proceed-to-checkout .checkout-button {
    border-radius: 12px;
}

body.woocommerce-cart .cart-content-wrapper .woocommerce-message,
body.woocommerce-cart .cart-content-wrapper .woocommerce-info,
body.woocommerce-cart .cart-content-wrapper .woocommerce-error,
body.woocommerce-cart .cart-content-wrapper .woocommerce-cart-notice,
body.woocommerce-cart .cart-content-wrapper div.wc-block-components-notice-banner {
    border-radius: 9px;
    box-shadow: none;
    font-size: 15px;
    line-height: 1.65;
    padding-block: 12px !important;
    padding-inline: 54px 18px !important;
}

body.woocommerce-cart .cart-content-wrapper .woocommerce-message {
    background: #eaf5ec !important;
    border: 1px solid #cfe3d2 !important;
    color: #345b3d !important;
}

body.woocommerce-cart .cart-content-wrapper .woocommerce-message::before {
    color: #2f5d3a !important;
}

body.woocommerce-cart .cart-content-wrapper .woocommerce-info,
body.woocommerce-cart .cart-content-wrapper .woocommerce-cart-notice,
body.woocommerce-cart .cart-content-wrapper div.wc-block-components-notice-banner.is-info {
    background: #fff8e8 !important;
    border: 1px solid #eadcc8 !important;
    color: #5a4a3f !important;
}

body.woocommerce-cart .cart-content-wrapper .woocommerce-info::before,
body.woocommerce-cart .cart-content-wrapper .woocommerce-cart-notice::before,
body.woocommerce-cart .cart-content-wrapper div.wc-block-components-notice-banner.is-info::before {
    color: #9a733c !important;
}

body.woocommerce-cart .cart-content-wrapper .woocommerce-error,
body.woocommerce-cart .cart-content-wrapper div.wc-block-components-notice-banner.is-error {
    background: #fff1ed !important;
    border: 1px solid #edcfc8 !important;
    color: #7a3028 !important;
}

body.woocommerce-cart .cart-content-wrapper .woocommerce-error::before,
body.woocommerce-cart .cart-content-wrapper div.wc-block-components-notice-banner.is-error::before {
    color: #9b342b !important;
}

body.woocommerce-cart .cart-content-wrapper .woocommerce-message a,
body.woocommerce-cart .cart-content-wrapper .woocommerce-info a,
body.woocommerce-cart .cart-content-wrapper .woocommerce-error a,
body.woocommerce-cart .cart-content-wrapper .woocommerce-cart-notice a,
body.woocommerce-cart .cart-content-wrapper div.wc-block-components-notice-banner a {
    color: currentColor !important;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

body.woocommerce-cart .cart-content-wrapper .woocommerce-message .amount,
body.woocommerce-cart .cart-content-wrapper .woocommerce-info .amount,
body.woocommerce-cart .cart-content-wrapper .woocommerce-error .amount,
body.woocommerce-cart .cart-content-wrapper .woocommerce-cart-notice .amount,
body.woocommerce-cart .cart-content-wrapper div.wc-block-components-notice-banner .amount {
    color: currentColor !important;
}

body.woocommerce-cart .cart-content-wrapper div.wc-block-components-notice-banner > svg {
    display: block;
    fill: currentColor;
}

body.woocommerce-cart .cart-content-wrapper .momoko-cart-point-highlight,
body.woocommerce-cart .cart-content-wrapper .momoko-cart-discount-highlight {
    border-radius: 4px;
    display: inline-block;
    font-weight: 700;
    line-height: 1.35;
    padding: 0 0.22em;
    white-space: nowrap;
}

body.woocommerce-cart .cart-content-wrapper .momoko-cart-point-highlight {
    background: rgba(150, 190, 150, 0.14);
    color: #4f8f5f;
}

body.woocommerce-cart .cart-content-wrapper .momoko-cart-discount-highlight {
    background: rgba(180, 135, 60, 0.12);
    color: #9a733c;
}

body.woocommerce-cart .cart-content-wrapper .momoko-cart-discount-highlight .amount,
body.woocommerce-cart .cart-content-wrapper .momoko-cart-discount-highlight .woocommerce-Price-currencySymbol,
body.woocommerce-cart .cart-content-wrapper .momoko-cart-discount-highlight strong,
body.woocommerce-cart .cart-content-wrapper .momoko-cart-point-highlight .amount,
body.woocommerce-cart .cart-content-wrapper .momoko-cart-point-highlight strong {
    color: inherit !important;
    font-weight: inherit;
}

body.woocommerce-cart .cart-content-wrapper .actions button[name="update_cart"],
body.woocommerce-cart .cart-content-wrapper .cart-actions button[name="update_cart"],
body.woocommerce-cart .cart-content-wrapper button[name="update_cart"] {
    background-color: #8fb996 !important;
    border: 1px solid #8fb996 !important;
    border-radius: 12px;
    box-shadow: none;
    color: #fff !important;
    font-weight: 650;
    line-height: 1.2;
    min-height: 42px;
    padding: 10px 20px;
}

body.woocommerce-cart .cart-content-wrapper .actions button[name="update_cart"]:hover:not(:disabled),
body.woocommerce-cart .cart-content-wrapper .cart-actions button[name="update_cart"]:hover:not(:disabled),
body.woocommerce-cart .cart-content-wrapper button[name="update_cart"]:hover:not(:disabled),
body.woocommerce-cart .cart-content-wrapper .actions button[name="update_cart"]:focus-visible:not(:disabled),
body.woocommerce-cart .cart-content-wrapper .cart-actions button[name="update_cart"]:focus-visible:not(:disabled),
body.woocommerce-cart .cart-content-wrapper button[name="update_cart"]:focus-visible:not(:disabled) {
    background-color: #7aa984 !important;
    border-color: #7aa984 !important;
    color: #fff !important;
}

body.woocommerce-cart .cart-content-wrapper .actions button[name="update_cart"]:disabled,
body.woocommerce-cart .cart-content-wrapper .cart-actions button[name="update_cart"]:disabled,
body.woocommerce-cart .cart-content-wrapper button[name="update_cart"]:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

@media (max-width: 768px) {
    body.woocommerce-cart {
        overflow-x: hidden;
    }

    body.woocommerce-cart .main-page-wrapper,
    body.woocommerce-cart .main-page-wrapper .container,
    body.woocommerce-cart .main-page-wrapper .content-layout-wrapper,
    body.woocommerce-cart .main-page-wrapper .site-content {
        box-sizing: border-box;
        max-width: 100%;
        min-width: 0;
    }

    body.woocommerce-cart .cart-content-wrapper {
        --wd-row-gap: 10px;
        border-radius: 10px;
        margin-left: auto;
        margin-right: auto;
        max-width: calc(100% - 20px);
        padding: 10px 12px;
        width: auto;
    }

    body.woocommerce-cart .cart-content-wrapper > *,
    body.woocommerce-cart .cart-content-wrapper .woocommerce-notices-wrapper,
    body.woocommerce-cart .cart-content-wrapper .woocommerce-cart-form,
    body.woocommerce-cart .cart-content-wrapper .cart-collaterals,
    body.woocommerce-cart .cart-content-wrapper .cart_totals,
    body.woocommerce-cart .cart-content-wrapper table.shop_table,
    body.woocommerce-cart .cart-content-wrapper .wd-cart-action-row,
    body.woocommerce-cart .cart-content-wrapper .cart-actions,
    body.woocommerce-cart .cart-content-wrapper .cart-actions *,
    body.woocommerce-cart .cart-content-wrapper .coupon,
    body.woocommerce-cart .cart-content-wrapper .coupon *,
    body.woocommerce-cart .cart-content-wrapper .wd-coupon-form,
    body.woocommerce-cart .cart-content-wrapper .wd-coupon-form * {
        box-sizing: border-box;
        max-width: 100%;
        min-width: 0;
    }

    body.woocommerce-cart .cart-content-wrapper .coupon,
    body.woocommerce-cart .cart-content-wrapper .wd-coupon-form {
        overflow: hidden;
        width: 100%;
    }

    body.woocommerce-cart .cart-content-wrapper .wd-coupon-form {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    body.woocommerce-cart .cart-content-wrapper > .woocommerce-notices-wrapper > * {
        margin-bottom: 10px;
    }

    body.woocommerce-cart .cart-content-wrapper > .woocommerce-notices-wrapper + .woocommerce-cart-form,
    body.woocommerce-cart .cart-content-wrapper > .woocommerce-message + .woocommerce-cart-form,
    body.woocommerce-cart .cart-content-wrapper > .woocommerce-info + .woocommerce-cart-form,
    body.woocommerce-cart .cart-content-wrapper > .woocommerce-error + .woocommerce-cart-form,
    body.woocommerce-cart .cart-content-wrapper > .woocommerce-cart-notice + .woocommerce-cart-form,
    body.woocommerce-cart .cart-content-wrapper > div.wc-block-components-notice-banner + .woocommerce-cart-form {
        margin-top: 12px;
    }

    body.woocommerce-cart .cart-content-wrapper .woocommerce-cart-form > .cart .cart-actions {
        margin-top: 12px;
    }

    body.woocommerce-cart .cart-content-wrapper .woocommerce-message,
    body.woocommerce-cart .cart-content-wrapper .woocommerce-info,
    body.woocommerce-cart .cart-content-wrapper .woocommerce-error,
    body.woocommerce-cart .cart-content-wrapper .woocommerce-cart-notice,
    body.woocommerce-cart .cart-content-wrapper div.wc-block-components-notice-banner {
        box-sizing: border-box;
        font-size: 14px;
        max-width: 100%;
        overflow-wrap: anywhere;
        padding-block: 11px !important;
        padding-inline: 48px 14px !important;
        word-break: normal;
    }

    body.woocommerce-cart .cart-content-wrapper .product-name,
    body.woocommerce-cart .cart-content-wrapper .product-name a,
    body.woocommerce-cart .cart-content-wrapper .cart_item,
    body.woocommerce-cart .cart-content-wrapper .woocommerce-cart-form__cart-item,
    body.woocommerce-cart .cart-content-wrapper .wc-item-meta,
    body.woocommerce-cart .cart-content-wrapper .variation {
        max-width: 100%;
        min-width: 0;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    body.woocommerce-cart .cart-content-wrapper .coupon input.input-text,
    body.woocommerce-cart .cart-content-wrapper .wd-coupon-form .input-text,
    body.woocommerce-cart .cart-content-wrapper input#coupon_code,
    body.woocommerce-cart .cart-content-wrapper input[name="coupon_code"] {
        box-sizing: border-box;
        flex: 1 1 100%;
        font-size: 16px !important;
        max-width: 100% !important;
        min-width: 0 !important;
        transform: none !important;
        width: 100% !important;
    }

    body.woocommerce-cart .cart-content-wrapper .coupon input.input-text:focus,
    body.woocommerce-cart .cart-content-wrapper .wd-coupon-form .input-text:focus,
    body.woocommerce-cart .cart-content-wrapper input#coupon_code:focus,
    body.woocommerce-cart .cart-content-wrapper input[name="coupon_code"]:focus {
        box-sizing: border-box;
        max-width: 100% !important;
        outline-offset: -2px;
        transform: none !important;
    }

    body.woocommerce-cart:has(.cart-content-wrapper .wd-coupon-form:focus-within) .wd-toolbar {
        opacity: 0;
        pointer-events: none;
        visibility: hidden;
    }

    body.woocommerce-cart .cart-content-wrapper .coupon button[name="apply_coupon"],
    body.woocommerce-cart .cart-content-wrapper .wd-coupon-form button[name="apply_coupon"],
    body.woocommerce-cart .cart-content-wrapper button[name="apply_coupon"] {
        box-sizing: border-box;
        flex: 1 1 100%;
        max-width: 100% !important;
        min-width: 0 !important;
        width: 100%;
    }

    body.woocommerce-cart .cart-content-wrapper button[name="update_cart"] {
        box-sizing: border-box;
        max-width: 100%;
    }

    body.woocommerce-cart .cart-content-wrapper .momoko-cart-point-highlight,
    body.woocommerce-cart .cart-content-wrapper .momoko-cart-discount-highlight {
        max-width: 100%;
        white-space: normal;
    }
}
