.cookie-box,
.cookie-modal,
.cookie-settings-btn {
    font-family: "Bricolage Grotesque", sans-serif;
}

.cookie-box {
    position: fixed;
    bottom: 20px;
    left: 20px;
    max-width: 460px;
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 18px 40px rgba(0,0,0,.18);
    z-index: 99999;
    opacity: 0;
    transform: translateY(20px);
    transition: .3s ease;
    border: 1px solid rgba(15,23,42,.08);
}

.cookie-box.show {
    opacity: 1;
    transform: translateY(0);
}

.cookie-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
}

.cookie-text {
    margin: 0;
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
}

.cookie-actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #d0d7de;
    background: #fff;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    transition: .2s ease;
}

.cookie-btn:hover {
    background: #f8fafc;
}

.cookie-btn.primary {
    background: var(--primary, #111);
    color: #fff;
    border-color: var(--primary, #111);
}

.cookie-btn.primary:hover {
    filter: brightness(1.05);
}

.cookie-modal {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,.62);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    padding: 12px;
}

.cookie-modal.active {
    display: flex;
}

.cookie-modal-box {
    background: #fff;
    border-radius: 18px;
    padding: 22px;
    width: 620px;
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    overflow: auto;
    box-sizing: border-box;
    box-shadow: 0 25px 60px rgba(0,0,0,.22);
    border: 1px solid rgba(15,23,42,.08);
}

.cookie-modal-title {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
}

.cookie-modal-text {
    margin: 0 0 18px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

.cookie-category {
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 14px;
    margin-bottom: 12px;
    overflow: hidden;
    background: #fff;
}

.cookie-category-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    background: #f8fafc;
}

.cookie-category-left {
    min-width: 0;
    flex: 1 1 auto;
}

.cookie-category-title {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
}

.cookie-category-short {
    margin-top: 4px;
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

.cookie-category-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.cookie-toggle-details {
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    padding: 6px 8px;
    border-radius: 8px;
}

.cookie-toggle-details:hover {
    background: rgba(15,23,42,.06);
}

.cookie-switch {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.cookie-category-body {
    display: none;
    padding: 14px 16px 16px;
    background: #fff;
    border-top: 1px solid rgba(15,23,42,.06);
}

.cookie-category.open .cookie-category-body {
    display: block;
}

.cookie-detail-block + .cookie-detail-block {
    margin-top: 12px;
}

.cookie-detail-title {
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 5px;
}

.cookie-detail-text {
    font-size: 13px;
    line-height: 1.65;
    color: #475569;
}

.cookie-detail-list {
    margin: 6px 0 0;
    padding-left: 18px;
    color: #475569;
    font-size: 13px;
    line-height: 1.65;
}

.cookie-detail-list li + li {
    margin-top: 3px;
}

.cookie-modal-footer {
    margin-top: 16px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cookie-settings-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #111;
    color: #fff;
    padding: 9px 13px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    z-index: 9999;
    box-shadow: 0 10px 24px rgba(0,0,0,.16);
}

.cookie-settings-btn:hover {
    filter: brightness(1.05);
}

.cookie-badge-fixed {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 800;
    color: #166534;
    background: #dcfce7;
    padding: 4px 8px;
    border-radius: 999px;
}

@media (max-width: 768px) {
    .cookie-box {
        left: 12px;
        right: 12px;
        bottom: 12px;
        max-width: none;
    }

    .cookie-settings-btn {
        left: 12px;
        bottom: 12px;
    }

    .cookie-modal-box {
        width: calc(100vw - 24px);
        padding: 18px;
    }

    .cookie-category-head {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-category-actions {
        justify-content: space-between;
    }

    .cookie-modal-footer .cookie-btn {
        width: 100%;
    }
}
