/* Ridgeline FIT Custom Cart */
:root {
    --rf-cart-bg: #020608;
    --rf-cart-panel: #081219;
    --rf-cart-panel-2: #0b1820;
    --rf-cart-border: rgba(255,255,255,.13);
    --rf-cart-text: #ffffff;
    --rf-cart-muted: #9fb0ba;
    --rf-cart-accent: #2ab5d6;
    --rf-cart-accent-2: #66d8ef;
    --rf-cart-danger: #ff7d7d;
    --rf-cart-radius: 22px;
}

/* Keep this plugin isolated from theme styles as much as possible. */
.rf-cart-shell,
.rf-cart-shell * {
    box-sizing: border-box;
}

.rf-cart-shell {
    width: min(1320px, calc(100% - 32px));
    margin: 64px auto;
    color: var(--rf-cart-text);
    font-family: inherit;
}

.rf-cart-heading {
    margin-bottom: 28px;
}

.rf-cart-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid rgba(42,181,214,.35);
    border-radius: 999px;
    background: rgba(42,181,214,.08);
    color: var(--rf-cart-accent-2);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
}

.rf-cart-heading h2 {
    margin: 14px 0 7px;
    color: #fff;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.05;
    font-weight: 800;
}

.rf-cart-heading p {
    max-width: 720px;
    margin: 0;
    color: var(--rf-cart-muted);
    font-size: 15px;
    line-height: 1.7;
}

.rf-cart-native .woocommerce-notices-wrapper:empty {
    display: none;
}

.rf-cart-native .woocommerce-message,
.rf-cart-native .woocommerce-info,
.rf-cart-native .woocommerce-error {
    margin: 0 0 20px !important;
    padding: 16px 18px 16px 48px !important;
    border: 1px solid var(--rf-cart-border) !important;
    border-top: 1px solid var(--rf-cart-border) !important;
    border-radius: 14px;
    background: var(--rf-cart-panel) !important;
    color: #fff !important;
}

.rf-cart-native .woocommerce-message::before,
.rf-cart-native .woocommerce-info::before {
    color: var(--rf-cart-accent) !important;
}

.rf-cart-native .woocommerce-error::before {
    color: var(--rf-cart-danger) !important;
}

/* Main cart layout */
.rf-cart-native .woocommerce-cart-form,
.rf-cart-native .cart-collaterals {
    margin: 0;
}

.rf-cart-native .woocommerce-cart-form {
    width: 100%;
}

.rf-cart-native .shop_table {
    width: 100% !important;
    margin: 0 !important;
    border: 1px solid var(--rf-cart-border) !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border-radius: var(--rf-cart-radius) !important;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(11,24,32,.97), rgba(5,12,17,.97));
    color: #fff;
}

.rf-cart-native .shop_table th,
.rf-cart-native .shop_table td {
    border: 0 !important;
    border-bottom: 1px solid var(--rf-cart-border) !important;
    background: transparent !important;
    color: #fff !important;
    vertical-align: middle !important;
}

.rf-cart-native .shop_table thead th {
    padding: 17px 16px !important;
    background: rgba(255,255,255,.035) !important;
    color: var(--rf-cart-muted) !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.rf-cart-native .shop_table tbody td {
    padding: 18px 16px !important;
}

.rf-cart-native .shop_table tr:last-child td {
    border-bottom: 0 !important;
}

.rf-cart-native td.product-remove {
    width: 54px;
    text-align: center;
}

.rf-cart-native td.product-remove a.remove {
    display: inline-grid !important;
    width: 34px !important;
    height: 34px !important;
    place-items: center;
    border: 1px solid rgba(255,125,125,.22);
    border-radius: 50%;
    background: rgba(255,125,125,.07);
    color: var(--rf-cart-danger) !important;
    font-size: 22px !important;
    line-height: 1 !important;
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.rf-cart-native td.product-remove a.remove:hover {
    transform: translateY(-1px);
    border-color: rgba(255,125,125,.55);
    background: rgba(255,125,125,.15) !important;
    color: #fff !important;
}

.rf-cart-native td.product-thumbnail {
    width: 92px;
}

.rf-cart-native td.product-thumbnail img {
    display: block;
    width: 70px !important;
    height: 70px !important;
    object-fit: contain;
    border: 1px solid var(--rf-cart-border);
    border-radius: 13px;
    background: #fff;
}

.rf-cart-native td.product-name a {
    color: #fff !important;
    font-weight: 750;
    text-decoration: none !important;
}

.rf-cart-native td.product-name a:hover {
    color: var(--rf-cart-accent-2) !important;
}

.rf-cart-native .variation {
    margin-top: 7px;
    color: var(--rf-cart-muted);
    font-size: 12px;
}

.rf-cart-native .variation dt,
.rf-cart-native .variation dd {
    margin-bottom: 2px;
}

.rf-cart-native .amount {
    color: #fff !important;
    font-weight: 750;
}

.rf-cart-native .quantity .qty {
    width: 76px !important;
    min-height: 44px;
    padding: 8px 10px !important;
    border: 1px solid rgba(255,255,255,.16) !important;
    border-radius: 10px !important;
    outline: none;
    background: #071119 !important;
    color: #fff !important;
    text-align: center;
    box-shadow: none !important;
}

.rf-cart-native .quantity .qty:focus {
    border-color: var(--rf-cart-accent) !important;
}

/* Coupon + update row */
.rf-cart-native .shop_table td.actions {
    padding: 18px !important;
    background: rgba(255,255,255,.02) !important;
}

.rf-cart-native .coupon {
    display: flex;
    gap: 10px;
    width: min(100%, 520px);
}

.rf-cart-native .coupon label {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.rf-cart-native #coupon_code {
    flex: 1 1 230px;
    width: auto !important;
    min-height: 46px;
    padding: 0 15px !important;
    border: 1px solid rgba(255,255,255,.16) !important;
    border-radius: 11px !important;
    outline: none;
    background: #071119 !important;
    color: #fff !important;
    box-shadow: none !important;
}

.rf-cart-native #coupon_code::placeholder {
    color: #71828c;
}

.rf-cart-native #coupon_code:focus {
    border-color: var(--rf-cart-accent) !important;
}

.rf-cart-native button.button,
.rf-cart-native a.button,
.rf-cart-native .checkout-button {
    min-height: 46px;
    padding: 12px 20px !important;
    border: 1px solid transparent !important;
    border-radius: 11px !important;
    background: linear-gradient(135deg, var(--rf-cart-accent), #168ba9) !important;
    color: #001017 !important;
    font-size: 13px !important;
    font-weight: 850 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    text-transform: none !important;
    transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
    box-shadow: 0 8px 24px rgba(42,181,214,.16);
}

.rf-cart-native button.button:hover,
.rf-cart-native a.button:hover,
.rf-cart-native .checkout-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
    box-shadow: 0 12px 30px rgba(42,181,214,.24);
}

.rf-cart-native button.button:disabled,
.rf-cart-native button.button:disabled[disabled] {
    opacity: .45 !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Cart totals card */
.rf-cart-native .cart-collaterals {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(330px, 470px);
    gap: 28px;
    align-items: start;
    margin-top: 28px;
}

.rf-cart-native .cart-collaterals::before,
.rf-cart-native .cart-collaterals::after {
    display: none !important;
}

.rf-cart-native .cart_totals {
    float: none !important;
    width: 100% !important;
    grid-column: 2;
    padding: 24px;
    border: 1px solid var(--rf-cart-border);
    border-radius: var(--rf-cart-radius);
    background: linear-gradient(180deg, rgba(11,24,32,.97), rgba(5,12,17,.97));
}

.rf-cart-native .cart_totals h2 {
    margin: 0 0 16px !important;
    color: #fff !important;
    font-size: 25px !important;
    font-weight: 800 !important;
}

.rf-cart-native .cart_totals .shop_table {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
}

.rf-cart-native .cart_totals .shop_table th,
.rf-cart-native .cart_totals .shop_table td {
    padding: 14px 0 !important;
    border-bottom: 1px solid var(--rf-cart-border) !important;
}

.rf-cart-native .cart_totals .shop_table th {
    width: 42%;
    color: var(--rf-cart-muted) !important;
    font-size: 13px;
    font-weight: 650;
    letter-spacing: 0;
    text-transform: none;
}

.rf-cart-native .cart_totals .order-total th,
.rf-cart-native .cart_totals .order-total td,
.rf-cart-native .cart_totals .order-total .amount {
    color: #fff !important;
    font-size: 18px !important;
    font-weight: 850 !important;
}

.rf-cart-native .wc-proceed-to-checkout {
    padding: 20px 0 0 !important;
}

.rf-cart-native .wc-proceed-to-checkout .checkout-button {
    display: flex !important;
    width: 100%;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    font-size: 15px !important;
}

.rf-cart-native .woocommerce-shipping-methods,
.rf-cart-native .woocommerce-shipping-destination,
.rf-cart-native .woocommerce-shipping-calculator {
    color: var(--rf-cart-muted) !important;
    font-size: 13px;
}

.rf-cart-native .shipping-calculator-button {
    color: var(--rf-cart-accent-2) !important;
}

.rf-cart-native .select2-container--default .select2-selection--single,
.rf-cart-native .input-text,
.rf-cart-native select {
    border-color: rgba(255,255,255,.16) !important;
    background: #071119 !important;
    color: #fff !important;
}

/* Cross-sells */
.rf-cart-native .cross-sells {
    grid-column: 1;
    width: 100% !important;
}

.rf-cart-native .cross-sells h2 {
    margin: 0 0 16px !important;
    color: #fff !important;
    font-size: 24px !important;
    font-weight: 800 !important;
}

.rf-cart-native .cross-sells ul.products {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 0 !important;
}

.rf-cart-native .cross-sells ul.products li.product {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 15px !important;
    border: 1px solid var(--rf-cart-border);
    border-radius: 16px;
    background: var(--rf-cart-panel);
}

.rf-cart-native .cross-sells li.product img {
    border-radius: 12px;
    background: #fff;
}

.rf-cart-native .cross-sells li.product .woocommerce-loop-product__title {
    color: #fff !important;
    font-size: 14px !important;
}

.rf-cart-native .cross-sells li.product .price {
    color: var(--rf-cart-accent-2) !important;
}

/* Empty cart */
.rf-cart-native .cart-empty.woocommerce-info {
    padding: 24px !important;
    text-align: center;
}

.rf-cart-native .return-to-shop {
    margin-top: 18px;
    text-align: center;
}

/* Stop accidental raw Woo block source from being visually disruptive if a theme
   prints hidden editor comments elsewhere. */
.woocommerce-cart .wp-block-woocommerce-cart,
.woocommerce-cart .wc-block-cart {
    max-width: 1320px;
    margin-inline: auto;
}

@media (max-width: 980px) {
    .rf-cart-shell {
        width: min(100% - 24px, 900px);
        margin: 44px auto;
    }

    .rf-cart-native .cart-collaterals {
        grid-template-columns: 1fr;
    }

    .rf-cart-native .cart_totals,
    .rf-cart-native .cross-sells {
        grid-column: 1;
    }
}

@media (max-width: 767px) {
    .rf-cart-shell {
        width: calc(100% - 20px);
        margin: 34px auto;
    }

    .rf-cart-heading {
        margin-bottom: 20px;
    }

    .rf-cart-heading p {
        font-size: 14px;
    }

    /* WooCommerce's classic responsive cart changes cells to rows. */
    .rf-cart-native table.shop_table_responsive thead {
        display: none !important;
    }

    .rf-cart-native table.shop_table_responsive tr.cart_item {
        display: block;
        padding: 14px 14px 10px;
        border-bottom: 1px solid var(--rf-cart-border);
    }

    .rf-cart-native table.shop_table_responsive tr.cart_item td {
        display: grid !important;
        grid-template-columns: 42% minmax(0, 1fr);
        gap: 10px;
        align-items: center;
        width: 100% !important;
        padding: 10px 0 !important;
        border-bottom: 1px dashed rgba(255,255,255,.1) !important;
        text-align: right !important;
    }

    .rf-cart-native table.shop_table_responsive tr.cart_item td:last-child {
        border-bottom: 0 !important;
    }

    .rf-cart-native table.shop_table_responsive tr.cart_item td::before {
        float: none !important;
        color: var(--rf-cart-muted) !important;
        text-align: left;
        font-size: 11px;
        font-weight: 800;
        letter-spacing: .08em;
        text-transform: uppercase;
    }

    .rf-cart-native table.shop_table_responsive tr.cart_item td.product-remove {
        display: flex !important;
        justify-content: flex-end;
    }

    .rf-cart-native table.shop_table_responsive tr.cart_item td.product-remove::before,
    .rf-cart-native table.shop_table_responsive tr.cart_item td.product-thumbnail::before {
        display: none !important;
    }

    .rf-cart-native table.shop_table_responsive tr.cart_item td.product-thumbnail {
        display: flex !important;
        justify-content: flex-end;
    }

    .rf-cart-native .shop_table td.actions {
        display: flex !important;
        flex-direction: column;
        gap: 12px;
        padding: 14px !important;
    }

    .rf-cart-native .coupon {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .rf-cart-native #coupon_code,
    .rf-cart-native .coupon .button,
    .rf-cart-native td.actions > .button {
        width: 100% !important;
        float: none !important;
    }

    .rf-cart-native .cross-sells ul.products {
        grid-template-columns: 1fr;
    }

    .rf-cart-native .cart_totals {
        padding: 18px;
    }
}
