/* CSV County Reports - public styles */

.csvcr-buy-form {
    max-width: 480px;
    margin: 1.5em 0;
    padding: 1.5em;
    border: 1px solid #e2e4e9;
    border-radius: 8px;
    background: #fff;
    font-family: inherit;
}

.csvcr-price {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 1.25em;
    padding-bottom: 1em;
    border-bottom: 1px solid #f0f1f4;
}
.csvcr-price-label { color: #666; font-size: 0.95em; }
.csvcr-price-value { color: #111; font-size: 1.5em; font-weight: 700; }

.csvcr-field { margin-bottom: 1em; }
.csvcr-field label {
    display: block;
    margin-bottom: 0.4em;
    font-weight: 600;
    font-size: 0.9em;
    color: #333;
}
.csvcr-field select {
    width: 100%;
    padding: 0.6em 0.75em;
    font-size: 1em;
    border: 1px solid #cfd2d8;
    border-radius: 4px;
    background: #fff;
    box-sizing: border-box;
}
.csvcr-field select:disabled {
    background: #f5f6f8;
    color: #888;
    cursor: not-allowed;
}
.csvcr-field select:focus {
    border-color: #2271b1;
    outline: 2px solid rgba(34,113,177,0.25);
    outline-offset: 0;
}

.csvcr-actions { margin-top: 1.25em; }
.csvcr-buy-btn {
    width: 100%;
    padding: 0.85em 1em;
    font-size: 1em;
    font-weight: 600;
    color: #fff;
    background: #2271b1;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s, opacity 0.15s;
}
.csvcr-buy-btn:hover:not(:disabled) { background: #135e96; }
.csvcr-buy-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #6c7480;
}

.csvcr-message {
    margin-top: 1em;
    min-height: 1.5em;
    font-size: 0.9em;
    color: #d63638;
}

/* Modal */
.csvcr-modal {
    position: fixed;
    inset: 0;
    background: rgba(20, 24, 30, 0.6);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: csvcr-fade-in 0.2s ease;
}
.csvcr-modal[hidden] { display: none; }
.csvcr-modal-inner {
    background: #fff;
    padding: 2.5em 2em;
    border-radius: 10px;
    text-align: center;
    max-width: 380px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
.csvcr-modal-title {
    margin: 0 0 0.5em;
    font-size: 1.15em;
    color: #111;
}
.csvcr-modal-status {
    margin: 0;
    color: #555;
    font-size: 0.9em;
}
.csvcr-spinner {
    width: 44px;
    height: 44px;
    margin: 0 auto 1.25em;
    border: 4px solid #e2e4e9;
    border-top-color: #2271b1;
    border-radius: 50%;
    animation: csvcr-spin 0.9s linear infinite;
}
@keyframes csvcr-spin { to { transform: rotate(360deg); } }
@keyframes csvcr-fade-in { from { opacity: 0; } to { opacity: 1; } }

/* My reports list */
.csvcr-my-reports { margin: 1em 0; }
.csvcr-reports-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.csvcr-report-item {
    padding: 1em 1.25em;
    border: 1px solid #e2e4e9;
    border-radius: 6px;
    margin-bottom: 0.75em;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}
.csvcr-report-title { font-weight: 600; color: #111; font-size: 1.05em; }
.csvcr-status-pending { color: #b26b00; font-size: 0.9em; line-height: 1.5; }
.csvcr-status-pending small { color: #8a5a13; }
.csvcr-status-ready a { color: #2271b1; font-weight: 600; text-decoration: none; }
.csvcr-status-ready a:hover { text-decoration: underline; }
.csvcr-report-download { margin-top: 0.25em; }
.csvcr-report-item.is-pending { background: #fff8ec; border-color: #f0d9a0; }
.csvcr-report-item.is-ready   { background: #fff; }
