/* ============================================================
   GeoBizz cookie consent – banner additions & settings master panel
   Matches the existing custom_cookie_* design language.
   ============================================================ */

/* ---------- banner: new action buttons row ---------- */
#cookieNotice .custom_cookie_btn_extra {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* ---------- footer settings button ---------- */
.gbc-open-btn {
    width: 42px;
    height: 42px;
    line-height: 42px;
    padding: 0;
    text-align: center;
    border-radius: 50%;
}

/* ---------- master panel ---------- */
.gbc-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, .55);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}

.gbc-overlay.open {
    opacity: 1;
    visibility: visible;
}

.gbc-overlay div.gbc-dialog {
    width: 100%;
    max-width: 560px;
    max-height: min(86vh, 720px);
    overflow-y: auto;
    border-radius: 1.5rem;
    padding: 28px 28px 22px;
    position: relative;
    transform: translateY(14px) scale(.98);
    transition: transform .25s ease;
    background-color: #fff;                 /* opaque: never bleed through */
    color: #212529;
    box-shadow: 0 1rem 3rem rgba(15, 23, 42, .35);
}

[data-bs-theme="dark"] .gbc-overlay div.gbc-dialog {
    background-color: #171d2c;
    color: #e9ecef;
}

[data-bs-theme="dark"] .gbc-cat {
    border-color: rgba(255, 255, 255, .14);
}

.gbc-overlay.open .gbc-dialog {
    transform: translateY(0) scale(1);
}

.gbc-head h5 { font-weight: 600; }

.gbc-sub {
    font-size: .875rem;
    opacity: .7;
    margin-bottom: 18px;
}

.gbc-body { margin-bottom: 6px; }

.gbc-cat {
    border: 1px solid var(--bs-border-color, rgba(0,0,0,.1));
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 10px;
}

.gbc-cat-desc {
    font-size: .8125rem;
    opacity: .7;
    margin: 4px 0 0 2.75rem;
}

.gbc-note {
    font-size: .8125rem;
    opacity: .75;
    margin: 14px 0 0;
}

.gbc-note a { color: var(--bs-primary, #6366f1); }

/* ---------- footer buttons ---------- */
.gbc-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.gbc-foot-right {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

/* ---------- close X ---------- */
.gbc-x {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    border-radius: 50%;
    opacity: .55;
}

.gbc-x:hover { opacity: 1; background: var(--bs-tertiary-bg, rgba(0,0,0,.05)); }

/* ---------- small screens ---------- */
@media (max-width: 575.98px) {
    .gbc-dialog { padding: 22px 18px 18px; }
    .gbc-foot { flex-direction: column-reverse; align-items: stretch; }
    .gbc-foot-right { margin-left: 0; }
    .gbc-foot .btn { width: 100%; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .gbc-overlay, .gbc-dialog { transition: none; }
}
