/* Delivery Quote Widget Styles */
.delivery-quote-widget {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    max-width: 90vw;
    height: 100%;
    background-color: #fff;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 999999;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.delivery-quote-widget.open {
    right: 0;
}

.delivery-quote-widget-content {
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.delivery-quote-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.delivery-quote-widget-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
}

.close-widget {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    line-height: 1;
}

.delivery-quote-widget-body {
    flex-grow: 1;
}

.address-input-container {
    margin-bottom: 20px;
}

#widget-shipping-address {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.widget-delivery-result {
    margin-top: 20px;
    padding: 15px 0;
}

.widget-delivery-result .loading {
    text-align: center;
    padding: 15px;
    color: #666;
}

.widget-delivery-result .error {
    background-color: #fff5f5;
    border: 1px solid #ffcccc;
    color: #d8000c;
    padding: 15px;
    border-radius: 4px;
}

.widget-delivery-result .success {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 15px;
    border-radius: 4px;
}

.widget-delivery-result h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
}

.widget-actions {
    margin-top: 20px;
    text-align: center;
}

.checkout-button {
    display: inline-block;
    background-color: #7f54b3;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.checkout-button:hover {
    background-color: #6a4498;
    color: white;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .delivery-quote-widget {
        width: 100%;
        right: -100%;
    }
}

/* Trigger button styling */
.delivery-quote-trigger {
    cursor: pointer;
    text-decoration: none;
    font-weight: bold;
    font-size: 23px;
}

/* Pac container (Google Places autocomplete dropdown) */
.pac-container {
    z-index: 1000000;
}

/* Hide delivery quote trigger on checkout page */
body.woocommerce-checkout .delivery-quote-trigger {
    display: none !important;
}
