#cookie-consent-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 1100;
    align-self: flex-start;
    flex: 0 0 auto;
    height: auto;
    width: auto;
    background: #ffffff;
    color: #212529;
    border: 1px solid #e2e6ea;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(20, 40, 60, 0.18);
    padding: 14px 16px;
    transform: translateY(120%);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
    max-width: 720px;
    margin: 0 auto;
}

#cookie-consent-banner.is-active {
    transform: translateY(0);
    opacity: 1;
}

.cookie-consent-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-consent-content {
    flex: 1 1 auto;
    min-width: 0;
}

.cookie-consent-title {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 4px;
    color: #212529;
}

.cookie-consent-text {
    font-size: 0.92rem;
    line-height: 1.45;
    color: #495057;
    margin: 0;
}

.cookie-consent-text a {
    color: #1e73be;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-consent-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-consent-btn {
    border: none;
    cursor: pointer;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    font-family: inherit;
}

.cookie-consent-btn-accept {
    background: #1e73be;
    color: #ffffff;
}

.cookie-consent-btn-accept:hover {
    background: #0d5ca0;
}

.cookie-consent-btn-refuse {
    background: transparent;
    color: #212529;
    border: 1px solid #ced4da;
}

.cookie-consent-btn-refuse:hover {
    background: #f4f6f8;
}

@media (max-width: 640px) {
    #cookie-consent-banner {
        left: 10px;
        right: 10px;
        bottom: 72px;
        padding: 8px 10px;
        border-radius: 10px;
    }

    .cookie-consent-container {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .cookie-consent-title {
        display: none;
    }

    .cookie-consent-text {
        font-size: 0.75rem;
        line-height: 1.3;
    }

    .cookie-consent-actions {
        flex-direction: row;
    }

    .cookie-consent-btn {
        flex: 1;
        min-height: 40px;
        padding: 8px 10px;
        font-size: 0.85rem;
    }
}

.cookie-page {
    padding: 3rem 0 4rem;
}

.cookie-page h2 {
    margin: 2rem 0 0.75rem;
}

.cookie-page p,
.cookie-page li {
    color: #343a40;
    line-height: 1.55;
}

.cookie-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
    background: #f8f9fa;
    border: 1px solid #e2e6ea;
    border-radius: 10px;
    margin-bottom: 12px;
}

.cookie-row-title {
    font-weight: 700;
    margin-bottom: 4px;
}

.cookie-row-desc {
    color: #495057;
    font-size: 0.92rem;
    margin: 0;
}

.jf-toggle {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.jf-toggle-track {
    width: 52px;
    height: 28px;
    background: #adb5bd;
    border-radius: 14px;
    position: relative;
    transition: background 0.25s ease;
}

.jf-toggle.is-on .jf-toggle-track {
    background: #1e73be;
}

.jf-toggle.is-locked {
    cursor: default;
}

.jf-toggle.is-locked .jf-toggle-track {
    background: #1e73be;
    opacity: 0.55;
}

.jf-toggle-dot {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background: #ffffff;
    border-radius: 50%;
    transition: transform 0.25s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.jf-toggle.is-on .jf-toggle-dot,
.jf-toggle.is-locked .jf-toggle-dot {
    transform: translateX(24px);
}

.cookie-feedback {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: #e8f5ee;
    color: #145c32;
}

@media (max-width: 640px) {
    .cookie-row {
        align-items: flex-start;
    }
}
