.app-cookie-banner,
.app-cookie-preferences {
    position: fixed;
    z-index: 9998;
    font-family: inherit;
}

.app-cookie-banner {
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    width: min(460px, calc(100vw - 36px));
    padding: 30px 32px 32px;
    border: 0;
    border-radius: 0;
    background: #ffffff;
    color: #0e0e11;
    box-shadow: 0 0 74px rgba(14, 14, 17, 0.08);
}

.app-cookie-banner.is-hidden,
.app-cookie-preferences.is-hidden {
    display: none;
}

.app-cookie-banner h2,
.app-cookie-preferences h2 {
    margin: 0 0 8px;
    color: #0e0e11;
    font-size: 1.02rem;
    font-weight: 750;
    line-height: 1.25;
    text-align: left;
}

.app-cookie-banner p,
.app-cookie-preferences p {
    margin: 0;
    color: #444444;
    font-size: 0.92rem;
    line-height: 1.55;
}

.app-cookie-link {
    display: inline;
    margin-top: 0;
    color: #5b4ad8;
    font-size: inherit;
    font-weight: 500;
    text-decoration: none;
}

.app-cookie-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.app-cookie-btn {
    min-height: 46px;
    padding: 0 16px;
    border: 0;
    border-radius: 0;
    background: #eeeeee;
    color: #444444;
    cursor: pointer;
    font-size: 0.84rem;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.app-cookie-btn:hover,
.app-cookie-btn:focus-visible {
    background: #e5e5e5;
    color: #0e0e11;
    outline: 0;
}

.app-cookie-btn.is-primary {
    background: #fce020;
    color: #0e0e11;
}

.app-cookie-btn.is-danger {
    color: #444444;
}

.app-cookie-preferences {
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(245, 247, 252, 0.76);
    backdrop-filter: blur(2px);
}

.app-cookie-preferences-card {
    width: min(560px, 100%);
    max-height: calc(100vh - 36px);
    overflow: auto;
    border-radius: 0;
    background: #ffffff;
    box-shadow: 0 0 74px rgba(14, 14, 17, 0.12);
}

.app-cookie-preferences-head,
.app-cookie-preferences-body,
.app-cookie-preferences-footer {
    padding: 18px;
}

.app-cookie-preferences-head,
.app-cookie-preferences-footer {
    border-bottom: 1px solid #eeeeee;
}

.app-cookie-preferences-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    border-top: 1px solid #eeeeee;
    border-bottom: 0;
}

.app-cookie-option {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #eeeeee;
}

.app-cookie-option:last-child {
    border-bottom: 0;
}

.app-cookie-option strong {
    display: block;
    margin-bottom: 3px;
    color: #0e0e11;
    font-size: 0.9rem;
}

.app-cookie-option small {
    display: block;
    color: #444444;
    font-size: 0.78rem;
    line-height: 1.35;
}

.app-cookie-switch {
    --app-cookie-switch-width: 30px;
    --app-cookie-switch-height: 16px;
    --app-cookie-switch-padding: 2px;
    --app-cookie-switch-thumb: calc(var(--app-cookie-switch-height) - (var(--app-cookie-switch-padding) * 2));
    position: relative;
    display: inline-flex;
    width: var(--app-cookie-switch-width);
    height: var(--app-cookie-switch-height);
    flex: 0 0 auto;
    cursor: pointer;
}

.app-cookie-switch-input {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
    opacity: 0;
}

.app-cookie-switch-track {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 999px;
    background: #cbd5e1;
    transition: background-color 0.16s ease, box-shadow 0.16s ease;
}

.app-cookie-switch-track::before {
    content: "";
    position: absolute;
    top: var(--app-cookie-switch-padding);
    left: var(--app-cookie-switch-padding);
    width: var(--app-cookie-switch-thumb);
    height: var(--app-cookie-switch-thumb);
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(14, 14, 17, 0.22);
    transition: transform 0.16s ease;
}

.app-cookie-switch-input:checked + .app-cookie-switch-track {
    background: #fce020;
}

.app-cookie-switch-input:checked + .app-cookie-switch-track::before {
    transform: translateX(calc(var(--app-cookie-switch-width) - var(--app-cookie-switch-height)));
}

.app-cookie-switch-input:focus-visible + .app-cookie-switch-track {
    box-shadow: 0 0 0 3px rgba(252, 224, 32, 0.28);
}

.app-cookie-switch.is-disabled,
.app-cookie-switch-input:disabled {
    cursor: not-allowed;
    opacity: 0.62;
}

@media (max-width: 560px) {
    .app-cookie-banner {
        right: auto;
        bottom: 10px;
        left: 10px;
        transform: none;
        width: calc(100vw - 20px);
        padding: 24px 22px;
    }

    .app-cookie-actions,
    .app-cookie-preferences-footer {
        flex-direction: column;
    }

    .app-cookie-actions {
        display: flex;
    }

    .app-cookie-btn {
        width: 100%;
    }
}
