/* Origami Booking — buyer-facing booking widget on the service product page.
   Colors come from the theme: card, form-control and btn classes carry the shop palette,
   and --origami-accent is set from the theme's .btn-primary by the widget script.
   The values below are fallbacks only. */

.origami-booking-widget {
    --origami-accent: var(--bs-primary, var(--primary, #333));
    --origami-on-accent: #fff;
    clear: both;
    width: 100%;
    max-width: 420px;
    -ms-flex: 0 0 100%;
    flex: 0 0 100%;
    -ms-flex-order: -1;
    order: -1;
    margin-bottom: 1rem;
}

.origami-booking-widget .card-header {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 600;
}

.origami-booking-widget .origami-booking-step {
    margin-bottom: 1rem;
}

.origami-booking-widget .origami-booking-label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.origami-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.4em;
    height: 1.4em;
    flex: 0 0 1.4em;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 0.8em;
    line-height: 1;
}

/* day strip: the next days with a free slot */
.origami-days {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.origami-day {
    display: grid;
    place-items: center;
    align-content: center;
    min-width: 62px;
    height: 58px;
    padding: 0 10px;
    border: 0;
    border-radius: 4px;
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14);
    font: inherit;
    font-size: 13px;
    line-height: 1.15;
    color: rgba(0, 0, 0, .6);
    cursor: pointer;
    flex: none;
}
.origami-day b { font-size: 21px; color: inherit; font-variant-numeric: tabular-nums; }
.origami-day:hover { box-shadow: inset 0 0 0 1.5px var(--origami-accent, #222); }
.origami-day[aria-pressed="true"] { background: var(--origami-accent, #222); color: var(--origami-on-accent, #fff); box-shadow: none; }
.origami-day:focus-visible { outline: 2px solid var(--origami-accent, #222); outline-offset: 2px; }
.origami-slot-part {
    margin: 16px 0 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    opacity: .55;
}
.origami-slot-group {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}
.origami-seg {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 3px;
    border-radius: 8px;
    background: rgba(0, 0, 0, .05);
}
.origami-seg label {
    display: grid;
    place-items: center;
    height: 38px;
    margin: 0;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    opacity: .7;
    cursor: pointer;
    position: relative;
}
.origami-seg input { position: absolute; opacity: 0; pointer-events: none; }
.origami-seg label:has(input:checked) { background: #fff; opacity: 1; box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.origami-seg label:has(input:focus-visible) { outline: 2px solid var(--origami-accent, #222); outline-offset: 1px; }
.origami-for-input { margin-top: 10px; }
.origami-booking-note { margin: 10px 0 0; font-size: 13px; opacity: .7; line-height: 1.45; }

.origami-range-fields {
    display: flex;
    gap: 0.5rem;
}
.origami-range-field {
    flex: 1 1 0;
    min-width: 0;
}
.origami-range-sublabel {
    display: block;
    font-size: 0.8em;
    margin-bottom: 0.2rem;
}
.origami-range-constraint {
    display: block;
    margin-top: 0.4rem;
}
.origami-range-unavailable {
    margin-top: 0.5rem;
    padding: 0.45rem 0.6rem;
    border: 1px dashed;
    border-radius: 0.25rem;
    font-size: 0.875em;
    opacity: 0.8;
}
.origami-range-unavailable-title {
    font-weight: 600;
    margin-right: 0.25rem;
}

/* Time-slot buttons: theme .btn classes, layout only here */
.origami-slot-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.origami-booking-widget .origami-slot-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 5rem;
    min-height: 2.75rem;
    padding: 0.35rem 0.6rem;
    line-height: 1.15;
    white-space: nowrap;
}
.origami-booking-widget .origami-slot-btn:focus-visible {
    outline: 2px solid var(--origami-accent);
    outline-offset: 2px;
}
.origami-slot-btn .origami-slot-time {
    font-weight: 700;
}
.origami-slot-btn .origami-slot-meta {
    font-size: 0.75em;
    opacity: 0.8;
}
.origami-slot-btn[disabled] {
    text-decoration: line-through;
}
.origami-slot-hint {
    margin: 0;
}

/* Quantity stepper */
.origami-qty-stepper {
    display: inline-flex;
    align-items: stretch;
}
.origami-qty-btn {
    min-width: 2.5rem;
    min-height: 2.5rem;
    padding: 0;
    line-height: 1;
}
.origami-qty-input {
    width: 3.25rem;
    text-align: center;
}
.origami-qty-remaining {
    display: block;
    margin-top: 0.4rem;
}

/* Selection summary */
.origami-booking-summary {
    margin-top: 1rem;
    padding: 0.5rem 0.75rem;
    border-left: 3px solid var(--origami-accent);
}
.origami-booking-summary-title {
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.25rem;
}
.origami-booking-summary-body {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2px 12px;
    align-items: center;
}
.origami-booking-summary-what { grid-column: 1; font-size: 14px; opacity: .7; }
.origami-booking-summary-price { grid-row: 1 / span 2; grid-column: 2; font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.origami-booking-summary-when,
.origami-booking-summary-price {
    font-weight: 600;
}

/* When the selected combination has no planning */
.origami-booking-widget--unavailable .origami-date-picker,
.origami-booking-widget--unavailable .origami-qty-step {
    opacity: 0.4;
    pointer-events: none;
}

/* The widget owns the quantity: hide the theme's native field */
.origami-hidden-qty {
    display: none !important;
}

.origami-booking-message {
    margin: 0.5rem 0 0;
    min-height: 1.2em;
}
.origami-booking-message:empty {
    min-height: 0;
}

@media (prefers-reduced-motion: no-preference) {
    .origami-booking-summary {
        animation: origami-summary-in 0.18s ease;
    }
}
@keyframes origami-summary-in {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* service page: facts under the title, the other providers under the picture */
.origami-service-facts { margin: 6px 0 18px; }
.origami-service-with { margin: 0 0 12px; font-size: 18px; }
.origami-service-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.origami-service-chips li { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 17px; background: rgba(0, 0, 0, .05); font-weight: 600; font-size: 15px; }
.origami-service-chips svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.origami-service-chips svg.is-star { fill: currentColor; stroke: none; }
.origami-service-alts { margin-top: 24px; text-align: left; }
.origami-service-alts__t { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .6; }
.origami-service-alt { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 8px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); color: inherit; text-decoration: none; }
.origami-service-alt:hover { box-shadow: inset 0 0 0 1.5px var(--origami-accent, #222); text-decoration: none; }
.origami-service-alt__av { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(0, 0, 0, .05); font-weight: 800; flex: none; }
.origami-service-alt__txt { display: grid; }
.origami-service-alt__txt small { opacity: .7; font-size: 14px; }
.origami-service-alt > span:last-child { margin-left: auto; }

/* the other services of the provider, booked right after the chosen slot */
.origami-extras { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 4px; }
.origami-extra-btn { display: grid; gap: 2px; text-align: left; padding: 8px 12px; border: 1px solid var(--origami-line, #ddd); border-radius: 6px; background: #fff; cursor: pointer; font-size: 14px; }
.origami-extra-btn span { font-size: 12px; opacity: .75; }
.origami-extra-btn[aria-pressed="true"] { border-color: var(--origami-accent, currentColor); box-shadow: inset 0 0 0 1px var(--origami-accent, currentColor); }
.origami-summary-extra { margin: 6px 0 0; font-size: 14px; font-weight: 600; }
