/* ZIP Price Surcharge Frontend Styles */

.zps-zip-info {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 15px;
    margin: 15px 0;
    font-size: 14px;
}

.zps-current-zip,
.zps-no-zip {
    margin: 0;
    color: #495057;
}

.zps-current-zip strong {
    color: #007cba;
    font-weight: 600;
}

.zps-change-zip,
.zps-enter-zip {
    color: #007cba;
    text-decoration: none;
    font-weight: 500;
    margin-left: 10px;
}

.zps-change-zip:hover,
.zps-enter-zip:hover {
    color: #005a87;
    text-decoration: underline;
}

/* ZIP Code Form */
.zps-zip-form {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
}

.zps-zip-form input[type="text"] {
    width: 120px;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    margin-right: 10px;
}

.zps-zip-form input[type="text"]:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.25);
}

.zps-zip-form button {
    padding: 8px 16px;
    border: 1px solid #007cba;
    border-radius: 4px;
    background: #007cba;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    margin-right: 5px;
    transition: all 0.2s ease;
}

.zps-zip-form button:hover {
    background: #005a87;
    border-color: #005a87;
}

.zps-zip-form button:disabled {
    background: #6c757d;
    border-color: #6c757d;
    cursor: not-allowed;
}

#zps-zip-cancel {
    background: #6c757d;
    border-color: #6c757d;
}

#zps-zip-cancel:hover {
    background: #545b62;
    border-color: #545b62;
}

/* Surcharge-related styling removed - surcharges applied silently */

/* Product Page Specific */
.single-product .zps-zip-info {
    margin: 20px 0;
}

/* Shop Page Specific */
.woocommerce-shop .zps-zip-info {
    margin-bottom: 20px;
}

/* Cart Page Specific */
.woocommerce-cart .zps-zip-info {
    margin-bottom: 20px;
}

/* Checkout Page Specific */
.woocommerce-checkout .zps-zip-info {
    margin-bottom: 20px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .zps-zip-info {
        padding: 12px;
        font-size: 13px;
    }
    
    .zps-zip-form {
        text-align: left;
    }
    
    .zps-zip-form input[type="text"] {
        width: 100px;
        margin-bottom: 10px;
        margin-right: 5px;
    }
    
    .zps-zip-form button {
        padding: 6px 12px;
        font-size: 13px;
        margin-bottom: 5px;
    }
    
    .zps-change-zip,
    .zps-enter-zip {
        display: block;
        margin-left: 0;
        margin-top: 5px;
    }
}

@media (max-width: 480px) {
    .zps-zip-form input[type="text"] {
        width: 90px;
        display: block;
        margin-bottom: 10px;
        margin-right: 0;
    }
    
    .zps-zip-form button {
        display: block;
        width: 100%;
        margin-bottom: 5px;
        margin-right: 0;
    }
}

/* WooCommerce Integration */
.woocommerce .zps-zip-info {
    clear: both;
}

/* Price display styling - surcharge messaging removed */

/* Loading State */
.zps-zip-form.loading input,
.zps-zip-form.loading button {
    opacity: 0.6;
    pointer-events: none;
}

/* Success/Error States */
.zps-zip-info.success {
    border-color: #28a745;
    background-color: #d4edda;
}

.zps-zip-info.error {
    border-color: #dc3545;
    background-color: #f8d7da;
}

/* Animation for form show/hide */
.zps-zip-form {
    transition: all 0.3s ease;
}

/* Focus styles for accessibility */
.zps-change-zip:focus,
.zps-enter-zip:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

.zps-zip-form button:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}
