p.shipping-terms-display bdi, p.shipping-terms-display {
    font-family: var(--e-global-typography-text-font-family), Sans-serif;
    font-size: var(--e-global-typography-text-font-size);
    font-weight: var(--e-global-typography-text-font-weight);
    text-transform: var(--e-global-typography-text-text-transform);
    font-style: var(--e-global-typography-text-font-style);
    text-decoration: var(--e-global-typography-text-text-decoration);
    line-height: var(--e-global-typography-text-line-height);
    letter-spacing: var(--e-global-typography-text-letter-spacing);
}

.woocommerce-shipping-threshold h5 {
    /* color: var(--e-global-color-primary); */
    font-family: var(--e-global-typography-6558fb1-font-family), Sans-serif;
    /* font-size: var(--e-global-typography-text-font-size); */
    /* font-size: var(--e-global-typography-6558fb1-font-size); */
    font-size: 15px;
    /* font-weight: var(--e-global-typography-6558fb1-font-weight); */
    /* text-transform: var(--e-global-typography-6558fb1-text-transform); */
    font-style: var(--e-global-typography-6558fb1-font-style);
    text-decoration: var(--e-global-typography-6558fb1-text-decoration);
    line-height: var(--e-global-typography-6558fb1-line-height);
    letter-spacing: 5px;
    font-weight: 600 !important;
    padding-bottom: 50px;
    margin-block-end: 40px;
    margin-left: 10px;

}

/* Cart page specific styling for shipping threshold message */
.woocommerce-cart .woocommerce-shipping-threshold h5 {
    font-size: 14px !important;
    padding-bottom: 30px;
    margin-block-end: 25px;
    line-height: 1.3;
    letter-spacing: 7px;
}

p.shipping-terms-display{
    color: #e27c04 !important;
}

p.shipping-terms-display bdi {
    color: #333 !important;
    font-weight: 600 !important;
}

.checkout .shipping-terms-display .message {  
    font-weight: 600 !important;
    text-align: center;
    width: 100%;
    display: block;
    font-family: var(--e-global-typography-6558fb1-font-family), Sans-serif;
}

.woocommerce-shipping-threshold h5 {
    font-size: var(--e-global-typography-6558fb1-font-size) !important;
}

.shipping-threshold-warning strong,
.checkout-shipping-threshold-warning strong {
    color: #333;
    font-weight: 600;
}

/* Free Shipping Popup Modal */
.free-shipping-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 99vw;
    height: 99vh;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.65);
    animation: fadeIn 0.3s ease;
    /* border-right: 1px solid rgba(0, 0, 0, 0.1); */
    /* border-bottom: 1px solid rgba(0, 0, 0, 0.1); */
    box-shadow: 0 4px 6px rgba(102,102,102, 0.5), 4px 0 6px rgba(102,102,102, 0.5);
}

/* Prevent body scrolling when modal is active */
body.modal-open {
    overflow: hidden;
}

/* Increase z-index for elements that should appear above modal */
body.modal-open .woocommerce-shipping-threshold h5,
body.modal-open .elementor-element.elementor-element-3fe99216.elementor-widget.elementor-widget-heading {
/* body.modal-open .elementor-heading-title.elementor-size-default { */
    /* position: relative; */
    /* z-index: 10000; */
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.free-shipping-modal-content {
    min-width: 10%;
    max-width: 400px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: fadeIn 0.3s ease;
    text-align: center;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.free-shipping-close {
    color: #aaa;
    position: absolute;
    right: 30px;
    top: 30px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.free-shipping-close:hover,
.free-shipping-close:focus {
    color: #333;
}

.free-shipping-modal-body {
    padding: 20px 20px;
    text-align: center;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #333;
}

.free-shipping-modal-body h3 {
    margin: 0;
    font-size: 14px;
    color: #333;
    font-weight: 600;
}

.free-shipping-modal-body h6 {
    font-size: 14px;
    font-weight: 400;
    color: #666;
    margin-bottom: 10px;
}

.free-shipping-modal-body p {
    font-size: 16px;
    color: #666;
    margin: 0 0 25px 0;
    line-height: 1.5;
}

#free-shipping-message {
    margin: 0;
}

#free-shipping-message strong {
    color: #e27c04;
    font-weight: 600;
    font-size: 14px;
    font-family: var(--e-global-typography-6558fb1-font-family), Sans-serif;
    display: block;
    margin-bottom: 0;
}

.free-shipping-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.free-shipping-actions .button {
    display: inline-block;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    vertical-align: middle;
    font-family: var(--e-global-typography-accent-font-family), Sans-serif  !important;
    font-size: var(--e-global-typography-accent-font-size) !important;
    font-weight: var(--e-global-typography-accent-font-weight) !important;
    text-transform: var(--e-global-typography-accent-text-transform) !important;
    font-style: var(--e-global-typography-accent-font-style) !important;
    text-decoration: var(--e-global-typography-accent-text-decoration) !important;
    line-height: var(--e-global-typography-accent-line-height) !important;
    letter-spacing: var(--e-global-typography-accent-letter-spacing) !important;
    border-style: none;
    padding: 10px 15px !important;
    /* width: var(--forms-buttons-width, auto) !important; */
    text-align: center;
    /* width: var(--checkout-button-width, auto); */
}

.continue-shopping-btn {
    background-color: #d9d9d9 !important;
    color: #666 !important;
    border: none !important;
}

.continue-shopping-btn:hover {
    background-color: #c9c9c9 !important;
}

.proceed-anyway-btn {
    background-color: #d9d9d9 !important;
    color: #666 !important;
    border: none !important;
}

.proceed-anyway-btn:hover {
    background-color: #555 !important;
    color: #fff !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .free-shipping-modal-content {
        width: 95%;
        margin: 20% auto;
    }
    
    .free-shipping-modal-body {
        padding: 20px;
    }
    
    .free-shipping-modal-body h3 {
        font-size: 20px;
    }
    
    .free-shipping-modal-body p {
        font-size: 14px;
    }
    
    .free-shipping-actions {
        flex-direction: column;
    }
    
    .free-shipping-actions .button {
        width: 25%;
    }
}

/* Additional styling for checkout warning */
.checkout-shipping-threshold-warning {
    animation: slideInDown 0.5s ease;
}

@keyframes slideInDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Main Cart Shipping Savings Message */
.cart-shipping-savings-message {
    background-color: #fff8e5;
    border-left: 4px solid #ffb900;
    border-radius: 4px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cart-shipping-savings-message strong {
    display: block;
    color: #333;
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 600;
}

.cart-shipping-savings-message p {
    color: #666;
    font-size: 15px;
    margin: 0;
    line-height: 1.5;
}

.elementor-9 .elementor-element.elementor-element-3ebc334 {
    display: none;
}
