.xsoft-marketing-preferences {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 0.2em;
    cursor: pointer;
}

.xsoft-marketing-preferences--portal {
    position: fixed;
    bottom: 0.75rem;
    left: 0.75rem;
    z-index: 1001;
    max-width: calc(100vw - 6rem);
    padding: 0.5rem 0.75rem;
    border: 1px solid #d8e1ec;
    border-radius: 0.375rem;
    background: #fff;
    color: #0f4c81;
    box-shadow: 0 2px 8px rgb(19 32 45 / 10%);
    font: 0.75rem/1.5 Arial, Helvetica, sans-serif;
}

@media (max-width: 767px) {
    .xsoft-marketing-preferences--portal {
        bottom: calc(var(--mobile-nav-height, 74px) + env(safe-area-inset-bottom, 0px) + 1.5rem);
    }
}

.xsoft-marketing {
    position: fixed;
    z-index: 2147483000;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.25rem 2rem;
    max-width: 1120px;
    max-height: calc(100vh - 2rem);
    max-height: calc(100dvh - 2rem);
    margin: 0 auto;
    padding: 1.5rem 2.5rem 1.5rem 1.5rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid var(--site-line, #d8e1ec);
    border-top: 3px solid var(--site-primary, #0f6fb3);
    border-radius: 0.75rem;
    background: var(--site-surface, #fff);
    color: var(--site-ink, #13202d);
    box-shadow: 0 0.5rem 2rem rgb(19 32 45 / 16%);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.9375rem;
    line-height: 1.5;
    text-align: left;
}

.xsoft-marketing[hidden],
.xsoft-marketing [hidden] {
    display: none !important;
}

.xsoft-marketing__eyebrow {
    display: block;
    margin-bottom: 0.375rem;
    color: var(--site-primary-dark, #0f4c81);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.xsoft-marketing .xsoft-marketing__title {
    margin: 0 0 0.5rem;
    color: var(--site-ink, #13202d);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: normal;
}

.xsoft-marketing .xsoft-marketing__description {
    max-width: 75ch;
    margin: 0 0 0.5rem;
    color: var(--site-muted, #52616f);
    font-size: 0.875rem;
}

.xsoft-marketing__policy,
.xsoft-marketing__configure {
    color: var(--site-primary-dark, #0f4c81);
    font-size: 0.8125rem;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.xsoft-marketing__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-content: center;
    gap: 0.75rem;
}

.xsoft-marketing__button {
    min-height: 2.75rem;
    padding: 0.625rem 1rem;
    border: 1px solid var(--site-primary-dark, #0f4c81);
    border-radius: 0.375rem;
    background: var(--site-surface, #fff);
    color: var(--site-primary-dark, #0f4c81);
    font: inherit;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
}

.xsoft-marketing__button:hover {
    background: var(--site-soft, #f4f7fb);
}

.xsoft-marketing__configure {
    grid-column: 1 / -1;
    justify-self: center;
    padding: 0.25rem 0.5rem;
    border: 0;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
}

.xsoft-marketing__close {
    position: absolute;
    top: 0.375rem;
    right: 0.375rem;
    display: grid;
    width: 2rem;
    height: 2rem;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 0.25rem;
    background: transparent;
    color: var(--site-muted, #52616f);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.xsoft-marketing__close:hover {
    background: var(--site-soft, #f4f7fb);
}

.xsoft-marketing-preferences:focus-visible,
.xsoft-marketing a:focus-visible,
.xsoft-marketing button:focus-visible,
.xsoft-marketing input:focus-visible {
    outline: 3px solid var(--site-focus, #ffbf47);
    outline-offset: 3px;
}

.xsoft-marketing:focus {
    outline: none;
}

.xsoft-marketing__details {
    grid-column: 1 / -1;
    border-top: 1px solid var(--site-line, #d8e1ec);
}

.xsoft-marketing__category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin: 0;
    padding: 1rem 0;
    border-bottom: 1px solid var(--site-line, #d8e1ec);
    font-weight: 400;
}

label.xsoft-marketing__category {
    cursor: pointer;
}

.xsoft-marketing__category-title {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--site-ink, #13202d);
    font-size: 0.875rem;
    font-weight: 700;
}

.xsoft-marketing__category p,
.xsoft-marketing__category-description {
    display: block;
    margin: 0;
    color: var(--site-muted, #52616f);
    font-size: 0.8125rem;
    line-height: 1.5;
}

.xsoft-marketing__fixed {
    flex-shrink: 0;
    color: var(--site-muted, #52616f);
    font-size: 0.75rem;
    font-weight: 700;
}

.xsoft-marketing input.xsoft-marketing__checkbox {
    flex: 0 0 1.25rem;
    width: 1.25rem;
    height: 1.25rem;
    margin: 0 0.25rem 0 0;
    accent-color: var(--site-primary, #0f6fb3);
    cursor: pointer;
}

.xsoft-marketing__save-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-top: 1rem;
}

.xsoft-marketing__save-row p {
    margin: 0;
    color: var(--site-muted, #52616f);
    font-size: 0.8125rem;
}

.xsoft-marketing__button--save {
    flex-shrink: 0;
    background: var(--site-primary-dark, #0f4c81);
    color: #fff;
}

.xsoft-marketing__button--save:hover {
    background: var(--site-primary, #0f6fb3);
}

@media (max-width: 800px) {
    .xsoft-marketing {
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
        padding: 1.25rem 2.5rem 1.25rem 1.25rem;
    }

    .xsoft-marketing__actions {
        max-width: 28rem;
    }

    .xsoft-marketing__category {
        gap: 1rem;
    }

    .xsoft-marketing__save-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
}

@media (max-width: 380px) {
    .xsoft-marketing {
        right: 0.5rem;
        bottom: 0.5rem;
        left: 0.5rem;
        padding-left: 1rem;
    }

    .xsoft-marketing__button {
        padding-right: 0.5rem;
        padding-left: 0.5rem;
    }

    .xsoft-marketing__fixed {
        max-width: 4rem;
        text-align: center;
    }
}
