/**
 * Greg Address Validator Styles
 *
 * Styles for address validation warnings in WooCommerce checkout
 *
 * @package Greg_Address_Validator
 * @version 1.0.0
 * @since 1.0.0
 */

/* Warning state for address field wrapper */
.woop-av-warning input,
.woop-av-warning textarea {
    border-color: #ff9800 !important;
    background-color: #fff8e1 !important;
    box-sizing: border-box;
}

/* Field hint message - displayed below address field */
.woop-av-field-hint {
    display: none;
    margin-top: 0.5em;
    padding: 0.5em 0.75em;
    background-color: #fff3cd;
    border-left: 3px solid #ff9800;
    color: #856404;
    font-size: 0.9em;
    line-height: 1.4;
    box-sizing: border-box;
}

.woop-av-field-hint.woop-av-visible {
    display: block;
}

/* Warning message above place order button */
.woop-av-checkout-warning {
    display: none;
    margin-bottom: 1.5em;
    padding: 1em;
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    color: #856404;
    font-size: 0.95em;
    line-height: 1.5;
    box-sizing: border-box;
}

.woop-av-checkout-warning.woop-av-visible {
    display: block;
}

.woop-av-checkout-warning::before {
    content: "⚠️ ";
    margin-right: 0.5em;
}

/* Anchor links in warning message */
.woop-av-warning-links {
    display: inline;
}

.woop-av-warning-links button.woop-av-anchor-link {
    color: #856404;
    text-decoration: underline;
    font-weight: 600;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font-size: inherit;
    font-family: inherit;
    line-height: inherit;
}

.woop-av-anchor-link:hover {
    color: #533f03;
    text-decoration: none;
    background: none !important;
    background-color: transparent !important;
}

.woop-av-anchor-link:focus {
    outline: 2px solid #ff9800;
    outline-offset: 2px;
}

/* Links and separator - hidden by default, shown via class */
.woop-av-link-billing,
.woop-av-link-shipping {
    display: none;
}

.woop-av-link-billing.woop-av-link-active,
.woop-av-link-shipping.woop-av-link-active {
    display: inline;
}

.woop-av-link-separator {
    display: none;
}

.woop-av-link-separator.woop-av-link-active {
    display: inline;
}

/* Responsive adjustments for mobile devices */
@media (max-width: 768px) {
    .woop-av-field-hint,
    .woop-av-checkout-warning {
        font-size: 0.85em;
        padding: 0.75em;
    }
}
