/* Sticky cookie / local-storage consent — main site + WL iframe */

.ka-cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10050;
    margin: 0;
    padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #e5e7eb;
    background: #fff;
    box-shadow: none;
}

.ka-cookie-consent[hidden] {
    display: none !important;
}

.ka-cookie-consent__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.ka-cookie-consent__copy {
    flex: 1 1 16rem;
    min-width: 0;
}

.ka-cookie-consent__title {
    margin: 0 0 0.25rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.ka-cookie-consent__body {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 500;
    color: #64748b;
    line-height: 1.45;
}

.ka-cookie-consent__privacy {
    display: inline-block;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    font-weight: 650;
    color: var(--primary-color, #4361ee);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ka-cookie-consent__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
}

.ka-cookie-consent__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.5rem 1.05rem;
    border-radius: 10px;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 650;
    cursor: pointer;
    box-shadow: none;
    line-height: 1.2;
}

.ka-cookie-consent__btn--decline {
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #334155;
}

.ka-cookie-consent__btn--decline:hover {
    background: #f8fafc;
    border-color: #d1d5db;
}

.ka-cookie-consent__btn--accept {
    border: 1px solid var(--primary-color, #4361ee);
    background: var(--primary-color, #4361ee);
    color: #fff;
}

.ka-cookie-consent__btn--accept:hover {
    filter: brightness(0.97);
}

.ka-cookie-consent__btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color, #4361ee) 28%, transparent);
}

body.wl-widget .ka-cookie-consent,
.ka-cookie-consent--widget {
    --primary-color: var(--wl-accent, #4361ee);
    z-index: 10050;
}

html.ka-cookie-consent-open {
    scroll-padding-bottom: 9rem;
}

[dir="rtl"] .ka-cookie-consent__title,
[dir="rtl"] .ka-cookie-consent__body,
[dir="rtl"] .ka-cookie-consent__privacy,
[dir="rtl"] .ka-cookie-consent__btn {
    font-family: 'GM', 'Segoe UI', Tahoma, sans-serif;
}

@media (max-width: 640px) {
    .ka-cookie-consent__inner {
        flex-direction: column;
        align-items: stretch;
    }

    .ka-cookie-consent__actions {
        width: 100%;
    }

    .ka-cookie-consent__btn {
        flex: 1 1 auto;
    }
}
