/* ═════════════════════════════════════════════════════════════════
   Cookie consent banner + modal — apex web (isidlo.sk + moduly).
   ═════════════════════════════════════════════════════════════════ */

/* ── Bottom-fixed banner ── */
.cc-banner {
    position: fixed;
    left: 16px; right: 16px; bottom: 16px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    z-index: 9998;
    animation: cc-slide-up 0.35s ease;
}
@keyframes cc-slide-up {
    from { transform: translateY(120%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.cc-banner__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
.cc-banner__icon {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fef3c7, #fbbf24);
    color: #b45309;
    display: inline-flex;
    align-items: center; justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.cc-banner__body {
    flex: 1;
    min-width: 240px;
}
.cc-banner__title {
    margin: 0 0 4px;
    font-size: 16px; font-weight: 700;
    color: #111827;
}
.cc-banner__text {
    margin: 0;
    font-size: 13px;
    color: #4b5563;
    line-height: 1.55;
}
.cc-banner__text a { color: #7c3aed; text-decoration: underline; }
.cc-banner__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ── Buttons ── */
.cc-btn {
    padding: 10px 18px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: 0.15s;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}
.cc-btn--primary {
    background: #7c3aed;
    color: #fff;
}
.cc-btn--primary:hover { background: #6d28d9; }
.cc-btn--outline {
    background: transparent;
    border: 1px solid #d1d5db;
    color: #374151;
}
.cc-btn--outline:hover { background: #f3f4f6; border-color: #9ca3af; }
.cc-btn--ghost {
    background: transparent;
    color: #6b7280;
    border: 1px solid transparent;
}
.cc-btn--ghost:hover { background: #f3f4f6; color: #374151; }

/* ── Modal (Spravovať cookies) ── */
.cc-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: cc-fade-in 0.2s ease;
}
@keyframes cc-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
.cc-modal {
    background: #fff;
    border-radius: 16px;
    max-width: 540px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
    animation: cc-modal-pop 0.25s ease;
}
@keyframes cc-modal-pop {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.cc-modal__head {
    padding: 18px 22px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.cc-modal__head h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.cc-modal__head h3 i { color: #f59e0b; }
.cc-modal__close {
    background: transparent;
    border: none;
    font-size: 24px;
    color: #9ca3af;
    cursor: pointer;
    line-height: 1;
    padding: 4px 10px;
    border-radius: 6px;
    transition: 0.15s;
}
.cc-modal__close:hover { background: #f3f4f6; color: #374151; }
.cc-modal__body {
    padding: 20px 22px;
    overflow-y: auto;
    flex: 1;
}
.cc-modal__intro {
    margin: 0 0 20px;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.55;
}
.cc-modal__foot {
    padding: 16px 22px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    flex-wrap: wrap;
    background: #fafafa;
}

/* ── Category card ── */
.cc-cat {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 10px;
    transition: 0.15s;
}
.cc-cat:hover { border-color: #c4b5fd; }
.cc-cat__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}
.cc-cat__name {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.cc-cat__name i { color: #7c3aed; font-size: 14px; }
.cc-cat__desc {
    margin: 0;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
}

/* ── Toggle switch ── */
.cc-switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 24px;
    flex-shrink: 0;
}
.cc-switch input {
    opacity: 0;
    width: 0; height: 0;
    pointer-events: none;
}
.cc-switch__slider {
    position: absolute;
    inset: 0;
    background: #d1d5db;
    border-radius: 24px;
    cursor: pointer;
    transition: 0.2s;
}
.cc-switch__slider::before {
    content: '';
    position: absolute;
    width: 18px; height: 18px;
    left: 3px; top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.cc-switch input:checked + .cc-switch__slider { background: #7c3aed; }
.cc-switch input:checked + .cc-switch__slider::before { transform: translateX(18px); }
.cc-switch input:focus-visible + .cc-switch__slider { box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.25); }

.cc-toggle--locked {
    font-size: 11px;
    color: #16a34a;
    font-weight: 700;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 5px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ── Mobile ── */
@media (max-width: 640px) {
    .cc-banner__inner { padding: 16px; gap: 14px; }
    .cc-banner__icon { width: 40px; height: 40px; font-size: 18px; }
    .cc-banner__actions { width: 100%; }
    .cc-banner__actions .cc-btn { flex: 1 1 auto; padding: 12px 10px; }
    .cc-modal__foot { justify-content: stretch; }
    .cc-modal__foot .cc-btn { flex: 1 1 auto; }
}
