/*
 * Brand demo panel styling.
 *
 * Deliberately self-referential: the panel itself uses the site's own --primary/--accent, so as
 * the prospect changes their colour, the customiser changes with it -- another small signal that
 * this is really their site responding.
 *
 * Fixed positioning and a high z-index so it floats over whatever page it is on, and it never
 * participates in the page's own layout.
 */

/* The trigger, living in the navbar. Uses --accent so it reads as a highlight against the
   brand-coloured header, and it re-tints itself as the prospect changes their colour. */
.bd-navbtn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 15px;
    border: 1px solid var(--accent, #C9A45C);
    border-radius: 999px;
    background: var(--accent, #C9A45C);
    color: #1c232b;
    font: 600 13.5px/1 'Barlow', system-ui, sans-serif;
    white-space: nowrap;
    cursor: pointer;
    transition: filter .16s ease, transform .16s ease;
}

.bd-navbtn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.bd-navbtn i { font-size: 15px; }

@media (max-width: 991px) {
    .bd-navbtn span { display: none; }
    .bd-navbtn { padding: 8px 10px; }
}

/* The panel is off-canvas to the right until opened. */
.bd {
    position: fixed;
    inset: 0;
    z-index: 12001;
    pointer-events: none;
    background: rgba(15, 20, 28, 0);
    transition: background .2s ease;
}

.bd.bd-show { pointer-events: auto; background: rgba(15, 20, 28, .35); }

.bd-panel {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 380px;
    max-width: 90vw;
    background: #fff;
    box-shadow: -18px 0 50px rgba(0, 0, 0, .18);
    padding: 24px 24px 32px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .24s cubic-bezier(.4, 0, .2, 1);
    font-family: 'Inter', system-ui, sans-serif;
}

.bd.bd-show .bd-panel { transform: translateX(0); }

.bd-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.bd-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent, #C9A45C);
}
.bd-title { margin: 4px 0 0; font: 700 20px/1.25 'Barlow', sans-serif; color: var(--primary, #0B1F33); }

.bd-x {
    border: none;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    color: #98a0a8;
    cursor: pointer;
}
.bd-x:hover { color: var(--primary, #0B1F33); }

.bd-lede { margin: 12px 0 20px; font-size: 13px; line-height: 1.55; color: #5f6870; }

.bd-field { display: block; margin-bottom: 18px; }
.bd-field > span {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: #2b333c;
    margin-bottom: 6px;
}
.bd-field small { display: block; margin-top: 5px; font-size: 11.5px; color: #8a929b; }

.bd-field input[type="text"],
.bd-field select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dfe3e8;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    color: #1c232b;
    background: #fff;
}
.bd-field input[type="text"]:focus,
.bd-field select:focus {
    outline: none;
    border-color: var(--primary, #0B1F33);
    box-shadow: 0 0 0 3px rgba(11, 31, 51, .1);
}

.bd-field input[type="file"] { width: 100%; font-size: 12.5px; }
.bd-field input[type="color"] {
    width: 100%;
    height: 42px;
    padding: 4px;
    border: 1px solid #dfe3e8;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}

.bd-presets { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bd-preset {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 11px;
    border: 1px solid #e2e6ea;
    border-radius: 10px;
    background: #fbfbfa;
    font: 500 12.5px/1.2 inherit;
    color: #2b333c;
    text-align: left;
    cursor: pointer;
    transition: border-color .14s ease;
}
.bd-preset:hover { border-color: var(--swatch, #0B1F33); }
.bd-preset-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex: none;
    background: var(--swatch, #0B1F33);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12);
}

.bd-actions { margin-top: 8px; display: flex; align-items: center; gap: 10px; }
.bd-cta {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 16px;
    border-radius: 10px;
    background: var(--primary, #0B1F33);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: filter .14s ease;
}
.bd-cta:hover { filter: brightness(1.08); color: #fff; }

.bd-reset {
    padding: 13px 14px;
    border: 1px solid #dfe3e8;
    border-radius: 10px;
    background: #fff;
    font-size: 13px;
    color: #5f6870;
    cursor: pointer;
}
.bd-reset:hover { border-color: #b9c0c7; color: #2b333c; }

/* The wordmark shown in place of a logo when a name is given but no logo uploaded. */
.brand-wordmark {
    font: 700 22px/1 'Barlow', sans-serif;
    color: var(--primary, #0B1F33);
    letter-spacing: -0.01em;
    white-space: nowrap;
}

