/* Cookie consent bar — bottom sheet, above fixed navbar */
.cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10050;
    padding: 0 16px 16px;
    pointer-events: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.cookie-consent[data-visible="1"] {
    pointer-events: auto;
}

.cookie-consent__panel {
    max-width: 960px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 20px 20px 16px 16px;
    box-shadow:
        0 -8px 40px rgba(13, 27, 42, 0.12),
        0 4px 24px rgba(21, 101, 192, 0.1);
    overflow: hidden;
    transform: translateY(calc(100% + 24px));
    opacity: 0;
    transition:
        transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.4s ease;
}

.cookie-consent[data-visible="1"] .cookie-consent__panel {
    transform: translateY(0);
    opacity: 1;
}

.cookie-consent__accent {
    height: 4px;
    background: linear-gradient(90deg, #1565c0, #1e88e5, #00897b);
    width: 100%;
}

.cookie-consent__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem 1.25rem;
    align-items: start;
    padding: 1.15rem 1.25rem 1.25rem;
}

@media (max-width: 768px) {
    .cookie-consent__inner {
        grid-template-columns: 1fr;
        padding: 1rem 1rem 1.1rem;
    }
}

.cookie-consent__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(21, 101, 192, 0.14), rgba(0, 137, 123, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1565c0;
    font-size: 1.35rem;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .cookie-consent__icon {
        display: none;
    }
}

.cookie-consent__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.35rem;
    letter-spacing: -0.02em;
}

.cookie-consent__text {
    font-size: 0.875rem;
    line-height: 1.55;
    color: #475569;
    margin: 0;
}

.cookie-consent__text a {
    color: #1565c0;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid rgba(21, 101, 192, 0.4);
    transition: color 0.2s, border-color 0.2s;
}

.cookie-consent__text a:hover {
    color: #0d47a1;
    border-bottom-color: #0d47a1;
}

.cookie-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .cookie-consent__actions {
        justify-content: stretch;
        width: 100%;
    }
    .cookie-consent__actions .cookie-consent__btn {
        flex: 1;
        min-width: 0;
    }
}

.cookie-consent__btn {
    border: none;
    border-radius: 12px;
    padding: 0.65rem 1.15rem;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s;
}

.cookie-consent__btn:active {
    transform: scale(0.98);
}

.cookie-consent__btn--primary {
    background: linear-gradient(135deg, #1e88e5, #00897b);
    color: #fff;
    box-shadow: 0 4px 14px rgba(21, 101, 192, 0.35);
}

.cookie-consent__btn--primary:hover {
    box-shadow: 0 6px 20px rgba(0, 137, 123, 0.35);
}

.cookie-consent__btn--ghost {
    background: rgba(15, 23, 42, 0.06);
    color: #334155;
    border: 1px solid rgba(15, 23, 42, 0.1);
}

.cookie-consent__btn--ghost:hover {
    background: rgba(15, 23, 42, 0.09);
    color: #0f172a;
}

.cookie-consent__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.05);
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.cookie-consent__close:hover {
    background: rgba(15, 23, 42, 0.1);
    color: #0f172a;
}

.cookie-consent__panel-wrap {
    position: relative;
}
