/* Asign Cookie Consent Bar */

/* ── Bar ── */
#acc-bar {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 99999;
    padding: 0;
    font-family: "Inter", -apple-system, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}
#acc-bar.acc-bar--bottom { bottom: 0; }
#acc-bar.acc-bar--top    { top: 0; }

#acc-bar[hidden] { display: none !important; }

.acc-bar__inner {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    background: #ffffff;
    border-top: 1px solid rgba(146, 95, 255, 0.15);
    box-shadow: 0 -4px 24px rgba(20, 10, 62, 0.10);
}
.acc-bar--top .acc-bar__inner {
    border-top: none;
    border-bottom: 1px solid rgba(146, 95, 255, 0.15);
    box-shadow: 0 4px 24px rgba(20, 10, 62, 0.10);
}

.acc-bar__icon {
    font-size: 22px;
    flex-shrink: 0;
}

.acc-bar__text {
    flex: 1;
    margin: 0;
    color: #4a4469;
    min-width: 200px;
}

.acc-bar__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

/* ── Buttons ── */
.acc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 20px;
    border-radius: 100px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background 0.15s, color 0.15s, border-color 0.15s, opacity 0.15s;
    white-space: nowrap;
    text-decoration: none;
}
.acc-btn--primary {
    background: #925fff;
    color: #ffffff;
    border-color: #925fff;
}
.acc-btn--primary:hover {
    background: #7b4de0;
    border-color: #7b4de0;
}
.acc-btn--outline {
    background: transparent;
    color: #925fff;
    border-color: #925fff;
}
.acc-btn--outline:hover {
    background: rgba(146, 95, 255, 0.08);
}
.acc-btn--ghost {
    background: transparent;
    color: #6b6389;
    border-color: transparent;
    padding-left: 8px;
    padding-right: 8px;
}
.acc-btn--ghost:hover {
    color: #925fff;
    text-decoration: underline;
}

/* ── Slide-in animation ── */
@keyframes acc-slide-up   { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes acc-slide-down { from { transform: translateY(-100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.acc-bar--bottom.acc-visible { animation: acc-slide-up   0.3s ease forwards; }
.acc-bar--top.acc-visible    { animation: acc-slide-down 0.3s ease forwards; }

/* ── Modal ── */
#acc-modal[hidden] { display: none !important; }
.acc-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    font-family: "Inter", -apple-system, sans-serif;
}
.acc-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 10, 62, 0.55);
    backdrop-filter: blur(3px);
}
.acc-modal__box {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    padding: 36px 32px 28px;
    max-width: 520px;
    width: 100%;
    box-shadow: 0 24px 60px rgba(20, 10, 62, 0.22);
    max-height: 90vh;
    overflow-y: auto;
}
.acc-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #6b6389;
    padding: 4px 8px;
    border-radius: 6px;
    line-height: 1;
}
.acc-modal__close:hover { color: #140a3e; background: #f0ebff; }
.acc-modal__title {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 600;
    color: #140a3e;
    letter-spacing: -0.3px;
}
.acc-modal__desc {
    margin: 0 0 24px;
    color: #4a4469;
    font-size: 14px;
    line-height: 1.6;
}

/* ── Category rows ── */
.acc-modal__categories { display: flex; flex-direction: column; gap: 2px; margin-bottom: 28px; }
.acc-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(146, 95, 255, 0.1);
}
.acc-category:last-child { border-bottom: none; }
.acc-category__info { flex: 1; }
.acc-category__info strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #140a3e;
    margin-bottom: 2px;
}
.acc-category__info span {
    font-size: 12px;
    color: #6b6389;
    line-height: 1.4;
}
.acc-category--required .acc-toggle--locked {
    font-size: 11px;
    font-weight: 600;
    color: #925fff;
    background: rgba(146, 95, 255, 0.1);
    border-radius: 100px;
    padding: 4px 10px;
    white-space: nowrap;
}

/* ── Toggle switch ── */
.acc-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    flex-shrink: 0;
}
.acc-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.acc-toggle__track {
    width: 44px;
    height: 24px;
    background: #d5cfe8;
    border-radius: 100px;
    transition: background 0.2s;
    position: relative;
}
.acc-toggle input:checked + .acc-toggle__track { background: #925fff; }
.acc-toggle__thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.acc-toggle input:checked + .acc-toggle__track .acc-toggle__thumb { transform: translateX(20px); }

.acc-modal__footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .acc-bar__inner { flex-direction: column; align-items: flex-start; gap: 12px; }
    .acc-bar__actions { width: 100%; }
    .acc-btn { flex: 1; justify-content: center; }
    .acc-modal__box { padding: 28px 20px 24px; }
    .acc-modal__footer { flex-direction: column; }
    .acc-modal__footer .acc-btn { width: 100%; justify-content: center; }
}
