/* Cookie consent UI */
.cookie-consent-root {
    position: relative;
    z-index: 10050;
}

.cookie-consent-root[hidden] {
    display: none !important;
}

.cookie-consent-root.is-active {
    display: block;
}

.cookie-consent-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10051;
    background: #fff;
    border-top: 1px solid #e8e8e8;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.08);
    transform: translateY(110%);
    transition: transform 0.28s ease;
    pointer-events: none;
}

.cookie-consent-banner.is-visible {
    transform: translateY(0);
    pointer-events: auto;
}

.cookie-consent-banner__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px 20px;
    display: grid;
    grid-template-columns: minmax(200px, 280px) 1fr;
    gap: 24px 32px;
    align-items: start;
}

.cookie-consent-banner__title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    color: #111;
}

.cookie-consent-banner__body {
    font-size: 14px;
    line-height: 1.55;
    color: #333;
}

.cookie-consent-banner__body p {
    margin: 0 0 10px;
}

.cookie-consent-banner__body p:last-child {
    margin-bottom: 0;
}

.cookie-consent-banner__actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 12px;
    justify-content: flex-start;
}

.cookie-consent-link {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: #111;
    text-decoration: underline;
    cursor: pointer;
}

a.cookie-consent-link {
    color: #111;
}

.cookie-consent-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 28px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.cookie-consent-btn--outline {
    background: #fff;
    border-color: #d0d0d0;
    color: #111;
}

.cookie-consent-btn--outline:hover {
    border-color: #999;
}

.cookie-consent-btn--primary {
    background: #4f46e5;
    border-color: #4f46e5;
    color: #fff;
}

.cookie-consent-btn--primary:hover {
    background: #6057f5;
    border-color: #6057f5;
}

.cookie-consent-modal {
    position: fixed;
    inset: 0;
    z-index: 10052;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.cookie-consent-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.cookie-consent-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.cookie-consent-modal__panel {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: calc(100vh - 40px);
    overflow: auto;
    background: #fff;
    border-radius: 18px;
    padding: 28px 24px 24px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
}

.cookie-consent-modal__panel--wide {
    max-width: 920px;
    padding: 32px 28px 28px;
}

.cookie-consent-modal__layout {
    display: grid;
    grid-template-columns: minmax(160px, 220px) 1fr;
    gap: 28px 36px;
    align-items: start;
}

.cookie-consent-modal__side-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    color: #111;
}

.cookie-consent-modal__aside {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cookie-consent-modal__policy-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    color: #4f46e5;
}

.cookie-consent-modal__policy-link .material-icons {
    font-size: 20px;
}

.cookie-consent-modal__policy-link:hover {
    text-decoration: underline;
}

.cookie-consent-modal__policy-link--in-content {
    display: none;
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 18px;
    background: #f3edf7;
    border: 1px solid #e7e0ec;
}

.cookie-consent-modal__title {
    margin: 0 0 16px;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    color: #111;
}

.cookie-consent-modal__text {
    margin: 0 0 24px;
    font-size: 14px;
    line-height: 1.55;
    text-align: center;
    color: #333;
}

.cookie-consent-modal__note {
    margin: 20px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: #666;
}

.cookie-consent-modal__actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.cookie-consent-modal__actions--center {
    justify-content: center;
}

.cookie-consent-categories {
    border-top: 1px solid #eee;
}

.cookie-consent-category {
    padding: 18px 0;
    border-bottom: 1px solid #eee;
}

.cookie-consent-category__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
}

.cookie-consent-category__name {
    font-size: 15px;
    font-weight: 700;
    color: #111;
}

.cookie-consent-category__desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #555;
}

.cookie-consent-switch {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
    cursor: pointer;
}

.cookie-consent-switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-consent-switch__track {
    width: 44px;
    height: 24px;
    border-radius: 999px;
    background: #c5c5c5;
    transition: background 0.2s ease;
}

.cookie-consent-switch__track::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.cookie-consent-switch input:checked + .cookie-consent-switch__track {
    background: #4f46e5;
}

.cookie-consent-switch input:checked + .cookie-consent-switch__track::after {
    transform: translateX(20px);
}

.cookie-consent-switch--locked {
    cursor: not-allowed;
    opacity: 0.85;
}

.cookie-consent-switch--locked .cookie-consent-switch__track {
    background: #4f46e5;
}

.cookie-consent-switch--locked input:checked + .cookie-consent-switch__track::after {
    transform: translateX(20px);
}

/* Profile settings block */
.cookie-settings-panel .cookie-consent-categories {
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
}

.cookie-settings-panel .cookie-consent-category {
    padding: 16px 18px;
    background: #fff;
}

.cookie-settings-panel .cookie-consent-category:last-child {
    border-bottom: none;
}

.cookie-settings-panel__actions {
    margin-top: 16px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-map-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    padding: 24px 16px;
    text-align: center;
    background: #f5f7fa;
    border: 1px dashed #cfd8e3;
    border-radius: 8px;
    color: #444;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

.cookie-map-placeholder__text {
    margin: 0 0 12px;
}

.cookie-map-placeholder__btn {
    margin-top: 4px;
    min-height: 40px;
    font-size: 14px;
}

@media (max-width: 768px) {
    .cookie-consent-banner__inner {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 18px 16px 16px;
    }

    .cookie-consent-banner__title {
        font-size: 18px;
    }

    .cookie-consent-banner__actions {
        flex-direction: column;
    }

    .cookie-consent-btn {
        width: 100%;
    }

    .cookie-consent-modal__layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .cookie-consent-modal__aside .cookie-consent-modal__policy-link {
        display: none;
    }

    .cookie-consent-modal__policy-link--in-content {
        display: inline-flex;
        width: 100%;
        box-sizing: border-box;
    }

    .cookie-consent-modal__panel--wide {
        padding: 20px 16px 16px;
    }

    .cookie-consent-modal__actions {
        flex-direction: column;
    }
}
