.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: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 18px;
    background: linear-gradient(135deg, #0f172a 0%, #172554 58%, #0f766e 130%);
    border: 1px solid rgba(203, 213, 225, 0.2);
    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(20, 184, 166, 0.16);
    border: 1px solid rgba(94, 234, 212, 0.38);
}

.hdl-consent-banner__icon span {
    width: 12px;
    height: 16px;
    display: block;
    border: 2px solid #5eead4;
    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 #5eead4;
    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: var(--color-blue);
    font-weight: 600;
}

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

.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-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: 136px;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(226, 232, 240, 0.54);
    color: #ffffff !important;
    box-shadow: none;
    text-shadow: 0 1px 1px rgba(15, 23, 42, 0.45);
}

.hdl-consent-banner .hdl-consent-btn:hover,
.hdl-consent-banner .hdl-consent-btn:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.78);
    color: #ffffff !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: linear-gradient(135deg, #0f172a 0%, #172554 70%, #0f766e 135%);
    border-radius: var(--radius-md, 12px) var(--radius-md, 12px) 0 0;
}

.hdl-consent-kicker {
    margin: 0 0 4px;
    color: #5eead4 !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: var(--color-blue);
}

.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: 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;
    }
}
