/**
 * Zeilschool Booking – Frontend Booking Flow
 * Brand: Zeilschool de Morra
 * Colors: Geel var(--zsb-geel, #F5B731), Rood var(--zsb-rood, #E63329), Blauw var(--zsb-blauw, #1B75BB)
 *
 * @package ZeilschoolBooking
 */

:root {
    --zsb-geel:  var(--zsb-geel, #F5B731);
    --zsb-rood:  var(--zsb-rood, #E63329);
    --zsb-blauw: var(--zsb-blauw, #1B75BB);
    --zsb-blauw-dark: #155d94;
    --zsb-blauw-light: #e8f2fb;
    --zsb-geel-light:  #fef8e7;
    --zsb-rood-light:  #fdeeed;
}

/* ── Container ── */
.zsb-booking {
    max-width: 820px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, sans-serif;
}

.zsb-booking-closed {
    text-align: center; padding: 40px 20px;
    background: #f8fafc; border-radius: 10px;
    color: #64748b; font-size: 16px;
}

/* ── Progress Bar ── */
.zsb-progress {
    display: flex; align-items: center; justify-content: center;
    gap: 0; margin-bottom: 32px; padding: 0 10px;
}
.zsb-progress__step {
    display: flex; flex-direction: column; align-items: center;
    gap: 4px; position: relative; z-index: 1;
}
.zsb-progress__number {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 15px;
    background: #e2e8f0; color: #94a3b8;
    transition: all 0.3s ease;
}
.zsb-progress__label {
    font-size: 12px; color: #94a3b8; font-weight: 500;
    transition: color 0.3s;
}
.zsb-progress__step--active .zsb-progress__number {
    background: var(--zsb-blauw); color: #fff;
    box-shadow: 0 0 0 4px rgba(var(--zsb-blauw-rgb, 27,117,187), 0.2);
}
.zsb-progress__step--active .zsb-progress__label { color: var(--zsb-blauw); font-weight: 600; }
.zsb-progress__step--done .zsb-progress__number { background: #16a34a; color: #fff; }
.zsb-progress__step--done .zsb-progress__label { color: #16a34a; }
.zsb-progress__step--done:hover .zsb-progress__number { background: #15803d; transform: scale(1.1); }
.zsb-progress__step--done:hover .zsb-progress__label { text-decoration: underline; }

/* Multi-child blocks */
.zsb-child-block { border: 1px solid #e2e8f0; border-radius: 10px; margin-bottom: 16px; overflow: hidden; }
.zsb-child-block__header { display: flex; align-items: center; background: #fef7e6; padding: 4px 12px 4px 0; }
.zsb-child-block__header .zsb-form-section-title--geel { border-radius: 10px 10px 0 0; }
.zsb-child-block .zsb-child-form { padding: 0 16px 16px; }
.zsb-child-remove { background: none; border: 1px solid #fecaca; color: #dc2626; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.zsb-child-remove:hover { background: #fef2f2; border-color: #dc2626; }
.zsb-add-child-wrap { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 8px 0 16px; }
.zsb-btn--add-child { background: #f0fdf4; color: #16a34a; border: 2px dashed #86efac; border-radius: 10px; padding: 12px 20px; font-size: 14px; font-weight: 700; cursor: pointer; transition: all 0.2s; }
.zsb-btn--add-child:hover { background: #dcfce7; border-color: #16a34a; }
.zsb-add-child-total { font-size: 15px; color: #334155; }

.zsb-progress__line {
    flex: 1; height: 3px; background: #e2e8f0;
    margin: 0 -4px; margin-top: -18px;
    transition: background 0.3s;
}
.zsb-progress__line--done { background: #16a34a; }

/* ── Steps ── */
.zsb-step { animation: zsb-fade-in 0.25s ease; }
@keyframes zsb-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.zsb-step__title {
    font-size: 22px; font-weight: 700; color: #1e293b;
    margin: 0 0 6px 0; text-align: center;
}
.zsb-step__subtitle {
    text-align: center; color: #475569; font-size: 16px;
    margin: 0 0 20px 0;
}

/* ── Discipline Cards ── */
.zsb-disc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px; margin-bottom: 20px;
}
@media (max-width: 680px) {
    .zsb-disc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
    .zsb-disc-grid { grid-template-columns: 1fr; }
}

.zsb-disc-card {
    display: flex; flex-direction: column; align-items: center;
    gap: 6px; padding: 20px 14px;
    background: #fff; border: 3px solid #e2e8f0; border-radius: 10px;
    cursor: pointer; transition: all 0.2s;
    font-family: inherit; text-align: center;
}

/* Rotating brand colors: geel → rood → blauw */
.zsb-disc-card:nth-child(3n+1) { border-color: var(--zsb-geel); }
.zsb-disc-card:nth-child(3n+2) { border-color: var(--zsb-rood); }
.zsb-disc-card:nth-child(3n+3) { border-color: var(--zsb-blauw); }

.zsb-disc-card:nth-child(3n+1):hover {
    background: var(--zsb-geel-light);
    transform: translateY(-3px); box-shadow: 0 6px 16px rgba(var(--zsb-geel-rgb, 245,183,49), 0.25);
}
.zsb-disc-card:nth-child(3n+2):hover {
    background: var(--zsb-rood-light);
    transform: translateY(-3px); box-shadow: 0 6px 16px rgba(var(--zsb-rood-rgb, 230,51,41), 0.2);
}
.zsb-disc-card:nth-child(3n+3):hover {
    background: var(--zsb-blauw-light);
    transform: translateY(-3px); box-shadow: 0 6px 16px rgba(var(--zsb-blauw-rgb, 27,117,187), 0.2);
}

.zsb-disc-card__icon { font-size: 28px; }
.zsb-disc-card__img { width: 100%; overflow: hidden; border-radius: 6px; }
.zsb-disc-card__img img { width: 100%; height: 120px; object-fit: cover; display: block; border-radius: 6px; }
.zsb-disc-card--has-img { padding: 8px 8px 14px; gap: 8px; }
.zsb-disc-card__name { font-weight: 600; font-size: 15px; color: #1e293b; }
.zsb-disc-card__leeftijd { font-size: 12px; color: #64748b; font-weight: 500; }
.zsb-disc-card__price { font-size: 18px; font-weight: 700; color: #059669; }
.zsb-disc-card--hidden { display: none !important; }

/* ── Leeftijd filter ── */
.zsb-leeftijd-filter {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 8px; margin-bottom: 20px;
}
.zsb-leeftijd-btn {
    padding: 8px 18px; border: 2px solid #e2e8f0; border-radius: 999px;
    background: #fff; color: #475569; font-size: 14px; font-weight: 500;
    cursor: pointer; transition: all 0.2s; font-family: inherit;
}
.zsb-leeftijd-btn:hover {
    border-color: var(--zsb-blauw); color: var(--zsb-blauw); background: var(--zsb-blauw-light);
}
.zsb-leeftijd-btn--active {
    background: var(--zsb-blauw); color: #fff; border-color: var(--zsb-blauw);
}
.zsb-leeftijd-btn--active:hover {
    background: var(--zsb-blauw-dark); border-color: var(--zsb-blauw-dark); color: #fff;
}
.zsb-disc-card__per { font-size: 11px; color: #94a3b8; }

/* ── Week Banner ── */
.zsb-week-banner {
    position: relative; border-radius: 12px; overflow: hidden;
    margin-bottom: 20px; height: 120px;
}
.zsb-week-banner img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    filter: brightness(0.7);
}
.zsb-week-banner__label {
    position: absolute; bottom: 12px; left: 16px;
    color: #fff; font-size: 18px; font-weight: 700;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* ── Discipline Info (description + video) ── */
.zsb-disc-info {
    display: flex; gap: 20px; align-items: flex-start;
    margin: 16px 0 20px; padding: 16px 20px;
    background: #f8fafc; border-radius: 10px;
    border: 1px solid #e2e8f0;
}
.zsb-disc-info__text {
    flex: 1; font-size: 15px; line-height: 1.6;
    color: #334155;
}
.zsb-disc-info__video {
    flex: 0 0 320px;
    position: relative;
    padding-bottom: 180px; /* 16:9 for 320px */
    height: 0; border-radius: 8px;
    overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.zsb-disc-info__video iframe {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%; border: 0;
}
/* Video only (no text) — center it */
.zsb-disc-info__video:only-child {
    flex: 0 0 480px; padding-bottom: 270px;
    margin: 0 auto;
}
/* Text only (no video) — full width */
.zsb-disc-info__text:only-child {
    flex: 1;
}
@media (max-width: 680px) {
    .zsb-disc-info { flex-direction: column; }
    .zsb-disc-info__video { flex: none; width: 100%; padding-bottom: 56.25%; }
    .zsb-disc-info__video:only-child { flex: none; width: 100%; padding-bottom: 56.25%; }
}

/* ── Week Cards ── */
.zsb-week-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px; margin-bottom: 20px;
}

.zsb-week-card {
    display: flex; flex-direction: column; gap: 4px;
    padding: 16px; padding-top: 20px; background: #fff;
    border: 2px solid #e2e8f0; border-radius: 10px;
    cursor: pointer; transition: all 0.2s;
    font-family: inherit; text-align: left;
    position: relative; overflow: hidden;
}

/* Colored top stripe */
.zsb-week-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 4px; background: #e2e8f0;
}
.zsb-week-card--geel::before  { background: var(--zsb-geel); }
.zsb-week-card--rood::before  { background: var(--zsb-rood); }
.zsb-week-card--blauw::before { background: var(--zsb-blauw); }

/* Rotating brand color borders */
.zsb-week-card--geel  { border-color: var(--zsb-geel); }
.zsb-week-card--rood  { border-color: var(--zsb-rood); }
.zsb-week-card--blauw { border-color: var(--zsb-blauw); }

.zsb-week-card--geel:hover:not([disabled])  { background: var(--zsb-geel-light); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(var(--zsb-geel-rgb, 245,183,49), 0.2); }
.zsb-week-card--rood:hover:not([disabled])  { background: var(--zsb-rood-light); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(var(--zsb-rood-rgb, 230,51,41), 0.15); }
.zsb-week-card--blauw:hover:not([disabled]) { background: var(--zsb-blauw-light); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(var(--zsb-blauw-rgb, 27,117,187), 0.15); }

.zsb-week-card--full {
    opacity: 0.5; cursor: not-allowed;
    background: #fafafa;
}

.zsb-week-card__nr { font-weight: 700; font-size: 16px; color: #1e293b; }
.zsb-week-card__dates { font-size: 13px; color: #64748b; }
.zsb-week-card__avail { font-size: 13px; color: #16a34a; font-weight: 500; margin-top: 2px; }
.zsb-week-card__avail--full { color: var(--zsb-rood); }

/* ── Availability Bar ── */
.zsb-avail-bar {
    width: 100%; height: 6px; background: #e2e8f0;
    border-radius: 3px; margin-top: 6px; overflow: hidden;
}
.zsb-avail-bar__fill {
    height: 100%; border-radius: 3px;
    background: #16a34a; transition: width 0.4s ease;
}
.zsb-avail-bar--low .zsb-avail-bar__fill { background: var(--zsb-geel); }
.zsb-avail-bar--full .zsb-avail-bar__fill { background: var(--zsb-rood); width: 100% !important; }

/* ── Arrangement Cards ── */
.zsb-arr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px; margin-bottom: 20px;
}

.zsb-arr-card {
    display: flex; flex-direction: column; align-items: center;
    gap: 8px; padding: 24px 18px; padding-top: 28px;
    background: #fff; border: 2px solid #e2e8f0; border-radius: 12px;
    cursor: pointer; transition: all 0.2s;
    font-family: inherit; text-align: center;
    position: relative; overflow: hidden;
}

/* Colored top stripe */
.zsb-arr-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 4px; background: #e2e8f0;
}

/* Rotating brand colors */
.zsb-arr-card--geel  { border-color: var(--zsb-geel); }
.zsb-arr-card--rood  { border-color: var(--zsb-rood); }
.zsb-arr-card--blauw { border-color: var(--zsb-blauw); }
.zsb-arr-card--geel::before  { background: var(--zsb-geel); }
.zsb-arr-card--rood::before  { background: var(--zsb-rood); }
.zsb-arr-card--blauw::before { background: var(--zsb-blauw); }

.zsb-arr-card--geel:hover {
    background: var(--zsb-geel-light);
    transform: translateY(-3px); box-shadow: 0 6px 16px rgba(var(--zsb-geel-rgb, 245,183,49), 0.25);
}
.zsb-arr-card--rood:hover {
    background: var(--zsb-rood-light);
    transform: translateY(-3px); box-shadow: 0 6px 16px rgba(var(--zsb-rood-rgb, 230,51,41), 0.2);
}
.zsb-arr-card--blauw:hover {
    background: var(--zsb-blauw-light);
    transform: translateY(-3px); box-shadow: 0 6px 16px rgba(var(--zsb-blauw-rgb, 27,117,187), 0.2);
}
.zsb-arr-card__icon { font-size: 36px; }
.zsb-arr-card__name { font-weight: 600; font-size: 16px; color: #1e293b; line-height: 1.3; }
.zsb-arr-card__tijden { font-size: 13px; color: #64748b; margin-top: 2px; }
.zsb-arr-card__price { font-size: 24px; font-weight: 700; color: #059669; margin-top: 4px; }
.zsb-arr-card__per { font-size: 12px; color: #94a3b8; margin-top: -4px; }

/* ── Herfst/Nazomer week indicator ── */
.zsb-week-card--herfst { border-color: #f59e0b !important; }
.zsb-week-card--herfst::before { background: #f59e0b !important; }
.zsb-week-card--nazomer { border-color: #ea580c !important; }
.zsb-week-card--nazomer::before { background: #ea580c !important; }
.zsb-week-card__badge {
    font-size: 11px; color: #92400e; background: #fef3c7;
    border-radius: 10px; padding: 2px 8px;
    font-weight: 600; margin-top: 2px;
}
.zsb-week-card__badge--nazomer { background: #ffedd5; color: #c2410c; }

/* ── Badges ── */
.zsb-badge { font-size: 12px; padding: 2px 8px; border-radius: 10px; font-weight: 600; }
.zsb-badge--herfst { background: #fef3c7; color: #92400e; }
.zsb-badge--nazomer { background: #ffedd5; color: #c2410c; }

/* ── Summary bar tijden ── */
.zsb-summary-bar__tijden { color: #64748b; font-size: 13px; }

/* ── Field row (side by side) ── */
.zsb-field-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
@media (max-width: 480px) {
    .zsb-field-row { grid-template-columns: 1fr; }
}

/* ── Form section title ── */
.zsb-form-section-title {
    font-size: 15px; font-weight: 600; color: #475569;
    margin: 20px 0 8px; padding: 12px 0 8px;
    border-top: 3px solid #e2e8f0;
}
.zsb-form-section-title--geel  { border-top-color: var(--zsb-geel); color: #92400e; }
.zsb-form-section-title--rood  { border-top-color: var(--zsb-rood); color: #991b1b; }
.zsb-form-section-title--blauw { border-top-color: var(--zsb-blauw); color: var(--zsb-blauw); }

/* ── Summary Bar ── */
.zsb-summary-bar {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: 16px; padding: 12px 18px;
    background: var(--zsb-blauw-light); border-radius: 8px;
    margin-bottom: 20px; font-size: 15px; color: #1e293b;
}
.zsb-summary-bar--branded {
    position: relative; overflow: hidden;
    border: 2px solid var(--zsb-blauw);
    padding-top: 18px;
}
.zsb-summary-bar--branded::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--zsb-geel) 0%, var(--zsb-geel) 33.3%, var(--zsb-rood) 33.3%, var(--zsb-rood) 66.6%, var(--zsb-blauw) 66.6%, var(--zsb-blauw) 100%);
}
.zsb-summary-bar__thumb {
    width: 48px; height: 48px; border-radius: 8px;
    object-fit: cover; border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.zsb-summary-bar small { color: #64748b; }
.zsb-summary-bar__price {
    margin-left: auto; font-weight: 700; font-size: 18px; color: #059669;
}

/* ── Child Form ── */
.zsb-child-form { margin-bottom: 20px; }

.zsb-field { margin-bottom: 16px; }
.zsb-field label {
    display: block; margin-bottom: 5px;
    font-weight: 500; font-size: 14px; color: #334155;
}
.zsb-req { color: var(--zsb-rood); text-decoration: none; font-weight: 700; }

.zsb-field input,
.zsb-field select,
.zsb-field textarea {
    width: 100%; padding: 10px 12px;
    border: 1px solid #cbd5e1; border-radius: 8px;
    font-size: 15px; font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff; box-sizing: border-box;
}
.zsb-field input:focus,
.zsb-field select:focus,
.zsb-field textarea:focus {
    outline: none; border-color: var(--zsb-blauw);
    box-shadow: 0 0 0 3px rgba(var(--zsb-blauw-rgb, 27,117,187), 0.15);
}

/* ── Buttons ── */
.zsb-actions {
    display: flex; gap: 12px; align-items: center;
    justify-content: space-between;
}

.zsb-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 28px; border-radius: 8px;
    font-size: 15px; font-weight: 600; font-family: inherit;
    cursor: pointer; transition: all 0.2s;
    text-decoration: none; border: 2px solid transparent;
}
.zsb-btn--primary {
    background: var(--zsb-blauw); color: #fff; border-color: var(--zsb-blauw);
}
.zsb-btn--primary:hover { background: var(--zsb-blauw-dark); border-color: var(--zsb-blauw-dark); }
.zsb-btn--primary:disabled { background: #94a3b8; border-color: #94a3b8; cursor: wait; }

.zsb-btn--outline {
    background: #fff; color: var(--zsb-blauw); border-color: var(--zsb-blauw);
}
.zsb-btn--outline:hover { background: var(--zsb-blauw-light); }

.zsb-btn--back {
    background: none; color: #64748b; border: none; padding: 12px 16px;
}
.zsb-btn--back:hover { color: #1e293b; }

/* ── Success ── */
.zsb-success { text-align: center; padding: 20px 0; }
.zsb-success__icon { margin-bottom: 8px; }
.zsb-success__message {
    font-size: 16px; color: #475569; margin: 0 0 24px 0;
    line-height: 1.5;
}
.zsb-success--branded {
    position: relative; overflow: hidden;
    background: linear-gradient(180deg, var(--zsb-blauw-light) 0%, #fff 50%);
    border-radius: 16px; padding: 32px 20px;
    border: 2px solid var(--zsb-blauw);
}
.zsb-success--branded::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px;
    background: linear-gradient(90deg, var(--zsb-geel) 0%, var(--zsb-geel) 33.3%, var(--zsb-rood) 33.3%, var(--zsb-rood) 66.6%, var(--zsb-blauw) 66.6%, var(--zsb-blauw) 100%);
}
.zsb-success--branded .zsb-step__title {
    color: var(--zsb-blauw); font-size: 26px;
}
.zsb-success__actions {
    display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}

/* ── Error ── */
.zsb-error {
    background: var(--zsb-rood-light); color: #991b1b; border: 1px solid #fecaca;
    padding: 12px 18px; border-radius: 8px;
    margin-top: 16px; font-size: 14px; line-height: 1.5;
}

/* ── Loading ── */
.zsb-loading {
    text-align: center; padding: 40px; color: #64748b; font-size: 15px;
}
.zsb-spinner {
    display: inline-block; width: 20px; height: 20px;
    border: 3px solid #e2e8f0; border-top-color: var(--zsb-blauw);
    border-radius: 50%; animation: zsb-spin 0.6s linear infinite;
    vertical-align: middle; margin-right: 8px;
}
@keyframes zsb-spin { to { transform: rotate(360deg); } }

/* ── Responsive ── */
@media (max-width: 600px) {
    .zsb-disc-grid { grid-template-columns: repeat(2, 1fr); }
    .zsb-week-grid { grid-template-columns: 1fr; }
    .zsb-week-banner { height: 80px; }
    .zsb-progress__label { font-size: 10px; }
    .zsb-progress__number { width: 30px; height: 30px; font-size: 13px; }
    .zsb-summary-bar { flex-direction: column; align-items: flex-start; gap: 6px; }
    .zsb-summary-bar__price { margin-left: 0; }
    .zsb-actions { flex-direction: column-reverse; }
    .zsb-actions .zsb-btn { width: 100%; }
}
@media (min-width: 601px) and (max-width: 780px) {
    .zsb-week-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Info-tooltips bij formuliervelden ────────────────────────────── */
.zsb-tip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    padding: 0;
    margin-left: 2px;
    border: none;
    border-radius: 50%;
    background: var(--zsb-blauw-light);
    color: var(--zsb-blauw);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    cursor: help;
    vertical-align: middle;
    transition: background .15s, color .15s;
}
.zsb-tip:hover,
.zsb-tip:focus {
    background: var(--zsb-blauw);
    color: #fff;
    outline: none;
}
/* Touch-popover (getoond via JS-klik op mobiel) */
.zsb-field { position: relative; }
.zsb-tip-pop {
    display: block;
    position: absolute;
    z-index: 20;
    left: 0;
    right: 0;
    margin-top: 6px;
    padding: 10px 12px;
    background: #1e293b;
    color: #fff;
    font-size: 13px;
    line-height: 1.4;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
.zsb-tip-pop::before {
    content: "";
    position: absolute;
    top: -5px;
    left: 14px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid #1e293b;
}

/* ═══════════════════════════════════════════════
 * Mobile App Shell
 * Only activates on screens < 768px
 * Hides Divi chrome, goes fullscreen app-like
 * ═══════════════════════════════════════════════ */

/* Desktop: app shell is invisible, just a passthrough wrapper */
.zsb-app-shell__header { display: none; }

@media (max-width: 768px) {

    /* Hide Divi/theme chrome only when app shell is active */
    body.page:has(.zsb-app-shell) #main-header,
    body.page:has(.zsb-app-shell) #top-header,
    body.page:has(.zsb-app-shell) #main-footer,
    body.page:has(.zsb-app-shell) #footer-bottom,
    body.page:has(.zsb-app-shell) .et-l--footer,
    body.page:has(.zsb-app-shell) .et-l--header,
    body.page:has(.zsb-app-shell) #et_mobile_nav_menu,
    body.page:has(.zsb-app-shell) .entry-title,
    body.page:has(.zsb-app-shell) .et_post_meta_wrapper {
        display: none !important;
    }

    /* Make the app shell fullscreen */
    .zsb-app-shell {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 99999;
        background: #f1f5f9;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    /* App header bar */
    .zsb-app-shell__header {
        display: block;
        flex-shrink: 0;
        position: relative;
    }

    .zsb-app-shell__tricolor {
        height: 4px;
        background: linear-gradient(to right, var(--zsb-geel, #F5B731) 33%, var(--zsb-rood, #E63329) 33% 66%, var(--zsb-blauw, #1B75BB) 66%);
    }

    .zsb-app-shell__bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 16px;
        background: var(--zsb-blauw, #1B75BB);
        color: #fff;
    }

    .zsb-app-shell__logo {
        font-size: 17px;
        font-weight: 800;
        letter-spacing: 0.5px;
    }

    .zsb-app-shell__cart {
        display: flex;
        align-items: center;
        gap: 4px;
        color: #fff;
        text-decoration: none;
        font-size: 20px;
        padding: 6px 10px;
        border-radius: 8px;
        background: rgba(255,255,255,0.15);
        transition: background 0.2s;
    }

    .zsb-app-shell__cart:hover,
    .zsb-app-shell__cart:active {
        background: rgba(255,255,255,0.25);
    }

    .zsb-app-shell__cart-count {
        font-size: 12px;
        font-weight: 700;
        background: var(--zsb-geel, #F5B731);
        color: #1a1a1a;
        border-radius: 10px;
        padding: 1px 7px;
        min-width: 18px;
        text-align: center;
    }

    .zsb-app-shell__cart-count:empty {
        display: none;
    }

    /* Scrollable body area */
    .zsb-app-shell__body {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0;
    }

    /* Adjust booking widget inside the shell */
    .zsb-app-shell__body .zsb-booking {
        min-height: 100%;
        border-radius: 0;
        box-shadow: none;
        margin: 0;
        border: none;
    }

    /* Safe area padding for phones with notches */
    @supports (padding-top: env(safe-area-inset-top)) {
        .zsb-app-shell__bar {
            padding-top: calc(12px + env(safe-area-inset-top));
        }
        .zsb-app-shell__body {
            padding-bottom: env(safe-area-inset-bottom);
        }
    }

    /* Smooth transitions for step changes */
    .zsb-app-shell__body .zsb-step {
        animation: zsb-app-slide-in 0.25s ease-out;
    }

    @keyframes zsb-app-slide-in {
        from { opacity: 0; transform: translateY(12px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    /* Hide WP admin bar on mobile app view */
    body.admin-bar .zsb-app-shell {
        top: 0;
    }
    body.admin-bar #wpadminbar {
        display: none !important;
    }
}

/* PWA standalone mode: even cleaner */
@media (display-mode: standalone) {
    body.page #main-header,
    body.page #top-header,
    body.page #main-footer,
    body.page #footer-bottom,
    body.page .et-l--footer,
    body.page .et-l--header {
        display: none !important;
    }

    .zsb-app-shell {
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        z-index: 99999;
        background: #f1f5f9;
        display: flex;
        flex-direction: column;
    }

    .zsb-app-shell__header {
        display: block !important;
        flex-shrink: 0;
    }
}

/* Combi selection grid */
.zsb-combi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin: 16px 0;
}
.zsb-combi-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 16px;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}
.zsb-combi-card:hover {
    border-color: var(--zsb-blauw);
    background: var(--zsb-blauw-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--zsb-blauw-rgb, 27,117,187),0.15);
}
.zsb-combi-card__icons {
    font-size: 28px;
    letter-spacing: 4px;
}
.zsb-combi-card__label {
    font-size: 14px;
    font-weight: 700;
    color: #334155;
}
@media (max-width: 480px) {
    .zsb-combi-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .zsb-combi-card { padding: 14px 10px; }
    .zsb-combi-card__icons { font-size: 22px; }
    .zsb-combi-card__label { font-size: 12px; }
}

/* ── 2.21.0: meivakantie, extra's, kamerwens ── */
.zsb-week-card--mei { border-color: #db2777 !important; }
.zsb-week-card--mei::before { background: #db2777 !important; }
.zsb-week-card__badge--mei { background: #fce7f3; color: #9d174d; }
.zsb-badge--mei { background: #fce7f3; color: #9d174d; }

.zsb-extras { display: grid; gap: 8px; margin: 4px 0 12px; }
.zsb-extra {
    display: flex; align-items: center; gap: 10px; cursor: pointer;
    padding: 10px 14px; border: 2px solid #e2e8f0; border-radius: 10px; background: #fff;
    transition: border-color .15s, background .15s;
}
.zsb-extra:hover { border-color: var(--zsb-blauw, #1B75BB); }
.zsb-extra:has(input:checked) { border-color: var(--zsb-blauw, #1B75BB); background: rgba(var(--zsb-blauw-rgb, 27,117,187), .06); }
.zsb-extra input { width: 18px; height: 18px; margin: 0; accent-color: var(--zsb-blauw, #1B75BB); flex: none; }
.zsb-extra__label { flex: 1; font-weight: 600; color: #1e293b; }
.zsb-extra__price { font-weight: 700; color: var(--zsb-blauw, #1B75BB); white-space: nowrap; }
