:root {
    --card-radius: 1.5rem;
    --button-radius: 999px;
    --brand-navy: #102544;
    --brand-gold: #b8872d;
    --brand-gold-dark: #8b6217;
    --brand-line: #e4d6bc;
    --brand-sand: #fff8ef;
    --brand-sky: #eef6ff;
    --brand-blush: #fff1f3;
    --brand-mint: #edf9f1;
    --brand-orchid: #f4efff;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { font-family: 'Roboto', system-ui, sans-serif; }
section[id], div[id] { scroll-margin-top: 6rem; }
.site-header { backdrop-filter: saturate(160%) blur(8px); }
h1, h2, h3, h4, h5, h6 { text-transform: capitalize; letter-spacing: -0.01em; }

.card {
    border: 1px solid var(--brand-line);
    border-radius: var(--card-radius);
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(16, 37, 68, 0.05);
}

.btn-primary,
.btn-secondary,
.btn-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: var(--button-radius);
    padding: 0.8rem 1.1rem;
    font-size: 0.95rem;
    font-weight: 700;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    border: 1px solid var(--brand-gold);
    background: var(--brand-gold);
    color: #ffffff;
}
.btn-primary:hover {
    background: var(--brand-gold-dark);
    border-color: var(--brand-gold-dark);
    box-shadow: 0 10px 18px rgba(184, 135, 45, 0.16);
    transform: translateY(-1px);
}

.btn-secondary {
    border: 1px solid var(--brand-line);
    background: #ffffff;
    color: var(--brand-navy);
}
.btn-secondary:hover {
    background: #fffaf1;
    border-color: #d7c3a0;
}

.btn-light {
    border: 1px solid #ffffff;
    background: #ffffff;
    color: var(--brand-navy);
}
.btn-light:hover { background: #f8fafc; }

.form-label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--brand-navy);
}

.form-input,
.form-select,
.form-textarea,
.form-file {
    width: 100%;
    border: 1px solid #d9cfbf;
    border-radius: 1rem;
    background: #ffffff;
    padding: 0.85rem 1rem;
    color: #0f172a;
    outline: none;
}
.form-file { padding: 0.75rem 0.9rem; }

.form-input:focus,
.form-select:focus,
.form-textarea:focus,
.form-file:focus {
    border-color: #cda75b;
    box-shadow: 0 0 0 4px rgba(184, 135, 45, 0.12);
}

.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid #ead39f;
    background: #fff4dc;
    padding: 0.45rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-gold-dark);
}

.step-badge {
    display: inline-flex;
    height: 2.75rem;
    width: 2.75rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #fff4dc;
    color: var(--brand-gold-dark);
    font-weight: 800;
    box-shadow: inset 0 0 0 1px rgba(184, 135, 45, 0.15);
}

code {
    border-radius: 0.6rem;
    background: #f8fafc;
    padding: 0.15rem 0.35rem;
}

footer a { transition: color 0.2s ease; }
.footer-link-group { font-size: 0.9375rem; }


.form-textarea { min-height: 8rem; }

.rich-editor-wrap {
    border: 1px solid #d9cfbf;
    border-radius: 1rem;
    background: #ffffff;
    overflow: hidden;
    position: relative;
}
.rich-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.75rem;
    border-bottom: 1px solid #efe5d3;
    background: #fcfaf6;
}
.rich-editor-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.4rem;
    border: 1px solid #ddd1bb;
    border-radius: 999px;
    padding: 0.45rem 0.7rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--brand-navy);
    background: #ffffff;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}
.rich-editor-button:hover {
    background: #fff7ea;
    border-color: #cda75b;
}
.rich-editor {
    display: block;
    min-height: 220px;
    max-height: 420px;
    overflow-y: auto;
    padding: 1rem;
    outline: none;
    line-height: 1.65;
    background: #ffffff;
    position: relative;
    z-index: 1;
}
.rich-editor:empty::before {
    content: attr(data-placeholder);
    color: #94a3b8;
}
.rich-editor p { margin: 0 0 0.75rem; }
.rich-editor ul, .rich-editor ol { margin: 0.75rem 0 0.75rem 1.25rem; }

.prose-lite p { margin: 0 0 0.85rem; }
.prose-lite ul, .prose-lite ol { margin: 0.85rem 0 0.85rem 1.25rem; }
.prose-lite a { color: var(--brand-gold-dark); text-decoration: underline; }

.settings-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.settings-tab {
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #fff;
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: #334155;
}
.settings-tab.is-active {
    background: var(--brand-navy);
    border-color: var(--brand-navy);
    color: #fff;
}
.settings-panel[hidden] { display: none !important; }

.option-group-card {
    border: 1px solid #e7dcc8;
    border-radius: 1.25rem;
    background: #fffdfa;
    padding: 1rem;
}
.option-group-grid {
    display: grid;
    gap: 0.75rem;
}
.option-group-grid.amount { grid-template-columns: minmax(120px, 1fr) minmax(180px, 1.5fr) minmax(100px, 0.75fr) auto; }
.option-group-grid.label { grid-template-columns: minmax(120px, 1fr) minmax(180px, 1.5fr) auto; }
.option-group-grid.spacing { grid-template-columns: minmax(120px, 1fr) minmax(180px, 1.5fr) minmax(90px, 0.7fr) minmax(110px, 0.8fr) auto; }
.option-group-grid.payment { grid-template-columns: minmax(120px, 1fr) minmax(180px, 1.5fr) minmax(110px, 0.8fr) auto; }
.option-group-grid-header {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
}
.option-row {
    display: grid;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.75rem;
}
.option-row-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2.8rem;
    width: 2.8rem;
    border: 1px solid #e5d9c6;
    border-radius: 999px;
    color: #b91c1c;
    background: #fff;
    font-weight: 700;
}
.option-row-remove:hover {
    background: #fff5f5;
    border-color: #fecaca;
}
.bulk-edit-box {
    border-top: 1px dashed #e7dcc8;
    margin-top: 1rem;
    padding-top: 1rem;
}
@media (max-width: 1024px) {
    .option-group-grid.amount,
    .option-group-grid.label,
    .option-group-grid.spacing,
    .option-group-grid.payment,
    .option-group-grid-header,
    .option-row {
        grid-template-columns: 1fr !important;
    }
}

.support-fab {
    padding: 0.62rem 0.95rem;
    min-height: 2.7rem;
}
.support-fab .support-fab-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1rem;
    font-size: 1rem;
    line-height: 1;
}
.support-fab.is-open .support-fab-icon {
    font-size: 1.2rem;
}
[data-drawer-overlay].is-visible,
[id$='-drawer'].is-visible,
[id^='admin-order-messages'].is-visible {
    display: block;
}
.table-actions .btn-primary,
.table-actions .btn-secondary {
    padding: 0.55rem 0.85rem;
    font-size: 0.82rem;
}

.rich-editor-wrap + .async-field-error { margin-top: 0.5rem; }
