/* Cookie consent — баннер и модалка настроек (goldkapriz.by) */
.cc-banner,
.cc-modal-overlay {
    --cc-accent: #A78C55;
    --cc-accent-hover: #C1A263;
    --cc-dark: #1D2629;
    --cc-light: #fff;
    font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
}

.cc-banner *,
.cc-modal-overlay * {
    box-sizing: border-box;
}

/* ---------- Баннер ---------- */
.cc-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9998;
    background: var(--cc-dark);
    color: var(--cc-light);
    padding: 24px 20px;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, .25);
}

.cc-banner__inner {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 32px;
}

.cc-banner__text {
    flex: 1 1 480px;
    min-width: 0;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.cc-banner__text a {
    color: var(--cc-accent-hover);
    text-decoration: underline;
}

.cc-banner__actions {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ---------- Кнопки ---------- */
.cc-btn {
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .02em;
    padding: 12px 22px;
    border-radius: 2px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
    white-space: nowrap;
    line-height: 1;
}

.cc-btn--primary {
    background: var(--cc-accent);
    color: var(--cc-dark);
    border-color: var(--cc-accent);
}

.cc-btn--primary:hover {
    background: var(--cc-accent-hover);
    border-color: var(--cc-accent-hover);
}

.cc-btn--outline {
    background: transparent;
    color: var(--cc-light);
    border-color: rgba(255, 255, 255, .4);
}

.cc-btn--outline:hover {
    border-color: var(--cc-accent-hover);
    color: var(--cc-accent-hover);
}

.cc-btn--ghost {
    background: transparent;
    color: var(--cc-accent-hover);
    border-color: var(--cc-accent-hover);
}

.cc-btn--ghost:hover {
    background: var(--cc-accent-hover);
    color: var(--cc-dark);
}

/* ---------- Модалка настроек ---------- */
.cc-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(29, 38, 41, .55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cc-modal {
    background: var(--cc-light);
    color: var(--cc-dark);
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 6px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
}

.cc-modal__title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 20px;
}

.cc-cat {
    padding: 18px 0;
    border-top: 1px solid #ece8dd;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.cc-cat:first-of-type {
    border-top: none;
}

.cc-cat__info {
    flex: 1 1 auto;
    min-width: 0;
}

.cc-cat__name {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 4px;
}

.cc-cat__desc {
    font-size: 13px;
    line-height: 1.5;
    color: #6b7375;
    margin: 0;
}

/* Тумблер */
.cc-switch {
    flex: 0 0 auto;
    position: relative;
    width: 48px;
    height: 26px;
    display: inline-block;
}

.cc-switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.cc-switch__track {
    position: absolute;
    inset: 0;
    background: #cfd3d2;
    border-radius: 999px;
    transition: background-color .2s ease;
}

.cc-switch__track::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: transform .2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}

.cc-switch input:checked + .cc-switch__track {
    background: var(--cc-accent);
}

.cc-switch input:checked + .cc-switch__track::before {
    transform: translateX(22px);
}

.cc-switch input:disabled + .cc-switch__track {
    background: var(--cc-accent-hover);
    opacity: .7;
    cursor: not-allowed;
}

.cc-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.cc-modal__actions .cc-btn--ghost {
    color: var(--cc-dark);
    border-color: #cfd3d2;
}

.cc-modal__actions .cc-btn--ghost:hover {
    background: #ece8dd;
    color: var(--cc-dark);
    border-color: #ece8dd;
}

.cc-hidden {
    display: none !important;
}

/* ---------- Адаптив ---------- */
@media (max-width: 768px) {
    .cc-banner {
        padding: 18px 16px;
    }

    .cc-banner__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .cc-banner__actions {
        flex-direction: column;
    }

    .cc-btn {
        width: 100%;
        text-align: center;
        padding: 14px 22px;
    }

    .cc-modal {
        padding: 24px 20px;
    }

    .cc-modal__actions {
        flex-direction: column;
    }
}
