/*
 * cookie-consent.css
 * LeadJaw CMS - www.leadjaw.com
 * Version: 1.1.0
 * Cookie consent banner styles
 */

/* ---------- Banner ---------- */

#lj-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #1e2340;
    color: #e8eaf0;
    padding: 20px 24px;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.18);
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.6;
}

#lj-cookie-banner.lj-cookie-visible {
    transform: translateY(0);
}

.lj-cookie-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

/* ---------- Text ---------- */

.lj-cookie-text {
    flex: 1 1 320px;
}

.lj-cookie-text p {
    margin: 0;
    color: #c8cad8;
    font-size: 13px;
}

.lj-cookie-text p a {
    color: #8DC63F;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.lj-cookie-text p a:hover {
    color: #a0d84a;
}

/* ---------- Toggles ---------- */

.lj-cookie-categories {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
    flex: 0 0 auto;
}

.lj-cookie-category {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #c8cad8;
    user-select: none;
}

.lj-cookie-category input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 36px;
    height: 20px;
    background: #3a3f5c;
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}

.lj-cookie-category input[type="checkbox"]:checked {
    background: #8DC63F;
}

.lj-cookie-category input[type="checkbox"]::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    transition: left 0.2s;
}

.lj-cookie-category input[type="checkbox"]:checked::after {
    left: 19px;
}

.lj-cookie-category input[type="checkbox"]:disabled {
    opacity: 0.5;
    cursor: default;
}

/* ---------- Buttons ---------- */

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

.lj-cookie-btn {
    display: inline-block;
    padding: 9px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    line-height: 1;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.lj-cookie-btn-accept {
    background: #8DC63F;
    color: #1e2340;
}

.lj-cookie-btn-accept:hover {
    background: #a0d84a;
}

.lj-cookie-btn-save {
    background: transparent;
    color: #8DC63F;
    border: 1px solid #8DC63F;
}

.lj-cookie-btn-save:hover {
    background: rgba(141,198,63,0.08);
}

.lj-cookie-btn-reject {
    background: transparent;
    color: #8a8fa8;
    border: 1px solid #3a3f5c;
}

.lj-cookie-btn-reject:hover {
    color: #c8cad8;
    border-color: #6a6f88;
}

/* ---------- Manage button ---------- */

#lj-cookie-manage-link {
    display: none;
    position: fixed;
    bottom: 16px;
    left: 16px;
    z-index: 9990;
    background: #1e2340;
    color: #8DC63F;
    border: 1px solid #3a3f5c;
    border-radius: 6px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
}

#lj-cookie-manage-link:hover {
    background: #252b4a;
}

/* ---------- Responsive ---------- */

@media (max-width: 680px) {
    .lj-cookie-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .lj-cookie-categories {
        gap: 12px;
    }

    .lj-cookie-actions {
        width: 100%;
    }

    .lj-cookie-btn {
        flex: 1;
        text-align: center;
    }
}
