/* hwv.ro cookie consent — banner + settings dialog (see partials/consent.blade.php). */
.hwv-cc-banner, .hwv-cc-dialog { font-family: Montserrat, sans-serif; color: #1b1b1b; font-size: 15px; line-height: 1.5; }
.hwv-consent-set .hwv-cc-banner { display: none !important; }

.hwv-cc-banner {
    position: fixed; z-index: 10000; left: 16px; right: 16px; bottom: 16px;
    max-width: 980px; margin: 0 auto; background: #fff; border-radius: 14px;
    box-shadow: 0 8px 32px rgba(18, 52, 88, .28); border-top: 4px solid #e5ba49;
}
.hwv-cc-banner[hidden] { display: none; }
.hwv-cc-inner { padding: 18px 20px; }
.hwv-cc-title { font-size: 18px; font-weight: 700; color: #123458; margin: 0 0 6px; }
.hwv-cc-text { margin: 0 0 12px; }
.hwv-cc-banner a, .hwv-cc-dialog a { color: #123458; text-decoration: underline; font-weight: 600; }
.hwv-cc-gpc { font-size: 13px; color: #5c6470; margin: 0 0 12px; }

.hwv-cc-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
/* Accept and Reject look exactly the same: no nudging (EDPB 03/2022) */
.hwv-cc-btn {
    font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; min-height: 44px; padding: 10px 22px;
    border-radius: 30px; border: 2px solid #123458; background: #123458; color: #fff;
}
.hwv-cc-btn:hover { background: #0c2540; border-color: #0c2540; }
.hwv-cc-btn-link { background: #fff; color: #123458; }
.hwv-cc-btn-link:hover { background: #f1f4f8; }
.hwv-cc-btn:focus-visible, .hwv-cc-close:focus-visible, .hwv-cc-switch input:focus-visible + span, .hwv-cc-dialog summary:focus-visible {
    outline: 3px solid #e5ba49; outline-offset: 2px;
}

.hwv-cc-dialog {
    width: min(720px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 0;
    border-radius: 14px; box-shadow: 0 12px 48px rgba(0, 0, 0, .35);
}
.hwv-cc-dialog::backdrop { background: rgba(10, 25, 45, .55); }
.hwv-cc-form { display: flex; flex-direction: column; max-height: calc(100vh - 24px); }
.hwv-cc-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid #e6e8ec; }
.hwv-cc-head .hwv-cc-title { margin: 0; }
.hwv-cc-close { font-size: 28px; line-height: 1; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; color: #123458; border-radius: 22px; }
.hwv-cc-body { padding: 16px 20px; overflow-y: auto; }
.hwv-cc-body > p { margin: 0 0 12px; }
.hwv-cc-dialog .hwv-cc-actions { padding: 14px 20px; border-top: 1px solid #e6e8ec; }

.hwv-cc-category { border: 1px solid #e6e8ec; border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; }
.hwv-cc-category-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.hwv-cc-category h3 { font-size: 16px; font-weight: 700; color: #123458; margin: 0; }
.hwv-cc-category p { margin: 6px 0; font-size: 14px; }
.hwv-cc-always { font-size: 13px; font-weight: 700; color: #1f7a3f; }
.hwv-cc-dialog summary { cursor: pointer; font-size: 13px; font-weight: 600; color: #123458; padding: 4px 0; }

.hwv-cc-switch { position: relative; display: inline-block; width: 52px; height: 30px; flex: none; }
.hwv-cc-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.hwv-cc-switch span { position: absolute; inset: 0; background: #b8bec7; border-radius: 30px; transition: background .2s; }
.hwv-cc-switch span::before { content: ""; position: absolute; width: 24px; height: 24px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .2s; }
.hwv-cc-switch input:checked + span { background: #123458; }
.hwv-cc-switch input:checked + span::before { transform: translateX(22px); }

.hwv-cc-table-wrap { overflow-x: auto; }
.hwv-cc-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 6px; }
.hwv-cc-table th, .hwv-cc-table td { text-align: left; vertical-align: top; padding: 6px 8px; border-bottom: 1px solid #e6e8ec; }
.hwv-cc-table th { background: #f5f6f8; color: #123458; }
.hwv-cc-table code { font-size: 12px; color: #123458; background: none; padding: 0; white-space: nowrap; }

.hwv-cc-status { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 10001; background: #123458; color: #fff; border-radius: 20px; padding: 0; font-family: Montserrat, sans-serif; font-size: 14px; }
.hwv-cc-status:not(:empty) { padding: 8px 18px; }

/* cookie policy page */
.cookie-policy h2 { font-size: 20px; font-weight: 700; color: #123458; margin: 28px 0 10px; }
.cookie-policy p, .cookie-policy li { margin-bottom: 8px; }
.cookie-policy ul { list-style: disc; margin-left: 22px; }
.cookie-policy .hwv-cc-table { font-size: 14px; }

@media (max-width: 600px) {
    .hwv-cc-banner { left: 8px; right: 8px; bottom: 8px; max-height: 70vh; overflow-y: auto; }
    .hwv-cc-inner { padding: 14px; }
    .hwv-cc-title { font-size: 16px; }
    .hwv-cc-text { font-size: 13px; line-height: 1.45; }
    /* Reject and Accept side by side, same size; "choose" below */
    .hwv-cc-actions .hwv-cc-btn { flex: 1 1 40%; min-height: 44px; padding: 8px 12px; }
    .hwv-cc-actions .hwv-cc-btn-link { order: 3; flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { .hwv-cc-switch span, .hwv-cc-switch span::before { transition: none; } }
