/* Cookie banner and Cookie Settings panel. Self-contained so it works on the landing, pricing, coming-soon and legal pages. */
.cc-banner,
.cc-panel {
    --cc-ink: #0f172a;
    --cc-muted: #5b6573;
    --cc-line: #e6e9ef;
    --cc-orange: #ff5c1d;
    --cc-orange-deep: #e8541a;
    font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
    color: var(--cc-ink);
}

.cc-banner[hidden] { display: none !important; }

.cc-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 2147483000;
    max-width: 1040px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--cc-line);
    border-radius: 16px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
}

.cc-banner-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.25rem;
    align-items: center;
    padding: 1.25rem 1.5rem;
}

.cc-banner h2,
.cc-panel h2 { margin: 0 0 0.4rem; font-size: 1.1rem; font-weight: 700; }
.cc-banner p,
.cc-panel p { margin: 0 0 0.35rem; font-size: 0.9rem; line-height: 1.5; color: var(--cc-muted); }
.cc-links a,
.cc-panel a { color: var(--cc-ink); text-decoration: underline; text-underline-offset: 2px; }

.cc-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: flex-end; }

/* Accept and Reject look the same, so rejecting is as easy as accepting. */
.cc-btn {
    min-height: 44px;
    padding: 0.6rem 1.1rem;
    border-radius: 10px;
    border: 1.5px solid var(--cc-orange);
    background: var(--cc-orange);
    color: #fff;
    font: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
}
.cc-btn:hover { background: var(--cc-orange-deep); border-color: var(--cc-orange-deep); }
.cc-btn-quiet { background: #fff; color: var(--cc-ink); border-color: var(--cc-line); }
.cc-btn-quiet:hover { background: #f4f6f8; border-color: var(--cc-line); }
.cc-btn:focus-visible,
.cc-close:focus-visible,
.cc-switch input:focus-visible { outline: 3px solid rgba(255, 92, 29, 0.45); outline-offset: 2px; }

.cc-panel {
    width: min(620px, calc(100vw - 2rem));
    max-height: calc(100vh - 2rem);
    padding: 0;
    border: 1px solid var(--cc-line);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
}
.cc-panel::backdrop { background: rgba(15, 23, 42, 0.45); }
.cc-panel-body { position: relative; padding: 1.5rem; display: grid; gap: 0.35rem; }

.cc-category { border-top: 1px solid var(--cc-line); padding-top: 0.85rem; margin-top: 0.5rem; }
.cc-category-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.cc-category h3 { margin: 0 0 0.3rem; font-size: 0.95rem; font-weight: 600; }

.cc-switch { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.82rem; color: var(--cc-muted); white-space: nowrap; cursor: pointer; }
.cc-switch input { width: 2.4rem; height: 1.3rem; accent-color: var(--cc-orange); cursor: pointer; }
.cc-switch input:disabled { cursor: not-allowed; }

.cc-saved { color: #166534 !important; font-weight: 600; margin-top: 0.6rem !important; }
.cc-panel .cc-actions { margin-top: 0.75rem; justify-content: flex-start; }

.cc-close {
    position: absolute;
    top: 0.6rem;
    right: 0.75rem;
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--cc-muted);
    cursor: pointer;
}

/* Footer "Cookie Settings" link and inline text buttons that look like links. */
.cc-link-button,
.legal-inline-button {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

@media (max-width: 760px) {
    .cc-banner { left: 0.5rem; right: 0.5rem; bottom: 0.5rem; }
    .cc-banner-inner { grid-template-columns: 1fr; padding: 1rem; }
    .cc-actions { justify-content: stretch; }
    .cc-actions .cc-btn { flex: 1 1 100%; }
    .cc-panel-body { padding: 1.25rem 1rem; }
}

/* Legal links and company line in the public footers. */
.legal-foot { display: grid; gap: 10px; min-width: 0; }
.legal-foot-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; }
.legal-foot-links a,
.legal-foot-links .cc-link-button {
    color: #0f172a;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}
.legal-foot-links a:hover,
.legal-foot-links .cc-link-button:hover { color: #e8541a; }
.legal-foot-company { margin: 0; font-size: 12.5px; line-height: 1.6; color: #5b6573; }
.legal-foot-company span { white-space: nowrap; }
.legal-foot-company span:not(:last-child)::after { content: " · "; }

@media (max-width: 640px) {
    .legal-foot-links { gap: 6px 16px; }
    .legal-foot-company span { display: block; white-space: normal; }
    .legal-foot-company span:not(:last-child)::after { content: none; }
}
