/**
 * LNC Cookie Consent
 * Minimal styles - inherits font from theme
 */

[x-cloak] {
    display: none !important;
}

.lnc-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    padding: 16px;
    font-family: inherit;
}

.lnc-cookie-banner__content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.lnc-cookie-banner__text {
    flex: 1 1 400px;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

.lnc-cookie-banner__actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.lnc-cookie-banner__link {
    font-size: 13px;
    color: #666;
    text-decoration: underline;
    flex-shrink: 0;
}

.lnc-cookie-banner__link:hover {
    color: #000;
}

/* Buttons */
.lnc-btn {
    appearance: none;
    border: 1px solid;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.15s ease;
    border-radius: 2px;
    white-space: nowrap;
}

.lnc-btn:hover {
    opacity: 0.85;
}

.lnc-btn--primary {
    background: #000;
    color: #fff;
    border-color: #000;
}

.lnc-btn--secondary {
    background: transparent;
    color: #000;
    border-color: #ccc;
}

.lnc-btn--secondary:hover {
    border-color: #000;
}

.lnc-btn--outline {
    background: transparent;
    color: #000;
    border-color: #000;
}

.lnc-btn--full {
    width: 100%;
}

/* Customize Panel */
.lnc-cookie-banner__panel {
    max-width: 400px;
    margin: 0 auto;
}

.lnc-cookie-banner__panel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-weight: 600;
    font-size: 16px;
}

.lnc-cookie-banner__back {
    appearance: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}

.lnc-cookie-banner__back:hover {
    color: #000;
}

.lnc-cookie-banner__options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.lnc-cookie-banner__panel-actions {
    margin-top: 8px;
}

/* Toggle Switch */
.lnc-cookie-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px;
    background: #f5f5f5;
    border-radius: 4px;
    cursor: pointer;
}

.lnc-cookie-toggle__info {
    flex: 1;
}

.lnc-cookie-toggle__label {
    display: block;
    font-weight: 500;
    font-size: 14px;
    color: #000;
    margin-bottom: 2px;
}

.lnc-cookie-toggle__desc {
    display: block;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.lnc-cookie-toggle input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.lnc-cookie-toggle__switch {
    position: relative;
    width: 44px;
    height: 24px;
    background: #ccc;
    border-radius: 24px;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.lnc-cookie-toggle__switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.lnc-cookie-toggle input:checked + .lnc-cookie-toggle__switch {
    background: #000;
}

.lnc-cookie-toggle input:checked + .lnc-cookie-toggle__switch::after {
    transform: translateX(20px);
}

/* Mobile */
@media (max-width: 640px) {
    .lnc-cookie-banner {
        padding: 14px;
    }

    .lnc-cookie-banner__content {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .lnc-cookie-banner__text {
        flex: none;
    }

    .lnc-cookie-banner__actions {
        width: 100%;
    }

    .lnc-btn {
        flex: 1;
        text-align: center;
        padding: 12px 16px;
    }

    .lnc-cookie-banner__link {
        text-align: center;
    }
}
