/* ══ Wrapper ══ */
#eu-cookie-banner { font-family: 'Open Sans', Arial, sans-serif; }

/* ══ Overlay ══ */
.euc-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.6); z-index: 99998;
}

/* ══ PRVÝ BANNER – centrovaný panel ══ */
.euc-first {
    position: fixed; inset: 0; z-index: 99999;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.euc-first-inner {
    background: #fff; border-radius: 10px;
    box-shadow: 0 10px 48px rgba(0,0,0,.22);
    padding: 36px 40px 32px;
    max-width: 520px; width: 100%;
    text-align: center;
    position: relative; z-index: 1;
}
.euc-first-icon {
    width: 60px; height: 60px; border-radius: 50%;
    background: #FFA500; color: #fff; font-size: 26px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 18px;
}
.euc-first-inner h3 {
    font-size: 20px; font-weight: 800; color: #1a1a2e;
    margin: 0 0 14px;
}
.euc-first-inner p {
    font-size: 14px; color: #666; line-height: 1.7;
    margin: 0 0 26px;
}
.euc-first-inner p a { color: #FFA500; text-decoration: underline; }
.euc-first-buttons {
    display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
}

/* ══ Buttons ══ */
.euc-btn {
    padding: 11px 22px; border-radius: 4px; border: none; cursor: pointer;
    font-size: 14px; font-weight: 700; font-family: inherit;
    transition: background .18s, transform .12s;
    white-space: nowrap; line-height: 1.4;
}
.euc-btn:hover { transform: translateY(-1px); }
.euc-btn-accept { background: #FFA500 !important; color: #fff !important; border: none !important; }
.euc-btn-accept:hover { background: #e09400 !important; }
.euc-btn-reject {
    background: transparent !important;
    border: 1px solid #ddd !important;
    color: #555 !important;
}
.euc-btn-reject:hover { border-color: #aaa !important; color: #333 !important; }
.euc-btn-reject-modal { color: #555 !important; border-color: #ccc !important; }
.euc-btn-reject-modal:hover { color: #333 !important; border-color: #999 !important; }
.euc-btn-settings {
    background: #1a1a2e !important; color: #fff !important; border: none !important;
}
.euc-btn-settings:hover { background: #0f3460 !important; }
.euc-btn-save {
    background: #1a1a2e !important; color: #fff !important;
    border: 1px solid transparent !important;
}
.euc-btn-save:hover { background: #0f3460 !important; }

/* ══ Settings Modal ══ */
.euc-modal {
    position: fixed; inset: 0; z-index: 100000;
    display: flex; align-items: center; justify-content: center; padding: 20px;
}
.euc-modal-inner {
    background: #fff; border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0,0,0,.28);
    width: 100%; max-width: 560px;
    max-height: 88vh; overflow-y: auto;
    display: flex; flex-direction: column;
}
.euc-modal-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 26px 16px; border-bottom: 1px solid #eee;
    position: sticky; top: 0; background: #fff; z-index: 1;
}
.euc-modal-header h2 { font-size: 17px; font-weight: 800; color: #1a1a2e; margin: 0; }
.euc-modal-close {
    background: none !important; border: none !important;
    font-size: 28px; color: #bbb; cursor: pointer;
    line-height: 1; padding: 0 4px; font-weight: 300;
}
.euc-modal-close:hover { color: #333; }
.euc-modal-body { padding: 20px 26px; flex: 1; }
.euc-modal-footer {
    display: flex; flex-direction: column; gap: 10px;
    padding: 14px 26px 20px; border-top: 1px solid #eee;
    position: sticky; bottom: 0; background: #fff;
}
.euc-footer-buttons {
    display: flex; gap: 10px; justify-content: flex-end; flex-wrap: nowrap;
}

/* Vymazať súhlasy */
.euc-btn-reset {
    background: none !important; border: none !important;
    color: #ccc; font-size: 13px; cursor: pointer;
    padding: 6px 2px; font-family: inherit;
    transition: color .18s; white-space: nowrap;
}
.euc-btn-reset:hover { color: #e53935; }

/* ══ Categories ══ */
.euc-category {
    border: 1px solid #eee; border-radius: 6px;
    padding: 14px 16px; margin-bottom: 12px;
}
.euc-cat-header {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px;
}
.euc-cat-header strong { font-size: 14px; color: #1a1a2e; }
.euc-cat-desc { font-size: 13px; color: #777; line-height: 1.5; margin: 0; }
.euc-cat-desc em { font-size: 12px; color: #aaa; }

.euc-badge {
    display: inline-block; font-size: 11px; font-weight: 600;
    padding: 2px 8px; border-radius: 20px; margin-left: 8px; vertical-align: middle;
}
.euc-badge-always { background: #e8f5e9; color: #2e7d32; }
.euc-badge:not(.euc-badge-always) { background: #f3f3f3; color: #888; }

/* ══ Toggle ══ */
.euc-toggle {
    position: relative; width: 48px; height: 28px; flex-shrink: 0;
    background: #ccc; border-radius: 28px;
    cursor: pointer; transition: background .22s; outline: none;
}
.euc-toggle:focus-visible { box-shadow: 0 0 0 3px rgba(255,165,0,.4); }
.euc-toggle-knob {
    position: absolute; top: 4px; left: 4px;
    width: 20px; height: 20px; border-radius: 50%;
    background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25);
    transition: transform .22s; pointer-events: none;
}
.euc-toggle.euc-toggle-on { background: #FFA500; }
.euc-toggle.euc-toggle-on .euc-toggle-knob { transform: translateX(20px); }
.euc-toggle.euc-toggle-locked { background: #4caf50; cursor: default; opacity: .7; }
.euc-toggle.euc-toggle-locked .euc-toggle-knob { transform: translateX(20px); }

/* ══ Reopen button ══ */
#euc-reopen-btn {
    position: fixed; bottom: 18px; left: 18px; z-index: 9990;
    background: #1a1a2e; color: #FFA500;
    border: none !important; border-radius: 50%;
    width: 46px; height: 46px; font-size: 18px; cursor: pointer;
    display: none; align-items: center; justify-content: center;
    box-shadow: 0 3px 14px rgba(0,0,0,.35);
    transition: transform .18s;
}
#euc-reopen-btn:hover { transform: scale(1.12); }

@media (max-width: 520px) {
    .euc-first-inner { padding: 28px 20px 24px; }
    .euc-first-buttons { flex-direction: column; }
    .euc-first-buttons .euc-btn { width: 100%; text-align: center; }
    .euc-footer-buttons { flex-wrap: wrap; justify-content: stretch; }
    .euc-footer-buttons .euc-btn { flex: 1; text-align: center; }
    .euc-btn-reset { text-align: center; }
}
