.hdn-cookie-consent {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 10020;
}

.hdn-cookie-consent__panel {
    max-width: 1160px;
    margin: 0 auto;
    border: 1px solid rgba(176, 141, 87, 0.45);
    background: rgba(8, 19, 42, 0.94);
    color: #f6f2ea;
    border-radius: 18px;
    padding: 0.92rem 1rem;
    box-shadow: 0 20px 50px rgba(7, 16, 36, 0.44);
    backdrop-filter: blur(10px);
    display: grid;
    gap: 0.7rem;
}

.hdn-cookie-consent__text {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.55;
}

.hdn-cookie-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.48rem;
}

.hdn-cookie-btn {
    border: 1px solid rgba(246, 242, 234, 0.35);
    background: transparent;
    color: #f6f2ea;
    border-radius: 999px;
    min-height: 36px;
    padding: 0.42rem 0.85rem;
    font-size: 0.67rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.hdn-cookie-btn:hover,
.hdn-cookie-btn:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(246, 242, 234, 0.72);
    outline: none;
}

.hdn-cookie-btn--primary {
    background: rgba(176, 141, 87, 0.98);
    border-color: rgba(176, 141, 87, 0.98);
    color: #0f172a;
}

.hdn-cookie-btn--primary:hover,
.hdn-cookie-btn--primary:focus-visible {
    background: rgba(176, 141, 87, 1);
    border-color: rgba(176, 141, 87, 1);
}

.hdn-cookie-btn--ghost {
    border-color: rgba(176, 141, 87, 0.5);
    color: #f5d9a6;
}

.hdn-cookie-consent__live {
    margin: 0;
    font-size: 0.72rem;
    color: #d7e8ff;
}

.hdn-cookie-consent__live.is-error {
    color: #ffd2c2;
}

.hdn-cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 10040;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.hdn-cookie-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 13, 30, 0.65);
    backdrop-filter: blur(3px);
}

.hdn-cookie-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(620px, 100%);
    border-radius: 18px;
    border: 1px solid rgba(176, 141, 87, 0.35);
    background: #f6f2ea;
    color: #0f172a;
    padding: 1rem;
    box-shadow: 0 30px 72px rgba(8, 18, 40, 0.35);
}

.hdn-cookie-modal__dialog h2 {
    margin: 0;
    font-size: clamp(1.28rem, 2.7vw, 1.7rem);
    color: #0f172a;
}

.hdn-cookie-modal__dialog > p {
    margin: 0.55rem 0 0;
    font-size: 0.9rem;
    line-height: 1.65;
    color: rgba(15, 23, 42, 0.8);
}

.hdn-cookie-modal__item {
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
    padding: 0.74rem 0.82rem;
    margin-top: 0.72rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.hdn-cookie-modal__item strong {
    display: block;
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hdn-cookie-modal__item p {
    margin: 0.28rem 0 0;
    font-size: 0.84rem;
    line-height: 1.55;
    color: rgba(15, 23, 42, 0.8);
}

.hdn-cookie-modal__actions {
    margin-top: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.hdn-cookie-switch {
    position: relative;
    display: inline-flex;
    width: 46px;
    height: 28px;
    flex-shrink: 0;
}

.hdn-cookie-switch input {
    position: absolute;
    opacity: 0;
    inset: 0;
    margin: 0;
}

.hdn-cookie-switch span {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.2);
    border: 1px solid rgba(15, 23, 42, 0.25);
    position: relative;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.hdn-cookie-switch span::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 3px 8px rgba(12, 22, 40, 0.2);
    transition: transform 0.2s ease;
}

.hdn-cookie-switch input:checked + span {
    background: rgba(176, 141, 87, 0.9);
    border-color: rgba(176, 141, 87, 0.95);
}

.hdn-cookie-switch input:checked + span::after {
    transform: translateX(18px);
}

.hdn-cookie-switch input:disabled + span {
    background: rgba(15, 23, 42, 0.28);
    border-color: rgba(15, 23, 42, 0.32);
}

body.hdn-cookie-modal-open {
    overflow: hidden;
}

.hdn-cookie-open-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(176, 141, 87, 0.6);
    background: rgba(176, 141, 87, 0.16);
    color: #0f172a;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    padding: 0.4rem 0.82rem;
    cursor: pointer;
}

.hdn-cookie-open-btn:hover,
.hdn-cookie-open-btn:focus-visible {
    background: rgba(176, 141, 87, 0.28);
    outline: none;
}

@media (max-width: 760px) {
    .hdn-cookie-consent {
        left: 0.65rem;
        right: 0.65rem;
        bottom: 0.65rem;
    }

    .hdn-cookie-consent__panel {
        padding: 0.82rem;
        gap: 0.6rem;
    }

    .hdn-cookie-modal__dialog {
        padding: 0.85rem;
    }

    .hdn-cookie-modal__actions {
        justify-content: flex-start;
    }
}
