/*
 * OneRaptiX WooCommerce cart refresh.
 * Supports the classic WooCommerce cart template and the Cart Block.
 */

body.orx-cart-page {
    --orx-cart-ink: #0b2027;
    --orx-cart-copy: #53636b;
    --orx-cart-muted: #7a898f;
    --orx-cart-border: #dce5e4;
    --orx-cart-soft: #f4f8f7;
    --orx-cart-accent: #1f6369;
    --orx-cart-accent-dark: #154f55;
    --orx-cart-white: #fff;
    background: #f6f8f7;
}

body.orx-cart-page :where(.site-main, #primary, .entry-content) {
    box-sizing: border-box;
}

body.orx-cart-page #primary,
body.orx-cart-page .site-main {
    width: 100%;
    max-width: 1504px;
    margin-right: auto;
    margin-left: auto;
}

body.orx-cart-page #primary {
    float: none;
    padding: clamp(64px, 6vw, 88px) clamp(18px, 3.5vw, 56px) clamp(104px, 9vw, 136px);
}

body.orx-cart-page #secondary {
    display: none;
}

body.orx-cart-page .entry-header,
body.orx-cart-page .entry-title {
    display: none;
}

body.orx-cart-page .entry-content {
    width: 100%;
    max-width: none;
    margin: 0;
}

body.orx-cart-page :where(.woocommerce, .wp-block-woocommerce-cart) {
    color: var(--orx-cart-ink);
}

body.orx-cart-page :where(.woocommerce, .woocommerce *, .wp-block-woocommerce-cart, .wp-block-woocommerce-cart *) {
    box-sizing: border-box;
}

.orx-cart-intro {
    display: flex;
    justify-content: space-between;
    gap: 32px;
    align-items: flex-end;
    margin: 0 0 32px;
    padding: 0 0 28px;
    border-bottom: 1px solid var(--orx-cart-border);
}

.orx-cart-intro__copy > span {
    display: block;
    margin-bottom: 9px;
    color: var(--orx-cart-accent);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.orx-cart-intro h1 {
    margin: 0;
    color: var(--orx-cart-ink);
    font-size: clamp(38px, 4.2vw, 64px);
    font-weight: 540;
    letter-spacing: -0.045em;
    line-height: 0.98;
}

.orx-cart-intro p {
    max-width: 610px;
    margin: 16px 0 0;
    color: var(--orx-cart-copy);
    font-size: 15px;
    line-height: 1.65;
}

.orx-cart-continue {
    display: inline-flex;
    min-height: 46px;
    flex: 0 0 auto;
    gap: 12px;
    align-items: center;
    justify-content: center;
    padding: 10px 19px;
    border: 1px solid #b9cac8;
    border-radius: 999px;
    background: var(--orx-cart-white);
    color: var(--orx-cart-ink) !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.orx-cart-continue:hover {
    border-color: var(--orx-cart-accent);
    background: var(--orx-cart-soft);
    color: var(--orx-cart-accent) !important;
}

.orx-cart-continue__arrow {
    display: block;
    width: 9px;
    height: 8px;
    flex: 0 0 auto;
}

body.orx-cart-page .woocommerce-notices-wrapper {
    margin-bottom: 20px;
}

body.orx-cart-page :where(.woocommerce-message, .woocommerce-info, .woocommerce-error) {
    margin: 0 0 16px !important;
    padding: 15px 18px 15px 48px !important;
    border: 1px solid #cfe1dd;
    border-top: 0 !important;
    border-radius: 12px;
    background: #edf7f4;
    color: #214d4b;
    font-size: 13px;
    line-height: 1.5;
}

body.orx-cart-page :where(.woocommerce-message, .woocommerce-info, .woocommerce-error)::before {
    top: 15px;
    left: 18px;
    color: var(--orx-cart-accent);
}

body.orx-cart-page .woocommerce-error {
    border-color: #efd2cf;
    background: #fff2f0;
    color: #8f3129;
}

/* Classic cart */
body.orx-cart-page form.woocommerce-cart-form {
    width: calc(100% - 398px);
    margin: 0;
    float: left;
}

body.orx-cart-page .cart-collaterals {
    width: 360px;
    margin: 0;
    float: right;
}

body.orx-cart-page .woocommerce::after {
    display: table;
    clear: both;
    content: "";
}

body.orx-cart-page table.shop_table {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--orx-cart-border);
    border-radius: 18px;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--orx-cart-white);
    box-shadow: 0 16px 44px rgba(21, 57, 57, 0.06);
}

body.orx-cart-page table.shop_table thead {
    background: #f0f5f4;
}

body.orx-cart-page table.shop_table th {
    padding: 15px 16px;
    border: 0;
    color: #65777b;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

body.orx-cart-page table.shop_table td {
    padding: 22px 16px;
    border-top: 1px solid #e8eeed;
    color: var(--orx-cart-ink);
    vertical-align: middle;
}

body.orx-cart-page table.shop_table .product-remove {
    width: 48px;
    padding-right: 4px;
    padding-left: 16px;
}

body.orx-cart-page table.shop_table .product-remove a.remove {
    display: grid;
    width: 30px;
    height: 30px;
    border: 1px solid #d7e0df;
    border-radius: 50%;
    color: #78888a !important;
    font-size: 19px;
    font-weight: 400;
    line-height: 1;
    place-items: center;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

body.orx-cart-page table.shop_table .product-remove a.remove:hover {
    border-color: #edcbc7;
    background: #fff1ef;
    color: #b7473e !important;
}

body.orx-cart-page table.shop_table .product-thumbnail {
    width: 112px;
}

body.orx-cart-page table.shop_table .product-thumbnail img {
    width: 88px;
    height: 88px;
    border: 1px solid #e2e9e8;
    border-radius: 13px;
    object-fit: cover;
    background: #f4f7f7;
}

body.orx-cart-page table.shop_table .product-name a {
    color: var(--orx-cart-ink);
    font-size: 15px;
    font-weight: 720;
    line-height: 1.35;
    text-decoration: none;
}

body.orx-cart-page table.shop_table .product-name a:hover {
    color: var(--orx-cart-accent);
}

body.orx-cart-page table.shop_table .product-name :where(dl.variation, .variation) {
    margin: 8px 0 0;
    color: var(--orx-cart-muted);
    font-size: 11px;
}

body.orx-cart-page table.shop_table .product-name dl.variation dt,
body.orx-cart-page table.shop_table .product-name dl.variation dd {
    margin: 0 5px 0 0;
}

body.orx-cart-page table.shop_table :where(.product-price, .product-subtotal) {
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

body.orx-cart-page table.shop_table .product-subtotal {
    color: var(--orx-cart-accent-dark);
}

body.orx-cart-page .quantity .qty {
    width: 74px;
    min-height: 42px;
    padding: 8px;
    border: 1px solid #cbd7d5;
    border-radius: 10px;
    background: #fbfcfc;
    color: var(--orx-cart-ink);
    font: inherit;
    font-weight: 700;
    text-align: center;
}

body.orx-cart-page .quantity .qty:focus {
    border-color: var(--orx-cart-accent);
    outline: 3px solid rgba(31, 99, 105, 0.13);
}

body.orx-cart-page table.shop_table td.actions {
    padding: 18px;
    background: #fafcfc;
}

body.orx-cart-page table.shop_table td.actions .coupon {
    display: flex;
    gap: 8px;
}

body.orx-cart-page table.shop_table td.actions .coupon .input-text {
    width: 190px;
    min-height: 42px;
    padding: 9px 13px;
    border: 1px solid #cbd7d5;
    border-radius: 10px;
    background: var(--orx-cart-white);
    color: var(--orx-cart-ink);
}

body.orx-cart-page :where(
    .woocommerce button.button,
    .woocommerce a.button,
    .wc-block-components-button
) {
    min-height: 42px;
    padding: 10px 18px;
    border: 1px solid #b9cac8;
    border-radius: 999px;
    background: var(--orx-cart-white);
    color: var(--orx-cart-ink);
    font-size: 13px;
    font-weight: 720;
    line-height: 1.2;
    text-decoration: none;
    transition: background 170ms ease, border-color 170ms ease, color 170ms ease, transform 170ms ease;
}

body.orx-cart-page :where(
    .woocommerce button.button:hover,
    .woocommerce a.button:hover,
    .wc-block-components-button:hover
) {
    border-color: var(--orx-cart-accent);
    background: #f1f7f6;
    color: var(--orx-cart-accent-dark);
    transform: translateY(-1px);
}

body.orx-cart-page .woocommerce button.button:disabled {
    border-color: #dce4e3;
    background: #edf1f1;
    color: #9aa6a7;
    opacity: 1;
}

body.orx-cart-page .cart-collaterals .cart_totals {
    position: sticky;
    top: 28px;
    width: 100%;
    padding: 26px;
    border: 1px solid var(--orx-cart-border);
    border-radius: 18px;
    background: var(--orx-cart-white);
    box-shadow: 0 16px 44px rgba(21, 57, 57, 0.07);
}

body.orx-cart-page .cart-collaterals .cart_totals h2 {
    margin: 0 0 18px;
    color: var(--orx-cart-ink);
    font-size: 22px;
    font-weight: 650;
    letter-spacing: -0.025em;
}

body.orx-cart-page .cart-collaterals table.shop_table {
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

body.orx-cart-page .cart-collaterals table.shop_table th,
body.orx-cart-page .cart-collaterals table.shop_table td {
    padding: 14px 0;
    border-top: 1px solid #e8eeed;
    background: transparent;
    font-size: 13px;
    text-transform: none;
}

body.orx-cart-page .cart-collaterals table.shop_table th {
    color: var(--orx-cart-copy);
    letter-spacing: 0;
}

body.orx-cart-page .cart-collaterals table.shop_table td {
    text-align: right;
}

body.orx-cart-page .cart-collaterals tr.order-total :where(th, td) {
    padding-top: 20px;
    color: var(--orx-cart-ink);
    font-size: 16px;
}

body.orx-cart-page .cart-collaterals tr.order-total .amount {
    color: var(--orx-cart-accent-dark);
    font-size: 23px;
}

body.orx-cart-page .wc-proceed-to-checkout {
    padding: 22px 0 0;
}

body.orx-cart-page .wc-proceed-to-checkout a.checkout-button {
    display: flex;
    width: 100%;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    margin: 0;
    border-color: var(--orx-cart-accent);
    border-radius: 999px;
    background: var(--orx-cart-accent);
    color: #fff;
    font-size: 14px;
    font-weight: 760;
}

body.orx-cart-page .wc-proceed-to-checkout a.checkout-button:hover {
    border-color: var(--orx-cart-accent-dark);
    background: var(--orx-cart-accent-dark);
    color: #fff;
}

/* Cart Block */
body.orx-cart-page .wp-block-woocommerce-cart {
    margin: 0;
}

body.orx-cart-page .wc-block-cart {
    gap: 38px;
}

body.orx-cart-page .wc-block-cart__main {
    padding-right: 0;
}

body.orx-cart-page :where(.wc-block-cart-items, .wc-block-cart__sidebar) {
    overflow: hidden;
    border: 1px solid var(--orx-cart-border);
    border-radius: 18px;
    background: var(--orx-cart-white);
    box-shadow: 0 16px 44px rgba(21, 57, 57, 0.06);
}

body.orx-cart-page table.wc-block-cart-items {
    margin: 0;
}

body.orx-cart-page table.wc-block-cart-items thead {
    background: #f0f5f4;
}

body.orx-cart-page table.wc-block-cart-items th {
    padding: 15px 20px;
    color: #65777b;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

body.orx-cart-page table.wc-block-cart-items td {
    padding: 24px 20px;
    border-color: #e8eeed;
    vertical-align: top;
}

body.orx-cart-page .wc-block-cart-item__image img {
    border: 1px solid #e2e9e8;
    border-radius: 13px;
    background: #f4f7f7;
}

body.orx-cart-page .wc-block-components-product-name {
    color: var(--orx-cart-ink);
    font-size: 15px;
    font-weight: 720;
    line-height: 1.4;
    text-decoration: none;
}

body.orx-cart-page .wc-block-cart-item__remove-link {
    color: #8a5550;
    font-size: 11px;
    font-weight: 650;
    text-decoration: none;
}

body.orx-cart-page .wc-block-components-quantity-selector {
    overflow: hidden;
    border: 1px solid #cbd7d5;
    border-radius: 10px;
    background: #fbfcfc;
}

body.orx-cart-page .wc-block-cart__sidebar {
    height: fit-content;
    padding: 26px;
}

body.orx-cart-page .wc-block-cart__totals-title {
    padding: 0 0 18px;
    color: var(--orx-cart-ink);
    font-size: 22px;
    font-weight: 650;
    letter-spacing: -0.025em;
    text-align: left;
    text-transform: none;
}

body.orx-cart-page .wc-block-components-totals-wrapper {
    padding: 17px 0;
    border-color: #e8eeed;
}

body.orx-cart-page .wc-block-components-totals-item__label {
    color: var(--orx-cart-copy);
    font-size: 13px;
}

body.orx-cart-page .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
    color: var(--orx-cart-accent-dark);
    font-size: 23px;
}

body.orx-cart-page .wc-block-components-checkout-place-order-button,
body.orx-cart-page .wc-block-cart__submit-button {
    width: 100%;
    min-height: 54px;
    border-color: var(--orx-cart-accent);
    background: var(--orx-cart-accent);
    color: #fff;
}

body.orx-cart-page .wc-block-components-checkout-place-order-button:hover,
body.orx-cart-page .wc-block-cart__submit-button:hover {
    border-color: var(--orx-cart-accent-dark);
    background: var(--orx-cart-accent-dark);
    color: #fff;
}

body.orx-cart-page .wc-block-components-totals-coupon-link {
    color: var(--orx-cart-accent);
    font-weight: 700;
}

/* Empty cart */
body.orx-cart-page :where(.cart-empty, .wc-block-cart__empty-cart__title) {
    margin: 0;
    padding: 64px 28px 18px;
    color: var(--orx-cart-ink);
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 620;
    text-align: center;
}

body.orx-cart-page .woocommerce .return-to-shop {
    margin: 0;
    padding: 0 0 72px;
    text-align: center;
}

body.orx-cart-page .woocommerce .return-to-shop .button {
    min-height: 48px;
    border-color: var(--orx-cart-accent);
    background: var(--orx-cart-accent);
    color: #fff;
}

@media (max-width: 980px) {
    body.orx-cart-page form.woocommerce-cart-form,
    body.orx-cart-page .cart-collaterals {
        width: 100%;
        float: none;
    }

    body.orx-cart-page .cart-collaterals {
        margin-top: 24px;
    }

    body.orx-cart-page .cart-collaterals .cart_totals {
        position: static;
    }

    body.orx-cart-page .wc-block-cart {
        gap: 24px;
    }
}

@media (max-width: 760px) {
    body.orx-cart-page #primary {
        padding: 40px 14px 76px;
    }

    .orx-cart-intro {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 22px;
        padding-bottom: 22px;
    }

    .orx-cart-intro h1 {
        font-size: clamp(36px, 12vw, 50px);
    }

    .orx-cart-continue {
        min-height: 42px;
    }

    body.orx-cart-page table.shop_table_responsive {
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    body.orx-cart-page table.shop_table_responsive tr.cart_item {
        display: grid;
        grid-template-columns: 44px 88px minmax(0, 1fr);
        margin-bottom: 14px;
        overflow: hidden;
        border: 1px solid var(--orx-cart-border);
        border-radius: 15px;
        background: var(--orx-cart-white);
        box-shadow: 0 10px 30px rgba(21, 57, 57, 0.05);
    }

    body.orx-cart-page table.shop_table_responsive tr.cart_item td {
        border-top: 0;
    }

    body.orx-cart-page table.shop_table_responsive tr.cart_item .product-remove {
        grid-column: 1;
        grid-row: 1;
        width: auto;
        padding: 16px 0 0 12px;
    }

    body.orx-cart-page table.shop_table_responsive tr.cart_item .product-thumbnail {
        display: block;
        grid-column: 2;
        grid-row: 1;
        width: auto;
        padding: 16px 0;
    }

    body.orx-cart-page table.shop_table_responsive tr.cart_item .product-thumbnail::before {
        display: none;
    }

    body.orx-cart-page table.shop_table_responsive tr.cart_item .product-thumbnail img {
        width: 72px;
        height: 72px;
    }

    body.orx-cart-page table.shop_table_responsive tr.cart_item .product-name {
        grid-column: 3;
        grid-row: 1;
        padding: 18px 14px;
        text-align: left !important;
    }

    body.orx-cart-page table.shop_table_responsive tr.cart_item .product-name::before {
        display: none;
    }

    body.orx-cart-page table.shop_table_responsive tr.cart_item :where(.product-price, .product-quantity, .product-subtotal) {
        grid-column: 1 / -1;
        padding: 12px 16px;
        border-top: 1px solid #e8eeed;
    }

    body.orx-cart-page table.shop_table_responsive td.actions {
        display: grid;
        gap: 10px;
        padding: 14px;
        border: 1px solid var(--orx-cart-border);
        border-radius: 15px;
    }

    body.orx-cart-page table.shop_table td.actions .coupon {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
    }

    body.orx-cart-page table.shop_table td.actions .coupon .input-text {
        width: 100%;
    }

    body.orx-cart-page table.shop_table td.actions > .button {
        width: 100%;
    }

    body.orx-cart-page .cart-collaterals .cart_totals,
    body.orx-cart-page .wc-block-cart__sidebar {
        padding: 20px;
        border-radius: 15px;
    }

    body.orx-cart-page table.wc-block-cart-items td {
        padding: 18px 12px;
    }
}

@media (max-width: 1024px) {
    body.orx-cart-page #primary {
        padding-top: 52px;
        padding-bottom: 96px;
    }

    .orx-cart-intro h1 {
        font-size: clamp(40px, 6vw, 58px);
    }

    .orx-cart-intro p {
        font-size: 14px;
    }

    body.orx-cart-page .cart-collaterals {
        width: 320px;
    }

    body.orx-cart-page form.woocommerce-cart-form {
        width: calc(100% - 340px);
    }
}

@media (max-width: 767px) {
    body.orx-cart-page #primary {
        padding-top: 40px;
        padding-right: 12px;
        padding-bottom: 76px;
        padding-left: 12px;
    }

    .orx-cart-intro h1 {
        font-size: clamp(32px, 11vw, 48px);
    }

    body.orx-cart-page form.woocommerce-cart-form,
    body.orx-cart-page .cart-collaterals {
        width: 100%;
        float: none;
    }

    body.orx-cart-page table.shop_table td,
    body.orx-cart-page #payment .form-row .wc-block-components-textarea,
    body.orx-cart-page #payment .form-row input.input-text {
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .orx-cart-continue,
    body.orx-cart-page :where(.woocommerce button.button, .woocommerce a.button, .wc-block-components-button) {
        transition: none;
    }
}
