.ustaim-cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    padding: 16px;
    pointer-events: none;
}

.ustaim-cookie-banner:not([hidden]) {
    pointer-events: auto;
}

.ustaim-cookie-banner__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 24px;
    background: #fff;
    border: 1px solid #e9eced;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(7, 4, 65, 0.12);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.ustaim-cookie-banner__text {
    flex: 1 1 320px;
    min-width: 0;
}

.ustaim-cookie-banner__text p {
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.ustaim-cookie-banner__link {
    font-size: 14px;
    font-weight: 600;
    color: #1f67d1;
    text-decoration: underline;
}

.ustaim-cookie-banner__link:hover {
    color: #ff5532;
}

.ustaim-cookie-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1 1 280px;
    justify-content: flex-end;
}

.ustaim-cookie-banner__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    border: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ustaim-cookie-banner__btn--primary {
    background: #ff5532;
    color: #fff;
}

.ustaim-cookie-banner__btn--primary:hover {
    background: #ef4624;
}

.ustaim-cookie-banner__btn--secondary {
    background: #070441;
    color: #fff;
}

.ustaim-cookie-banner__btn--secondary:hover {
    background: #10103f;
}

.ustaim-cookie-banner__btn--ghost {
    background: #fff;
    color: #070441;
    border: 1px solid #dbd9d4;
}

.ustaim-cookie-banner__btn--ghost:hover {
    border-color: #3f6eed;
    color: #3f6eed;
}

.ustaim-cookie-preferences {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ustaim-cookie-preferences[hidden] {
    display: none !important;
}

.ustaim-cookie-preferences__overlay {
    position: absolute;
    inset: 0;
    background: rgba(7, 4, 65, 0.45);
}

.ustaim-cookie-preferences__panel {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(7, 4, 65, 0.18);
}

.ustaim-cookie-preferences__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid #e9eced;
}

.ustaim-cookie-preferences__header h2 {
    margin: 0;
    font-size: 20px;
    color: #070441;
}

.ustaim-cookie-preferences__close {
    width: 36px;
    height: 36px;
    border: none;
    background: #f5f5f2;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    color: #070441;
    cursor: pointer;
}

.ustaim-cookie-preferences__body {
    padding: 20px 24px;
}

.ustaim-cookie-preferences__item {
    padding: 16px 0;
    border-bottom: 1px solid #eee;
}

.ustaim-cookie-preferences__item:last-child {
    border-bottom: none;
}

.ustaim-cookie-preferences__item p {
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 1.55;
    color: #555;
}

.ustaim-cookie-preferences__item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ustaim-cookie-preferences__item-head strong {
    color: #070441;
}

.ustaim-cookie-preferences__always {
    font-size: 12px;
    font-weight: 600;
    color: #676d73;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ustaim-cookie-preferences__toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.ustaim-cookie-preferences__toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ustaim-cookie-preferences__toggle-ui {
    width: 44px;
    height: 24px;
    border-radius: 999px;
    background: #dbd9d4;
    position: relative;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.ustaim-cookie-preferences__toggle-ui::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.2s ease;
}

.ustaim-cookie-preferences__toggle input:checked + .ustaim-cookie-preferences__toggle-ui {
    background: #3f6eed;
}

.ustaim-cookie-preferences__toggle input:checked + .ustaim-cookie-preferences__toggle-ui::after {
    transform: translateX(20px);
}

.ustaim-cookie-preferences__toggle-label {
    font-weight: 600;
    color: #070441;
}

.ustaim-cookie-preferences__footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px 24px;
    border-top: 1px solid #e9eced;
}

@media (max-width: 767px) {
    .ustaim-cookie-banner__inner {
        padding: 16px;
    }

    .ustaim-cookie-banner__actions {
        justify-content: stretch;
    }

    .ustaim-cookie-banner__btn {
        flex: 1 1 100%;
    }
}
