/* ==========================================================================
   LEAKY PAYWALL CUSTOM STYLES FOR STONE SOUP
   Styled to match the Stone Soup Albers-inspired color palette
   ========================================================================== */

/* Subscribe Page Container */
.stonesoup-subscribe-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    font-family: Georgia, "Times New Roman", serif;
    color: #2c2c2c;
    line-height: 1.7;
}

.stonesoup-subscribe-page h2 {
    font-size: 2.25rem;
    color: #cd853f;
    margin-bottom: 1.5rem;
    font-weight: bold;
    text-align: center;
}

.stonesoup-subscribe-page h3 {
    font-size: 1.5rem;
    color: #d2691e;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.stonesoup-subscribe-page p {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.stonesoup-subscribe-page ul {
    list-style-type: disc;
    margin-left: 2rem;
    margin-bottom: 2rem;
}

.stonesoup-subscribe-page ul li {
    margin-bottom: 0.5rem;
    font-size: 1.0625rem;
}

/* Subscription Form Container */
.stonesoup-subscription-form {
    margin: 3rem 0;
    padding: 2rem;
    background: #ffffff;
    border: 3px solid #f7e882;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Leaky Paywall Subscription Options */
.leaky_paywall_subscription_options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
}

.subscription-options-title {
    font-size: 1.75rem;
    color: #cd853f;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: bold;
}

/* Individual Subscription Option Card */
.leaky_paywall_subscription_option {
    flex: 1 1 300px;
    max-width: 400px;
    padding: 2rem 1.5rem;
    background: #ffffff;
    border: 3px solid #8db4aa;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.leaky_paywall_subscription_option:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.leaky_paywall_subscription_option.current-level {
    border-color: #d2691e;
    border-width: 4px;
    box-shadow: 0 0 24px rgba(210, 105, 30, 0.3);
}

/* Subscription Title */
.leaky_paywall_subscription_option h3,
.leaky_paywall_subscription_option_title {
    font-size: 1.75rem;
    color: #d2691e;
    margin-bottom: 1.5rem;
    font-weight: bold;
}

/* Current Level Badge */
.leaky-paywall-subscription-current-level,
.leaky_paywall_subscription_current_level {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #8db4aa;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    margin-bottom: 1rem;
}

/* Allowed Content Section */
.leaky_paywall_subscription_allowed_content {
    margin: 1.5rem 0;
    padding: 1.5rem 1rem;
    border-top: 2px solid #f7e882;
    border-bottom: 2px solid #f7e882;
    background: #ffffff;
}

.leaky_paywall_subscription_allowed_content p {
    font-size: 1rem;
    margin: 0.5rem 0;
    color: #2c2c2c;
    line-height: 1.5;
}

/* Price Section */
.leaky_paywall_subscription_price {
    margin: 1.5rem 0;
}

.leaky_paywall_subscription_price p {
    font-size: 2rem;
    color: #cd853f;
    font-weight: bold;
    margin: 0;
}

.leaky_paywall_subscription_price p strong {
    font-size: 2.5rem;
}

/* Payment Button */
.leaky_paywall_subscription_payment_options {
    margin-top: 1.5rem;
}

.leaky-paywall-payment-button a,
.leaky_paywall_subscription_payment_options a {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: #d2691e;
    color: #ffffff;
    font-size: 1.125rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 6px;
    border: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
}

.leaky-paywall-payment-button a:hover,
.leaky_paywall_subscription_payment_options a:hover {
    background: #cd853f;
    transform: scale(1.05);
    text-decoration: none;
    color: #ffffff;
}

.leaky-paywall-payment-button a:focus,
.leaky_paywall_subscription_payment_options a:focus {
    outline: 3px solid #0066cc;
    outline-offset: 2px;
}

/* Registration Form Styling */
.leaky-paywall-registration-form {
    max-width: 500px;
    margin: 2rem auto;
    padding: 2rem;
    background: #ffffff;
    border: 2px solid #8db4aa;
    border-radius: 8px;
}

.leaky-paywall-registration-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #2c2c2c;
}

.leaky-paywall-registration-form input[type="text"],
.leaky-paywall-registration-form input[type="email"],
.leaky-paywall-registration-form input[type="password"],
.leaky-paywall-registration-form select {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-size: 1rem;
    font-family: Georgia, serif;
}

.leaky-paywall-registration-form input:focus,
.leaky-paywall-registration-form select:focus {
    outline: none;
    border-color: #8db4aa;
    box-shadow: 0 0 0 3px rgba(141, 180, 170, 0.2);
}

.leaky-paywall-registration-form button[type="submit"],
.leaky-paywall-registration-form input[type="submit"] {
    width: 100%;
    padding: 1rem 2rem;
    background: #d2691e;
    color: #ffffff;
    font-size: 1.125rem;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.leaky-paywall-registration-form button[type="submit"]:hover,
.leaky-paywall-registration-form input[type="submit"]:hover {
    background: #cd853f;
}

/* Subscribe CTA Section */
.stonesoup-subscribe-cta {
    text-align: center;
    padding: 2rem;
    margin: 3rem 0;
    background: #ffffff;
    border-left: 4px solid #8db4aa;
    border-radius: 6px;
}

.stonesoup-subscribe-cta h3 {
    color: #2c2c2c;
    margin-top: 0;
}

.stonesoup-login-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #8db4aa;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.stonesoup-login-link:hover {
    background: #9db09d;
    color: #ffffff;
    text-decoration: none;
}

/* Help Section */
.stonesoup-subscribe-help {
    padding: 2rem;
    margin-top: 3rem;
    background: #ffffff;
    border: 2px solid #f7e882;
    border-radius: 8px;
}

.stonesoup-subscribe-help h3 {
    margin-top: 0;
    color: #cd853f;
}

.stonesoup-subscribe-help a {
    color: #d2691e;
    font-weight: bold;
    text-decoration: underline;
}

.stonesoup-subscribe-help a:hover {
    color: #cd853f;
}

/* Leaky Paywall Message Overlay */
.leaky_paywall_message_wrap {
    margin: -5em auto 2em;
    padding: 6em 0 0;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0.5) 0.5em, #ffffff 5.5em, #ffffff 100%);
}

#leaky_paywall_message {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    padding: 2rem;
    border: 3px solid #f7e882;
    border-radius: 8px;
    background-color: #ffffff;
    color: #2c2c2c;
    font-size: 1.125rem;
    line-height: 1.7;
}

#leaky_paywall_message a {
    color: #d2691e;
    font-weight: bold;
    text-decoration: underline;
}

#leaky_paywall_message a:hover {
    color: #cd853f;
}

/* Responsive Design */
@media (max-width: 768px) {
    .stonesoup-subscribe-page {
        padding: 1.5rem 1rem;
    }

    .stonesoup-subscribe-page h2 {
        font-size: 1.75rem;
    }

    .stonesoup-subscribe-page h3 {
        font-size: 1.25rem;
    }

    .leaky_paywall_subscription_option {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .stonesoup-subscription-form {
        padding: 1.5rem 1rem;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    .leaky_paywall_subscription_option,
    .leaky-paywall-payment-button a,
    .stonesoup-login-link {
        transition: none !important;
    }

    .leaky_paywall_subscription_option:hover {
        transform: none;
    }
}

/* Focus Visible for Keyboard Navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid #0066cc;
    outline-offset: 2px;
}

/* ==========================================================================
   RADIO BUTTON SUBSCRIPTION FORM
   ========================================================================== */

.stonesoup-radio-subscription-form {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.subscription-radio-options {
    margin-bottom: 2rem;
}

.subscription-radio-option {
    margin-bottom: 1rem;
    position: relative;
}

.subscription-radio-option input[type="radio"] {
    position: absolute !important;
    opacity: 0 !important;
    cursor: pointer !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    pointer-events: none !important;
}

.subscription-radio-option label {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 1.25rem 1.5rem !important;
    padding-left: 3.5rem !important;
    background: #ffffff !important;
    border: 3px solid #e0e0e0 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-family: Georgia, "Times New Roman", serif !important;
    position: relative !important;
}

/* Custom radio button circle */
.subscription-radio-option label::before {
    content: '' !important;
    position: absolute !important;
    left: 1.25rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 24px !important;
    height: 24px !important;
    border: 3px solid #8db4aa !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    transition: all 0.3s ease !important;
}

/* Inner dot when selected */
.subscription-radio-option input[type="radio"]:checked + label::before {
    border-color: #d2691e !important;
    background: #d2691e !important;
    box-shadow: inset 0 0 0 4px #ffffff !important;
}

.subscription-radio-option label:hover {
    border-color: #8db4aa;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.subscription-radio-option input[type="radio"]:checked + label {
    background: #ffffff;
    border-color: #d2691e;
    border-width: 3px;
    box-shadow: 0 0 16px rgba(210, 105, 30, 0.2);
}

.subscription-radio-option input[type="radio"]:focus + label {
    outline: 3px solid #0066cc;
    outline-offset: 2px;
}

.subscription-label-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #2c2c2c;
}

.subscription-label-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #cd853f;
}

.subscription-submit-wrapper {
    text-align: center;
    margin-top: 2rem;
}

.subscription-submit-button {
    display: inline-block;
    padding: 1rem 3rem;
    background: #d2691e;
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: Georgia, "Times New Roman", serif;
    text-transform: none;
}

.subscription-submit-button:hover {
    background: #cd853f;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(210, 105, 30, 0.3);
}

.subscription-submit-button:focus {
    outline: 3px solid #0066cc;
    outline-offset: 2px;
}

.subscription-submit-button:active {
    transform: scale(0.98);
}

/* Responsive Design for Radio Form */
@media (max-width: 600px) {
    .stonesoup-radio-subscription-form {
        padding: 1.5rem 1rem;
    }

    .subscription-radio-option label {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .subscription-label-title {
        font-size: 1.125rem;
    }

    .subscription-label-price {
        font-size: 1.25rem;
    }

    .subscription-submit-button {
        width: 100%;
        padding: 1rem 2rem;
    }
}

/* ==========================================================================
   WOOCOMMERCE CART & CHECKOUT STYLES
   ========================================================================== */

/* Cart Page Container */
.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    font-family: Georgia, "Times New Roman", serif;
}

/* Cart Table */
.woocommerce table.shop_table {
    border: 2px solid #8db4aa;
    border-radius: 8px;
    overflow: hidden;
}

.woocommerce table.shop_table th {
    background: #8db4aa;
    color: #ffffff;
    font-weight: bold;
    padding: 1rem;
    text-align: left;
    border-bottom: none;
}

.woocommerce table.shop_table td {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: middle;
}

.woocommerce table.shop_table tbody tr:last-child td {
    border-bottom: none;
}

/* Product Name in Cart */
.woocommerce-cart-form__cart-item .product-name a {
    color: #d2691e;
    font-weight: bold;
    font-size: 1.125rem;
    text-decoration: none;
}

.woocommerce-cart-form__cart-item .product-name a:hover {
    color: #cd853f;
    text-decoration: underline;
}

/* Product Price */
.woocommerce table.shop_table .product-price,
.woocommerce table.shop_table .product-subtotal {
    color: #cd853f;
    font-weight: bold;
    font-size: 1.125rem;
}

/* Remove Button */
.woocommerce table.shop_table a.remove {
    background: #d2691e !important;
    color: #ffffff !important;
    width: 28px;
    height: 28px;
    line-height: 24px;
    border-radius: 50%;
    text-align: center;
    font-size: 18px;
}

.woocommerce table.shop_table a.remove:hover {
    background: #cd853f !important;
}

/* Cart Totals */
.cart_totals {
    background: #ffffff;
    border: 2px solid #f7e882;
    border-radius: 8px;
    padding: 2rem;
    margin-top: 2rem;
}

.cart_totals h2 {
    color: #d2691e;
    font-size: 1.75rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.cart_totals table th,
.cart_totals table td {
    padding: 0.75rem;
    border-top: 1px solid #e0e0e0;
}

.cart_totals table .order-total th,
.cart_totals table .order-total td {
    font-size: 1.5rem;
    font-weight: bold;
    color: #d2691e;
    border-top: 2px solid #8db4aa;
    padding-top: 1.5rem;
}

/* Proceed to Checkout Button */
.woocommerce .wc-proceed-to-checkout a.checkout-button {
    background: #d2691e;
    color: #ffffff;
    padding: 1rem 2.5rem;
    font-size: 1.25rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 6px;
    display: block;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
}

.woocommerce .wc-proceed-to-checkout a.checkout-button:hover {
    background: #cd853f;
    transform: scale(1.02);
}

/* Checkout Form */
.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout .woocommerce-shipping-fields h3 {
    color: #d2691e;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.woocommerce-checkout .form-row label {
    color: #2c2c2c;
    font-weight: bold;
    margin-bottom: 0.5rem;
    display: block;
}

.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-family: Georgia, serif;
    font-size: 1rem;
}

.woocommerce-checkout .form-row input.input-text:focus,
.woocommerce-checkout .form-row select:focus,
.woocommerce-checkout .form-row textarea:focus {
    outline: none;
    border-color: #8db4aa;
    box-shadow: 0 0 0 3px rgba(141, 180, 170, 0.2);
}

/* Order Review - Classic Checkout */
#order_review_heading {
    color: #d2691e;
    font-size: 1.75rem;
    margin-top: 2rem;
}

#order_review {
    background: #ffffff;
    border: 2px solid #f7e882;
    border-radius: 8px;
    padding: 2rem;
}

/* Order Summary - WooCommerce Blocks Checkout */
.wp-block-woocommerce-checkout-totals-block {
    background: #ffffff;
    border: 2px solid #f7e882;
    border-radius: 8px;
    padding: 2rem;
}

/* Remove inner order summary block border/padding to avoid double border */
.wp-block-woocommerce-checkout-order-summary-block {
    background: none !important;
    border: none !important;
    padding: 0 !important;
}

/* Order Summary Heading */
.wp-block-woocommerce-checkout-order-summary-block h2 {
    color: #d2691e;
    font-size: 1.75rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

/* Place Order Button */
.woocommerce #payment #place_order,
.woocommerce-page #payment #place_order {
    background: #d2691e;
    color: #ffffff;
    padding: 1rem 2.5rem;
    font-size: 1.25rem;
    font-weight: bold;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

.woocommerce #payment #place_order:hover,
.woocommerce-page #payment #place_order:hover {
    background: #cd853f;
}

/* Update Cart Button */
.woocommerce button[name="update_cart"] {
    background: #8db4aa;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.woocommerce button[name="update_cart"]:hover {
    background: #9db09d;
}

/* Messages */
.woocommerce-message,
.woocommerce-info {
    background: #ffffff;
    border-left: 4px solid #8db4aa;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    border-radius: 4px;
    color: #2c2c2c;
}

.woocommerce-message::before,
.woocommerce-info::before {
    color: #8db4aa;
}

.woocommerce-error {
    background: #fef5f5;
    border-left: 4px solid #d2691e;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    border-radius: 4px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .woocommerce-cart .woocommerce,
    .woocommerce-checkout .woocommerce {
        padding: 1.5rem 1rem;
    }
    
    .woocommerce table.shop_table th,
    .woocommerce table.shop_table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }
    
    .cart_totals {
        padding: 1.5rem 1rem;
    }
}

/* ==========================================================================
   ADDITIONAL WOOCOMMERCE & CART STYLING
   ========================================================================== */

/* General WooCommerce Links - Only Cart/Checkout Content */
.woocommerce-cart .entry-content a,
.woocommerce-checkout .entry-content a,
.wp-block-woocommerce-cart a,
.wp-block-woocommerce-checkout a {
    color: #d2691e;
    text-decoration: none;
}

.woocommerce-cart .entry-content a:hover,
.woocommerce-checkout .entry-content a:hover,
.wp-block-woocommerce-cart a:hover,
.wp-block-woocommerce-checkout a:hover {
    color: #cd853f;
    text-decoration: underline;
}

/* Proceed to Checkout Link/Button */
.wc-block-components-button,
.wc-block-cart__submit-button {
    background: #d2691e !important;
    color: #ffffff !important;
    border: none !important;
    padding: 1rem 2.5rem !important;
    font-size: 1.125rem !important;
    font-weight: bold !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.wc-block-components-button:hover,
.wc-block-cart__submit-button:hover {
    background: #cd853f !important;
    transform: scale(1.02) !important;
}

/* Cart Totals Headings */
.wc-block-components-totals-footer-item,
.wp-block-woocommerce-cart-totals-block h2,
h2:contains("CART TOTALS") {
    color: #d2691e !important;
    font-weight: bold;
}

/* Total Amount */
.wc-block-components-totals-footer-item-tax-value,
.wc-block-formatted-money-amount {
    color: #cd853f;
    font-weight: bold;
}

/* Product Links in Cart */
.wc-block-components-product-name a,
.wc-block-cart-item__product-name a {
    color: #d2691e !important;
    font-weight: bold !important;
    font-size: 1.125rem;
}

.wc-block-components-product-name a:hover,
.wc-block-cart-item__product-name a:hover {
    color: #cd853f !important;
}

/* Remove Item Link */
.wc-block-cart-item__remove-link,
a[aria-label*="Remove"] {
    color: #d2691e !important;
}

/* Price Display */
.wc-block-components-product-price,
.wc-block-cart-item__prices {
    color: #cd853f !important;
    font-weight: bold;
}

/* Cart Item Details */
.wc-block-cart-item__product-metadata {
    color: #2c2c2c;
    font-family: Georgia, "Times New Roman", serif;
}

/* Quantity Selector */
.wc-block-components-quantity-selector {
    border: 2px solid #e0e0e0;
    border-radius: 4px;
}

.wc-block-components-quantity-selector:focus-within {
    border-color: #8db4aa;
}

/* Add Coupon Section */
.wc-block-components-panel__button {
    color: #d2691e !important;
}

/* Cart Blocks Sidebar */
.wp-block-woocommerce-cart .wc-block-cart__sidebar {
    background: #ffffff;
    border: 2px solid #f7e882;
    border-radius: 8px;
    padding: 2rem;
}

/* Make all cart/checkout buttons match theme */
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce a.button.alt {
    background: #d2691e !important;
    color: #ffffff !important;
    border: none !important;
    padding: 0.75rem 1.5rem !important;
    font-weight: bold !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
}

.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce a.button.alt:hover {
    background: #cd853f !important;
}


/* Constrain cart to content area - Override alignwide */
.woocommerce-cart .wp-block-woocommerce-cart.alignwide,
.woocommerce-checkout .wp-block-woocommerce-checkout.alignwide {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Remove alignwide behavior from cart blocks */
.woocommerce-cart .entry-content .alignwide,
.woocommerce-checkout .entry-content .alignwide {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Ensure all cart containers stay within bounds */
.woocommerce-cart .entry-content,
.woocommerce-checkout .entry-content {
    max-width: 100%;
    width: 100%;
    overflow-x: hidden;
}

/* Cart blocks inner containers */
.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout,
.wp-block-woocommerce-filled-cart-block,
.wp-block-woocommerce-cart-items-block,
.wp-block-woocommerce-cart-line-items-block,
.wp-block-woocommerce-cart-totals-block {
    max-width: 100% !important;
    box-sizing: border-box;
}

/* Ensure tables don't overflow */
.woocommerce-cart table.shop_table,
.woocommerce-checkout table.shop_table {
    max-width: 100%;
    table-layout: auto;
    box-sizing: border-box;
}

