/* AFL Zone Editor Frontend Styles */

.afl-shipping-calculator {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.afl-calc-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.afl-calc-title svg {
    color: #0073aa;
}

.afl-calc-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.afl-calc-input-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.afl-country-select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    min-width: 120px;
}

.afl-postcode-input {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    flex: 1;
    min-width: 120px;
}

.afl-postcode-input:focus,
.afl-country-select:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

.afl-calc-button {
    padding: 10px 25px !important;
    background: #0073aa !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
}

.afl-calc-button:hover {
    background: #005a87 !important;
}

.afl-calc-quantity {
    padding-top: 10px;
}

.afl-calc-quantity label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.afl-calc-quantity input {
    width: 80px;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.afl-calc-result {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.afl-calc-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
}

.afl-calc-loading .spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-top-color: #0073aa;
    border-radius: 50%;
    animation: afl-spin 0.8s linear infinite;
}

@keyframes afl-spin {
    to { transform: rotate(360deg); }
}

.afl-calc-success {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.afl-calc-zone {
    font-size: 14px;
    color: #666;
}

.afl-calc-zone strong {
    color: #333;
}

.afl-calc-price {
    font-size: 20px;
    font-weight: 700;
    color: #0073aa;
}

.afl-calc-error {
    color: #dc3545;
    font-size: 14px;
    padding: 10px 15px;
    background: #fff5f5;
    border-radius: 4px;
    border: 1px solid #ffcccc;
}

/* Responsive */
@media (max-width: 480px) {
    .afl-calc-input-group {
        flex-direction: column;
    }
    
    .afl-calc-button {
        width: 100%;
    }
    
    .afl-calc-success {
        flex-direction: column;
        align-items: flex-start;
    }
}