/**
 * Booking widget — STRUCTURAL styles only (layout, positioning, hidden/aria).
 * Brand (colour, type, shadow) belongs to the theme; see templates/README.md
 * and DESIGN-SYSTEM.md §1.2. Neutral defaults here keep the widget usable in
 * any theme without fighting one.
 */

.oasis-bw [hidden] { display: none !important; }

.oasis-bw__head { display: flex; align-items: baseline; gap: 6px; margin-bottom: 12px; }
.oasis-bw__price-num { font-size: 1.6em; font-weight: 700; }
.oasis-bw__price-unit { opacity: .7; }

.oasis-bw__fields { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid currentColor; border-radius: 10px; }
.oasis-bw__field { display: block; width: 100%; text-align: left; padding: 10px 12px; background: none; border: none; cursor: pointer; }
.oasis-bw__fields .oasis-bw__field + .oasis-bw__field { border-left: 1px solid; }
.oasis-bw__field-label { display: block; font-size: .68em; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.oasis-bw__field-value { display: block; margin-top: 2px; font-variant-numeric: tabular-nums; }

.oasis-bw__guestsbox { position: relative; margin-top: 8px; }
.oasis-bw__guests-toggle { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; border: 1px solid currentColor; border-radius: 10px; padding: 10px 12px; }
.oasis-bw__guests-toggle::after { content: "\25BE"; opacity: .6; }
.oasis-bw__guests-menu { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 50; border: 1px solid currentColor; border-radius: 12px; padding: 6px 14px 14px; }
.oasis-bw__cal-foot { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.oasis-bw__cal-msg { font-size: .82em; margin-left: auto; text-align: right; }
.oasis-bw__grow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; }
.oasis-bw__grow + .oasis-bw__grow { border-top: 1px solid; }
.oasis-bw__grow-txt { display: flex; flex-direction: column; }
.oasis-bw__grow-h { font-weight: 600; }
.oasis-bw__grow-s { font-size: .78em; opacity: .7; }
.oasis-bw__guests-note { font-size: .78em; opacity: .7; margin: 10px 0 0; }
.oasis-bw__guests-done { display: block; margin: 12px 0 0 auto; background: none; border: none; cursor: pointer; font: inherit; text-decoration: underline; }
.oasis-bw__stepper { display: flex; align-items: center; gap: 12px; }
.oasis-bw__stepper button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid currentColor; background: none; cursor: pointer; font-size: 16px; line-height: 1; }
.oasis-bw__stepper button:disabled { opacity: .35; cursor: not-allowed; }
.oasis-bw__stepper span { font-variant-numeric: tabular-nums; min-width: 1ch; text-align: center; }

/* The calendar floats over the widget as a popover anchored to the date fields,
   so picking dates never pushes the guests/price/button down the page. */
.oasis-bw__dates { position: relative; }
.oasis-bw__calendar { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 50; border: 1px solid currentColor; border-radius: 12px; padding: 14px; }
.oasis-bw__cal-x { position: absolute; top: 12px; right: 14px; z-index: 2; width: 30px; height: 30px; padding: 0; border: none; background: none; cursor: pointer; font-size: 22px; line-height: 1; }
.oasis-bw__cal-nav { display: flex; justify-content: space-between; margin-bottom: 8px; padding-right: 40px; }
.oasis-bw__cal-arrow { background: none; border: 1px solid currentColor; border-radius: 50%; width: 30px; height: 30px; cursor: pointer; }
.oasis-bw__months { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.oasis-bw__month-name { text-align: center; font-weight: 600; margin-bottom: 8px; }
.oasis-bw__dow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-bottom: 4px; }
.oasis-bw__dow span { text-align: center; font-size: .7em; opacity: .6; }
.oasis-bw__days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.oasis-bw__day { aspect-ratio: 1; display: grid; place-items: center; border: none; background: none; cursor: pointer; border-radius: 50%; font: inherit; padding: 0; }
.oasis-bw__day.is-blank { visibility: hidden; cursor: default; }
.oasis-bw__day.is-unavailable { text-decoration: line-through; opacity: .4; cursor: not-allowed; }
/* Past days: greyed, not struck through — history, distinct from a booked day. */
.oasis-bw__day.is-past { opacity: .32; cursor: default; }
.oasis-bw__day.is-between { border-radius: 0; }
/* Today: a cream fill (the same tone as :hover) so the current day is easy to
   spot. When today becomes the selected start/end/in-range, the theme's coral
   selection colours win by higher specificity, so the marker gives way naturally. */
.oasis-bw__day.is-today { background: var(--of-sand, #EFE7D9); font-weight: 700; }

@media (max-width: 520px) {
	.oasis-bw__months { grid-template-columns: 1fr; }
	.oasis-bw__months .oasis-bw__month + .oasis-bw__month { display: none; }
}

.oasis-bw__reserve { display: block; text-align: center; margin-top: 14px; padding: 14px; border-radius: 10px; text-decoration: none; cursor: pointer; }
.oasis-bw__reserve[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.oasis-bw__note { text-align: center; font-size: .8em; opacity: .7; margin: 10px 0 0; }

.oasis-bw__breakdown { margin-top: 18px; padding-top: 14px; border-top: 1px solid currentColor; }
.oasis-bw__breakdown[data-loading] { opacity: .5; }
.oasis-bw__bd-sum { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; cursor: pointer; list-style: none; font-weight: 700; }
.oasis-bw__bd-sum::-webkit-details-marker { display: none; }
.oasis-bw__bd-lab { display: flex; flex-direction: column; gap: 1px; }
.oasis-bw__bd-toggle { font-size: .72em; font-weight: 400; opacity: .7; text-decoration: underline; }
.oasis-bw__bd-amt { display: inline-flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.oasis-bw__bd-chev { width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg); transition: transform .18s ease; margin-bottom: 3px; }
.oasis-bw__bd[open] .oasis-bw__bd-chev { transform: rotate(-135deg); margin-bottom: -2px; }
.oasis-bw__bd-lines { padding-top: 12px; }
.oasis-bw__bd-row { display: flex; justify-content: space-between; padding: 5px 0; }
.oasis-bw__bd-row span:last-child { font-variant-numeric: tabular-nums; }
.oasis-bw__bd-due { font-size: .82em; margin: 10px 0 0; }
.oasis-bw__bd-cancel { font-size: .8em; margin: 8px 0 0; opacity: .8; }
