/* GDPR Suglasnost – public styles
   Zero external dependencies, ~3KB minified */

/* ─── Banner ──────────────────────────────────────────────────────────────── */
.gs-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: var(--gs-bg, #1a1a1a);
    color: var(--gs-text, #ffffff);
    box-shadow: 0 -4px 24px rgba(0,0,0,.25);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    animation: gs-slide-up .25s ease;
}

.gs-banner[hidden] { display: none; }

@keyframes gs-slide-up {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);   opacity: 1; }
}

.gs-banner__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 24px;
}

.gs-banner__text {
    flex: 1 1 300px;
    margin: 0;
    opacity: .9;
}

.gs-banner__text a {
    color: var(--gs-accent, #2563eb);
    text-decoration: underline;
}

/* ─── Category checkboxes ─────────────────────────────────────────────────── */
.gs-banner__categories {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.gs-check {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.gs-check input[type="checkbox"] {
    accent-color: var(--gs-accent, #2563eb);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.gs-check input[disabled] {
    cursor: not-allowed;
    opacity: .6;
}

/* ─── Action buttons ──────────────────────────────────────────────────────── */
.gs-banner__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.gs-btn {
    padding: 8px 18px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: opacity .15s, background .15s;
    white-space: nowrap;
}

.gs-btn--primary {
    background: var(--gs-accent, #2563eb);
    color: #fff;
    border-color: var(--gs-accent, #2563eb);
}

.gs-btn--primary:hover { opacity: .88; }

.gs-btn--outline {
    background: transparent;
    color: var(--gs-text, #ffffff);
    border-color: rgba(255,255,255,.35);
}

.gs-btn--outline:hover {
    border-color: rgba(255,255,255,.65);
    background: rgba(255,255,255,.08);
}

/* ─── Reopen button ───────────────────────────────────────────────────────── */
.gs-reopen {
    position: fixed;
    bottom: 16px;
    left: 16px;
    z-index: 99998;
    background: var(--gs-bg, #1a1a1a);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,.3);
    transition: transform .2s;
    display: none; /* shown by JS after consent given */
}

.gs-reopen:hover { transform: scale(1.1); }
.gs-reopen.is-visible { display: flex; align-items: center; justify-content: center; }

/* ─── Preference center (shortcode) ──────────────────────────────────────── */
.gs-preferences-center {
    background: #f9f9f9;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    padding: 24px;
    max-width: 600px;
}

.gs-preferences-center h3 {
    margin-top: 0;
}

.gs-pref-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
}

.gs-pref-row:last-of-type { border-bottom: none; }

.gs-pref-info { flex: 1; }
.gs-pref-info strong { display: block; margin-bottom: 4px; }
.gs-pref-info p { margin: 0; font-size: 13px; color: #666; }

/* Toggle switch */
.gs-toggle { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.gs-toggle input { opacity: 0; width: 0; height: 0; }
.gs-slider {
    position: absolute; inset: 0;
    background: #ccc;
    border-radius: 24px;
    cursor: pointer;
    transition: background .2s;
}
.gs-slider:before {
    content: '';
    position: absolute;
    width: 18px; height: 18px;
    left: 3px; bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform .2s;
}
.gs-toggle input:checked + .gs-slider { background: var(--gs-accent, #2563eb); }
.gs-toggle input:checked + .gs-slider:before { transform: translateX(20px); }
.gs-toggle--disabled { opacity: .55; cursor: not-allowed; }
.gs-toggle--disabled .gs-slider { cursor: not-allowed; }

.gs-pref-actions { margin-top: 16px; }
.gs-pref-status { font-size: 13px; color: green; margin-top: 8px; min-height: 1.4em; }

/* ─── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .gs-banner__inner { flex-direction: column; align-items: flex-start; }
    .gs-banner__actions { width: 100%; }
    .gs-btn { flex: 1; text-align: center; }
}
