/**
 * RHF Postcode Checker Styles
 */

/* Shortcode widget */
.rhf-postcode-checker {
    margin: 20px 0;
    padding: 20px;
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.rhf-postcode-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.rhf-postcode-input {
    flex: 1;
    min-width: 150px;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    text-transform: uppercase;
}

.rhf-postcode-submit {
    padding: 10px 20px;
    white-space: nowrap;
}

.rhf-postcode-result {
    margin-top: 15px;
}

/* Product page widget */
.rhf-product-delivery-checker {
    margin: 25px 0;
    padding: 20px;
    background: #f5f5f5;
    border: 2px solid #ddd;
    border-radius: 6px;
}

.rhf-product-delivery-checker h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
}

.rhf-checker-form {
    display: flex;
    gap: 10px;
}

#rhf-product-postcode {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    text-transform: uppercase;
    max-width: 200px;
}

#rhf-check-product-delivery {
    padding: 12px 20px;
}

#rhf-product-delivery-result {
    margin-top: 15px;
}

/* Result states */
.rhf-result-loading {
    color: #666;
    font-style: italic;
}

.rhf-result-success {
    color: #2e7d32;
    padding: 12px;
    background: #e8f5e9;
    border-radius: 4px;
    border-left: 4px solid #4caf50;
}

.rhf-result-error {
    color: #c62828;
    padding: 12px;
    background: #ffebee;
    border-radius: 4px;
    border-left: 4px solid #ef5350;
}

/* Quote breakdown */
.rhf-quote-breakdown {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rhf-quote-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
}

.rhf-quote-row span:last-child {
    font-weight: 500;
}

.rhf-quote-total {
    border-top: 1px solid #a5d6a7;
    padding-top: 10px;
    margin-top: 5px;
    font-weight: 600;
    font-size: 1.1em;
}

/* Responsive */
@media (max-width: 480px) {
    .rhf-postcode-form,
    .rhf-checker-form {
        flex-direction: column;
    }

    .rhf-postcode-input,
    #rhf-product-postcode {
        max-width: 100%;
    }

    .rhf-postcode-submit,
    #rhf-check-product-delivery {
        width: 100%;
    }
}
