.ivory-gdpr,
.ivory-gdpr-modal {
    box-sizing: border-box;
    color: #0a0a0a;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.ivory-gdpr *,
.ivory-gdpr-modal * {
    box-sizing: border-box;
}

.ivory-gdpr[hidden],
.ivory-gdpr-modal[hidden] {
    display: none !important;
}

.ivory-gdpr {
    position: fixed;
    right: 18px;
    bottom: 18px;
    left: 18px;
    z-index: 999990;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.ivory-gdpr__panel {
    width: min(980px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: end;
    padding: 24px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(0, 0, 0, 0.18);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.14);
    pointer-events: auto;
    backdrop-filter: blur(14px);
}

.ivory-gdpr__eyebrow {
    margin: 0 0 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    line-height: 1.2;
    text-transform: uppercase;
}

.ivory-gdpr h2,
.ivory-gdpr-modal h2 {
    margin: 0 0 10px;
    color: #0a0a0a;
    font-size: clamp(22px, 2vw, 30px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
}

.ivory-gdpr p,
.ivory-gdpr-modal p {
    margin: 0;
    color: #222;
    font-size: 13px;
    line-height: 1.55;
}

.ivory-gdpr__actions,
.ivory-gdpr-modal__actions {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.ivory-gdpr__button {
    min-height: 42px;
    padding: 12px 18px;
    border: 1px solid #0a0a0a;
    border-radius: 0;
    background: #0a0a0a;
    color: #fff;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
    transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.ivory-gdpr__button:hover,
.ivory-gdpr__button:focus-visible {
    background: #fff;
    color: #0a0a0a;
}

.ivory-gdpr__button--ghost {
    background: #fff;
    color: #0a0a0a;
}

.ivory-gdpr__button--ghost:hover,
.ivory-gdpr__button--ghost:focus-visible {
    background: #0a0a0a;
    color: #fff;
}

.ivory-gdpr-modal {
    position: fixed;
    inset: 0;
    z-index: 999991;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(0, 0, 0, 0.42);
}

.ivory-gdpr-modal__card {
    position: relative;
    width: min(620px, 100%);
    max-height: min(760px, calc(100vh - 36px));
    overflow: auto;
    padding: 30px;
    background: #fff;
    border: 1px solid #111;
}

.ivory-gdpr-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: #0a0a0a;
    cursor: pointer;
    font-size: 26px;
    line-height: 1;
}

.ivory-gdpr-toggle {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    margin: 18px 0 0;
    padding: 16px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.ivory-gdpr-toggle strong,
.ivory-gdpr-toggle small,
.ivory-gdpr-toggle em {
    display: block;
}

.ivory-gdpr-toggle strong {
    margin-bottom: 5px;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ivory-gdpr-toggle small,
.ivory-gdpr-toggle em {
    color: #444;
    font-size: 12px;
    font-style: normal;
    line-height: 1.45;
}

.ivory-gdpr-toggle input {
    width: 44px;
    height: 24px;
    appearance: none;
    border: 1px solid #0a0a0a;
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
    transition: background 160ms ease;
}

.ivory-gdpr-toggle input::before {
    content: "";
    width: 18px;
    height: 18px;
    display: block;
    margin: 2px;
    border-radius: 50%;
    background: #0a0a0a;
    transition: transform 160ms ease, background 160ms ease;
}

.ivory-gdpr-toggle input:checked {
    background: #0a0a0a;
}

.ivory-gdpr-toggle input:checked::before {
    background: #fff;
    transform: translateX(20px);
}

.ivory-gdpr-toggle input:disabled {
    cursor: not-allowed;
    opacity: 0.8;
}

.ivory-gdpr-modal__actions {
    margin-top: 24px;
    justify-content: space-between;
}

.ivory-gdpr-modal__actions a {
    color: #0a0a0a;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-decoration: underline;
    text-transform: uppercase;
}

@media (max-width: 700px) {
    .ivory-gdpr {
        right: 10px;
        bottom: 10px;
        left: 10px;
    }

    .ivory-gdpr__panel {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 18px;
    }

    .ivory-gdpr__actions,
    .ivory-gdpr-modal__actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .ivory-gdpr__button {
        width: 100%;
    }

    .ivory-gdpr-modal__card {
        padding: 24px 18px;
    }
}
