/* -------------------------------------------
    WooCommerce Blocks - VIC Sports
    Riode Style for Cart & Checkout Blocks
---------------------------------------------- */

/* =============================================
   CHECKOUT PROGRESS BAR (Riode Style)
============================================= */
.checkout-progress-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 3rem 0;
    background-color: #fff;
    margin-bottom: 0;
}

.checkout-progress-bar .progress-step {
    display: flex;
    align-items: center;
    padding: 0;
    text-decoration: none;
    color: #999;
    position: relative;
}

.checkout-progress-bar .progress-step::after {
    content: '>';
    display: inline-block;
    margin: 0 1.5rem;
    font-size: 1.4rem;
    font-weight: 400;
    color: #ccc;
}

.checkout-progress-bar .progress-step:last-child::after {
    display: none;
}

.checkout-progress-bar .progress-step .step-title {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    text-transform: uppercase;
}

.checkout-progress-bar .progress-step.active,
.checkout-progress-bar .progress-step.active .step-title {
    color: #f37d01;
}

.checkout-progress-bar .progress-step.disabled {
    cursor: default;
    color: #999;
}

.checkout-progress-bar .progress-step:hover:not(.active):not(.disabled) {
    color: #222;
}

@media (max-width: 991px) {
    .checkout-progress-bar {
        padding: 2rem 0;
    }
    .checkout-progress-bar .progress-step::after {
        margin: 0 1rem;
        font-size: 1.2rem;
    }
    .checkout-progress-bar .progress-step .step-title {
        font-size: 1.4rem;
    }
}

@media (max-width: 575px) {
    .checkout-progress-bar {
        padding: 1.5rem 0;
        flex-direction: row;
    }
    .checkout-progress-bar .progress-step::after {
        margin: 0 0.5rem;
        font-size: 1rem;
    }
    .checkout-progress-bar .progress-step .step-title {
        font-size: 1.1rem;
    }
}

/* =============================================
   GENERAL WOOCOMMERCE BLOCKS WRAPPER
============================================= */
.wc-block-cart,
.wc-block-checkout,
.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout {
    font-size: 1.4rem;
    line-height: 1.6;
}

/* =============================================
   CART PAGE - RIODE STYLE
============================================= */

/* Main Cart Container */
.wp-block-woocommerce-cart {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1.5rem 6rem;
}

/* Cart Layout - Filled Cart */
.wp-block-woocommerce-filled-cart-block {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    align-items: flex-start;
}

.wp-block-woocommerce-cart-items-block {
    flex: 1 1 calc(66.666% - 2rem);
    min-width: 300px;
}

.wp-block-woocommerce-cart-totals-block {
    flex: 1 1 calc(33.333% - 2rem);
    min-width: 280px;
    position: sticky;
    top: 30px;
}

/* =============================================
   CART TABLE - RIODE STYLE
============================================= */
.wc-block-cart-items {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

/* Force table display */
.wc-block-cart-items,
.wc-block-cart-items thead,
.wc-block-cart-items tbody,
.wc-block-cart-items tr,
.wc-block-cart-items th,
.wc-block-cart-items td {
    display: revert;
}

.wc-block-cart-items thead {
    display: table-header-group;
}

.wc-block-cart-items th {
    padding: 1.2rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid #e1e1e1;
    font-size: 1.3rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #999;
    background: transparent;
}

.wc-block-cart-items th:first-child {
    padding-left: 0;
}

.wc-block-cart-items th:last-child {
    padding-right: 0;
    text-align: right;
}

.wc-block-cart-items tbody {
    display: table-row-group;
}

.wc-block-cart-items tbody tr {
    display: table-row;
    border-bottom: 1px solid #e1e1e1;
}

.wc-block-cart-items tbody tr:last-child {
    border-bottom: 1px solid #e1e1e1;
}

.wc-block-cart-items td {
    display: table-cell;
    padding: 2rem 1.5rem;
    vertical-align: middle;
}

.wc-block-cart-items td:first-child {
    padding-left: 0;
}

.wc-block-cart-items td:last-child {
    padding-right: 0;
    text-align: right;
}

/* Cart line item row */
.wc-block-cart-items__row {
    display: table-row;
}

/* Product Cell - contains image and info */
.wc-block-cart-items__row > td:first-child {
    width: auto;
}

/* Price Cell */
.wc-block-cart-items__row > td:nth-child(2) {
    text-align: center;
    white-space: nowrap;
}

/* Quantity Cell */
.wc-block-cart-items__row > td:nth-child(3) {
    text-align: center;
}

/* Subtotal Cell */
.wc-block-cart-items__row > td:last-child {
    text-align: right;
}

/* Cart Product Image */
.wc-block-cart-item__image {
    width: 100px;
    min-width: 100px;
    padding-right: 0;
}

.wc-block-cart-item__image a {
    display: block;
}

.wc-block-cart-item__image img {
    width: 100px;
    height: auto;
    border-radius: 0;
    background-color: #f5f5f5;
}

/* Cart Product Info - Variations below name */
.wc-block-cart-item__product {
    padding: 0 2rem;
    min-width: 150px;
    flex: 1;
}

.wc-block-cart-item__product-name {
    font-size: 1.5rem;
    font-weight: 400;
    color: #222;
    text-decoration: none;
    display: block;
    margin-bottom: 0.3rem;
    line-height: 1.4;
}

.wc-block-cart-item__product-name:hover {
    color: #f37d01;
}

/* Variations/Metadata below product name */
.wc-block-cart-item__product-metadata {
    font-size: 1.3rem;
    color: #666;
    line-height: 1.5;
    margin-top: 0.3rem;
}

.wc-block-cart-item__product-metadata .wc-block-components-product-details {
    margin: 0;
    padding: 0;
    list-style: none;
}

.wc-block-cart-item__product-metadata .wc-block-components-product-details li {
    margin-bottom: 0.2rem;
    display: inline-block;
}

.wc-block-cart-item__product-metadata .wc-block-components-product-details li:not(:last-child)::after {
    content: ', ';
}

.wc-block-components-product-details__name {
    font-weight: 600;
}

.wc-block-components-product-details__value {
    font-weight: 400;
}

/* Hide price display inside product cell - show only in Price column */
.wc-block-cart-item__product .wc-block-components-product-price {
    display: none;
}

/* Unit Price Column */
.wc-block-cart-item__prices {
    text-align: left;
    white-space: nowrap;
    min-width: 100px;
}

.wc-block-cart-item__prices .wc-block-components-product-price {
    font-size: 1.4rem;
    font-weight: 400;
    color: #222;
}

.wc-block-cart-item__prices .wc-block-components-product-price__regular {
    text-decoration: line-through;
    color: #999;
    font-weight: 400;
    margin-right: 0.5rem;
    font-size: 1.4rem;
}

/* Quantity Column */
.wc-block-cart-item__quantity {
    text-align: center;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.wc-block-components-quantity-selector {
    display: inline-flex;
    align-items: center;
    border: 1px solid #e1e1e1;
    border-radius: 0;
    overflow: hidden;
    background: #fff;
}

.wc-block-components-quantity-selector__button {
    width: 3.5rem;
    height: 3.8rem;
    border: none;
    background: transparent;
    color: #222;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, color 0.2s;
    padding: 0;
}

.wc-block-components-quantity-selector__button:hover {
    background-color: #222;
    color: #fff;
}

.wc-block-components-quantity-selector__input {
    width: 4rem;
    height: 3.8rem;
    border: none;
    border-left: 1px solid #e1e1e1;
    border-right: 1px solid #e1e1e1;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 600;
    background: transparent;
    color: #222;
    -moz-appearance: textfield;
}

.wc-block-components-quantity-selector__input::-webkit-outer-spin-button,
.wc-block-components-quantity-selector__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Remove Item - Riode Style X Button */
.wc-block-cart-item__remove-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    color: #222;
    font-size: 0;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #e1e1e1;
    background: #fff;
    margin-left: 1.5rem;
}

.wc-block-cart-item__remove-link::before {
    content: '\00D7';
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1;
}

.wc-block-cart-item__remove-link:hover {
    color: #fff;
    background-color: #222;
    border-color: #222;
}

/* Hide default remove text */
.wc-block-cart-item__remove-link span {
    display: none;
}

/* Subtotal Column */
.wc-block-cart-item__total {
    text-align: right;
    font-weight: 600;
}

.wc-block-cart-item__total .wc-block-components-product-price {
    font-size: 1.6rem;
    font-weight: 600;
    color: #222;
}

/* =============================================
   CART ACTION BUTTONS - RIODE STYLE
============================================= */
.wc-block-cart__submit-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e1e1e1;
}

/* Continue Shopping Link */
a.wc-block-components-button[href*="shop"],
.wc-block-cart__continue-shopping {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem 2.5rem;
    background-color: #222;
    color: #fff;
    border: 1px solid #222;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

a.wc-block-components-button[href*="shop"]::before,
.wc-block-cart__continue-shopping::before {
    content: '\2190';
    font-size: 1.4rem;
}

a.wc-block-components-button[href*="shop"]:hover,
.wc-block-cart__continue-shopping:hover {
    background-color: #f37d01;
    border-color: #f37d01;
    color: #fff;
}

/* Update Cart Button */
.wc-block-cart__update-button,
button[type="submit"].wc-block-components-button:not(.wc-block-cart__submit-button) {
    display: inline-flex;
    align-items: center;
    padding: 1.2rem 2.5rem;
    background-color: transparent;
    color: #222;
    border: 1px solid #e1e1e1;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    cursor: pointer;
    transition: all 0.2s;
}

.wc-block-cart__update-button:hover,
button[type="submit"].wc-block-components-button:not(.wc-block-cart__submit-button):hover {
    background-color: #f37d01;
    border-color: #f37d01;
    color: #fff;
}

/* =============================================
   COUPON SECTION - RIODE STYLE (Below table)
============================================= */

/* Move coupon form below the cart table */
.wp-block-woocommerce-cart-order-summary-coupon-form-block {
    order: -1;
}

/* Coupon section in cart items block */
.wp-block-woocommerce-cart-items-block {
    display: flex;
    flex-direction: column;
}

/* Coupon form styling */
.wc-block-components-totals-coupon {
    background-color: transparent;
    padding: 0;
    margin-top: 3rem;
}

/* Coupon Title */
.wc-block-components-totals-coupon__button-text,
.wc-block-components-panel__button {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    color: #222;
    text-transform: uppercase;
    letter-spacing: 0;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0 0 1.5rem 0;
    width: 100%;
    text-align: left;
}

/* Remove arrow from coupon title */
.wc-block-components-totals-coupon__button-text::after,
.wc-block-components-panel__button::after {
    display: none;
}

.wc-block-components-totals-coupon__content,
.wc-block-components-panel__content {
    padding-top: 0;
}

.wc-block-components-totals-coupon__form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 100%;
}

.wc-block-components-totals-coupon__input {
    width: 100%;
    max-width: 400px;
    padding: 1.2rem 1.5rem;
    border: 1px solid #e1e1e1;
    border-radius: 0;
    font-size: 1.4rem;
    background-color: #fff;
}

.wc-block-components-totals-coupon__input:focus {
    border-color: #222;
    outline: none;
}

.wc-block-components-totals-coupon__input::placeholder {
    color: #999;
    font-style: normal;
}

.wc-block-components-totals-coupon__button {
    width: fit-content;
    padding: 1.2rem 2.5rem;
    background-color: transparent;
    color: #222;
    border: 1px solid #222;
    border-radius: 0;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    cursor: pointer;
    transition: all 0.2s;
}

.wc-block-components-totals-coupon__button:hover {
    background-color: #222;
    color: #fff;
}

/* =============================================
   CART TOTALS SIDEBAR - RIODE STYLE
============================================= */
.wp-block-woocommerce-cart-order-summary-block {
    background-color: #fff;
    padding: 2.5rem 3rem;
    border: 1px solid #e1e1e1;
    border-radius: 0;
}

/* Cart Totals Title */
.wp-block-woocommerce-cart-order-summary-heading-block,
.wc-block-cart__totals-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #222;
    text-transform: uppercase;
    letter-spacing: 0;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e1e1e1;
    margin-bottom: 0;
}

/* Hide heading block if duplicated */
.wp-block-woocommerce-cart-order-summary-heading-block {
    display: none;
}

/* Totals Table */
.wc-block-components-totals-wrapper {
    border-bottom: none;
}

.wc-block-components-totals-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.2rem 0;
    font-size: 1.4rem;
    border-bottom: none;
}

.wc-block-components-totals-item:last-child {
    border-bottom: none;
}

.wc-block-components-totals-item__label {
    color: #222;
    font-weight: 600;
}

.wc-block-components-totals-item__value {
    font-weight: 400;
    color: #222;
    text-align: right;
}

/* Subtotal Row */
.wc-block-components-totals-subtotal {
    padding: 1.5rem 0;
    border-bottom: 1px solid #e1e1e1;
}

.wc-block-components-totals-subtotal .wc-block-components-totals-item__label {
    font-size: 1.5rem;
    font-weight: 700;
}

.wc-block-components-totals-subtotal .wc-block-components-totals-item__value {
    font-size: 1.5rem;
    font-weight: 400;
}

/* Shipping Section */
.wc-block-components-totals-shipping {
    padding: 1.5rem 0;
    flex-direction: column;
    align-items: stretch;
    border-bottom: 1px solid #e1e1e1;
}

.wc-block-components-totals-shipping__fieldset {
    width: 100%;
    margin-top: 0.5rem;
}

.wc-block-components-totals-shipping .wc-block-components-totals-item__label {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Shipping Calculator Title */
.wc-block-components-shipping-calculator {
    margin-top: 1rem;
}

.wc-block-components-shipping-calculator__title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 1rem;
}

/* Shipping Calculator Address Form */
.wc-block-components-shipping-calculator-address {
    margin-top: 1rem;
}

.wc-block-components-shipping-calculator-address .wc-block-components-country-input,
.wc-block-components-shipping-calculator-address .wc-block-components-state-input,
.wc-block-components-shipping-calculator-address .wc-block-components-text-input {
    margin-bottom: 1rem;
}

.wc-block-components-shipping-calculator-address select,
.wc-block-components-shipping-calculator-address input {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 1px solid #e1e1e1;
    border-radius: 0;
    font-size: 1.4rem;
    background-color: #fff;
}

.wc-block-components-shipping-calculator-address select:focus,
.wc-block-components-shipping-calculator-address input:focus {
    border-color: #222;
    outline: none;
}

/* Shipping Options */
.wc-block-components-shipping-rates-control {
    margin-top: 0;
}

.wc-block-components-radio-control {
    margin: 0;
}

.wc-block-components-radio-control__option {
    display: flex;
    align-items: flex-start;
    padding: 1rem 0;
    cursor: pointer;
    border: none;
    background: transparent;
}

.wc-block-components-radio-control__input {
    margin: 0.3rem 1rem 0 0;
    width: 1.6rem;
    height: 1.6rem;
    accent-color: #f37d01;
}

.wc-block-components-radio-control__label-group {
    flex: 1;
}

.wc-block-components-radio-control__label {
    font-size: 1.4rem;
    font-weight: 400;
    color: #222;
    display: block;
}

.wc-block-components-radio-control__secondary-label {
    font-weight: 600;
    color: #222;
    margin-left: 0.5rem;
}

.wc-block-components-radio-control__description {
    font-size: 1.3rem;
    color: #999;
    margin-top: 0.3rem;
}

/* Shipping Destination */
.wc-block-components-shipping-address {
    font-size: 1.3rem;
    color: #999;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e1e1e1;
}

.wc-block-components-shipping-address a {
    color: #f37d01;
    text-decoration: underline;
    margin-left: 0.5rem;
}

/* Order Total */
.wc-block-components-totals-footer-item {
    padding: 1.5rem 0;
    border-top: none;
    margin-top: 0;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
    font-size: 1.6rem;
    font-weight: 700;
    text-transform: uppercase;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #222;
}

/* =============================================
   PROCEED TO CHECKOUT BUTTON
============================================= */
.wp-block-woocommerce-proceed-to-checkout-block {
    margin-top: 2rem;
}

.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
    display: block;
    width: 100%;
    padding: 1.6rem 2rem;
    background-color: #f37d01;
    color: #fff;
    border: none;
    border-radius: 0;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    cursor: pointer;
    transition: background-color 0.2s;
    text-align: center;
    text-decoration: none;
}

.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover {
    background-color: #d65f00;
    color: #fff;
}

/* Express Payment Section */
.wp-block-woocommerce-cart-express-payment-block {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e1e1e1;
}

.wc-block-components-express-payment__title-container {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.wc-block-components-express-payment__title-container::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background-color: #e1e1e1;
}

.wc-block-components-express-payment__title {
    background-color: #fff;
    padding: 0 1.5rem;
    color: #999;
    font-size: 1.3rem;
    position: relative;
    z-index: 1;
}

/* Payment Methods Icons */
.wp-block-woocommerce-cart-accepted-payment-methods-block {
    margin-top: 2rem;
    text-align: center;
}

.wc-block-components-payment-method-icons {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.wc-block-components-payment-method-icon {
    width: 45px;
    height: 28px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.2s, opacity 0.2s;
}

.wc-block-components-payment-method-icon:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* =============================================
   EMPTY CART
============================================= */
.wp-block-woocommerce-empty-cart-block {
    text-align: center;
    padding: 6rem 2rem;
}

.wc-block-cart__empty-cart__title,
.with-empty-cart-icon {
    font-size: 2.4rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 2rem;
}

.wp-block-woocommerce-empty-cart-block .wp-block-separator {
    margin: 3rem auto;
    max-width: 200px;
}

/* =============================================
   CROSS-SELLS IN CART
============================================= */
.wp-block-woocommerce-cart-items-block .wp-block-woocommerce-product-collection {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid #e1e1e1;
}

.wp-block-woocommerce-cart-items-block .wp-block-heading {
    font-size: 2rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 2rem;
}

/* =============================================
   CHECKOUT BLOCKS
============================================= */

/* Main Checkout Container */
.wp-block-woocommerce-checkout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1.5rem 6rem;
}

/* Checkout Layout */
.wc-block-checkout {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
}

.wc-block-checkout__main {
    flex: 1 1 60%;
    min-width: 300px;
}

.wc-block-checkout__sidebar {
    flex: 1 1 35%;
    min-width: 280px;
    position: sticky;
    top: 30px;
    align-self: flex-start;
}

/* Checkout Sections */
.wc-block-components-checkout-step {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e1e1e1;
}

.wc-block-components-checkout-step:last-child {
    border-bottom: none;
}

.wc-block-components-checkout-step__heading {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.wc-block-components-checkout-step__title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #222;
    margin: 0;
    text-transform: uppercase;
}

.wc-block-components-checkout-step__heading-content {
    margin-left: auto;
}

/* Form Fields */
.wc-block-components-text-input,
.wc-block-components-combobox {
    margin-bottom: 1.5rem;
}

.wc-block-components-text-input label,
.wc-block-components-combobox label {
    display: block;
    font-size: 1.4rem;
    font-weight: 400;
    color: #222;
    margin-bottom: 0.5rem;
}

.wc-block-components-text-input input,
.wc-block-components-text-input textarea,
.wc-block-components-combobox input {
    width: 100%;
    padding: 1.3rem 1.5rem;
    border: 1px solid #e1e1e1;
    border-radius: 0;
    font-size: 1.4rem;
    background-color: #fff;
    transition: border-color 0.2s;
}

.wc-block-components-text-input input:focus,
.wc-block-components-text-input textarea:focus,
.wc-block-components-combobox input:focus {
    border-color: #222;
    outline: none;
}

/* Required Field Indicator */
.wc-block-components-text-input.is-required label::after {
    content: ' *';
    color: #e2401c;
}

/* Validated Fields */
.wc-block-components-text-input.has-error input {
    border-color: #e2401c;
}

.wc-block-components-text-input.is-valid input {
    border-color: #0f834d;
}

/* Country/State Select */
.wc-block-components-country-input select,
.wc-block-components-state-input select {
    width: 100%;
    padding: 1.3rem 1.5rem;
    border: 1px solid #e1e1e1;
    border-radius: 0;
    font-size: 1.4rem;
    background-color: #fff;
    cursor: pointer;
}

/* Checkbox */
.wc-block-components-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.wc-block-components-checkbox__input {
    margin-top: 0.3rem;
    accent-color: #f37d01;
}

.wc-block-components-checkbox__label {
    font-size: 1.4rem;
    line-height: 1.5;
    color: #666;
}

/* Address Form */
.wc-block-components-address-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 2rem;
}

.wc-block-components-address-form > .wc-block-components-text-input:first-child,
.wc-block-components-address-form > .wc-block-components-text-input:nth-child(2) {
    grid-column: span 1;
}

.wc-block-components-address-form > .wc-block-components-text-input {
    margin-bottom: 0;
}

@media (max-width: 575px) {
    .wc-block-components-address-form {
        grid-template-columns: 1fr;
    }
}

/* Shipping Options in Checkout */
.wc-block-components-shipping-rates-control__package {
    margin-bottom: 1.5rem;
}

.wc-block-components-shipping-rates-control__package-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Radio Control with border in Checkout */
.wc-block-checkout .wc-block-components-radio-control {
    border: 1px solid #e1e1e1;
    overflow: hidden;
}

.wc-block-checkout .wc-block-components-radio-control__option {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid #e1e1e1;
    cursor: pointer;
    transition: background-color 0.2s;
}

.wc-block-checkout .wc-block-components-radio-control__option:last-child {
    border-bottom: none;
}

.wc-block-checkout .wc-block-components-radio-control__option:hover {
    background-color: #f6f7f9;
}

.wc-block-checkout .wc-block-components-radio-control__option--checked {
    background-color: #f6f7f9;
}

/* Payment Methods in Checkout */
.wc-block-checkout__payment-method {
    margin-bottom: 2rem;
}

.wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control__option--checked {
    border-color: #f37d01;
}

/* Order Summary Sidebar in Checkout */
.wc-block-checkout__sidebar .wc-block-components-order-summary {
    background-color: #f6f7f9;
    padding: 2.5rem;
    margin-bottom: 2rem;
}

/* Order Summary Title */
.wc-block-components-order-summary__button {
    font-size: 1.8rem;
    font-weight: 700;
    color: #222;
    padding: 0;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    text-transform: uppercase;
}

/* Order Summary Items */
.wc-block-components-order-summary-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e1e1e1;
}

.wc-block-components-order-summary-item:last-child {
    border-bottom: none;
}

.wc-block-components-order-summary-item__image {
    width: 60px;
    flex-shrink: 0;
}

.wc-block-components-order-summary-item__image img {
    width: 100%;
    height: auto;
}

.wc-block-components-order-summary-item__description {
    flex: 1;
}

.wc-block-components-order-summary-item__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.wc-block-components-order-summary-item__name {
    font-size: 1.4rem;
    font-weight: 600;
    color: #222;
}

.wc-block-components-order-summary-item__quantity {
    background-color: #222;
    color: #fff;
    font-size: 1.1rem;
    padding: 0.2rem 0.6rem;
    border-radius: 50%;
    margin-left: 0.5rem;
}

.wc-block-components-order-summary-item__total-price {
    font-weight: 600;
    color: #222;
}

.wc-block-components-order-summary-item__individual-prices {
    font-size: 1.3rem;
    color: #666;
}

/* Checkout Totals */
.wc-block-checkout__sidebar .wc-block-components-totals-wrapper {
    background-color: #f6f7f9;
    padding: 1.5rem 2.5rem 2.5rem;
    margin-bottom: 2rem;
}

/* Terms and Conditions */
.wc-block-checkout__terms {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.wc-block-checkout__terms a {
    color: #f37d01;
    text-decoration: underline;
}

/* =============================================
   RESPONSIVE
============================================= */

@media (max-width: 991px) {
    .wp-block-woocommerce-filled-cart-block {
        flex-direction: column;
    }
    .wp-block-woocommerce-cart-items-block,
    .wp-block-woocommerce-cart-totals-block {
        flex: 1 1 100%;
    }
    .wp-block-woocommerce-cart-totals-block {
        position: static;
    }
    .wc-block-checkout {
        flex-direction: column;
    }
    .wc-block-checkout__main,
    .wc-block-checkout__sidebar {
        flex: 1 1 100%;
    }
    .wc-block-checkout__sidebar {
        position: static;
    }
}

@media (max-width: 767px) {
    .wp-block-woocommerce-cart,
    .wp-block-woocommerce-checkout {
        padding: 2rem 1rem;
    }
    .wc-block-cart-items th {
        font-size: 1.1rem;
    }
    .wc-block-cart-item__image {
        width: 80px;
    }
    .wc-block-cart-item__image img {
        width: 70px;
    }
    .wc-block-cart-item__product-name {
        font-size: 1.4rem;
    }
    .wp-block-woocommerce-cart-order-summary-block {
        padding: 1.5rem;
    }
}

/* =============================================
   LOADING STATES
============================================= */

.wc-block-components-loading-mask {
    position: relative;
}

.wc-block-components-loading-mask::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 10;
}

.wc-block-components-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #e1e1e1;
    border-top-color: #f37d01;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -15px 0 0 -15px;
    z-index: 11;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* =============================================
   NOTICES
============================================= */

.wc-block-components-notice-banner {
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.wc-block-components-notice-banner.is-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.wc-block-components-notice-banner.is-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.wc-block-components-notice-banner.is-info {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.wc-block-components-notice-banner__content {
    flex: 1;
    font-size: 1.4rem;
}

/* =============================================
   ADDITIONAL CART IMPROVEMENTS
============================================= */

/* Hide "Eliminar artículo" text, only show X */
.wc-block-cart-item__remove-link {
    font-size: 0 !important;
    line-height: 0;
}

/* Product row layout improvements */
.wc-block-cart-items__row td {
    vertical-align: middle;
}

/* Price display in product info - HIDE (show only in Price column) */
.wc-block-cart-item__product .wc-block-components-product-price {
    display: none !important;
}

/* Remove link positioning - MOVE TO AFTER SUBTOTAL */
.wc-block-cart-item__quantity {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0;
}

/* Remove button should be in its own column after subtotal */
.wc-block-cart-item__remove-link {
    margin-left: 0;
}

/* Cart table proper column widths */
.wc-block-cart-items .wc-block-cart-items__header th:nth-child(1) {
    width: 45%;
}

.wc-block-cart-items .wc-block-cart-items__header th:nth-child(2) {
    width: 15%;
    text-align: left;
}

.wc-block-cart-items .wc-block-cart-items__header th:nth-child(3) {
    width: 20%;
    text-align: center;
}

.wc-block-cart-items .wc-block-cart-items__header th:nth-child(4) {
    width: 15%;
    text-align: right;
}

.wc-block-cart-items .wc-block-cart-items__header th:nth-child(5) {
    width: 5%;
    text-align: center;
}

/* Make sure product details are stacked properly */
.wc-block-cart-item__wrap {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Subtotal column */
.wc-block-cart-item__total {
    font-size: 1.5rem;
    font-weight: 600;
    color: #222;
    white-space: nowrap;
}

/* Improve metadata display - inline variations */
.wc-block-cart-item__product-metadata {
    margin-top: 0.3rem;
}

/* Hide coupon section from sidebar - show below table */
.wp-block-woocommerce-cart-order-summary-block .wc-block-components-totals-coupon,
.wp-block-woocommerce-cart-order-summary-block .wp-block-woocommerce-cart-order-summary-coupon-form-block {
    display: none !important;
}

/* Show coupon in cart items block */
.wp-block-woocommerce-cart-items-block .wc-block-components-totals-coupon {
    display: block;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e1e1e1;
}

/* ============================================
   VIC CART CUSTOMIZATIONS (via JS)
   ============================================ */

/* Container for moved coupon form */
.vic-cart-coupon-section {
    margin-top: 3rem;
    padding: 2rem 0;
    border-top: 1px solid #e1e1e1;
}

.vic-cart-coupon-section .wc-block-components-totals-coupon {
    display: block !important;
}

.vic-cart-coupon-section .wc-block-components-totals-coupon__button-wrapper {
    flex-direction: column;
}

.vic-cart-coupon-section .wc-block-components-panel__button {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.025em;
    color: #222;
    margin-bottom: 1.5rem;
}

.vic-cart-coupon-section .wc-block-components-panel__button::after {
    display: none;
}

.vic-cart-coupon-section .wc-block-components-totals-coupon__content {
    padding: 0;
}

.vic-cart-coupon-section .wc-block-components-form .wc-block-components-text-input input {
    border: 1px solid #ccc;
    padding: 1.2rem 1.5rem;
    font-size: 1.4rem;
    width: 100%;
    max-width: 350px;
}

.vic-cart-coupon-section .wc-block-components-button {
    background-color: #fff !important;
    color: #222 !important;
    border: 2px solid #222 !important;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.05em;
    padding: 1.2rem 2.5rem;
    margin-top: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vic-cart-coupon-section .wc-block-components-button:hover {
    background-color: #222 !important;
    color: #fff !important;
}

/* Inline variations below product name */
.vic-product-variations {
    margin: 0.5rem 0 0 0;
    padding: 0;
    font-size: 1.3rem;
    color: #666;
    font-weight: 400;
}
