/* =============================================================
   Proprietary Cookie Consent — Full-Width Bottom Panel
   12StepNationalMeetings.com | MyNew Technologies LLC
   ============================================================= */

/* ── Reset ─────────────────────────────────────────────────── */
#pcc-panel, #pcc-panel * {
    box-sizing: border-box;
    font-family: 'Quicksand', 'Open Sans', -apple-system, sans-serif;
    line-height: 1.5;
}

/* ── Main panel — full-width bottom bar ─────────────────────── */
#pcc-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: #ffffff;
    color: #1a2a3a;
    border-top: 3px solid #0078B4;
    box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.14);
    z-index: 999999;
    max-height: 90vh;
    overflow-y: auto;
    animation: pccSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

#pcc-panel.pcc-hidden {
    display: none;
}

@keyframes pccSlideUp {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* ── Scrollbar ─────────────────────────────────────────────── */
#pcc-panel::-webkit-scrollbar { width: 4px; }
#pcc-panel::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }

/* ── Inner layout ───────────────────────────────────────────── */
.pcc-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 32px;
}

/* ── Header row ─────────────────────────────────────────────── */
.pcc-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.pcc-header-left { flex: 1; }

.pcc-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.pcc-brand-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0078B4, #00C8F0);
    box-shadow: 0 0 8px rgba(0, 120, 180, 0.4);
    flex-shrink: 0;
}

.pcc-brand-name {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #0078B4;
}

.pcc-title {
    font-size: 18px;
    font-weight: 700;
    color: #0a1929;
    margin: 0 0 6px;
}

.pcc-intro {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    max-width: 640px;
    line-height: 1.65;
}

.pcc-intro a {
    color: #0078B4;
    text-decoration: none;
}

.pcc-intro a:hover { text-decoration: underline; }

/* ── Action buttons (top-right) ─────────────────────────────── */
.pcc-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
    align-items: stretch;
    min-width: 180px;
}

.pcc-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.18s ease;
    text-align: center;
    white-space: nowrap;
}

#pcc-btn-accept-all {
    background: linear-gradient(135deg, #0078B4, #00C8F0);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 120, 180, 0.3);
}

#pcc-btn-accept-all:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 120, 180, 0.45);
}

#pcc-btn-save-prefs {
    background: #f1f5f9;
    color: #0078B4;
    border: 1px solid #cbd5e1;
}

#pcc-btn-save-prefs:hover {
    background: #e8f4fb;
    border-color: #0078B4;
}

#pcc-btn-reject-all {
    background: transparent;
    color: #94a3b8;
    font-size: 11px;
    padding: 6px 20px;
    font-weight: 500;
    border: none;
}

#pcc-btn-reject-all:hover { color: #D42B5A; }

/* ── Compliance badges ──────────────────────────────────────── */
.pcc-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}

.pcc-badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid #bfdbf7;
    color: #0078B4;
    background: #e8f4fb;
}

/* ── Categories grid ────────────────────────────────────────── */
.pcc-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

/* ── Category card ──────────────────────────────────────────── */
.pcc-cat {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.18s;
}

.pcc-cat:hover { border-color: #bfdbf7; }

.pcc-cat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    gap: 12px;
    cursor: default;
}

.pcc-cat-left { flex: 1; min-width: 0; }

.pcc-cat-name {
    font-size: 14px;
    font-weight: 700;
    color: #0a1929;
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 3px;
}

.pcc-required-tag {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: #e8f4fb;
    color: #0078B4;
    padding: 2px 6px;
    border-radius: 20px;
    border: 1px solid #bfdbf7;
}

.pcc-cat-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.55;
}

/* ── iOS-style toggle ───────────────────────────────────────── */
.pcc-toggle-wrap {
    flex-shrink: 0;
}

.pcc-toggle-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.pcc-toggle-label {
    display: block;
    width: 46px;
    height: 26px;
    background: #cbd5e1;
    border-radius: 13px;
    cursor: pointer;
    position: relative;
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

.pcc-toggle-label::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.pcc-toggle-input:checked + .pcc-toggle-label {
    background: linear-gradient(135deg, #0078B4, #00C8F0);
    box-shadow: 0 0 10px rgba(0, 120, 180, 0.35);
}

.pcc-toggle-input:checked + .pcc-toggle-label::after {
    transform: translateX(20px);
}

.pcc-toggle-input:disabled + .pcc-toggle-label {
    opacity: 0.55;
    cursor: not-allowed;
}

.pcc-toggle-input:focus-visible + .pcc-toggle-label {
    outline: 2px solid #0078B4;
    outline-offset: 2px;
}

/* ── Disclosure / collapsible section ───────────────────────── */
.pcc-disclosure {
    border-top: 1px solid #f1f5f9;
}

.pcc-disclosure-btn {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 10px 16px;
    font-size: 11px;
    font-weight: 600;
    color: #0078B4;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.15s;
}

.pcc-disclosure-btn:hover { background: #f8fafc; }

.pcc-disclosure-chevron {
    font-size: 10px;
    transition: transform 0.2s ease;
    margin-left: auto;
}

.pcc-cat.pcc-open .pcc-disclosure-chevron {
    transform: rotate(180deg);
}

.pcc-disclosure-body {
    display: none;
    padding: 0 16px 14px;
    font-size: 12px;
    color: #64748b;
    line-height: 1.7;
    border-left: 3px solid #e8f4fb;
    margin: 0 16px 0;
    background: #f8fafc;
    border-radius: 0 0 6px 6px;
}

.pcc-cat.pcc-open .pcc-disclosure-body {
    display: block;
    animation: pccFadeIn 0.2s ease;
}

@keyframes pccFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── CCPA "Do Not Sell" section ─────────────────────────────── */
.pcc-ccpa {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.pcc-ccpa-icon {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 1px;
}

.pcc-ccpa-body { flex: 1; }

.pcc-ccpa-title {
    font-size: 14px;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 4px;
}

.pcc-ccpa-text {
    font-size: 12px;
    color: #78350f;
    line-height: 1.65;
    margin: 0;
}

.pcc-ccpa-right {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

/* ── Footer bar ─────────────────────────────────────────────── */
.pcc-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
    flex-wrap: wrap;
    gap: 8px;
}

.pcc-authorship {
    font-size: 11px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pcc-authorship-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #0078B4;
    opacity: 0.5;
}

.pcc-authorship a {
    color: #0078B4;
    text-decoration: none;
    font-weight: 600;
}

.pcc-authorship a:hover { text-decoration: underline; }

.pcc-footer-links {
    display: flex;
    gap: 14px;
}

.pcc-footer-links a {
    font-size: 11px;
    color: #94a3b8;
    text-decoration: none;
}

.pcc-footer-links a:hover { color: #0078B4; }

/* ── Reduced motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    #pcc-panel,
    .pcc-toggle-label,
    .pcc-toggle-label::after {
        animation: none;
        transition: none;
    }
}

/* ── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .pcc-inner { padding: 16px; }

    .pcc-header {
        flex-direction: column;
        gap: 16px;
    }

    .pcc-actions {
        flex-direction: row;
        flex-wrap: wrap;
        min-width: 0;
        width: 100%;
    }

    #pcc-btn-accept-all,
    #pcc-btn-save-prefs {
        flex: 1;
    }

    #pcc-btn-reject-all {
        width: 100%;
    }

    .pcc-categories {
        grid-template-columns: 1fr;
    }

    .pcc-ccpa {
        flex-direction: column;
    }
}
