:root {
    --primary-color: #0d3b66;
    --accent-color: #ee6c4d;
    --bg-color: #f8f8f8;
    --text-color: #222;
    font-weight: bold;
    margin-top: 10px;
}

body {
    font-family: -apple-system, sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    display: flex;
    justify-content: center;
    padding: 40px 20px;
    font-weight: bold;
    margin-top: 10px;
}

.wrapper {
    max-width: 480px;
    width: 100%;
    text-align: center;
    font-weight: bold;
    margin-top: 10px;
}

.logo { width: 48px; margin-bottom: 20px; }

h1 { color: var(--primary-color); }

.subtitle { color: #666; margin-bottom: 20px; }

form input {
    display: block;
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-weight: bold;
    margin-top: 10px;
}

form button {
    background: var(--accent-color);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-weight: bold;
    margin-top: 10px;
}

.error { color: #c0392b; }

.status-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
    font-weight: bold;
    margin-top: 10px;
}

.status-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-weight: bold;
    margin-top: 10px;
}
.status-row:last-child { border-bottom: none; }

.label { color: #666; }
.value { font-weight: 600; }
.mono { font-family: monospace; font-size: 0.9em; }

.hint { color: #666; font-size: 0.9em; margin: 20px 0; }

.product-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    margin: 20px 0;
    font-weight: bold;
    margin-top: 10px;
}

.logout-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    font-weight: bold;
    margin-top: 10px;
}

.fake-ad-banner {
    border: 2px dashed #999;
    padding: 12px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fafafa;
    font-weight: bold;
    margin-top: 10px;
}
.fake-ad-banner img {
    width: 32px;
    height: 32px;
    font-weight: bold;
    margin-top: 10px;
}
.ad-label {
    font-size: 0.75em;
    font-weight: bold;
    color: #999;
    letter-spacing: 1px;
    font-weight: bold;
    margin-top: 10px;
}
.product-card img { max-width: 120px; height: auto; display: block; margin: 0 auto; border-radius: 4px; }
body { padding-bottom: 160px; }
body.ad-sim-open { padding-bottom: 260px; }

.card-header {
    color: #aaa;
    font-size: 0.8em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: bold;
    margin-top: 10px;
}

.gm-manage-consent {
    background: var(--accent-color) !important;
    color: #fff !important;
    border: none !important;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600 !important;
    cursor: pointer !important;
    font-weight: bold;
    margin-top: 10px;
}

/* ==========================================================
   Guided demo UI (site badges, cross-site nav, help, reset)
   Theme-agnostic: inherits each site's --primary/--accent.
   ========================================================== */

/* --- Site badge ------------------------------------------------ */
.site-badge {
    display: inline-block;
    padding: 6px 16px;
    margin: 0 0 16px;
    border-radius: 999px;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.78em;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}
.site-badge .badge-note {
    opacity: 0.8;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* --- Cross-site navigation ------------------------------------- */
.site-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 26px 0 6px;
}

.nav-btn {
    display: inline-block;
    padding: 11px 20px;
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    background: #fff;
    color: var(--accent-color);
    font-size: 0.9em;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}
.nav-btn:hover { background: var(--bg-color); }
.nav-btn.primary { background: var(--accent-color); color: #fff; }
.nav-btn.primary:hover { filter: brightness(0.93); }

.nav-caption {
    color: #666;
    font-size: 0.85em;
    font-weight: 600;
    margin: 10px 0 0;
}

/* --- Floating help button + panel ------------------------------ */
.help-fab {
    position: fixed;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--primary-color);
    background: #fff;
    color: var(--primary-color);
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    z-index: 10000;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}
.help-fab:hover { background: var(--bg-color); }

.help-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 9999;
    display: none;
}
.help-backdrop.open { display: block; }

.help-panel {
    position: fixed;
    top: 62px;
    right: 16px;
    width: min(380px, calc(100vw - 32px));
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    padding: 20px 22px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
    text-align: left;
    z-index: 10001;
    display: none;
}
.help-panel.open { display: block; }

.help-panel h2 {
    margin: 0 0 12px;
    font-size: 1.02em;
    color: var(--primary-color);
}
.help-panel p {
    margin: 0 0 12px;
    font-size: 0.88em;
    font-weight: 600;
    color: #444;
    line-height: 1.5;
}
.help-panel p.fine {
    font-size: 0.8em;
    color: #777;
    margin-bottom: 0;
}

.help-steps {
    margin: 0 0 14px;
    padding-left: 20px;
    font-size: 0.88em;
    color: #444;
    line-height: 1.5;
}
.help-steps li {
    margin-bottom: 10px;
    font-weight: 600;
}
.help-steps li:last-child { margin-bottom: 0; }

.help-close {
    display: block;
    width: 100%;
    margin-top: 14px;
    padding: 9px 16px;
    border: none;
    border-radius: 4px;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.85em;
    font-weight: 700;
    cursor: pointer;
}

/* --- Inline "?" disclosure (reset instructions) ---------------- */
.help-disclosure {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0 18px;
    margin: 20px 0;
    text-align: left;
}
.help-disclosure > summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 0;
    font-size: 0.95em;
    font-weight: 700;
    color: var(--primary-color);
    cursor: pointer;
    list-style: none;
}
.help-disclosure > summary::-webkit-details-marker { display: none; }
.help-disclosure[open] > summary { border-bottom: 1px solid #eee; }

.help-dot {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid var(--accent-color);
    background: #fff;
    color: var(--accent-color);
    font-size: 12px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

.disclosure-body {
    padding: 14px 0 18px;
    font-size: 0.88em;
    font-weight: 600;
    color: #444;
    line-height: 1.55;
}
.disclosure-body p { margin: 0 0 12px; }
.disclosure-body p:last-child { margin-bottom: 0; }

.steps {
    margin: 0 0 14px;
    padding-left: 20px;
}
.steps li { margin-bottom: 8px; }

.path {
    display: inline-block;
    padding: 1px 6px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background: #f4f4f4;
    font-family: monospace;
    font-size: 0.95em;
    color: #222;
}

.note {
    padding: 11px 13px;
    border-left: 3px solid var(--accent-color);
    background: var(--bg-color);
    font-size: 0.95em;
}

/* --- Sequential callout frame ---------------------------------- */
/* Narrow screens: sits in the flow between the UUID card and the
   Accepted Cookie Categories card. Wide screens: pinned in the left
   gutter, clear of the centered wrapper. */
:root {
    /* Adjust --callout-frame-top-offset to align the UUID card with the
       'Computed UUID' row on the page. Increase the value to move it
       down further. */
    --callout-frame-top-offset: 100px;
    /* Demo-notes orange on both sites, independent of each site's accent. */
    --callout-color: #ee6c4d;
}

.callout-frame {
    position: relative;
    margin: 20px 0;
    padding: 12px 14px 2px;
    border: 2px solid var(--callout-color);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(238, 108, 77, 0.22);
    text-align: left;
    animation: callout-in 0.45s ease-out both;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.callout-frame.dismissed {
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
}

.callout-dismiss {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--callout-color);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 28px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.callout-dismiss:hover { filter: brightness(0.93); }

.callout-title {
    margin: 2px 40px 12px 0;
    font-size: 0.75em;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--callout-color);
}

.callout-card {
    margin-bottom: 12px;
    padding: 12px 14px;
    border-left: 4px solid var(--callout-color);
    border-radius: 6px;
    background: rgba(238, 108, 77, 0.08);
}
.callout-card h3 {
    margin: 0 0 6px;
    font-size: 0.95em;
    color: var(--callout-color);
}
.callout-card p {
    margin: 0;
    font-size: 0.84em;
    font-weight: 600;
    color: #444;
    line-height: 1.5;
}

.callout-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.84em;
    font-weight: 700;
    color: var(--callout-color);
    text-decoration: none;
}
.callout-link:hover { text-decoration: underline; }

/* Second card: collapsed until .visible, then expands and fades in. */
.callout-reveal {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transform: translateY(-6px);
    transition: grid-template-rows 0.5s ease, opacity 0.45s ease 0.1s, transform 0.45s ease 0.1s;
}
.callout-reveal.visible {
    grid-template-rows: 1fr;
    opacity: 1;
    transform: none;
}
.callout-reveal-inner { overflow: hidden; min-height: 0; }

@keyframes callout-in {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: none; }
}

@media (min-width: 1100px) {
    .callout-frame {
        position: fixed;
        top: calc(110px + var(--callout-frame-top-offset));
        left: 24px;
        width: min(320px, calc(50vw - 240px - 56px));
        max-height: calc(100vh - 140px - var(--callout-frame-top-offset));
        overflow-y: auto;
        margin: 0;
        z-index: 9000;
    }
}

@media (prefers-reduced-motion: reduce) {
    .callout-frame, .callout-reveal { animation: none; transition: none; }
}
