.hd-consent-banner,
.hd-consent-banner *,
.hd-consent-settings-launcher {
    box-sizing: border-box;
}

.hd-consent-banner {
    position: fixed;
    z-index: 100000;
    right: 20px;
    bottom: 20px;
    left: 20px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: end;
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
    padding: 22px 24px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 14px;
    color: #fff;
    background: #09243a;
    box-shadow: 0 18px 52px rgba(0, 0, 0, .3);
}

.hd-consent-banner[hidden],
.hd-consent-customize[hidden],
.hd-consent-button[hidden],
.hd-consent-settings-launcher[hidden] {
    display: none;
}

.hd-consent-copy,
.hd-consent-actions,
.hd-consent-option,
.hd-consent-option > span {
    min-width: 0;
}

.hd-consent-copy > strong {
    display: block;
    margin: 0;
    color: #fff;
    font-size: 18px;
    line-height: 1.3;
}

.hd-consent-copy > p {
    max-width: 780px;
    margin: 7px 0 0;
    color: rgba(255, 255, 255, .82);
    font-size: 14px;
    line-height: 1.55;
}

.hd-consent-copy a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hd-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    align-items: center;
}

.hd-consent-button,
.hd-consent-settings-launcher {
    min-height: 44px;
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 7px;
    color: #fff;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}

.hd-consent-button {
    padding: 11px 16px;
    white-space: nowrap;
}

.hd-consent-button:hover,
.hd-consent-button:focus-visible,
.hd-consent-settings-launcher:hover,
.hd-consent-settings-launcher:focus-visible {
    border-color: #fff;
    outline: 3px solid rgba(84, 170, 255, .55);
    outline-offset: 2px;
}

.hd-consent-button-primary {
    border-color: #f07c22;
    background: #f07c22;
}

.hd-consent-customize {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.hd-consent-option {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .17);
    border-radius: 8px;
    background: rgba(255, 255, 255, .06);
}

.hd-consent-option b,
.hd-consent-option small {
    display: block;
}

.hd-consent-option b {
    color: #fff;
    font-size: 14px;
}

.hd-consent-option small {
    margin-top: 3px;
    color: rgba(255, 255, 255, .72);
    font-size: 12px;
    line-height: 1.35;
}

.hd-consent-option input {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: #f07c22;
}

.hd-consent-option-required {
    opacity: .76;
}

.hd-consent-settings-launcher {
    position: fixed;
    z-index: 99990;
    bottom: 16px;
    left: 16px;
    min-height: 36px;
    padding: 8px 12px;
    border-color: rgba(9, 36, 58, .25);
    border-radius: 999px;
    color: #09243a;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 5px 18px rgba(0, 0, 0, .15);
    font-size: 12px;
}

@media (max-width: 900px) {
    .hd-consent-settings-launcher {
        bottom: calc(80px + env(safe-area-inset-bottom, 0px));
        transition: opacity .18s ease, visibility .18s ease;
    }

    .hd-consent-settings-launcher.is-obstructed {
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
    }

    .hd-consent-banner {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .hd-consent-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .hd-consent-banner {
        right: 12px;
        bottom: 12px;
        left: 12px;
        width: calc(100% - 24px);
        max-height: calc(100vh - 24px);
        gap: 16px;
        padding: 18px;
        overflow-y: auto;
    }

    .hd-consent-customize {
        grid-template-columns: 1fr;
    }

    .hd-consent-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .hd-consent-button {
        width: 100%;
        white-space: normal;
    }
}

@media (max-width: 390px) {
    .hd-consent-actions {
        grid-template-columns: 1fr;
    }
}
