/* ── Lyson Cookie Consent – consent.css ── */

:root {
    --lcc-accent:  #3D9BB4;
    --lcc-dark:    #0F3A6D;
    --lcc-bg:      #ffffff;
    --lcc-border:  #e8ecf0;
    --lcc-text:    #1a2332;
    --lcc-muted:   #6b7a8d;
    --lcc-radius:  12px;
    --lcc-shadow:  0 8px 40px rgba(15,58,109,0.18);
    --lcc-z:       999999;
}

/* ── Overlay (center mode) ── */
.lcc-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,58,109,0.45);
    backdrop-filter: blur(3px);
    z-index: calc(var(--lcc-z) - 1);
}

/* ── Banner wrapper ── */
.lcc-banner {
    position: fixed;
    z-index: var(--lcc-z);
    background: var(--lcc-bg);
    box-shadow: var(--lcc-shadow);
    font-family: -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
    font-size: 14px;
    color: var(--lcc-text);
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), opacity 0.35s ease;
    opacity: 0;
}

.lcc-banner.lcc-visible { opacity: 1; }

/* Bottom bar */
.lcc-pos-bottom {
    bottom: 0; left: 0; right: 0;
    border-top: 3px solid var(--lcc-accent);
    border-radius: var(--lcc-radius) var(--lcc-radius) 0 0;
    transform: translateY(100%);
    max-width: 100%;
}
.lcc-pos-bottom.lcc-visible { transform: translateY(0); }

/* Top bar */
.lcc-pos-top {
    top: 0; left: 0; right: 0;
    border-bottom: 3px solid var(--lcc-accent);
    border-radius: 0 0 var(--lcc-radius) var(--lcc-radius);
    transform: translateY(-100%);
}
.lcc-pos-top.lcc-visible { transform: translateY(0); }

/* Center popup */
.lcc-pos-center {
    top: 50%; left: 50%;
    transform: translate(-50%, -46%) scale(0.96);
    width: min(520px, 94vw);
    border-radius: var(--lcc-radius);
    border-top: 4px solid var(--lcc-accent);
}
.lcc-pos-center.lcc-visible { transform: translate(-50%, -50%) scale(1); }

/* ── Panel ── */
.lcc-panel { padding: 20px 24px; }

/* Main layout */
#lcc-main {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.lcc-icon {
    font-size: 26px;
    line-height: 1;
    padding-top: 2px;
    flex-shrink: 0;
}

.lcc-text {
    flex: 1;
    min-width: 180px;
}
.lcc-text h3 {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
    color: var(--lcc-dark);
}
.lcc-text p {
    margin: 0;
    color: var(--lcc-muted);
    line-height: 1.5;
}
.lcc-text a {
    color: var(--lcc-accent);
    text-decoration: underline;
}

/* ── Action buttons ── */
.lcc-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.lcc-btn {
    padding: 9px 18px;
    border-radius: 7px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
    border: 2px solid transparent;
    white-space: nowrap;
    line-height: 1;
}

.lcc-btn-primary {
    background: var(--lcc-accent);
    color: #fff;
    border-color: var(--lcc-accent);
}
.lcc-btn-primary:hover {
    background: var(--lcc-dark);
    border-color: var(--lcc-dark);
}

.lcc-btn-outline {
    background: transparent;
    color: var(--lcc-accent);
    border-color: var(--lcc-accent);
}
.lcc-btn-outline:hover {
    background: var(--lcc-accent);
    color: #fff;
}

.lcc-btn-ghost {
    background: transparent;
    color: var(--lcc-muted);
    border-color: var(--lcc-border);
}
.lcc-btn-ghost:hover {
    background: var(--lcc-border);
    color: var(--lcc-text);
}

/* ── Customize panel ── */
#lcc-customize h3 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
    color: var(--lcc-dark);
}
.lcc-sub {
    margin: 0 0 16px;
    color: var(--lcc-muted);
    font-size: 13px;
}

.lcc-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 0;
    border-bottom: 1px solid var(--lcc-border);
    gap: 12px;
}
.lcc-toggle-row:last-of-type { border-bottom: none; }

.lcc-toggle-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.lcc-toggle-info strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--lcc-text);
}
.lcc-toggle-info span {
    font-size: 12px;
    color: var(--lcc-muted);
    line-height: 1.4;
}

/* Toggle switch */
.lcc-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
    cursor: pointer;
}
.lcc-toggle input { opacity: 0; width: 0; height: 0; }
.lcc-slider {
    position: absolute;
    inset: 0;
    background: #d0d8e4;
    border-radius: 24px;
    transition: background 0.2s ease;
}
.lcc-slider::before {
    content: '';
    position: absolute;
    height: 18px; width: 18px;
    left: 3px; bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.lcc-toggle input:checked + .lcc-slider {
    background: var(--lcc-accent);
}
.lcc-toggle input:checked + .lcc-slider::before {
    transform: translateX(20px);
}
.lcc-toggle-disabled { cursor: not-allowed; }
.lcc-toggle-disabled .lcc-slider { background: var(--lcc-accent); opacity: 0.5; }
.lcc-toggle-disabled .lcc-slider::before { transform: translateX(20px); }

.lcc-actions-custom {
    margin-top: 18px;
    justify-content: flex-end;
}

/* ── Re-open button ── */
.lcc-reopen {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 42px;
    height: 42px;
    background: var(--lcc-bg);
    border: 2px solid var(--lcc-border);
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(15,58,109,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: calc(var(--lcc-z) - 2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.lcc-reopen:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(15,58,109,0.22);
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .lcc-panel { padding: 16px; }
    #lcc-main  { flex-direction: column; gap: 12px; }
    .lcc-icon  { display: none; }
    .lcc-actions { width: 100%; justify-content: stretch; }
    .lcc-btn { flex: 1; text-align: center; padding: 10px 8px; }
    .lcc-actions-custom { flex-wrap: wrap; }
}
