/* ── Schuck Booking — Public Styles ─────────────────────── */

.sb-booking-wrap {
    max-width: 480px;
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    background: #fafafa;
}

/* ── Field groups ────────────────────────────────────────── */
.sb-field-group {
    margin-bottom: 16px;
}
.sb-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-bottom: 6px;
}
.sb-required { color: #e53935; }

/* ── Date input ──────────────────────────────────────────── */
.sb-date-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.sb-date-input {
    width: 100%;
    padding: 10px 40px 10px 14px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    background: #fff;
    transition: border-color .15s;
}
.sb-date-input:focus {
    outline: none;
    border-color: #2271b1;
}
.sb-cal-icon {
    position: absolute;
    right: 12px;
    color: #999;
    pointer-events: none;
}

/* ── Note text ───────────────────────────────────────────── */
.sb-field-note {
    margin: 6px 0 0;
    font-size: 13px;
    min-height: 18px;
}
.sb-note-success { color: #1b5e20; }
.sb-note-error   { color: #c62828; }

/* ── Qty stepper ─────────────────────────────────────────── */
.sb-qty-wrap {
    display: flex;
    align-items: center;
    border: 2px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    width: fit-content;
}
.sb-qty-btn {
    background: #f5f5f5;
    border: none;
    width: 42px;
    height: 44px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    color: #333;
    transition: background .15s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sb-qty-btn:hover { background: #e8e8e8; }
.sb-qty-input {
    width: 56px;
    height: 44px;
    border: none;
    border-left: 2px solid #ddd;
    border-right: 2px solid #ddd;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    -moz-appearance: textfield;
    background: #fff;
}
.sb-qty-input::-webkit-outer-spin-button,
.sb-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ── Price box ───────────────────────────────────────────── */
.sb-price-box {
    margin-top: 16px;
    padding: 16px;
    border: 2px solid #2271b1;
    border-radius: 10px;
    background: #fff;
}
.sb-price-breakdown {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sb-price-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #555;
}
.sb-price-line-persons {
    color: #666;
    font-size: 13px;
    padding-left: 8px;
}
.sb-price-total-line {
    border-top: 2px solid #eee;
    padding-top: 8px;
    margin-top: 4px;
    font-weight: 700;
    font-size: 16px;
    color: #333;
}
.sb-price-total {
    font-size: 22px;
    font-weight: 800;
    color: #2271b1;
}

/* ── Blocked days in flatpickr ───────────────────────────── */
.flatpickr-day.sb-blocked-day,
.flatpickr-day.sb-blocked-day:hover {
    background: #f5f5f5 !important;
    color: #ccc !important;
    cursor: not-allowed !important;
    text-decoration: line-through !important;
    pointer-events: none;
}
.flatpickr-day.sb-available-day {
    color: #333;
    font-weight: 600;
}

/* ── Tooltip on blocked days ─────────────────────────────── */
.flatpickr-day.sb-blocked-day[data-sb-reason] { position: relative; }
.flatpickr-day.sb-blocked-day[data-sb-reason]::after {
    content: attr(data-sb-reason);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(30,30,30,0.88);
    color: #fff;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 5px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity .2s;
    z-index: 99999;
}
.flatpickr-day.sb-blocked-day[data-sb-reason]:hover::after { opacity: 1; }

/* ── Selected day ────────────────────────────────────────── */
.flatpickr-day.selected,
.flatpickr-day.selected:hover {
    background: #2271b1 !important;
    border-color: #2271b1 !important;
    color: #fff !important;
}
