/**
 * ACF Location Finder Styles
 */


.alf-location-button:disabled,
.alf-location-button.alf-loading {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.alf-location-button.alf-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: alf-spin 1s linear infinite;
    top: 0;
    bottom: 0;
    right: 10px;
}

@keyframes alf-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive design */
@media (max-width: 768px) {
    .alf-location-button {
        width: 100%;
        padding: 14px 20px;
        font-size: 18px;
    }
}

/* Integration with popular themes */
.alf-location-button.btn {
    border: none !important;
}

.alf-location-button.elementor-button {
    background-color: inherit;
    border: inherit;
    color: inherit;
}

.alf-location-button.elementor-button:hover {
    background-color: inherit;
    opacity: 0.8;
}

/* Error states */
.alf-error-message,
.alf-dropdown-error {
    background-color: #dc3545;
    color: white;
    padding: 10px 15px;
    border-radius: 4px;
    margin: 10px 0;
    display: none;
    font-size: 14px;
}

.alf-error-message.show,
.alf-dropdown-error.show {
    display: block;
    animation: alf-fadeIn 0.3s ease-in;
}

@keyframes alf-fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Success states */
.alf-success-message {
    background-color: #28a745;
    color: white;
    padding: 10px 15px;
    border-radius: 4px;
    margin: 10px 0;
    display: none;
}

.alf-success-message.show {
    display: block;
    animation: alf-fadeIn 0.3s ease-in;
}

/* Admin styles */
.alf-admin-notice {
    background: #fff;
    border-left: 4px solid #0073aa;
    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1);
    margin: 5px 15px 2px;
    padding: 1px 12px;
}

.alf-admin-notice h3 {
    margin: 0.5em 0;
    color: #23282d;
}

.alf-admin-notice p {
    margin: 0.5em 0;
    color: #666;
}

.alf-admin-notice ul {
    margin-left: 20px;
}

.alf-admin-notice code {
    background: #f1f1f1;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: Consolas, Monaco, monospace;
}

/* Settings page specific styles */
.form-table th {
    vertical-align: top;
    padding-top: 20px;
}

.form-table .description {
    font-style: italic;
    color: #666;
}

.form-table .description a {
    color: #0073aa;
    text-decoration: none;
}

.form-table .description a:hover {
    text-decoration: underline;
}