/* ==========================================================================
   Cookie consent — banner + modal
   ========================================================================== */

.cc-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 90000;
    max-width: 760px;
    margin: 0 auto;
    padding: 18px 22px;
    background: rgba(20, 22, 26, .96);
    color: rgba(255, 255, 255, .9);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
    backdrop-filter: saturate(140%) blur(10px);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: .9rem;
    line-height: 1.5;
    transform: translateY(0);
    transition: transform .35s ease, opacity .35s ease;
}

.cc-banner.is-hidden {
    transform: translateY(140%);
    opacity: 0;
    pointer-events: none;
}

.cc-banner__inner {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.cc-banner__text {
    flex: 1 1 320px;
    min-width: 240px;
    color: rgba(255, 255, 255, .85);
}

.cc-banner__text strong {
    color: #fff;
    display: block;
    margin-bottom: 4px;
}

.cc-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
    text-decoration: none;
    font-family: inherit;
}

.cc-btn--primary {
    background: #fff;
    color: #14161a;
}
.cc-btn--primary:hover { background: #ebebe6; }

.cc-btn--ghost {
    background: transparent;
    color: rgba(255, 255, 255, .9);
    border-color: rgba(255, 255, 255, .25);
}
.cc-btn--ghost:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.cc-btn--link {
    background: transparent;
    color: rgba(255, 255, 255, .75);
    text-decoration: underline;
    padding: 9px 8px;
}
.cc-btn--link:hover { color: #fff; }

/* ==========================================================================
   Modal
   ========================================================================== */

.cc-modal {
    position: fixed;
    inset: 0;
    z-index: 90001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.cc-modal.is-open { display: flex; }

.cc-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 9, 12, .65);
    backdrop-filter: blur(4px);
}

.cc-modal__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    background: #ffffff;
    color: #14161a;
    border-radius: 16px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .35);
    padding: 28px 28px 22px;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: .92rem;
    line-height: 1.55;
}

.cc-modal__title {
    margin: 0 0 8px;
    font-size: 1.15rem;
    font-weight: 700;
}

.cc-modal__intro {
    color: #4b4f57;
    margin: 0 0 18px;
}

.cc-cat {
    border: 1px solid #e6e7ef;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 12px;
    background: #faf9f6;
}

.cc-cat__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.cc-cat__title {
    margin: 0;
    font-size: .98rem;
    font-weight: 600;
}

.cc-cat__desc {
    margin: 0;
    color: #4b4f57;
    font-size: .86rem;
}

/* Toggle */
.cc-toggle { position: relative; display: inline-block; width: 38px; height: 22px; flex-shrink: 0; }
.cc-toggle input { opacity: 0; width: 0; height: 0; }
.cc-toggle__track {
    position: absolute; inset: 0; cursor: pointer;
    background: #ccc; border-radius: 999px;
    transition: background-color .2s ease;
}
.cc-toggle__track::before {
    content: ''; position: absolute; left: 3px; top: 3px;
    width: 16px; height: 16px; border-radius: 50%;
    background: #fff; transition: transform .2s ease;
}
.cc-toggle input:checked + .cc-toggle__track { background: #14a76c; }
.cc-toggle input:checked + .cc-toggle__track::before { transform: translateX(16px); }
.cc-toggle input:disabled + .cc-toggle__track { background: #b9bcc4; opacity: .8; cursor: not-allowed; }

.cc-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.cc-modal__actions .cc-btn--primary,
.cc-modal__actions .cc-btn--ghost {
    color: #14161a;
}
.cc-modal__actions .cc-btn--primary { background: #14161a; color: #fff; }
.cc-modal__actions .cc-btn--primary:hover { background: #2f3441; }
.cc-modal__actions .cc-btn--ghost {
    background: #fff;
    border-color: #d8d9e0;
    color: #14161a;
}
.cc-modal__actions .cc-btn--ghost:hover { background: #f1f1ee; }

/* Mobile — dugmad u koloni */
@media (max-width: 640px) {
    .cc-banner { padding: 16px; }
    .cc-banner__actions { width: 100%; }
    .cc-banner__actions .cc-btn { flex: 1 1 calc(50% - 4px); }
    .cc-banner__actions .cc-btn--link { flex: 1 1 100%; }
    .cc-modal__panel { padding: 20px; }
}
