.hdl-consent[hidden],
.hdl-consent-banner[hidden],
.hdl-consent-modal[hidden],
.hdl-consent-gpc-message[hidden] {
    display: none !important;
}

.hdl-consent {
    position: relative;
    z-index: 10000;
}

.hdl-consent__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.44);
}

.hdl-consent-banner {
    position: fixed;
    left: 28px;
    right: 28px;
    bottom: 22px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 16px;
    align-items: start;
    box-sizing: border-box;
    max-width: 1280px;
    max-height: calc(100vh - 44px);
    margin: 0 auto;
    overflow-y: auto;
    padding: 16px 18px;
    background:
        radial-gradient(120% 90% at 15% 0%, #16233f 0%, transparent 55%),
        radial-gradient(90% 80% at 100% 20%, rgba(198, 161, 91, 0.22) 0%, transparent 50%),
        linear-gradient(160deg, #0b1120 0%, #0f172a 60%, #111a2e 100%);
    border: 1px solid rgba(198, 161, 91, 0.34);
    border-radius: var(--radius-md, 12px);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28), 0 2px 10px rgba(15, 23, 42, 0.18);
    color: #f8fafc;
}

.hdl-consent-banner__icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(198, 161, 91, 0.16);
    border: 1px solid rgba(198, 161, 91, 0.52);
}

.hdl-consent-banner__icon span {
    width: 12px;
    height: 16px;
    display: block;
    border: 2px solid #c6a15b;
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    position: relative;
}

.hdl-consent-banner__icon span::before {
    content: "";
    position: absolute;
    width: 8px;
    height: 7px;
    left: 50%;
    top: -8px;
    transform: translateX(-50%);
    border: 2px solid #c6a15b;
    border-bottom: 0;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.hdl-consent-banner h2,
.hdl-consent-modal h2,
.hdl-consent-modal h3 {
    color: var(--color-navy);
    margin: 0;
}

.hdl-consent-banner h2 {
    color: #ffffff;
    font-size: 0.98rem;
    margin-bottom: 4px;
    letter-spacing: 0;
}

.hdl-consent-banner p,
.hdl-consent-modal p,
.hdl-consent-option small {
    color: var(--color-text-muted);
    line-height: 1.6;
}

.hdl-consent-banner p {
    max-width: none;
    margin: 0;
    color: #cbd5e1;
    font-size: 0.83rem;
    line-height: 1.45;
}

.hdl-consent-banner__links {
    display: inline-flex;
    gap: 8px;
    margin-top: 6px !important;
    font-size: 0.78rem !important;
}

.hdl-consent-banner__links a,
.hdl-consent-modal a {
    color: #8a692b;
    font-weight: 600;
}

.hdl-consent-banner__links a {
    color: #d9c39a;
}

.hdl-consent-banner__links span {
    color: rgba(203, 213, 225, 0.55);
}

.hdl-consent-banner__actions,
.hdl-consent-modal__footer {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.hdl-consent-banner__actions {
    align-self: center;
}

.hdl-consent-btn {
    min-height: 36px;
    justify-content: center;
    white-space: nowrap;
    padding: 8px 13px;
    border-radius: 7px;
    font-size: 0.82rem;
    font-weight: 700;
}

.hdl-consent-banner .hdl-consent-btn {
    min-width: 154px;
    background: #f8fafc;
    border-color: rgba(226, 232, 240, 0.88);
    color: #0f172a !important;
    box-shadow: none;
    text-shadow: none;
}

.hdl-consent-banner .hdl-consent-btn:hover,
.hdl-consent-banner .hdl-consent-btn:focus {
    background: #ffffff;
    border-color: rgba(198, 161, 91, 0.88);
    color: #0f172a !important;
}

.hdl-consent-banner .hdl-consent-btn[data-hdl-consent-accept],
.hdl-consent-modal .hdl-consent-btn[data-hdl-consent-save] {
    background: #c6a15b;
    border-color: #c6a15b;
    color: #0f172a !important;
    box-shadow: 0 10px 24px -10px rgba(198, 161, 91, 0.7);
}

.hdl-consent-banner .hdl-consent-btn[data-hdl-consent-accept]:hover,
.hdl-consent-banner .hdl-consent-btn[data-hdl-consent-accept]:focus-visible,
.hdl-consent-modal .hdl-consent-btn[data-hdl-consent-save]:hover,
.hdl-consent-modal .hdl-consent-btn[data-hdl-consent-save]:focus-visible {
    background: #d9c39a;
    border-color: #d9c39a;
    color: #0f172a !important;
}

.hdl-consent-modal {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    overflow-y: auto;
}

.hdl-consent-modal__panel {
    position: relative;
    z-index: 1;
    width: min(700px, 100%);
    max-height: min(720px, calc(100vh - 48px));
    overflow-y: auto;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.36);
    border-radius: var(--radius-md, 12px);
    box-shadow: var(--shadow-lg, 0 20px 40px -5px rgba(15, 23, 42, 0.18), 0 10px 20px -5px rgba(15, 23, 42, 0.08));
    padding: 0;
    outline: none;
}

.hdl-consent-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 0;
    padding: 20px 22px;
    background:
        radial-gradient(110% 100% at 15% 0%, #16233f 0%, transparent 58%),
        radial-gradient(85% 95% at 100% 20%, rgba(198, 161, 91, 0.22) 0%, transparent 55%),
        linear-gradient(160deg, #0b1120 0%, #0f172a 62%, #111a2e 100%);
    border-radius: var(--radius-md, 12px) var(--radius-md, 12px) 0 0;
}

.hdl-consent-kicker {
    margin: 0 0 4px;
    color: #d9c39a !important;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hdl-consent-modal__header h2 {
    color: #ffffff;
    font-size: 1.15rem;
    letter-spacing: 0;
}

.hdl-consent-close {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(226, 232, 240, 0.34);
    border-radius: var(--radius-sm, 8px);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

.hdl-consent-muted {
    margin: 0;
    padding: 18px 22px 0;
    font-size: 0.88rem;
}

.hdl-consent-notice {
    padding: 14px;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: var(--radius-sm, 8px);
    margin: 16px 22px;
}

.hdl-consent-notice h3 {
    font-size: 0.92rem;
    margin-bottom: 6px;
}

.hdl-consent-notice p {
    margin: 0 0 10px;
    font-size: 0.83rem;
    line-height: 1.5;
}

.hdl-consent-notice p:last-child {
    margin-bottom: 0;
}

.hdl-consent-options {
    display: grid;
    gap: 10px;
    padding: 0 22px;
}

.hdl-consent-option {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: var(--radius-sm, 8px);
    background: var(--color-white);
}

.hdl-consent-option strong,
.hdl-consent-option small {
    display: block;
}

.hdl-consent-option strong {
    color: var(--color-navy);
    margin-bottom: 3px;
    font-size: 0.9rem;
}

.hdl-consent-option small {
    font-size: 0.8rem;
    line-height: 1.45;
}

.hdl-consent-option input[type="checkbox"] {
    width: 22px;
    height: 22px;
    accent-color: #c6a15b;
}

.hdl-consent-option input[disabled] {
    cursor: not-allowed;
}

.hdl-consent-gpc-message {
    margin-top: 6px;
    color: var(--color-navy) !important;
    font-weight: 700;
}

.hdl-consent-modal__footer {
    align-items: center;
    margin-top: 18px;
    padding: 16px 22px 20px;
    border-top: 1px solid rgba(148, 163, 184, 0.28);
    background: #ffffff;
    border-radius: 0 0 var(--radius-md, 12px) var(--radius-md, 12px);
}

.hdl-consent-modal__footer a {
    margin-right: auto;
}

@media (max-width: 1120px) {
    .hdl-consent-banner {
        grid-template-columns: auto minmax(0, 1fr);
        padding: 18px 20px;
    }

    .hdl-consent-banner__actions {
        grid-column: 2;
        justify-content: flex-start;
    }

    .hdl-consent-banner .hdl-consent-btn {
        flex: 1 1 164px;
    }
}

@media (max-width: 768px) {
    .hdl-consent-banner {
        left: 0;
        right: 0;
        bottom: 0;
        grid-template-columns: 1fr;
        gap: 14px;
        border-radius: var(--radius-md, 12px) var(--radius-md, 12px) 0 0;
        padding: 20px;
        max-height: calc(100vh - 24px);
        overflow-y: auto;
    }

    .hdl-consent-banner__icon {
        display: none;
    }

    .hdl-consent-banner h2 {
        font-size: 1rem;
    }

    .hdl-consent-banner p {
        font-size: 0.88rem;
        line-height: 1.55;
    }

    .hdl-consent-banner__actions,
    .hdl-consent-modal__footer {
        display: grid;
        grid-template-columns: 1fr;
        justify-content: stretch;
    }

    .hdl-consent-banner .hdl-consent-btn {
        width: 100%;
        min-width: 0;
        min-height: 42px;
    }

    .hdl-consent-modal {
        padding: 12px;
        align-items: end;
    }

    .hdl-consent-modal__panel {
        max-height: calc(100vh - 24px);
        padding: 0;
        border-radius: var(--radius-md, 12px) var(--radius-md, 12px) 0 0;
    }

    .hdl-consent-option {
        grid-template-columns: 1fr;
    }

    .hdl-consent-option input[type="checkbox"] {
        justify-self: start;
    }

    .hdl-consent-modal__footer a {
        margin-right: 0;
    }
}
