.marketing-consent,
.marketing-settings {
    box-sizing: border-box;
    font-family: Inter, sans-serif;
    color: #191d30;
}

.marketing-consent {
    position: fixed;
    z-index: 10000;
    inset: auto 24px 24px;
    max-width: 680px;
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    margin: auto;
    padding: 24px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgb(25 29 48 / 16%);
}

.marketing-consent[hidden] {
    display: none;
}

.marketing-consent h2 {
    margin: 0 0 12px;
    color: #191d30;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.marketing-consent p {
    margin: 0 0 20px;
    color: #565b6b;
    font-size: 14px;
    line-height: 1.6;
}

.marketing-consent div {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.marketing-consent button,
.marketing-settings {
    min-height: 44px;
    padding: 12px 20px;
    border: 1px solid #d9dce3;
    border-radius: 999px;
    background: #fff;
    font-family: Inter, sans-serif;
    color: #191d30;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    cursor: pointer;
}

.marketing-consent button {
    flex: 1 1 auto;
}

.marketing-consent button:hover,
.marketing-settings:hover {
    border-color: #00d14f;
    background: #f0fcf4;
}

.marketing-consent .primary {
    border-color: #00d14f;
    background: #00d14f;
}

.marketing-consent .primary:hover {
    border-color: #00bd47;
    background: #00bd47;
}

.marketing-consent button:focus-visible,
.marketing-settings:focus-visible {
    /* Override the legacy theme's universal outline reset. */
    outline: 2px solid #191d30 !important;
    outline-offset: 3px;
}

.marketing-settings {
    position: fixed;
    z-index: 9999;
    right: 24px;
    bottom: 24px;
    box-shadow: 0 4px 16px rgb(25 29 48 / 10%);
}

.marketing-consent:not([hidden]) ~ .marketing-settings {
    display: none;
}

@media (max-width: 500px) {
    .marketing-consent {
        inset: auto 12px 12px;
        padding: 20px;
    }

    .marketing-consent button {
        flex: 1 1 100%;
    }

    .marketing-settings {
        right: 12px;
        bottom: 12px;
    }
}
