/* =============================================================================
   LZT Cookie Bar
   ============================================================================= */

/* ---- Bar container (fixed bottom) ---------------------------------------- */

.lzt-cookie-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.875rem;
    line-height: 1.5;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.lzt-cookie-bar--visible {
    transform: translateY(0);
}

/* ---- Bar content strip ---------------------------------------------------- */

.lzt-cookie-bar-content {
    background: #ffffff;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.10);
    border-top: 1px solid #f0f0f0;
}

.lzt-cookie-bar-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 20px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 20px;
}

.lzt-cookie-bar-title {
    display: block;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 2px;
}

.lzt-cookie-bar-desc {
    margin: 0;
    color: #4b5563;
    font-size: 0.8125rem;
}

.lzt-cookie-bar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.lzt-cookie-privacy-link {
    font-size: 0.75rem;
    color: #6b7280;
    text-decoration: underline;
    white-space: nowrap;
    flex-shrink: 0;
}

.lzt-cookie-privacy-link:hover {
    color: #111827;
}

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

.lzt-cookie-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    white-space: nowrap;
    text-decoration: none;
}

.lzt-cookie-btn--primary {
    background: #fecb00;
    color: #1c1917;
    border-color: #fecb00;
}

.lzt-cookie-btn--primary:hover {
    background: #f0c000;
    border-color: #f0c000;
}

.lzt-cookie-btn--secondary {
    background: transparent;
    color: #374151;
    border-color: #d1d5db;
}

.lzt-cookie-btn--secondary:hover {
    border-color: #9ca3af;
    color: #111827;
}

.lzt-cookie-btn--link {
    background: transparent;
    color: #6b7280;
    border-color: transparent;
    padding-left: 4px;
    padding-right: 4px;
    font-weight: 500;
}

.lzt-cookie-btn--link:hover {
    color: #111827;
}

/* ---- Settings panel ------------------------------------------------------- */

.lzt-cookie-panel {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12);
    max-height: 60vh;
    overflow-y: auto;
}

.lzt-cookie-panel-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 20px 4px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ---- Category block ------------------------------------------------------- */

.lzt-cookie-cat {
    padding: 16px 0;
    border-bottom: 1px solid #f3f4f6;
}

.lzt-cookie-cat:last-of-type {
    border-bottom: none;
}

.lzt-cookie-cat-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.lzt-cookie-cat-info {
    flex: 1;
}

.lzt-cookie-cat-name {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 2px;
}

.lzt-cookie-cat-desc {
    margin: 0;
    font-size: 0.8125rem;
    color: #6b7280;
}

/* ---- Toggle switch -------------------------------------------------------- */

.lzt-cookie-toggle {
    position: relative;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    margin-top: 2px;
}

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

.lzt-cookie-toggle-track {
    display: block;
    width: 40px;
    height: 22px;
    background: #d1d5db;
    border-radius: 11px;
    transition: background 0.2s;
    position: relative;
}

.lzt-cookie-toggle-track::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    background: #ffffff;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.lzt-cookie-toggle input:checked + .lzt-cookie-toggle-track {
    background: #fecb00;
}

.lzt-cookie-toggle input:checked + .lzt-cookie-toggle-track::after {
    transform: translateX(18px);
}

.lzt-cookie-toggle--locked {
    cursor: default;
    opacity: 0.6;
}

/* ---- Cookie table (collapsible) ------------------------------------------ */

.lzt-cookie-details {
    margin-top: 8px;
}

.lzt-cookie-details summary {
    font-size: 0.75rem;
    color: #6b7280;
    cursor: pointer;
    user-select: none;
    padding: 4px 0;
}

.lzt-cookie-details summary:hover {
    color: #374151;
}

.lzt-cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
    font-size: 0.75rem;
}

.lzt-cookie-table thead th {
    text-align: left;
    padding: 4px 8px;
    color: #6b7280;
    font-weight: 600;
    border-bottom: 1px solid #e5e7eb;
}

.lzt-cookie-table tbody td {
    padding: 4px 8px;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: top;
}

.lzt-cookie-table code {
    font-size: 0.7rem;
    background: #f3f4f6;
    padding: 1px 4px;
    border-radius: 3px;
}

/* ---- Save button (bottom of panel) --------------------------------------- */

.lzt-cookie-panel-inner > .lzt-cookie-btn--primary {
    align-self: flex-start;
    margin: 16px 0 20px;
}

/* ---- Shortcode trigger button --------------------------------------------- */

.lzt-cookie-settings-trigger {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
    color: inherit;
    font: inherit;
}

/* ---- Mobile --------------------------------------------------------------- */

@media (max-width: 639px) {
    .lzt-cookie-bar-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 14px 16px;
    }

    .lzt-cookie-bar-actions {
        flex-direction: column;
        gap: 8px;
    }

    .lzt-cookie-btn {
        width: 100%;
        justify-content: center;
        padding: 10px 18px;
    }

    .lzt-cookie-btn--link {
        width: auto;
        align-self: center;
    }

    .lzt-cookie-privacy-link {
        text-align: center;
    }

    .lzt-cookie-panel {
        max-height: 65vh;
    }
}
