/* Risk Booking — SuperSaaS custom list */
.rb-section,
.rb-card,
.rb-modal {
	--rb-ink: #0f1b2d;
	--rb-text: #3b4656;
	--rb-muted: #6b7584;
	--rb-line: #e4e8ee;
	--rb-surface: #f7f9fb;
	--rb-card: #ffffff;
	--rb-yellow: #fbbf24;
	--rb-yellow-hover: #f5ad0b;
	--rb-orange: #c2570c;
	--rb-blue: #1d4ed8;
	--rb-green: #15803d;
	--rb-green-bg: #ecfdf3;
	--rb-green-line: #a7e3bf;
	--rb-amber: #b45309;
	--rb-amber-bg: #fffbeb;
	--rb-amber-line: #f6d38a;
	--rb-radius: 12px;
	font-family: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	color: var(--rb-text);
	box-sizing: border-box;
}
.rb-section *,
.rb-card *,
.rb-modal * { box-sizing: border-box; }

/* Section header */
.rb-section { max-width: 1040px; margin: 0 auto; padding: 32px 16px; }
.rb-intro { text-align: center; margin-bottom: 40px; }
.rb-kicker { margin: 0 0 10px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--rb-muted); }
.rb-heading { margin: 0 0 12px; font-size: clamp(26px, 4vw, 32px); line-height: 1.15; font-weight: 800; color: var(--rb-ink); letter-spacing: -.01em; }
.rb-payments { margin: 12px 0 0; }
.rb-lead { margin: 0; font-size: 15px; color: var(--rb-text); }

.rb-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 28px; align-items: start; }
/* One card: centred and as wide as the banner below it. */
.rb-grid--single { grid-template-columns: minmax(0, 1fr); max-width: 640px; margin: 0 auto; }

/* Card */
.rb-card { background: var(--rb-surface); border: 1px solid var(--rb-line); border-radius: 16px; padding: 24px; }
.rb-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--rb-line); }
.rb-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; }
.rb-eyebrow--orange { color: var(--rb-orange); }
.rb-eyebrow--blue { color: var(--rb-blue); }
.rb-card__title { margin: 0; font-size: 18px; font-weight: 700; color: var(--rb-ink); line-height: 1.3; }
.rb-price { flex: none; background: var(--rb-card); border: 1px solid var(--rb-line); border-radius: 6px; padding: 5px 9px; font-size: 12px; font-weight: 600; color: var(--rb-ink); white-space: nowrap; }
.rb-card__desc { margin: 14px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--rb-text); }
.rb-card__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 14px 0 12px; }
.rb-card__sub { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--rb-ink); }
.rb-select select {
	appearance: none; -webkit-appearance: none;
	background: var(--rb-card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5'%3E%3Cpath d='M0 0h8L4 5z' fill='%230f1b2d'/%3E%3C/svg%3E") no-repeat right 9px center;
	border: 1px solid var(--rb-line); border-radius: 6px; padding: 6px 24px 6px 10px; font: inherit; font-size: 11.5px; color: var(--rb-ink); cursor: pointer; margin: 0; height: auto; line-height: 1.3; min-width: 0;
}

/* Slot list */
.rb-list { position: relative; min-height: 120px; transition: opacity .15s; }
.rb-list.is-loading { opacity: .45; pointer-events: none; }
.rb-slots { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rb-slot { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--rb-card); border: 1px solid var(--rb-line); border-radius: var(--rb-radius); padding: 14px 12px 14px 12px; margin: 0; transition: box-shadow .15s, border-color .15s; }
.rb-slot:hover { border-color: #d3d9e2; box-shadow: 0 2px 10px rgba(15, 27, 45, .06); }
.rb-slot__info { min-width: 0; }
.rb-slot__head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-bottom: 4px; }
.rb-slot__when { font-size: 13.5px; font-weight: 700; color: var(--rb-ink); }
.rb-slot__title { font-size: 12px; color: var(--rb-text); }
.rb-slot__loc { display: flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--rb-muted); margin-top: 2px; }
.rb-slot__loc svg { flex: none; }

.rb-badge { display: inline-block; font-size: 10.5px; font-weight: 600; line-height: 1; padding: 4px 6px; border-radius: 4px; border: 1px solid; }
.rb-badge--ok { color: var(--rb-green); background: var(--rb-green-bg); border-color: var(--rb-green-line); }
.rb-badge--few { color: var(--rb-amber); background: var(--rb-amber-bg); border-color: var(--rb-amber-line); }

/* Buttons */
.rb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 6px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .15s, transform .05s; white-space: nowrap; }
.rb-btn:active { transform: translateY(1px); }
.rb-btn:focus-visible, .rb-page:focus-visible, .rb-select select:focus-visible, .rb-search input:focus-visible { outline: 2px solid var(--rb-blue); outline-offset: 2px; }
.rb-btn--book { flex: none; background: var(--rb-yellow); color: var(--rb-ink) !important; font-size: 12px; padding: 9px 14px; }
.rb-btn--book:hover { background: var(--rb-yellow-hover); }
.rb-btn--dark { background: var(--rb-ink); color: #fff !important; font-size: 12px; padding: 8px 12px; }
.rb-btn--dark:hover, .rb-card .rb-btn--dark:focus { background: #1f2f47; color: #fff; }

/* Pager */
.rb-pager { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 12px; padding: 14px 0; border-top: 1px solid var(--rb-line); border-bottom: 1px solid var(--rb-line); }
.rb-pager__info { font-size: 11.5px; color: var(--rb-text); }
.rb-pager__nav { display: flex; gap: 4px; }
.rb-page { min-width: 26px; height: 24px; padding: 0 8px; border: 1px solid var(--rb-line); background: var(--rb-card); border-radius: 4px; font: inherit; font-size: 10.5px; color: var(--rb-ink); cursor: pointer; line-height: 1; margin: 0; }
.rb-card .rb-page:hover, .rb-card .rb-page:focus { background: var(--rb-card); color: var(--rb-ink); border-color: #c8d0db; box-shadow: none; }
.rb-card .rb-page:disabled:hover { border-color: var(--rb-line); color: #a3abb7; }
.rb-card .rb-page.is-current, .rb-card .rb-page.is-current:hover, .rb-card .rb-page.is-current:focus { background: var(--rb-ink); border-color: var(--rb-ink); color: #fff; }
.rb-page:disabled { color: #a3abb7; cursor: default; }
.rb-page.is-current { background: var(--rb-ink); border-color: var(--rb-ink); color: #fff; }

/* Search */
.rb-search { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; }
.rb-search label { font-size: 12px; font-weight: 700; color: var(--rb-ink); }
.rb-search input[type="date"] { flex: 0 1 170px; min-width: 0; border: 1px solid var(--rb-line); background: var(--rb-card); border-radius: 6px; padding: 6px 10px; font: inherit; font-size: 12px; color: var(--rb-ink); margin: 0; height: auto; }
.rb-search .rb-btn { margin-left: auto; }

.rb-empty { font-size: 13px; color: var(--rb-muted); background: var(--rb-card); border: 1px dashed var(--rb-line); border-radius: var(--rb-radius); padding: 18px; text-align: center; margin: 0; }

/* Intensive-day banner */
.rb-combo { display: flex; align-items: center; gap: 14px; max-width: 640px; margin: 28px auto 0; background: var(--rb-surface); border: 1px solid var(--rb-line); border-radius: var(--rb-radius); padding: 16px 18px; }
.rb-combo__icon { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fdecc0; color: var(--rb-ink); }
.rb-combo__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rb-combo__text strong { font-size: 14px; color: var(--rb-ink); }
.rb-combo__text span { font-size: 11.5px; color: var(--rb-text); }
.rb-combo__text .rb-combo__price { font-weight: 700; color: var(--rb-ink); }
.rb-combo .rb-btn { font-size: 13px; padding: 10px 14px; }

/* Booking modal */
.rb-modal { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(15, 27, 45, .55); }
.rb-modal[hidden] { display: none; }
.rb-modal__box { width: min(900px, 100%); height: min(90vh, 900px); background: #fff; border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.rb-modal__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--rb-line); }
.rb-modal__title { font-size: 14px; font-weight: 700; color: var(--rb-ink); }
.rb-modal__hint { display: block; font-size: 12px; font-weight: 400; color: var(--rb-muted); }
.rb-modal__close { flex: none; display: grid; place-items: center; border: 0; background: var(--rb-surface); width: 32px; height: 32px; min-width: 0; padding: 0; margin: 0; border-radius: 50%; font-size: 18px; line-height: 1; cursor: pointer; color: var(--rb-ink); box-shadow: none; }
.rb-modal .rb-modal__close:hover, .rb-modal .rb-modal__close:focus { background: var(--rb-line); color: var(--rb-ink); }
.rb-modal iframe { flex: 1; width: 100%; border: 0; }
body.rb-modal-open { overflow: hidden; }

@media (max-width: 520px) {
	.rb-card { padding: 18px 14px; }
	.rb-card__bar { flex-wrap: wrap; }
	.rb-slot { flex-direction: column; align-items: stretch; }
	.rb-btn--book { width: 100%; }
	.rb-pager { justify-content: center; }
	.rb-combo { flex-wrap: wrap; }
	.rb-combo .rb-btn { width: 100%; }
	.rb-modal { padding: 0; }
	.rb-modal__box { height: 100%; border-radius: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.rb-list, .rb-slot, .rb-btn { transition: none; }
}
.rb-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rb-card__bar .rb-select { flex: none; }
