.cookie-consent {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 9998;
    width: min(560px, calc(100vw - 40px));
    color: #ffffff;
    background: rgba(5, 5, 5, 0.96);
    border: 1px solid rgba(176, 141, 68, 0.35);
    border-radius: 8px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
    padding: 18px;
    font-family: Montserrat, Arial, sans-serif;
}

.cookie-consent[hidden],
.cookie-modal[hidden] {
    display: none !important;
}

.cookie-consent__title {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 6px;
}

.cookie-consent__text {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.82rem;
    line-height: 1.55;
    margin: 0;
}

.cookie-consent__text a,
.cookie-modal a {
    color: #B08D44;
    text-decoration: none;
}

.cookie-consent__text a:hover,
.cookie-modal a:hover {
    color: #C9A55A;
}

.cookie-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.cookie-btn {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
    font: 700 0.72rem/1 Montserrat, Arial, sans-serif;
    letter-spacing: 1px;
    padding: 11px 16px;
    text-transform: uppercase;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.cookie-btn:hover {
    border-color: #B08D44;
    color: #C9A55A;
}

.cookie-btn--primary {
    background: #B08D44;
    border-color: #B08D44;
    color: #000000;
}

.cookie-btn--primary:hover {
    background: #C9A55A;
    border-color: #C9A55A;
    color: #000000;
}

.cookie-btn--quiet {
    color: rgba(255, 255, 255, 0.82);
}

.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.55);
    font-family: Montserrat, Arial, sans-serif;
}

.cookie-modal__panel {
    width: min(620px, 100%);
    max-height: min(760px, calc(100vh - 48px));
    overflow: auto;
    color: #ffffff;
    background: #050505;
    border: 1px solid rgba(176, 141, 68, 0.35);
    border-radius: 8px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
    padding: 24px;
}

.cookie-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.cookie-modal__title {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

.cookie-modal__close {
    appearance: none;
    background: transparent;
    border: 0;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 1.6rem;
    line-height: 1;
    padding: 0 2px;
}

.cookie-modal__intro,
.cookie-category__description {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.88rem;
    line-height: 1.6;
}

.cookie-category {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 16px 0;
}

.cookie-category__top {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
}

.cookie-category__name {
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 700;
    margin: 0 0 4px;
}

.cookie-category__status {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cookie-toggle {
    position: relative;
    flex: 0 0 auto;
    width: 48px;
    height: 26px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle span {
    position: absolute;
    inset: 0;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    transition: background 0.2s;
}

.cookie-toggle span::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    top: 3px;
    background: #ffffff;
    border-radius: 50%;
    transition: transform 0.2s;
}

.cookie-toggle input:checked + span {
    background: #B08D44;
}

.cookie-toggle input:checked + span::before {
    transform: translateX(22px);
}

.cookie-toggle input:disabled + span {
    cursor: not-allowed;
    opacity: 0.7;
}

.cookie-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 18px;
}

@media (max-width: 640px) {
    .cookie-consent {
        left: 12px;
        bottom: 12px;
        width: calc(100vw - 24px);
        padding: 15px;
    }

    .cookie-consent__actions,
    .cookie-modal__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

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