/* Address Verification Styles */

.address-verification-container {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f9f9f9;
}

.box-tocart-fresh-product {
    margin-bottom: 15px;
}

.address-verification-result {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
}

.address-verification-result .message {
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 3px;
}

.address-verification-result .message.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.address-verification-result .message.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.address-verification-result .message.info {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.address-details {
    margin: 10px 0;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.address-details dt {
    font-weight: bold;
    color: #333;
    margin-top: 5px;
}

.address-details dd {
    margin-left: 0;
    margin-bottom: 5px;
    color: #666;
}

.city-selection-container {
    margin-top: 10px;
}

.city-selection-container .field {
    margin-top: 10px;
}

.city-selection {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 14px;
}

/* Product styling for unavailable delivery */
.product-item.delivery-unavailable {
    opacity: 0.6;
    position: relative;
}

.product-item.delivery-unavailable::after {
    content: "Consegna non disponibile";
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #dc3545;
    color: white;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
}

/* Disabled buttons */
.action.primary.tocart:disabled,
.action.primary.checkout:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Address input note */
.address-input-note {
    margin-top: 5px;
    font-style: italic;
}

/* Validation styles */
.input-text.validation-failed {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Loading state */
.address-verification-container.loading {
    position: relative;
}

.address-verification-container.loading::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 10;
}

/* Responsive design */
@media (max-width: 768px) {
    .address-verification-container {
        padding: 10px;
    }
    
    .address-details {
        padding: 8px;
    }
    
    .city-selection {
        font-size: 16px; /* Prevent zoom on iOS */
    }
} 