/**
 * Cart specific styles
 */

/* Responsive cart table styling */
@media (max-width: 767px) {
    .woocommerce-cart-form__contents td:before {
        content: attr(data-title) ": ";
        font-weight: 600;
        float: left;
        color: var(--theme-primary-text);
    }

    .woocommerce-cart-form__contents td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: right;
        clear: both;
        border-bottom: 0;
        padding: 10px 0;
    }

    .woocommerce-cart-form__contents td.product-thumbnail {
        justify-content: center;
        padding-top: 20px;
    }
    
    .woocommerce-cart-form__contents td.product-thumbnail:before {
        display: none;
    }

    .woocommerce-cart-form__contents td.product-remove {
        justify-content: flex-end;
        position: absolute;
        top: 10px;
        right: 10px;
        padding: 0;
        border: none;
    }
    
    .woocommerce-cart-form__contents td.product-remove:before {
        display: none;
    }
    
    .woocommerce-cart-form__contents td.product-name {
        text-align: center;
        justify-content: center;
        font-weight: 600;
    }
    
    .woocommerce-cart-form__contents td.product-name:before {
        display: none;
    }

    .woocommerce-cart-form__contents td.actions:before {
        display: none;
    }


    .woocommerce-cart-form__contents tr.cart_item {
        display: block;
        position: relative;
        padding: 20px;
        margin-bottom: 15px;
        border-radius: 15px;
    }

    .woocommerce-cart-form__contents .actions {
        padding: 20px 0;
    }
    
    /* Improve spacing between price, quantity and subtotal */
    .woocommerce-cart-form__contents td.product-price,
    .woocommerce-cart-form__contents td.product-quantity,
    .woocommerce-cart-form__contents td.product-subtotal {
        padding: 12px 0;
        border-bottom: 1px solid rgba(121, 96, 73, 0.1);
    }
    
    .woocommerce-cart-form__contents td.product-subtotal {
        border-bottom: none;
    }
    
    /* Make quantity input more prominent */
    .woocommerce-cart-form__contents .custom-quantity-wrapper {
        min-width: 100px;
        margin-left: auto;
    }

    .price-wrapper {
        text-align: right;
    }

    .woocommerce-cart-form__contents td.product-price:before {
        margin-top: 3px;
    }
}

/* Quantity Input Styles */
.custom-quantity-wrapper {
    position: relative;
}

.custom-quantity-wrapper input[type="number"] {
    -moz-appearance: textfield;
}

.custom-quantity-wrapper input::-webkit-outer-spin-button,
.custom-quantity-wrapper input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Apply button style to native WooCommerce buttons */
.woocommerce .button {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--theme-primary);
    color: var(--theme-secondary-text);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.woocommerce .button:hover,
.woocommerce .button:focus {
    background-color: var(--theme-primary-text);
    transform: scale(1.05);
}

/* Cart totals styling */
.woocommerce-shipping-methods {
    list-style: none;
    padding-left: 0;
    margin: 0.5rem 0;
}

.woocommerce-shipping-methods li {
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    border-radius: 0.5rem;
    background-color: rgba(121, 96, 73, 0.03);
    border: 1px solid rgba(121, 96, 73, 0.1);
}

.woocommerce-shipping-methods li:hover {
    background-color: rgba(121, 96, 73, 0.07);
    border-color: rgba(121, 96, 73, 0.2);
}

.woocommerce-shipping-methods li:last-child {
    margin-bottom: 0;
}

.woocommerce-shipping-methods input[type="radio"] {
    width: 1.75rem !important; 
    height: 1.75rem !important;
    min-width: 1.75rem !important;
    border-radius: 50% !important; 
    border: 2px solid var(--theme-primary) !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    background-color: var(--theme-background) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    cursor: pointer !important;
    vertical-align: middle !important;
    margin: 0 0.75rem 0 0 !important;
    flex-shrink: 0;
    padding: 0 !important;
}

.woocommerce-shipping-methods input[type="radio"]:checked {
    background-color: var(--theme-primary) !important;
    border-color: var(--theme-primary) !important;
}

.woocommerce-shipping-methods input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0.875rem;
    height: 0.875rem;
    border-radius: 50%;
    background-color: var(--theme-back);
}

.woocommerce-shipping-methods input[type="radio"]:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(121, 96, 73, 0.3) !important;
}

.woocommerce-shipping-methods label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--theme-primary-text);
    cursor: pointer;
    line-height: 1.4;
    display: inline-block;
    margin: 0;
}

.woocommerce-shipping-methods .amount {
    font-weight: 600;
    color: var(--theme-primary);
    margin-left: 0.25rem;
}

.woocommerce-shipping-methods .shipping-method-only {
    font-weight: 500;
}

/* Fix shipping section in review order table */
.woocommerce-checkout-review-order-table .shipping td {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Shipping destination styling */
.woocommerce-shipping-destination {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    padding: 0.75rem;
    background-color: rgba(121, 96, 73, 0.03);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: var(--theme-primary-text);
    line-height: 1.5;
}

.woocommerce-shipping-destination strong {
    color: var(--theme-primary);
    font-weight: 600;
}

/* Shipping calculator button styling */
.shipping-calculator-button {
    display: inline-block;
    margin-top: 0.75rem;
    font-weight: 500;
    color: var(--theme-primary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    background-color: rgba(121, 96, 73, 0.05);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(121, 96, 73, 0.1);
}

.shipping-calculator-button:hover {
    background-color: rgba(121, 96, 73, 0.1);
    color: var(--theme-primary-text);
    border-color: rgba(121, 96, 73, 0.2);
}

/* Override WooCommerce's default spacing in checkout */
tr.woocommerce-shipping-totals td {
    padding-top: 0 !important;
}

/* Coupon removal button styling */
.woocommerce-remove-coupon {
    color: var(--theme-primary);
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
}

.woocommerce-remove-coupon:hover {
    color: var(--theme-primary-text);
}

/* Empty cart styling */
.cart-empty.woocommerce-info {
    text-align: center;
    padding: 2rem;
    background-color: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    margin-bottom: 2rem;
}

/* Fix for coupon and update cart buttons on mobile */
@media (max-width: 767px) {
    .woocommerce-cart-form .coupon {
        margin-bottom: 1rem;
        width: 100%;
    }
    
    .woocommerce-cart-form .coupon .input-text {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    /* Make cart totals more prominent on mobile */
    .cart_totals {
        border: 2px solid var(--theme-primary);
        border-radius: 10px;
        margin-top: 20px;
    }
    
    /* Fix quantity buttons alignment */
    .quantity-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 100%;
        width: 30px;
        font-size: 16px;
        font-weight: bold;
    }
    
    /* Improve remove item button */
    .woocommerce-cart-form .product-remove a.remove {
        font-size: 1.5rem;
    }
}

/* Price wrapper styling */
.price-wrapper {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
}

.price-wrapper .woocommerce-Price-amount {
    font-weight: 500;
    color: var(--theme-primary-text);
}

.price-wrapper .wps_sfw_interval {
    margin-left: 4px;
    color: var(--theme-primary-text);
    opacity: 0.8;
}

/**
 * Checkout Form Styles
 */

/* Form field styling */
.woocommerce-checkout .form-row {
    margin-bottom: 1.5rem;
}

/* Ensure form-row-first and form-row-last work correctly for half-width fields */
.woocommerce-checkout .form-row-first {
    float: left;
    width: 48%;
    clear: both;
}

.woocommerce-checkout .form-row-last {
    float: right;
    width: 48%;
}

.woocommerce-checkout .form-row-wide {
    clear: both;
    width: 100%;
}

.woocommerce-checkout .form-row::after {
    content: "";
    display: table;
    clear: both;
}

.woocommerce-checkout .form-row label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--theme-primary-text);
}

.woocommerce-checkout .form-row .required {
    color: #e3342f;
    font-weight: 700;
    border: 0;
}

.vfc-checkout-button {
    background-color: var(--theme-primary) !important;
    color: var(--theme-secondary-text) !important;
    border: 2px solid var(--theme-primary) !important;
    border-radius: 0.5rem !important;
    padding: 0.75rem 1.5rem !important;
    transition: all 0.3s ease !important;
    font-weight: 500 !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    display: inline-block !important;
    text-align: center !important;
}

.vfc-checkout-button:hover {
    background-color: var(--theme-primary-text) !important;
    border-color: var(--theme-primary-text) !important;
    color: var(--theme-secondary-text) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 6px rgba(121, 96, 73, 0.1) !important;
}

.woocommerce-checkout .form-row .input-text {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1.125rem;
    border: 2px solid var(--theme-primary);
    border-radius: 0.5rem;
    background-color: var(--theme-background);
    transition: all 0.3s ease;
    color: var(--theme-primary-text);
}

.woocommerce-checkout .form-row .input-text:focus {
    outline: none;
    border-color: var(--theme-primary-text);
    box-shadow: 0 0 0 2px rgba(121, 96, 73, 0.2);
}

/* Select field styling */
.woocommerce-checkout .form-row select {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1.125rem;
    border: 2px solid var(--theme-primary);
    border-radius: 0.5rem;
    background-color: var(--theme-back);
    transition: all 0.3s ease;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%234C311D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
}


.woocommerce-checkout .form-row select:focus {
    outline: none;
    border-color: var(--theme-primary-text);
    box-shadow: 0 0 0 2px rgba(121, 96, 73, 0.2);
}

/* Checkbox and radio styling */
.woocommerce-checkout .form-row input[type="checkbox"],
.woocommerce-checkout .form-row input[type="radio"] {
    width: auto;
    height: 1.5rem;
    width: 1.5rem;
    margin-right: 0.5rem;
    border: 1px solid var(--theme-primary);
}

/* Shipping toggle styling */
#ship-to-different-address {
    display: flex;
    align-items: center;
    font-size: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

#ship-to-different-address label {
    display: flex !important;
    align-items: center !important;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 0 !important;
}

#ship-to-different-address span {
    font-weight: 500;
}

/* Enhanced Order Review Table Styling */
.woocommerce-checkout-review-order-table {
    width: 100%;
    margin-bottom: 1.5rem;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}

.woocommerce-checkout-review-order-table thead th {
    background-color: rgba(121, 96, 73, 0.03);
    font-size: 1.1rem;
    font-weight: 500;
}

.woocommerce-checkout-review-order-table tbody tr:last-child td {
    border-bottom: none;
}

.woocommerce-checkout-review-order-table .product-name {
    width: 65%;
}

.woocommerce-checkout-review-order-table .product-name .product-thumbnail img {
    border: 1px solid rgba(121, 96, 73, 0.2);
    box-shadow: 0 1px 3px rgba(121, 96, 73, 0.1);
    transition: transform 0.2s ease;
}

.woocommerce-checkout-review-order-table .product-name .product-thumbnail img:hover {
    transform: scale(1.05);
}

.woocommerce-checkout-review-order-table tfoot {
    background-color: rgba(121, 96, 73, 0.03);
}

.woocommerce-checkout-review-order-table tfoot tr.order-total {
    background-color: rgba(121, 96, 73, 0.07);
}

.woocommerce-checkout-review-order-table tfoot tr.order-total th,
.woocommerce-checkout-review-order-table tfoot tr.order-total td {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.woocommerce-checkout-review-order-table tfoot tr.order-total td {
    color: var(--theme-primary);
}

/* Responsive adjustments for order review */
@media (max-width: 767px) {
    .woocommerce-checkout-review-order-table .product-thumbnail {
        display: none;
    }
    
    .woocommerce-checkout-review-order-table th,
    .woocommerce-checkout-review-order-table td {
        padding: 0.5rem 0.75rem;
    }
    
    .woocommerce-checkout-review-order-table tfoot th,
    .woocommerce-checkout-review-order-table tfoot td {
        font-size: 0.9rem;
    }
}

/* Payment method styling */
.woocommerce-checkout-payment {
    margin-top: 2rem;
}

.woocommerce-checkout-payment .wc_payment_methods {
    padding: 0;
    list-style: none;
    margin-bottom: 1.5rem;
}

.woocommerce-checkout-payment .wc_payment_method {
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: rgba(121, 96, 73, 0.05);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}


.woocommerce-checkout-payment .wc_payment_method label {
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
}

.woocommerce-checkout-payment .payment_box {
    padding: 1rem;
    margin-top: 0.75rem;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

.woocommerce-checkout-payment .payment_box fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

/* Place order button styling */
#place_order {
    display: block;
    width: 100%;
    padding: 0.75rem 1.5rem;
    background-color: var(--theme-primary);
    color: var(--theme-secondary-text);
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    margin-top: 1rem;
}

#place_order:hover {
    background-color: var(--theme-primary-text);
    transform: scale(1.03);
}

/* Subscription options */
.woocommerce-checkout .wcsatt-options-wrapper {
    margin-top: 1rem;
    padding: 1rem;
    background-color: rgba(121, 96, 73, 0.05);
    border-radius: 0.5rem;
}

.woocommerce-checkout .wcsatt-options-product {
    margin: 0;
    padding: 0;
    list-style: none;
}

.woocommerce-checkout .wcsatt-options-product li {
    margin-bottom: 0.5rem;
}

.woocommerce-checkout .wcsatt-options-product input {
    margin-right: 0.5rem;
}

.woocommerce-checkout .wcsatt-options-product label {
    font-weight: normal;
}

/* Error message styling */
.woocommerce-NoticeGroup {
    margin-bottom: 2rem;
}

.woocommerce-error {
    padding: 1rem 1.5rem;
    background-color: #FEE2E2;
    border-left: 4px solid #EF4444;
    color: #B91C1C;
    list-style: none;
    margin: 0 0 1.5rem;
    border-radius: 0.5rem;
}

.woocommerce-error li {
    margin-bottom: 0.5rem;
}

.woocommerce-error li:last-child {
    margin-bottom: 0;
}

/* Info message styling */
.woocommerce-info {
    padding: 1rem 1.5rem;
    background-color: #E0F2FE;
    border-left: 4px solid #0EA5E9;
    color: #0369A1;
    margin: 0 0 1.5rem;
    border-radius: 0.5rem;
}

/* Success message styling */
.woocommerce-message {
    padding: 1rem 1.5rem;
    background-color: #DCFCE7;
    border-left: 4px solid #22C55E;
    color: #166534;
    margin: 0 0 1.5rem;
    border-radius: 0.5rem;
}

/* Responsive styles for checkout */
@media (max-width: 991px) {
    .woocommerce-checkout #customer_details {
        margin-bottom: 2rem;
    }
    
    .woocommerce-checkout #order_review {
        padding-bottom: 1rem;
    }
}

@media (max-width: 767px) {
    .woocommerce-billing-fields h3,
    .woocommerce-shipping-fields h3,
    #order_review_heading {
        font-size: 1.25rem;
    }
    
    .woocommerce-checkout-review-order-table {
        font-size: 0.875rem;
    }
    
    #ship-to-different-address {
        font-size: 0.875rem;
    }
}

/* Coupon form styling */
.woocommerce-form-coupon-toggle .woocommerce-info {
    display: flex;
    align-items: center;
}

.woocommerce-form-coupon-toggle .woocommerce-info::before {
    margin-right: 0.75rem;
}

.woocommerce-form-coupon {
    padding: 1.5rem;
    background-color: rgba(121, 96, 73, 0.05);
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.woocommerce-form-coupon p:first-child {
    margin-bottom: 1rem;
}

.woocommerce-form-coupon .form-row {
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.woocommerce-form-coupon .form-row-first {
    flex: 1;
}

.woocommerce-form-coupon .input-text {
    width: 100%;
    border: 1px solid var(--theme-primary);
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
}

.woocommerce-form-coupon .button {
    background-color: var(--theme-primary);
    color: var(--theme-secondary-text);
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.woocommerce-form-coupon .button:hover {
    background-color: var(--theme-primary-text);
}

/* Create account section */
.woocommerce-account-fields {
    margin-top: 1.5rem;
}

.create-account label {
    display: flex;
    align-items: center;
}

.create-account p:not(:first-child) {
    margin-top: 1rem;
}

/* Privacy policy text styling */
.woocommerce-privacy-policy-text {
    font-size: 0.875rem;
    color: var(--theme-primary-text);
    opacity: 0.8;
}

.woocommerce-privacy-policy-text a {
    color: var(--theme-primary);
    text-decoration: underline;
}

.woocommerce-privacy-policy-text a:hover {
    color: var(--theme-primary-text);
}

/* Terms and conditions checkbox */


.woocommerce-terms-and-conditions-wrapper .woocommerce-form__label {
    display: flex;
    align-items: flex-start;
}


/* Subscription for WooCommerce plugin compatibility */
.wps-sfw-subscription-wrapper {
    margin-top: 1rem;
    padding: 1rem;
    background-color: rgba(121, 96, 73, 0.05);
    border-radius: 0.5rem;
}

.wps-sfw-subscription-wrapper label {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.wps-sfw-subscription-wrapper input[type="radio"] {
    margin-right: 0.5rem;
}

/* Subscription details in order review */
.wps_sfw_subscription_details {
    font-size: 0.875rem;
    color: var(--theme-primary);
    margin-top: 0.5rem;
}

/* Style the dropdown with our custom class */
.glow-guards-dropdown {
    border: 2px solid var(--theme-primary) !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 4px 6px rgba(121, 96, 73, 0.15) !important;
    padding: 0.5rem 0 !important;
    background-color: var(--theme-background) !important;
}


/* Style for the ship-to-different-address checkbox */
.woocommerce-form__input-checkbox, 
#ship-to-different-address-checkbox,
.payment_method_stripe input[type="radio"],
.wc_payment_method input[type="radio"],
.woocommerce-terms-and-conditions-wrapper input[type="checkbox"] {
    width: 1.75rem !important; 
    height: 1.75rem !important;
    border-radius: 50% !important; 
    border: 2px solid var(--theme-primary) !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    background-color: var(--theme-background) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    cursor: pointer !important;
    vertical-align: middle !important;
    margin-right: 0.75rem !important;
}

/* Style for radio buttons */
.wc_payment_method input[type="radio"] {
    border-radius: 50% !important;
}

/* Style for checked state */
.woocommerce-form__input-checkbox:checked,
#ship-to-different-address-checkbox:checked,
.payment_method_stripe input[type="radio"]:checked,
.wc_payment_method input[type="radio"]:checked,
.woocommerce-terms-and-conditions-wrapper input[type="checkbox"]:checked {
    background-color: var(--theme-primary) !important;
    border-color: var(--theme-primary) !important;
}

/* Create checkmark for checkboxes */
.woocommerce-form__input-checkbox:checked::after,
#ship-to-different-address-checkbox:checked::after,
.woocommerce-terms-and-conditions-wrapper input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 0.375rem;
    height: 0.75rem;
    border-bottom: 3px solid var(--theme-secondary-text);
    border-right: 3px solid var(--theme-secondary-text);
}

/* Create dot for radio buttons */
.payment_method_stripe input[type="radio"]:checked::after,
.wc_payment_method input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0.875rem;
    height: 0.875rem;
    border-radius: 50%;
    background-color: var(--theme-back);
}

/* Style for focus state */
.woocommerce-form__input-checkbox:focus,
#ship-to-different-address-checkbox:focus,
.payment_method_stripe input[type="radio"]:focus,
.wc_payment_method input[type="radio"]:focus,
.woocommerce-terms-and-conditions-wrapper input[type="checkbox"]:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(121, 96, 73, 0.3) !important;
}

/* Additional shipping methods styling for checkout */
.woocommerce-checkout-review-order-table .woocommerce-shipping-methods {
    margin: 0;
    padding: 0;
}

.woocommerce-checkout-review-order-table .woocommerce-shipping-methods li {
    text-align: left;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(121, 96, 73, 0.1);
}

.woocommerce-checkout-review-order-table .woocommerce-shipping-methods li:last-child {
    margin-bottom: 0;
}

/* Special styling for when there's only one shipping method */
.woocommerce-checkout-review-order-table .shipping-method-only {
    display: flex;
    align-items: center;
    font-weight: 500;
    padding: 0.5rem 0;
}

/* Fix text alignment in different contexts */
.woocommerce-checkout-review-order-table .shipping td {
    text-align: left;
}

/* Shipping heading in different contexts */
.woocommerce-shipping-destination {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--theme-primary-text);
    opacity: 0.85;
    line-height: 1.5;
    text-align: left;
}

/* Shipping options title when appearing */
.shipping-methods-title {
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: var(--theme-primary-text);
}

/* Active shipping method styling */
.shipping-method-active,
.woocommerce-shipping-methods li.shipping-method-active {
    border-color: var(--theme-primary) !important;
    background-color: rgba(121, 96, 73, 0.07) !important;
}

/* Enhanced shipping calculator styling */
.shipping-calculator-form {
    margin-top: 1rem;
    padding: 1.25rem;
    background-color: rgba(121, 96, 73, 0.03);
    border-radius: 0.75rem;
    border: 1px solid rgba(121, 96, 73, 0.1);
    transition: all 0.3s ease;
}

.shipping-calculator-form:hover {
    border-color: rgba(121, 96, 73, 0.2);
    box-shadow: 0 4px 6px rgba(121, 96, 73, 0.05);
}

.shipping-calculator-button {
    display: inline-flex;
    align-items: center;
    margin-top: 0.75rem;
    font-weight: 500;
    color: var(--theme-primary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    background-color: rgba(121, 96, 73, 0.05);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(121, 96, 73, 0.1);
}

.shipping-calculator-button:hover {
    background-color: rgba(121, 96, 73, 0.1);
    color: var(--theme-primary-text);
    border-color: rgba(121, 96, 73, 0.2);
    transform: translateY(-2px);
}

.shipping-calculator-button svg {
    transition: transform 0.3s ease;
}

.shipping-calculator-button:hover svg {
    transform: rotate(90deg);
}

/* Custom styling for calculator form inputs */
.shipping-calculator-form .input-text,
.shipping-calculator-form select {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    border: 2px solid var(--theme-primary);
    border-radius: 0.5rem;
    background-color: var(--theme-back);
    transition: all 0.3s ease;
}

.shipping-calculator-form select {
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%234C311D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
}

.shipping-calculator-form .input-text:focus,
.shipping-calculator-form select:focus {
    outline: none;
    border-color: var(--theme-primary-text);
    box-shadow: 0 0 0 2px rgba(121, 96, 73, 0.2);
}

.shipping-calculator-form label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--theme-primary-text);
    display: block;
}

.shipping-calculator-form button {
    background-color: var(--theme-primary);
    color: var(--theme-secondary-text);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.shipping-calculator-form button:hover {
    background-color: var(--theme-primary-text);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(121, 96, 73, 0.1);
}

/* Mobile styles for shipping calculator */
@media (max-width: 767px) {
    .shipping-calculator-form {
        padding: 1rem;
    }
    
    .shipping-calculator-form .input-text,
    .shipping-calculator-form select {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .shipping-calculator-form button {
        width: 100%;
        padding: 0.75rem 1rem;
    }
}

/* Specific styling for shipping calculator country/state selects */
.shipping-calculator-form .country_select,
.shipping-calculator-form .state_select {
    height: auto;
    min-height: 3.5rem;
    width: 100%;
    padding: 0.75rem 1.25rem;
    font-size: 1.125rem;
    border: 2px solid var(--theme-primary);
    border-radius: 0.5rem;
    background-color: var(--theme-back);
    color: var(--theme-primary-text);
    transition: all 0.3s ease;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%234C311D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    cursor: pointer;
}

.shipping-calculator-form .country_select:focus,
.shipping-calculator-form .state_select:focus {
    outline: none;
    border-color: var(--theme-primary-text);
    box-shadow: 0 0 0 3px rgba(121, 96, 73, 0.2);
}


/* Button styling for calculator */
.shipping-calculator-form .button.vfc-checkout-button {
    background-color: var(--theme-primary);
    color: var(--theme-secondary-text);
    font-weight: 500;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--theme-primary);
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
}

/* Improved shipping methods container for checkout */
.woocommerce-shipping-methods-container {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

/* Ensure shipping methods display as rows */
.woocommerce-checkout-review-order-table .woocommerce-shipping-methods-container {
    width: 100%;
}

/* Fix for the shipping calculator in checkout */
.woocommerce-checkout .shipping-calculator-wrapper {
    margin-top: 1rem;
    display: block;
    width: 100%;
}

/* Ensure the shipping calculator button is visible */
.woocommerce-checkout .shipping-calculator-button {
    display: inline-flex;
    align-items: center;
    background-color: rgba(121, 96, 73, 0.05);
    border: 1px solid rgba(121, 96, 73, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    color: var(--theme-primary);
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.woocommerce-checkout .shipping-calculator-button:hover {
    background-color: rgba(121, 96, 73, 0.1);
    border-color: rgba(121, 96, 73, 0.2);
    transform: translateY(-2px);
}

.woocommerce-checkout .shipping-calculator-button svg {
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

.woocommerce-checkout .shipping-calculator-button:hover svg {
    transform: rotate(90deg);
}

/* Improve shipping methods message on checkout */
.woocommerce-checkout .shipping-destination {
    padding: 0.75rem 1rem;
    background-color: rgba(121, 96, 73, 0.05);
    border: 1px solid rgba(121, 96, 73, 0.1);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    color: var(--theme-primary-text);
    font-weight: 500;
    font-size: 0.95rem;
}

.woocommerce-checkout .woocommerce-shipping-methods li {
    font-size: 1rem;
    font-weight: 500;
}

/* Helper tip for shipping calculation */
.shipping-auto-calc-tip {
    display: block;
    margin-top: 0.5rem;
    padding: 0.75rem 1rem;
    background-color: rgba(235, 250, 242, 0.6);
    border-left: 3px solid #22c55e;
    border-radius: 0.3rem;
    font-size: 0.85rem;
    color: var(--theme-primary-text);
    line-height: 1.4;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Hide shipping calculator on checkout */
.woocommerce-checkout .shipping-calculator-wrapper {
    display: none !important;
}

/* Focus states for shipping fieldsets to improve UX */
.woocommerce-checkout #billing_country_field:focus-within,
.woocommerce-checkout #billing_postcode_field:focus-within,
.woocommerce-checkout #billing_state_field:focus-within,
.woocommerce-checkout #billing_city_field:focus-within {
    position: relative;
    z-index: 5;
}

.woocommerce-checkout #billing_country_field:focus-within label,
.woocommerce-checkout #billing_postcode_field:focus-within label,
.woocommerce-checkout #billing_state_field:focus-within label,
.woocommerce-checkout #billing_city_field:focus-within label {
    color: var(--theme-primary);
    font-weight: 600;
}

/* Shipping methods updating state */
.woocommerce-shipping-methods-container.updating {
    position: relative;
}

.woocommerce-shipping-methods-container.updating::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 2px solid transparent;
    border-top-color: var(--theme-primary);
    border-radius: 50%;
    animation: shipping-spinner 0.8s linear infinite;
    z-index: 2;
}

@keyframes shipping-spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Emphasize shipping-related fields in checkout */
.woocommerce-checkout #billing_country_field,
.woocommerce-checkout #billing_state_field,
.woocommerce-checkout #billing_city_field,
.woocommerce-checkout #billing_postcode_field,
.woocommerce-checkout #shipping_country_field,
.woocommerce-checkout #shipping_state_field,
.woocommerce-checkout #shipping_city_field,
.woocommerce-checkout #shipping_postcode_field {
    border-radius: 0.5rem;
    margin-bottom: 1.25rem;
    transition: background-color 0.3s ease;
}

.woocommerce-checkout #billing_country_field:focus-within,
.woocommerce-checkout #billing_state_field:focus-within,
.woocommerce-checkout #billing_city_field:focus-within,
.woocommerce-checkout #billing_postcode_field:focus-within,
.woocommerce-checkout #shipping_country_field:focus-within,
.woocommerce-checkout #shipping_state_field:focus-within,
.woocommerce-checkout #shipping_city_field:focus-within,
.woocommerce-checkout #shipping_postcode_field:focus-within {
    background-color: rgba(121, 96, 73, 0.06);
    box-shadow: 0 0 0 1px var(--theme-primary);
} 


.renewal-totals{
    background-color: rgba(121, 96, 73, 0.03);
    border: 1px solid rgba(121, 96, 73, 0.1);
}

.renewal-heading::before{
    display: none;
}

.wc_payment_method{
    background-color: rgba(121, 96, 73, 0.03);
    border: 1px solid rgba(121, 96, 73, 0.1);
}


.payment_method_stripe{
    border: 1px solid rgba(121, 96, 73, 0.1);
    background-color: rgba(121, 96, 73, 0.07) !important;
}

.wc-saved-payment-methods{
    padding-top: 1rem;
}

.wc-saved-payment-methods li {
    display: flex;
    align-items: center; /* Align items vertically centered */
    justify-content: space-between; /* Adjust spacing between items */
    margin-bottom: 1rem; /* Optional: Add some space between items */
}


.woocommerce-cart-form__cart-item .product-thumbnail a{
    display: flex;
    width: fit-content;
}
