:root {
    color-scheme: dark;
    --public-green: #45d483;
    --public-green-dark: #31bd70;
    --public-green-soft: #15382f;
    --public-text: #f5f6ff;
    --public-muted: #a4aec5;
    --public-border: #2b3550;
    --public-page: #0b1020;
    --public-white: #111a2e;
    --public-accent: #c44cff;
    --public-accent-pink: #e548b7;
    font-family: "Avenir Next", Inter, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

body.public-page {
    margin: 0;
    min-width: 320px;
    background: var(--public-page);
    color: var(--public-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    line-height: 1.55;
}

.public-shell {
    width: min(100% - 40px, 1160px);
    margin: 0 auto;
}

.public-header {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid var(--public-border);
}

.public-brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    color: var(--public-text);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.public-brand img {
    display: block;
    width: min(190px, 38vw);
    height: auto;
}

.public-header-nav a,
.public-footer a {
    color: var(--public-muted);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.public-header-nav a:hover,
.public-footer a:hover { color: var(--public-green-dark); }

.public-home main { display: flex; flex-direction: column; }

.public-hero {
    order: 0;
    margin: 30px 0 24px;
    padding: clamp(28px, 5vw, 54px);
    border: 1px solid #dcebdd;
    border-radius: 22px;
    background: linear-gradient(115deg, #ffffff 0%, #f2fbf4 100%);
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--public-green-dark);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.public-hero h1 {
    max-width: 720px;
    margin: 0;
    color: var(--public-text);
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.1;
    letter-spacing: -.035em;
}

.public-hero > p:not(.eyebrow) {
    max-width: 600px;
    margin: 16px 0 24px;
    color: var(--public-muted);
    font-size: 18px;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 12px 19px;
    border: 1px solid transparent;
    border-radius: 11px;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    transition: background-color .15s ease, transform .15s ease;
}

.button-primary {
    background: var(--public-green);
    color: #ffffff;
    cursor: pointer;
}

.button-primary:hover { background: var(--public-green-dark); }
.button-primary:active { transform: translateY(1px); }

.service-section {
    order: 2;
    margin: 18px 0 34px;
}

.section-heading { margin-bottom: 16px; }

.section-heading h2,
.booking-heading h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.2;
    letter-spacing: -.02em;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.service-card {
    display: flex;
    min-height: 220px;
    flex-direction: column;
    align-items: flex-start;
    padding: 21px;
    border: 1px solid var(--public-border);
    border-radius: 16px;
    background: var(--public-white);
    color: inherit;
    text-decoration: none;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.service-card:hover {
    transform: translateY(-2px);
    border-color: #b8d9bf;
    box-shadow: 0 8px 24px rgb(30 60 40 / 7%);
}

.service-card-label {
    color: var(--public-green-dark);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.service-card h3 {
    margin: 12px 0 7px;
    font-size: 19px;
    line-height: 1.3;
}

.service-card p {
    margin: 0 0 18px;
    color: var(--public-muted);
    font-size: 14px;
}

.service-card-link {
    display: flex;
    gap: 8px;
    margin-top: auto;
    color: var(--public-green-dark);
    font-size: 14px;
    font-weight: 700;
}

.booking-section {
    order: 1;
    margin: 0 0 18px;
    padding: clamp(20px, 3vw, 32px);
    border: 1px solid var(--public-border);
    border-radius: 20px;
    background: var(--public-white);
    box-shadow: 0 8px 30px rgb(30 60 40 / 4%);
}

.booking-heading > div > p:not(.eyebrow) {
    margin: 9px 0 0;
    color: var(--public-muted);
}

.date-picker-form {
    max-width: 650px;
    margin: 23px 0 25px;
    padding: 17px;
    border: 1px solid var(--public-border);
    border-radius: 14px;
    background: #fbfdfb;
}

.date-picker-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
}

.date-picker-controls { display: flex; gap: 10px; }

.date-picker-controls .public-date-control {
    width: min(100%, 280px);
}

.availability-panel {
    padding: clamp(17px, 3vw, 25px);
    border: 1px solid #e7ece8;
    border-radius: 16px;
    background: #fcfdfc;
}

.availability-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px 30px;
    padding-bottom: 17px;
    border-bottom: 1px solid var(--public-border);
}

.availability-heading .eyebrow { margin-bottom: 3px; }
.availability-heading h3 { margin: 0; font-size: 21px; }

.availability-meta { display: grid; gap: 2px; }
.availability-meta span { color: var(--public-muted); font-size: 12px; }
.availability-meta strong { font-size: 14px; }

.slot-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin: 17px 0 14px;
    color: var(--public-muted);
    font-size: 12px;
}

.slot-legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { width: 10px; height: 10px; border: 1px solid #cbd5ce; border-radius: 50%; }
.legend-free { background: #ffffff; }
.legend-selected { background: #bbf7d0; border-color: var(--public-green); }
.legend-busy { background: #f8b4b4; border-color: #e99a9a; }
.legend-unavailable { background: #e5e7eb; border-color: #cbd5ce; }

.slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
    gap: 9px;
}

.slot {
    display: flex;
    min-width: 0;
    min-height: 72px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    margin: 0;
    padding: 10px 7px;
    border: 1px solid #d9e0da;
    border-radius: 12px;
    color: var(--public-text);
    text-align: center;
    cursor: default;
    box-sizing: border-box;
}

.slot br { display: none; }
.slot strong { font-size: 16px; line-height: 1.25; }
.slot small { color: #69746d; font-size: 12px; line-height: 1.25; }
.slot.free, .slot.mine { cursor: pointer; }
.slot.free { border-color: #d9e0da !important; }
.slot.free:hover { background: #f0fdf4 !important; border-color: #86c995 !important; }
.slot.reserved { border-color: #e99a9a !important; }
.slot.blocked, .slot.event, .slot.held, .slot.past { border-color: #d1d5db !important; }
.slot.mine { border: 2px solid var(--public-green) !important; background: #bbf7d0 !important; }
.slot.mine:hover { background: #dcfce7 !important; }
.slot.past { color: #6b7280; cursor: not-allowed; pointer-events: none; }
.slot:not(.free):not(.mine) { cursor: not-allowed; }

#message { min-height: 1.5em; margin-top: 15px; color: var(--public-muted); font-size: 14px; font-weight: 600; }

#consecutiveWarning {
    display: none;
    max-width: 620px;
    margin-top: 14px;
    padding: 13px 15px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f8faf9;
    color: #46534a;
    font-size: 14px;
    line-height: 1.55;
}

.hold-timer {
    display: flex;
    max-width: 420px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 15px;
    padding: 13px 15px;
    border: 1px solid #dcebdd;
    border-radius: 12px;
    background: var(--public-green-soft);
    color: #365441;
    font-size: 14px;
}

#timer { color: var(--public-green-dark); font-size: 21px; font-weight: 750; font-variant-numeric: tabular-nums; }
#continueBox { margin-top: 15px; }
#continueButton { display: none; }

.closed-message {
    margin: 18px 0 0;
    padding: 14px 16px;
    border: 1px solid var(--public-border);
    border-radius: 12px;
    background: #f7f8f7;
    color: #58635b;
}

.public-footer {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 24px 2px 30px;
    color: #7b857d;
    font-size: 13px;
}

@media (max-width: 760px) {
    .public-shell { width: min(100% - 28px, 600px); }
    .public-header { min-height: 74px; }
    .public-brand { gap: 9px; font-size: 13px; }
    .public-brand img { width: min(150px, 38vw); }
    .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .service-card { min-height: 205px; padding: 18px; }
}

@media (max-width: 520px) {
    .public-shell { width: min(100% - 24px, 440px); }
    .public-header { align-items: flex-start; padding: 14px 0; }
    .public-brand { align-items: flex-start; flex-direction: column; gap: 4px; }
    .public-brand img { width: 145px; }
    .public-header-nav { padding-top: 9px; }
    .public-header-nav a { font-size: 12px; }
    .public-hero { margin-top: 18px; padding: 27px 21px; border-radius: 17px; }
    .public-hero h1 { font-size: clamp(30px, 9vw, 39px); }
    .public-hero > p:not(.eyebrow) { font-size: 16px; }
    .booking-section { padding: 18px 14px; border-radius: 16px; }
    .date-picker-form { padding: 13px; }
    .date-picker-controls { align-items: stretch; flex-direction: column; }
    .date-picker-controls .public-date-control { width: 100%; }
    .date-picker-controls .button { width: 100%; }
    .availability-panel { padding: 15px 11px; }
    .availability-heading { gap: 12px 18px; }
    .slot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
    .slot { min-height: 68px; padding: 8px 4px; border-radius: 10px; }
    .slot strong { font-size: 15px; }
    .slot small { font-size: 11px; }
    .service-section { margin-top: 12px; }
    .service-grid { grid-template-columns: 1fr; gap: 10px; }
    .service-card { min-height: 0; padding: 17px; }
    .service-card h3 { margin-top: 8px; }
    .service-card p { margin-bottom: 12px; }
    .public-footer { flex-direction: column; padding: 20px 2px 26px; }
}

/* Pulse Up gaming / experience theme. */
body.public-page {
    background: radial-gradient(ellipse at 50% -18%, #251638 0, #11172a 38%, #0b1020 74%);
    color: var(--public-text);
    font-family: "Avenir Next", Inter, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.public-header { border-bottom-color: #283149; }
.public-brand { color: #f5f6ff; }
.public-brand img {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
}
.public-header-nav a,
.public-footer a { color: #b7bfd2; }
.public-header-nav a:hover,
.public-footer a:hover { color: #e28cff; }

.public-hero {
    position: relative;
    overflow: hidden;
    border-color: #45305f;
    background: radial-gradient(ellipse at 86% 8%, rgb(196 76 255 / 17%), transparent 34%),
        linear-gradient(115deg, #111a2e 0%, #17172f 58%, #281631 100%);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 3%);
}
.public-hero h1,
.section-heading h2,
.booking-heading h2 {
    color: #f6f5ff;
    font-weight: 750;
    letter-spacing: -.035em;
}
.public-hero h1 { line-height: 1.08; }
.public-hero > p:not(.eyebrow) { color: #b3bdd2; }
.brand-accent {
    color: #e28cff;
    background: linear-gradient(95deg, #c44cff, #e548b7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.eyebrow { color: #df8bff; }

.button-primary {
    border-color: rgb(255 255 255 / 12%);
    background: linear-gradient(100deg, #b63fea, #df45ad);
    color: #ffffff;
    box-shadow: 0 7px 20px rgb(173 57 210 / 22%);
}
.button-primary:hover {
    background: linear-gradient(100deg, #c34cf5, #eb58bb);
    box-shadow: 0 8px 24px rgb(196 76 255 / 27%);
}

.service-card {
    border-color: #29344d;
    background: linear-gradient(145deg, #141e34, #111a2d);
    color: #f2f4fb;
}
.service-card:hover {
    border-color: #a648c9;
    box-shadow: 0 9px 28px rgb(151 57 183 / 15%);
}
.service-card-label,
.service-card-link { color: #d887f2; }
.service-card p { color: #a4aec5; }

.booking-section {
    border-color: #2d3853;
    background: linear-gradient(150deg, #141e33, #10182a);
    box-shadow: 0 12px 34px rgb(0 0 0 / 18%);
}
.booking-heading > div > p:not(.eyebrow) { color: #a4aec5; }
.date-picker-form {
    border-color: #303b56;
    background: #0e1628;
}
.date-picker-form label { color: #e9ecf6; }

.availability-panel {
    border-color: #29344c;
    background: #0e1628;
}
.availability-heading { border-bottom-color: #29344c; }
.availability-heading h3 { color: #f3f4fb; }
.availability-meta span { color: #9da8c0; }
.availability-meta strong { color: #e7eaf4; }
.slot-legend { color: #a4aec5; }
.legend-free { background: #172238; border-color: #64718b; }
.legend-selected { background: #bbf7d0; border-color: #45d483; }
.legend-busy { background: #f08b94; border-color: #f08b94; }
.legend-unavailable { background: #354158; border-color: #65718a; }

.slot {
    border-color: #46516a;
    color: #f2f4fb;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 2%);
}
.slot strong { color: inherit; font-weight: 750; }
.slot small { color: #aeb8cd; }
.slot.free {
    border-color: #46516a !important;
    background: #172238 !important;
}
.slot.free:hover {
    border-color: #d35bf1 !important;
    background: #211b38 !important;
    box-shadow: 0 0 0 2px rgb(196 76 255 / 12%), 0 0 18px rgb(196 76 255 / 12%);
}
.slot.reserved {
    border-color: #ec7e8d !important;
    background: #542c3b !important;
    color: #ffe3e6;
}
.slot.reserved small { color: #ffc0c7; }
.slot.blocked,
.slot.event,
.slot.held,
.slot.past {
    border-color: #46516a !important;
    background: #2a3449 !important;
    color: #c0c7d5;
}
.slot.blocked small,
.slot.event small,
.slot.held small,
.slot.past small { color: #a2acbf; }
.slot.mine,
.slot.mine:hover {
    border-color: #4bd68a !important;
    background: #baf3d0 !important;
    color: #103523;
    box-shadow: 0 0 0 2px rgb(69 212 131 / 13%);
}
.slot.mine small { color: #245b3e; }

#message { color: #c0c9db; }
#consecutiveWarning {
    border-color: #3c465b;
    background: #182238;
    color: #c5cddd;
}
.hold-timer {
    border-color: #32684d;
    background: #15382f;
    color: #c5f2d6;
}
#timer { color: #69e39e; }
.closed-message {
    border-color: #3a455b;
    background: #192338;
    color: #c3cbda;
}
.public-footer {
    border-top: 1px solid #252f46;
    color: #8994ab;
}

/* Final homepage refinements */
.public-header { justify-content: flex-start; }

.hero-actions {
    display: grid;
    grid-template-columns: 1fr 1.3fr 1fr;
    gap: 12px;
    max-width: 930px;
    margin-top: 27px;
}

.hero-action {
    display: flex;
    min-height: 78px;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 14px 17px;
    border: 1px solid #4b3b62;
    border-radius: 13px;
    background: linear-gradient(145deg, #1a2238, #171a30);
    color: #f3edfa;
    text-decoration: none;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.hero-action:hover {
    transform: translateY(-1px);
    border-color: #bd57dd;
    background: #211b38;
    box-shadow: 0 0 20px rgb(196 76 255 / 12%);
}

.hero-action-primary {
    border-color: #c45be1;
    background: linear-gradient(100deg, #b63fea, #df45ad);
    color: #ffffff;
    box-shadow: 0 7px 20px rgb(173 57 210 / 20%);
}

.hero-action-primary:hover {
    border-color: #eea0ff;
    background: linear-gradient(100deg, #c34cf5, #eb58bb);
}

.hero-action-title { font-size: 15px; font-weight: 750; line-height: 1.3; }
.hero-action-description { color: #b9c1d3; font-size: 12px; line-height: 1.35; }
.hero-action-primary .hero-action-description { color: #fff0ff; }

.slot.free {
    border-color: #8c75a6 !important;
    background: #202a42 !important;
    color: #ffffff;
}

.slot.free small { color: #c3c9d7; }

.slot.free:hover {
    border-color: #e06bff !important;
    background: #29203f !important;
    box-shadow: 0 0 0 2px rgb(196 76 255 / 19%), 0 0 20px rgb(196 76 255 / 20%);
}

.slot.reserved {
    border-color: #e77a89 !important;
    background: #552b3a !important;
    color: #ffe8eb;
}

.slot.blocked,
.slot.event,
.slot.held,
.slot.past {
    border-color: #343d50 !important;
    background: #202839 !important;
    color: #8d98ab;
    box-shadow: none;
}

.slot.blocked small,
.slot.event small,
.slot.held small,
.slot.past small { color: #8994a6; }

.slot.reserved,
.slot.blocked,
.slot.event,
.slot.held,
.slot.past { cursor: not-allowed; }

.slot.reserved:hover,
.slot.blocked:hover,
.slot.event:hover,
.slot.held:hover,
.slot.past:hover { box-shadow: none; }

.legend-free { background: #202a42; border: 2px solid #b89bcf; }
.legend-selected { background: #baf3d0; border: 2px solid #4bd68a; }
.legend-busy { background: #e77a89; border: 2px solid #ffadb5; }
.legend-unavailable { background: #202839; border: 2px solid #556176; }

.public-footer {
    align-items: center;
    flex-direction: column;
    justify-content: center;
    gap: 9px;
    padding: 23px 12px 30px;
    text-align: center;
}

.public-legal-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 5px 8px;
    color: #7e899f;
    font-size: 12px;
}

.public-legal-links a {
    color: #9da8bd;
    font-size: inherit;
    font-weight: 500;
}

.public-legal-links a:hover { color: #e28cff; }

@media (max-width: 760px) {
    .hero-actions { grid-template-columns: 1fr 1.2fr 1fr; }
}

@media (max-width: 520px) {
    .public-header { padding: 12px 12px; }
    .public-brand { align-items: center; flex-direction: row; gap: 10px; }
    .public-brand img { width: 58px; height: 58px; }
    .hero-actions { grid-template-columns: 1fr; gap: 9px; margin-top: 21px; }
    .hero-action { min-height: 66px; padding: 12px 15px; }
    .hero-action-title { font-size: 14px; }
    .public-footer { padding: 22px 12px 28px; }
}

/* Shared customer pages */
body.public-customer-page {
    width: auto !important;
    max-width: none !important;
    min-width: 320px;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
    background:
        radial-gradient(ellipse at 82% 0%, rgb(111 48 146 / 13%), transparent 34rem),
        #0b1020 !important;
    color: #f5f6ff !important;
    font-family: "Avenir Next", Inter, "Segoe UI", "Helvetica Neue", Arial, sans-serif !important;
    line-height: 1.55;
}

.public-customer-header {
    width: 100%;
    min-height: 82px;
    padding: 0 20px;
    border-bottom: 1px solid #29334b;
    background: rgb(11 16 32 / 90%);
}

.public-customer-header .public-shell {
    width: min(100%, 1160px);
    min-height: 82px;
    display: flex;
    align-items: center;
}

.public-customer-header .public-brand {
    gap: 11px;
    color: #f5f6ff;
    font-size: 15px;
}

.public-customer-header .public-brand img {
    width: 58px !important;
    height: 58px !important;
    object-fit: contain;
}

.public-customer-page .page {
    width: min(100% - 40px, 900px);
    max-width: 900px !important;
    margin: 0 auto !important;
    padding: clamp(24px, 4vw, 42px) 0 48px !important;
}

.public-customer-page h1,
.public-customer-page h2,
.public-customer-page h3 {
    color: #f5f6ff;
    letter-spacing: -.025em;
}

.public-customer-page h1 { font-size: clamp(27px, 4vw, 38px); line-height: 1.16; }
.public-customer-page h2 { line-height: 1.25; }
.public-customer-page p,
.public-customer-page li { color: #c1c9d9; }
.public-customer-page a { color: #df8bff; }
.public-customer-page a:hover { color: #f1c0ff; }

.public-customer-page .card,
.public-customer-page .box,
.public-customer-page .summary,
.public-customer-page .success-box,
.public-customer-page article,
.public-customer-page .management-fallback {
    color: #f5f6ff;
    border: 1px solid #303a54 !important;
    border-radius: 16px !important;
    background: linear-gradient(145deg, #141d32, #111a2e) !important;
    box-shadow: 0 12px 30px rgb(0 0 0 / 13%);
}

.public-customer-page .card,
.public-customer-page .box,
.public-customer-page article,
.public-customer-page .summary,
.public-customer-page .success-box { padding: clamp(17px, 3vw, 25px); }

.public-customer-page .muted,
.public-customer-page .hint,
.public-customer-page .meta,
.public-customer-page .description,
.public-customer-page .legal-info { color: #a4aec5 !important; }

.public-customer-page .fields,
.public-customer-page .grid,
.public-customer-page .row {
    min-width: 0;
}

.public-customer-page .field { min-width: 0; }
.public-customer-page .field label,
.public-customer-page .label { color: #e7eaf3; }

.public-customer-page input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="date"]),
.public-customer-page select,
.public-customer-page textarea {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 46px;
    padding: 11px 13px;
    border: 1px solid #3a4560 !important;
    border-radius: 10px !important;
    background: #0d1528 !important;
    color: #f5f6ff !important;
    font: inherit;
    color-scheme: dark;
}

.public-customer-page textarea { min-height: 110px; resize: vertical; }
.public-customer-page input::placeholder,
.public-customer-page textarea::placeholder { color: #8994aa; opacity: 1; }
.public-customer-page input:not([type="date"]):focus,
.public-customer-page select:focus,
.public-customer-page textarea:focus {
    outline: none;
    border-color: #cf65ed !important;
    box-shadow: 0 0 0 3px rgb(196 76 255 / 17%);
}

:is(.public-customer-page, .public-page) .public-date-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

:is(.public-customer-page, .public-page) .public-date-input {
    display: block;
    inline-size: 100%;
    width: 100%;
    min-inline-size: 0;
    min-width: 0;
    max-inline-size: 100%;
    max-width: 100%;
    height: 46px;
    min-height: 46px;
    box-sizing: border-box;
    margin: 0;
    padding: 0 13px;
    padding-block: 0;
    border: 1px solid #3a4560;
    border-radius: 10px;
    background: #0d1528;
    color: #f5f6ff;
    font: inherit;
    line-height: normal;
    text-align: center;
    color-scheme: dark;
    -webkit-appearance: none;
    appearance: none;
}

:is(.public-customer-page, .public-page) .public-date-input:focus {
    outline: none;
    border-color: #cf65ed;
    box-shadow: 0 0 0 3px rgb(196 76 255 / 17%);
}

:is(.public-customer-page, .public-page) .public-date-input::-webkit-date-and-time-value {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    margin: 0;
    text-align: center;
}

@media (min-width: 761px) {
    :is(.public-customer-page, .public-page) .public-date-input::-webkit-datetime-edit {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
        margin: 0;
        padding: 0;
    }
}

.public-customer-page .birthday-preferred-term select {
    height: 46px;
    min-height: 46px;
    padding-top: 0;
    padding-bottom: 0;
    text-align: left;
}

.public-customer-page input[type="checkbox"],
.public-customer-page input[type="radio"] {
    accent-color: #c44cff;
}

.public-customer-page .checkbox,
.public-customer-page .choice { color: #d6dbea; }
.public-customer-page .counter { color: #e8eaf2; }

.public-customer-page button,
.public-customer-page .button,
.public-customer-page .submit,
.public-customer-page .confirm-button,
.public-customer-page .back-button,
.public-customer-page .secondary,
.public-customer-page .danger {
    min-height: 44px;
    padding: 11px 17px;
    border: 1px solid #414b64;
    border-radius: 10px;
    background: #172138;
    color: #f5f6ff;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.public-customer-page .submit,
.public-customer-page .confirm-button,
.public-customer-page button[type="submit"],
.public-customer-page .button {
    border-color: transparent;
    background: linear-gradient(105deg, #a83be2, #df45ad);
    color: #fff;
}

.public-customer-page button:hover,
.public-customer-page .button:hover,
.public-customer-page .submit:hover,
.public-customer-page .confirm-button:hover,
.public-customer-page .back-button:hover,
.public-customer-page .secondary:hover {
    border-color: #d477f2;
    background-color: #25213b;
    box-shadow: 0 0 0 2px rgb(196 76 255 / 12%);
}

.public-customer-page .danger {
    border-color: #70404d;
    background: #382331;
    color: #ffdce2;
}
.public-customer-page .danger:hover { border-color: #c56a7a; background: #472936; }
.public-customer-page button:disabled,
.public-customer-page .button[aria-disabled="true"] { opacity: .55; cursor: not-allowed; box-shadow: none; }

.public-customer-page .notice,
.public-customer-page .warning {
    border: 1px solid #705c38 !important;
    border-radius: 11px !important;
    background: #30291d !important;
    color: #f4dcae !important;
}
.public-customer-page .error,
.public-customer-page .error-box {
    border: 1px solid #784653 !important;
    border-radius: 11px !important;
    background: #38232d !important;
    color: #ffd9e0 !important;
}
.public-customer-page .success,
.public-customer-page .success-box {
    border-color: #32684d !important;
    background: #15382f !important;
    color: #c5f2d6 !important;
}

.public-customer-page .slot {
    border-radius: 10px !important;
    font: inherit;
}
.public-customer-page .slot.free {
    border: 1px solid #8c75a6 !important;
    background: #202a42 !important;
    color: #fff !important;
}
.public-customer-page .slot.mine,
.public-customer-page .slot.selected {
    border-color: #4bd68a !important;
    background: #baf3d0 !important;
    color: #103523 !important;
}
.public-customer-page .slot.reserved {
    border-color: #e77a89 !important;
    background: #552b3a !important;
    color: #ffe8eb !important;
}
.public-customer-page .slot.blocked,
.public-customer-page .slot.event,
.public-customer-page .slot.held,
.public-customer-page .slot.past,
.public-customer-page .slot:disabled {
    border-color: #343d50 !important;
    background: #202839 !important;
    color: #8d98ab !important;
    cursor: not-allowed;
    box-shadow: none !important;
}

.public-customer-page .hidden { display: none !important; }
.public-customer-page .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.public-customer-page .readonly { color: #c1c9d9; }

.public-customer-footer {
    width: min(100% - 40px, 1160px);
    margin: 0 auto;
    padding: 22px 10px 30px;
    border-top: 1px solid #29334b;
    color: #8994ab;
    text-align: center;
}

@media (max-width: 620px) {
    .public-customer-header { min-height: 74px; padding: 0 16px; }
    .public-customer-header .public-shell { min-height: 74px; }
    .public-customer-header .public-brand img { width: 52px !important; height: 52px !important; }
    .public-customer-header .public-brand { font-size: 14px; }
    .public-customer-page .page { width: min(100% - 28px, 900px); padding-top: 24px !important; }
    .public-customer-page .fields,
    .public-customer-page .grid { grid-template-columns: minmax(0, 1fr) !important; }
    .public-customer-page .wide { grid-column: auto !important; }
    .public-customer-page .actions > * { flex: 1 1 100%; }
    .public-customer-page button,
    .public-customer-page .button,
    .public-customer-page .submit,
    .public-customer-page .confirm-button,
    .public-customer-page .back-button,
    .public-customer-page .secondary,
    .public-customer-page .danger { min-height: 48px; }
    .public-customer-footer { width: min(100% - 28px, 1160px); }
}

/* Birthday availability controls keep equal breathing room above the slot grid. */
.public-customer-page #showAvailability {
    margin-bottom: 16px;
}

/* Keep explicit secondary/danger submit actions above the generic CTA rule. */
.public-customer-page button.danger[type="submit"],
.public-customer-page .danger[type="submit"] {
    border-color: #70404d !important;
    background: #382331 !important;
    color: #ffdce2 !important;
}

.public-customer-page button.danger[type="submit"]:hover,
.public-customer-page .danger[type="submit"]:hover {
    border-color: #c56a7a !important;
    background: #472936 !important;
}

.public-customer-page button.secondary[type="submit"],
.public-customer-page .secondary[type="submit"],
.public-customer-page button[name="action"][value="clear_draft"] {
    border-color: #414b64 !important;
    background: #172138 !important;
    color: #f5f6ff !important;
}

.public-customer-page button.secondary[type="submit"]:hover,
.public-customer-page .secondary[type="submit"]:hover,
.public-customer-page button[name="action"][value="clear_draft"]:hover {
    border-color: #d477f2 !important;
    background: #25213b !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 2px rgb(196 76 255 / 12%);
}

/* Match the homepage shell width, including pages without a .page wrapper. */
.public-customer-page > :not(.public-customer-header):not(.public-customer-footer):not(.public-workflow) {
    box-sizing: border-box;
    width: min(100% - 40px, 1160px);
    max-width: 1160px;
    margin-left: auto !important;
    margin-right: auto !important;
}

.public-customer-page .page {
    width: min(100% - 40px, 1160px) !important;
    max-width: 1160px !important;
    padding: clamp(24px, 3vw, 36px) 0 48px !important;
}

.public-customer-page .summary,
.public-customer-page .box,
.public-customer-page .card,
.public-customer-page .success-box,
.public-customer-page article {
    margin-top: 20px;
    margin-bottom: 22px;
}

/* Read-only selected/confirmed times are compact chips, not full-width bars. */
.public-customer-page .summary .slots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), max-content));
    gap: 9px;
    margin-top: 10px;
}

.public-customer-page .summary span.slot,
.public-customer-page .box span.slot,
.public-customer-page .success-box span.slot {
    display: inline-flex;
    width: fit-content;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 8px 13px;
    border: 1px solid #82cda1 !important;
    border-radius: 12px !important;
    background: #c9f3d8 !important;
    color: #153b27 !important;
    font-weight: 750;
    line-height: 1.25;
}

/* Compact reservation countdown, retaining its existing IDs and script hooks. */
.public-customer-page #timerBox {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 17px !important;
    border: 1px solid #68427b !important;
    border-radius: 12px !important;
    background: linear-gradient(110deg, #191c35, #21182f) !important;
    color: #c4cada !important;
}

.public-customer-page #timer {
    color: #69e39e !important;
    font-size: 21px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

/* Preserve the dark input palette when Safari/WebKit autofills a field. */
.public-customer-page input:-webkit-autofill,
.public-customer-page input:-webkit-autofill:hover,
.public-customer-page input:-webkit-autofill:focus,
.public-customer-page textarea:-webkit-autofill,
.public-customer-page textarea:-webkit-autofill:hover,
.public-customer-page textarea:-webkit-autofill:focus,
.public-customer-page select:-webkit-autofill,
.public-customer-page select:-webkit-autofill:hover,
.public-customer-page select:-webkit-autofill:focus {
    -webkit-text-fill-color: #f5f6ff !important;
    caret-color: #f5f6ff;
    -webkit-box-shadow: 0 0 0 1000px #0d1528 inset !important;
    box-shadow: 0 0 0 1000px #0d1528 inset !important;
    border: 1px solid #3a4560 !important;
    transition: background-color 9999s ease-out 0s;
}

.public-customer-page input:-webkit-autofill:focus,
.public-customer-page textarea:-webkit-autofill:focus,
.public-customer-page select:-webkit-autofill:focus {
    border-color: #cf65ed !important;
    -webkit-box-shadow: 0 0 0 1000px #0d1528 inset, 0 0 0 3px rgb(196 76 255 / 17%) !important;
    box-shadow: 0 0 0 1000px #0d1528 inset, 0 0 0 3px rgb(196 76 255 / 17%) !important;
}

.public-customer-page .counter,
.public-customer-page .fields,
.public-customer-page .grid { gap: 14px; }

.public-customer-page .choice,
.public-customer-page .legal-info { margin-top: 12px; }

@media (max-width: 620px) {
    .public-customer-page > :not(.public-customer-header):not(.public-customer-footer):not(.public-workflow) {
        width: min(100% - 32px, 1160px);
    }
    .public-customer-page .page {
        width: min(100% - 32px, 1160px) !important;
        padding-top: 22px !important;
    }
    .public-customer-page .summary .slots { grid-template-columns: 1fr; }
    .public-customer-page .summary span.slot,
    .public-customer-page .box span.slot,
    .public-customer-page .success-box span.slot { width: 100%; }
    .public-customer-page #timerBox { align-items: flex-start; flex-wrap: wrap; gap: 5px 14px; }
}

/* A narrower centered column for the booking steps only. */
.public-customer-page > .public-workflow {
    width: min(100% - 40px, 1000px) !important;
    max-width: 1000px !important;
    padding: clamp(24px, 3vw, 36px) 0 48px;
}

.public-customer-page .booking-top-grid,
.public-customer-page .summary-top-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(250px, 1fr);
    gap: 16px;
    align-items: stretch;
    margin: 22px 0;
}

.public-customer-page .booking-top-grid > .summary,
.public-customer-page .booking-top-grid > #timerBox,
.public-customer-page .summary-top-grid > #timerBox,
.public-customer-page .summary-top-grid > .summary-terms-card {
    min-width: 0;
    min-height: 100%;
    margin: 0 !important;
}

.public-customer-page .summary-top-grid > #timerBox { grid-area: timer; }
.public-customer-page .summary-top-grid > .summary-terms-card { grid-area: terms; }
.public-customer-page .summary-top-grid {
    grid-template-areas: "terms timer";
    grid-template-columns: minmax(0, 1.6fr) minmax(250px, 1fr);
}

.public-customer-page .booking-top-grid > .summary,
.public-customer-page .summary-top-grid > .summary-terms-card {
    padding: 20px 22px;
}

.public-customer-page .booking-top-grid .slots,
.public-customer-page .summary-top-grid .summary-terms-card {
    min-width: 0;
}

.public-customer-page .booking-top-grid .slots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), max-content));
    gap: 9px;
}

.public-customer-page .booking-top-grid .slots .slot {
    width: fit-content;
    min-height: 40px;
    margin: 0;
    padding: 8px 13px;
    border: 1px solid #82cda1 !important;
    border-radius: 12px !important;
    background: #c9f3d8 !important;
    color: #153b27 !important;
    font-weight: 750;
    line-height: 1.25;
}

.public-customer-page #timerBox {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 16px !important;
}

.public-customer-page #timerBox > div:first-child {
    margin: 0;
    color: #c4cada;
    font-size: 14px;
}

.public-customer-page #timer {
    flex: 0 0 auto;
    margin: 0;
    color: #69e39e !important;
    font-size: 22px;
}

.public-customer-page #bookingForm.booking-fields-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
    align-items: start;
}

.public-customer-page #bookingForm > .field {
    min-width: 0;
    margin: 0;
}

.public-customer-page #bookingForm > .booking-note-field,
.public-customer-page #bookingForm > .checkbox,
.public-customer-page #bookingForm > .legal-info,
.public-customer-page #bookingForm > .actions {
    grid-column: 1 / -1;
}

.public-customer-page #bookingForm > .checkbox {
    margin: 4px 0 0;
    line-height: 1.55;
}

.public-customer-page #bookingForm > .legal-info {
    margin: -8px 0 0;
    padding: 10px 13px;
    border-left: 2px solid #665078;
    color: #a4aec5 !important;
    font-size: 13px;
    line-height: 1.5;
}

.public-customer-page #legal-consent-error:not([hidden]) {
    display: block;
    margin-top: 10px !important;
    padding: 10px 13px !important;
    border: 1px solid #8d4a60;
    border-radius: 10px;
    background: rgb(113 35 61 / 28%);
    color: #ffb8c8 !important;
    font-size: 14px !important;
}

.public-customer-page .counter { gap: 12px; }
.public-customer-page .counter button { min-width: 42px; min-height: 42px; }

.public-customer-page .summary-details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
    margin: 20px 0 24px;
}

.public-customer-page .summary-details-grid > .box {
    min-width: 0;
    height: 100%;
    margin: 0 !important;
}

.public-customer-page .summary-workflow > #confirmForm,
.public-customer-page .summary-workflow > p {
    margin-top: 16px;
}

.public-customer-page .summary-workflow > #confirmForm .actions { margin-top: 0; }
.public-customer-page .summary-workflow > #confirmForm .actions button { flex: 1 1 240px; }

.public-customer-page .success-workflow > .success-box {
    padding: 20px 24px;
}

.public-customer-page .success-workflow > .box span.slot {
    display: inline-flex;
    width: fit-content;
    min-height: 40px;
    align-items: center;
    margin: 0 8px 8px 0;
    padding: 8px 13px;
    border: 1px solid #82cda1 !important;
    border-radius: 12px !important;
    background: #c9f3d8 !important;
    color: #153b27 !important;
    font-weight: 750;
}

/* Selected slots remain mint on hover and after the pointer leaves. */
.public-customer-page .slot.mine,
.public-customer-page .slot.mine:hover,
.public-customer-page .slot.mine:focus,
.public-customer-page .slot.mine:focus-visible {
    border: 2px solid #4bd68a !important;
    background: #baf3d0 !important;
    color: #103523 !important;
    box-shadow: 0 0 0 2px rgb(69 212 131 / 14%) !important;
    cursor: pointer !important;
}

.public-customer-page .slot.mine:hover {
    background: #c8f5d9 !important;
    border-color: #39c879 !important;
}

.public-customer-page .slot.reserved,
.public-customer-page .slot.blocked,
.public-customer-page .slot.event,
.public-customer-page .slot.held,
.public-customer-page .slot.past,
.public-customer-page .slot:disabled {
    cursor: default !important;
    box-shadow: none !important;
}

.public-customer-page .slot.reserved:hover,
.public-customer-page .slot.blocked:hover,
.public-customer-page .slot.event:hover,
.public-customer-page .slot.held:not(.mine):hover,
.public-customer-page .slot.past:hover,
.public-customer-page .slot:disabled:hover {
    cursor: default !important;
    transform: none !important;
    transition: none !important;
    box-shadow: none !important;
}

@media (max-width: 760px) {
    .public-customer-page > .public-workflow {
        width: min(100% - 36px, 1000px) !important;
    }
    .public-customer-page .booking-top-grid,
    .public-customer-page .summary-top-grid,
    .public-customer-page .summary-details-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .public-customer-page .summary-top-grid {
        grid-template-areas: "terms" "timer";
    }
    .public-customer-page .booking-top-grid .slots,
    .public-customer-page .summary .slots { grid-template-columns: minmax(0, 1fr); }
    .public-customer-page .booking-top-grid .slots .slot,
    .public-customer-page .summary span.slot,
    .public-customer-page .box span.slot,
    .public-customer-page .success-box span.slot { width: 100%; }
}

@media (max-width: 620px) {
    .public-customer-page > .public-workflow {
        width: min(100% - 32px, 1000px) !important;
        padding-top: 20px;
    }
    .public-customer-page #bookingForm.booking-fields-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }
    .public-customer-page #bookingForm > .field,
    .public-customer-page #bookingForm > .checkbox,
    .public-customer-page #bookingForm > .legal-info,
    .public-customer-page #bookingForm > .actions { grid-column: 1; }
    .public-customer-page #timerBox { align-items: center; }
    .public-customer-page #timerBox > div:first-child { max-width: 68%; }
}

/* Disabled slot states should not suggest that they can be clicked. */
.slot:not(.free):not(.mine),
.slot:disabled {
    cursor: default !important;
}

/* A held slot selected by this customer remains visibly selected. */
.slot.mine,
.slot.mine:hover,
.slot.mine:focus,
.slot.mine:focus-visible,
.slot.held.mine,
.slot.held.mine:hover,
.slot.held.mine:focus,
.slot.held.mine:focus-visible {
    border-color: #4bd68a !important;
    background: #baf3d0 !important;
    color: #103523 !important;
    box-shadow: 0 0 0 2px rgb(69 212 131 / 14%) !important;
    cursor: pointer !important;
    transform: none;
}

.slot.mine:hover,
.slot.held.mine:hover {
    border-color: #39c879 !important;
    background: #c8f5d9 !important;
}

body.public-customer-page .slot.held.mine,
body.public-customer-page .slot.held.mine:hover,
body.public-customer-page .slot.held.mine:focus,
body.public-customer-page .slot.held.mine:focus-visible {
    border-color: #4bd68a !important;
    background: #baf3d0 !important;
    color: #103523 !important;
}

body.public-customer-page .slot.held.mine:hover {
    border-color: #39c879 !important;
    background: #c8f5d9 !important;
}

.slot.reserved:hover,
.slot.blocked:hover,
.slot.event:hover,
.slot.held:not(.mine):hover,
.slot.past:hover,
.slot:disabled:hover {
    cursor: default !important;
    transform: none !important;
    transition: none !important;
    box-shadow: none !important;
}

/* Final alignment and equal-column composition for the booking workflow. */
.public-customer-page > .public-workflow {
    width: min(calc(100% - 32px), 1000px) !important;
    max-width: 1000px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.public-customer-page .booking-top-grid,
.public-customer-page .summary-top-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: stretch;
}

.public-customer-page .booking-top-grid > .summary,
.public-customer-page .booking-top-grid > #timerBox,
.public-customer-page .summary-top-grid > #timerBox,
.public-customer-page .summary-top-grid > .summary-terms-card {
    box-sizing: border-box;
    min-width: 0;
    min-height: 0;
    align-self: stretch;
    margin: 0 !important;
    padding: 20px 22px !important;
    border-radius: 16px !important;
}

.public-customer-page .booking-top-grid > .summary > strong,
.public-customer-page #timerBox > div:first-child {
    color: #e7eaf3 !important;
    font-size: 15px !important;
    font-weight: 750 !important;
    line-height: 1.4;
}

.public-customer-page .summary-top-grid > #timerBox {
    background: linear-gradient(110deg, #191c35, #21182f) !important;
}

.public-customer-page .summary-details-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: stretch !important;
}

.public-customer-page .summary-details-grid > .box {
    height: auto;
    min-height: 0;
    align-self: stretch;
}

.public-customer-page .summary-workflow > #confirmForm .actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
}

.public-customer-page .summary-workflow > #confirmForm .actions > button {
    width: 100%;
    min-width: 0;
}

@media (max-width: 760px) {
    .public-customer-page > .public-workflow {
        width: min(calc(100% - 32px), 1000px) !important;
    }
    .public-customer-page .booking-top-grid,
    .public-customer-page .summary-top-grid,
    .public-customer-page .summary-details-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }
    .public-customer-page .summary-top-grid {
        grid-template-areas: "terms" "timer";
    }
    .public-customer-page .summary-details-grid > .box { height: auto; }
    .public-customer-page .summary-workflow > #confirmForm .actions {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }
}

/* Public events. */
.public-events-heading { max-width: 720px; margin-bottom: 26px; }
.public-events-heading > p:last-child { margin-bottom: 0; }
.public-event-list { display: grid; gap: 20px; }

.public-customer-page article.public-event-card {
    display: grid;
    grid-template-columns: minmax(190px, 260px) minmax(0, 1fr);
    overflow: hidden;
    padding: 0;
    margin: 0;
}

.public-event-card-media {
    display: block;
    min-width: 0;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #151d31;
}

.public-event-card-media img,
.public-event-hero-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.public-event-placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 250px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    background: radial-gradient(circle at 76% 24%, rgb(229 72 183 / 28%), transparent 32%), linear-gradient(145deg, #241a3b, #111a2e 62%, #18243b);
    color: #f5f6ff;
    text-align: center;
}

.public-event-placeholder strong { font-size: clamp(24px, 4vw, 38px); letter-spacing: -.04em; }
.public-event-placeholder small { color: #dc8af4; font-size: 13px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }

.public-event-card-body {
    display: flex;
    min-width: 0;
    padding: clamp(20px, 3vw, 30px);
    flex-direction: column;
    align-items: flex-start;
}

.public-event-card-body h2 { margin: 13px 0 10px; font-size: clamp(23px, 3vw, 31px); }
.public-event-card-body h2 a { color: #f5f6ff; text-decoration: none; }
.public-event-card-body h2 a:hover { color: #edaaff; }
.public-event-meta { display: flex; flex-wrap: wrap; gap: 7px; }

.public-event-meta span {
    display: inline-flex;
    min-height: 31px;
    align-items: center;
    padding: 5px 10px;
    border: 1px solid #3b4662;
    border-radius: 999px;
    background: #0d1528;
    color: #d8deeb;
    font-size: 13px;
    font-weight: 700;
    gap: 6px;
}

.public-event-meta span small {
    color: #d987f3;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.public-event-meta span strong {
    color: #f3f5fb;
    font-size: 13px;
}

.public-event-excerpt,
.public-event-hero-intro { line-height: 1.65; }
.public-event-excerpt { margin: 0 0 16px; }
.public-event-capacity { margin: auto 0 15px; color: #aeb8ca !important; }
.public-event-capacity strong { color: #f4f6fb; }
.public-event-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.public-event-status { color: #f3b1c0; font-weight: 750; }

.public-event-cta {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.public-event-empty { max-width: 720px; }
.public-back-link { display: inline-block; margin-bottom: 18px; font-weight: 700; text-decoration: none; }

.public-event-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, .75fr);
    gap: clamp(22px, 4vw, 44px);
    align-items: center;
    padding: clamp(22px, 4vw, 42px);
    border: 1px solid #303a54;
    border-radius: 22px;
    background: radial-gradient(circle at 18% 18%, rgb(196 76 255 / 16%), transparent 34%), linear-gradient(145deg, #171f36, #10182a);
    box-shadow: 0 16px 42px rgb(0 0 0 / 20%);
}

.public-event-hero-content { min-width: 0; }
.public-event-hero h1 { margin: 8px 0 18px; font-size: clamp(34px, 5vw, 58px); }
.public-event-hero-meta { margin-bottom: 18px; }
.public-event-hero-intro { max-width: 650px; margin: 18px 0 23px; color: #c8cfdd !important; }

.public-event-hero-media {
    width: min(100%, 390px);
    aspect-ratio: 4 / 5;
    justify-self: end;
    overflow: hidden;
    border: 1px solid #3a4560;
    border-radius: 18px;
    background: #111a2e;
    box-shadow: 0 14px 32px rgb(0 0 0 / 24%);
}

.public-event-description-card { max-width: 900px; }
.public-event-description-card h2,
.public-event-registration-section > h2 { margin-top: 0; }
.public-event-description-card > h2 { color: #75d7f0; }
.public-event-description { color: #c8cfdd; line-height: 1.75; overflow-wrap: anywhere; }
.public-event-structured-content { padding: clamp(21px, 4vw, 34px); }
.public-event-content-blocks { display: grid; gap: 24px; }
.public-event-content-group { min-width: 0; }

.public-customer-page .public-event-content-group.is-highlights > .public-event-content-section-title {
    margin: 0 0 13px;
    color: #e548b7;
    font-size: clamp(20px, 2.7vw, 25px);
}

.public-event-highlight-grid,
.public-event-information-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.public-event-highlight-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
.public-event-information-grid.is-single { grid-template-columns: minmax(0, 1fr); }

.public-event-content-block {
    min-width: 0;
    padding: 18px 19px;
    border: 1px solid #35405a;
    border-radius: 15px;
    background: #111a2d;
    overflow-wrap: anywhere;
}

.public-event-content-block h3 {
    margin: 0 0 8px;
    color: #f4f6fb;
    font-size: clamp(18px, 2.5vw, 22px);
}

.public-event-content-kicker {
    margin: 0 0 7px !important;
    color: #d987f3 !important;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.public-event-content-body { color: #c8cfdd; line-height: 1.75; }
.public-event-content-block.is-intro {
    width: min(100%, 800px);
    margin-inline: auto;
    padding: 4px 0 10px;
    border: 0;
    background: transparent;
    text-align: center;
}
.public-event-content-block.is-intro h3 { color: #e6a4f8; }
.public-event-content-block.is-intro .public-event-content-body {
    color: #e1e5ef;
    font-size: clamp(17px, 2.2vw, 20px);
    line-height: 1.8;
}
.public-event-content-block.is-highlight {
    padding: 16px 17px;
    border-color: #59364f;
    border-left: 3px solid #e548b7;
    background: #121a2e;
}
.public-event-content-block.is-included {
    border-color: #3b4c54;
    border-left: 3px solid #4cae82;
    background: #121a2e;
}
.public-event-content-block.is-included .public-event-content-kicker { color: #7ee2b8 !important; }
.public-event-content-block.is-practical {
    border-color: #493d68;
    border-left: 3px solid #9b6cff;
    background: #121a2e;
}
.public-event-content-block.is-practical .public-event-content-kicker { color: #bba1ff !important; }
.public-event-content-block.is-callout {
    padding: 20px;
    border-color: #9855b7;
    background: linear-gradient(135deg, rgb(196 76 255 / 15%), rgb(229 72 183 / 9%)), #151b30;
    box-shadow: 0 0 28px rgb(196 76 255 / 13%);
    text-align: center;
}
.public-event-content-block.is-callout h3 {
    color: #f0b8ff;
    background: linear-gradient(90deg, #f1a8e1, #c7a4ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.public-event-content-block.is-callout .public-event-content-body {
    color: #f0b8ff;
    font-size: clamp(17px, 2.3vw, 20px);
    font-weight: 750;
}
.public-event-registration-section { max-width: 900px; margin-top: 30px; }

@media (min-width: 761px) {
    .public-event-description-card,
    .public-event-registration-section { margin-inline: auto; }
}

.public-event-registration-form .grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.public-event-registration-form .field label { display: block; margin-bottom: 6px; font-weight: 700; }

.public-event-registration-form .choice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.event-participants {
    margin-top: 24px;
}

.event-participant-list {
    display: grid;
    gap: 14px;
}

.event-participant-card {
    min-width: 0;
    margin: 0;
    padding: 16px;
    border: 1px solid #35405a;
    border-radius: 14px;
    background: #111a2d;
}

.event-participant-card legend {
    padding: 0 7px;
    color: #e4a1f7;
    font-weight: 800;
}

.event-participant-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.event-registration-management {
    width: min(calc(100% - 32px), 850px) !important;
    margin-inline: auto;
}

.event-registration-management > .card {
    padding: clamp(20px, 4vw, 30px);
}

.event-registration-manage-form > .field {
    max-width: 320px;
}

.event-registration-cancel-form {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid #303a54;
}

@media (max-width: 760px) {
    .public-customer-page article.public-event-card,
    .public-event-hero { grid-template-columns: minmax(0, 1fr); }
    .public-event-card-media {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 5;
    }
    .public-event-hero-media { width: min(100%, 430px); justify-self: center; }
}

@media (max-width: 620px) {
    .public-event-card-body { padding: 19px 17px 21px; }
    .public-event-card-actions,
    .public-event-cta { width: 100%; }
    .public-event-hero { padding: 22px 17px; border-radius: 18px; }
    .public-event-hero h1 { font-size: clamp(31px, 10vw, 42px); }
    .public-event-structured-content { padding: 20px 16px; }
    .public-event-highlight-grid,
    .public-event-information-grid { grid-template-columns: minmax(0, 1fr); }
    .public-event-highlight-grid > :last-child:nth-child(odd) { grid-column: auto; }
    .public-event-content-block { padding: 16px; }
    .public-event-content-block.is-intro { padding: 3px 0 12px; }
    .public-event-registration-form .grid { grid-template-columns: minmax(0, 1fr); }
    .event-participant-fields { grid-template-columns: minmax(0, 1fr); }
    .event-registration-management { width: min(calc(100% - 28px), 850px) !important; }
    .event-registration-manage-form > .field { max-width: none; }
    .event-registration-manage-form .button,
    .event-registration-cancel-form .danger { width: 100%; }
}

/* Shared inquiry form composition and customer header navigation. */
.public-customer-header .public-shell {
    justify-content: space-between;
    gap: 16px;
}

.public-header-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 13px;
    border: 1px solid #414b64;
    border-radius: 10px;
    background: #172138;
    color: #e2e7f2 !important;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}

.public-header-back:hover {
    border-color: #9d54bc;
    background: #1b2340;
    color: #fff !important;
}

@media (min-width: 851px) {
    .public-customer-page .fields.fields-three {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

.public-customer-page .preferred-term-notice {
    grid-column: 1 / -1;
    text-align: center;
}

.public-customer-page .inquiry-success {
    width: min(100%, 800px);
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box;
}

.public-customer-page .legal-info {
    margin-top: 14px;
    font-size: .92em;
}

@media (min-width: 621px) and (max-width: 850px) {
    .public-customer-page .fields.fields-three {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 620px) {
    .public-customer-header { padding: 0 12px; }
    .public-customer-header .public-shell { gap: 8px; }
    .public-customer-header .public-brand { gap: 7px; font-size: 12px; }
    .public-customer-header .public-brand img { width: 44px !important; height: 44px !important; }
    .public-header-back { min-height: 36px; padding: 7px 9px; font-size: 11px; }
}

/* Birthday package contents and optional marketing consent presentation. */
.public-customer-page .package-inclusions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 28px;
    margin: 0;
    padding-left: 22px;
}

.public-customer-page .package-inclusions li { padding-left: 3px; }

.public-customer-page .package-minimum {
    display: inline-block;
    margin: 18px 0 0;
    padding: 8px 12px;
    border: 1px solid rgb(196 76 255 / 32%);
    border-radius: 999px;
    background: rgb(196 76 255 / 10%);
    color: #e8c7fa !important;
    font-size: 14px;
    font-weight: 650;
}

.public-customer-page .marketing-choice { margin-top: 12px; }

@media (max-width: 620px) {
    .public-customer-page .package-inclusions { grid-template-columns: minmax(0, 1fr); }
}

/* Mobile-only consent rows. Inquiry fields use the shared field grid above. */
@media (max-width: 620px) {
    .public-customer-page .choice {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        min-width: 0;
    }

    .public-customer-page .choice > input[type="checkbox"] {
        flex: 0 0 18px;
        width: 18px;
        min-width: 18px;
        height: 18px;
        margin: 2px 0 0;
    }

    .public-customer-page .choice > span {
        flex: 1 1 0%;
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .public-customer-page .legal-info {
        min-width: 0;
        max-width: 100%;
        overflow-wrap: anywhere;
    }
}

/* Confirmed reservation management. */
.public-customer-page .reservation-management {
    width: min(calc(100% - 32px), 1000px) !important;
    max-width: 1000px !important;
}

.public-customer-page .reservation-summary-grid,
.public-customer-page .reservation-detail-grid,
.public-customer-page .reservation-edit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
}

.public-customer-page .reservation-summary-grid {
    margin-bottom: 20px;
}

.public-customer-page .reservation-summary-item,
.public-customer-page .reservation-detail-item {
    min-width: 0;
    padding: 13px 14px;
    border: 1px solid #303b55;
    border-radius: 11px;
    background: rgb(9 16 31 / 38%);
}

.public-customer-page .reservation-summary-item > span,
.public-customer-page .reservation-detail-label,
.public-customer-page .reservation-slots-label,
.public-customer-page .reservation-time-range > span {
    display: block;
    margin-bottom: 4px;
    color: #9faac0;
    font-size: 13px;
    font-weight: 650;
}

.public-customer-page .reservation-summary-item > strong,
.public-customer-page .reservation-detail-value,
.public-customer-page .reservation-time-range > strong {
    display: block;
    color: #f7f8ff;
    font-size: 16px;
    font-weight: 750;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.public-customer-page .reservation-slots-label {
    margin: 4px 0 2px;
}

.public-customer-page .reservation-time-range {
    margin: 16px 0;
}

.public-customer-page .reservation-summary-card .readonly {
    margin-top: 18px;
    padding: 13px 15px;
    border: 1px solid #465271;
    border-radius: 10px;
    background: #1b263d !important;
    color: #dce3f1 !important;
    line-height: 1.55;
}

.public-customer-page .reservation-summary-card > h3 {
    margin: 26px 0 13px;
}

.public-customer-page .reservation-edit-section {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid #303a54;
}

.public-customer-page .reservation-edit-section > h3 {
    margin: 0 0 14px;
    color: #e9ecf7;
    font-size: 17px;
}

.public-customer-page .reservation-edit-grid > .field,
.public-customer-page .reservation-edit-note > .field {
    min-width: 0;
}

.public-customer-page .reservation-edit-wide {
    grid-column: 1 / -1;
}

.public-customer-page .reservation-edit-note textarea {
    width: 100%;
}

@media (max-width: 700px) {
    .public-customer-page .reservation-summary-grid,
    .public-customer-page .reservation-detail-grid,
    .public-customer-page .reservation-edit-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .public-customer-page .reservation-edit-wide {
        grid-column: auto;
    }
}

/* Shared confirmation card for completed public workflows. */
.public-customer-page .public-success-card {
    width: min(100%, 800px);
    margin: clamp(28px, 6vh, 64px) auto !important;
    padding: clamp(26px, 5vw, 44px) !important;
    border: 1px solid #32684d !important;
    border-radius: 20px !important;
    background: linear-gradient(145deg, #111b30, #142b2b) !important;
    color: #f5f7ff !important;
    box-shadow: 0 24px 64px rgb(0 0 0 / 24%);
}

.public-customer-page .public-success-card h1 {
    margin: 0 0 14px;
    color: #fff;
}

.public-customer-page .public-success-card p {
    max-width: 680px;
    color: #cbd5e1 !important;
    line-height: 1.65;
}

.public-customer-page .public-success-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.public-customer-page .public-success-actions .button,
.public-customer-page .public-success-actions .secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.public-customer-page .confirmed-slot-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.public-customer-page .confirmed-slot-list > .slot {
    margin: 0 !important;
}

.public-customer-page .success-details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
    margin: 20px 0 24px;
}

.public-customer-page .success-details-grid > .box {
    min-width: 0;
    height: 100%;
    margin: 0 !important;
}

.public-customer-page .success-term-card {
    margin-bottom: 20px !important;
}

.public-customer-page .birthday-hold-timer {
    margin-top: 14px;
}

.public-customer-page .birthday-game-tip {
    margin-top: 14px;
    padding: 13px 15px;
    line-height: 1.55;
}

@media (max-width: 620px) {
    .public-customer-page .success-details-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .public-customer-page .public-success-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    .public-customer-page .public-success-actions .button,
    .public-customer-page .public-success-actions .secondary {
        width: 100%;
    }
}
