/* =========================================================
   Herroepingsrecht Plugin – Frontend Styles
   ========================================================= */

/* ---- Thank-you page section ---- */
.herroepingsrecht-thankyou {
    margin: 2em 0;
}

.herroepingsrecht-thankyou .woocommerce-order-herroepingsrecht__title {
    margin: 0 0 0.6em !important;
    font-size: 1.1em !important;
}

.herroepingsrecht-thankyou p {
    margin: 0 0 0.8em !important;
}

/* ---- Status labels ---- */
.herroepingsrecht-label {
    display: inline-block;
    font-size: 0.82em;
    line-height: 1.4;
    max-width: 280px;
    vertical-align: middle;
    border-radius: 4px;
    padding: 5px 9px;
}

.herroepingsrecht-expired {
    color: #6b7280;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
}

.herroepingsrecht-done {
    color: #374151;
    background: #fef3c7;
    border: 1px solid #fcd34d;
}

/* ---- Active trigger button ---- */
button.herroepingsrecht-btn-trigger {
    background-color: #2563eb !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 6px 13px !important;
    font-size: 0.85em !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background-color 0.18s ease !important;
    line-height: 1.4 !important;
}

button.herroepingsrecht-btn-trigger:hover {
    background-color: #1d4ed8 !important;
}

/* ---- Modal overlay ---- */
.herroepingsrecht-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    transition: background 0.2s ease;
    box-sizing: border-box;
}

.herroepingsrecht-overlay.is-visible {
    background: rgba(0, 0, 0, 0.55);
}

/* ---- Modal box ---- */
.herroepingsrecht-box {
    background: #fff;
    border-radius: 8px;
    padding: 32px 28px 24px;
    max-width: 520px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.herroepingsrecht-overlay.is-visible .herroepingsrecht-box {
    opacity: 1;
    transform: translateY(0);
}

.herroepingsrecht-box h2 {
    margin: 0 0 14px !important;
    font-size: 1.15em !important;
    color: #111827 !important;
}

.herroepingsrecht-box > p {
    color: #374151 !important;
    line-height: 1.6 !important;
    margin: 0 0 22px !important;
}

/* ---- Close (×) button ---- */
.herroepingsrecht-close {
    position: absolute !important;
    top: 12px !important;
    right: 16px !important;
    background: none !important;
    border: none !important;
    font-size: 1.5em !important;
    line-height: 1 !important;
    cursor: pointer !important;
    color: #9ca3af !important;
    padding: 0 !important;
    transition: color 0.15s !important;
}

.herroepingsrecht-close:hover {
    color: #111827 !important;
}

/* ---- Modal action buttons ---- */
.herroepingsrecht-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.herroepingsrecht-btn-confirm {
    background-color: #dc2626 !important;
    color: #fff !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background-color 0.18s ease !important;
}

.herroepingsrecht-btn-confirm:hover:not(:disabled) {
    background-color: #b91c1c !important;
}

.herroepingsrecht-btn-confirm:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
}

.herroepingsrecht-btn-cancel {
    background-color: #f3f4f6 !important;
    color: #374151 !important;
    border: 1px solid #d1d5db !important;
    padding: 10px 20px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
}

.herroepingsrecht-btn-cancel:hover {
    background-color: #e5e7eb !important;
}

/* ---- Inline feedback ---- */
.herroepingsrecht-feedback {
    margin-top: 14px !important;
    padding: 9px 13px !important;
    border-radius: 4px !important;
    font-size: 0.9em !important;
    line-height: 1.5 !important;
}

.herroepingsrecht-feedback.hr-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.herroepingsrecht-feedback.hr-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}
