/* ==========================================================================
   Bombay Menu — reservations (1.0.5; 1.3.0: notice line, reservation number,
   My Account → Moje rezerwacje)
   --------------------------------------------------------------------------
   Everything is scoped under .bbr and prefixed bbr- so it cannot touch the
   menu/cart styles (.bbm) or the theme. Values follow design.html
   (#quickRez and #v-rez); breakpoints match its media queries.

   Theme protection (1.0.5)
   ------------------------
   The theme and the Elementor kit style EVERY button, input and label on the
   site, with selectors that beat a single plugin class, e.g.
     .elementor-kit-N button                     (0,1,1)  kit Buttons
     .elementor-kit-N input:focus:not([type="button"]):not([type="submit"])
                                                 (0,4,1)  kit Form Fields
     .elementor-kit-N label / h2 / h3 / a / p    (0,1,1)  kit Typography
     input[type=tel], input[type=email] (Astra)  (0,1,1)
   So every control and text element of both shortcodes is styled under ONE
   scope (section 3):

     :is(#bbr-scope, .bbr[data-bbr-form], .bbr.bbr-quick)

   No element has the id "bbr-scope". It only gives the scope the weight of an
   ID (":is()" takes the specificity of its strongest argument), so these rules
   beat any class-based theme/kit rule without !important. Every property a
   theme or the kit can set is declared for every state. New controls must be
   added under this scope too. Colours and fonts are still the tokens below.

   Sections:
     0. Tokens
     1. Base inside .bbr
     2. Layout (steps, fields, stepper box, slots row, success, quick card)
     3. Protected controls and text (theme-proof)
        3.1 Buttons: shared reset   3.2 Pill buttons   3.3 Time slots
        3.4 Stepper − / +           3.5 Text fields    3.6 Checkbox
        3.7 Labels + consent link   3.8 Headings       3.9 Paragraphs
        3.10 Keyboard focus ring    3.11 Reservation number (1.3.0)
     4. Honeypot + reduced motion
     5. My Account → Moje rezerwacje (1.3.0) — own scope
        :is(#bbr-scope, .bbr.bbr-account), same idea (Astra styles tables,
        the kit styles p / a)
   ========================================================================== */

/* 0. Tokens --------------------------------------------------------------- */
.bbr {
	--bbr-p: #7B1E34;
	--bbr-pd: #5E1627;
	--bbr-cr: #F7F1E6;
	--bbr-ink: #2B2A26;
	--bbr-mu: #6B645A;
	--bbr-bd: #EADFD0;
	--bbr-bds: #D9C9B4;
	--bbr-err: #A32D2D;
	--bbr-ring: rgba(123, 30, 52, .12);
	--bbr-font-heading: 'Marcellus', Georgia, serif;
	--bbr-font-ui: 'Montserrat', Arial, sans-serif;
	--bbr-font-body: 'Cormorant Garamond', Georgia, serif;
}

/* 1. Base ----------------------------------------------------------------- */
.bbr,
.bbr * {
	box-sizing: border-box;
}
.bbr {
	color: var(--bbr-ink);
	font-family: var(--bbr-font-body);
}
.bbr .bbm-ic {
	display: block;
}

/* 2. Layout --------------------------------------------------------------- */
/* Divs and spans only: themes and the kit do not target these. */
.bbr-step {
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: var(--bbr-font-heading);
	font-size: 23px;
	margin: 32px 0 16px;
}
.bbr-step:first-child {
	margin-top: 0;
}
.bbr-step span {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--bbr-p);
	color: var(--bbr-cr);
	display: grid;
	place-items: center;
	font-family: var(--bbr-font-ui);
	font-size: 13px;
	font-weight: 600;
	flex: none;
}
.bbr-fgap {
	display: grid;
	gap: 16px;
}
.bbr-fld {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.bbr-g2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}
@media (max-width: 640px) {
	.bbr-g2 {
		grid-template-columns: 1fr;
	}
}
.bbr-stepper {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	border: 1px solid var(--bbr-bds);
	border-radius: 50px;
	background: #fff;
	height: 50px;
	width: 100%;
}
.bbr-stepper span {
	text-align: center;
	font-family: var(--bbr-font-ui);
	font-size: 14px;
	font-weight: 600;
}
.bbr-hint {
	font-family: var(--bbr-font-ui);
	font-size: 12px;
	color: var(--bbr-p);
	display: none;
}
.bbr-hint.is-on {
	display: block;
}
.bbr-slots {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.bbr-slots:empty::after {
	content: attr(data-empty);
	font-family: var(--bbr-font-ui);
	font-size: 13px;
	color: var(--bbr-mu);
}
.bbr-err {
	font-family: var(--bbr-font-ui);
	font-size: 12px;
	color: var(--bbr-err);
	display: none;
}
.bbr-fld.is-bad .bbr-err {
	display: block;
}
.bbr-fld.is-bad .bbr-stepper {
	border-color: var(--bbr-err);
}
.bbr-ok {
	text-align: center;
	padding: 30px 6px;
}
.bbr-okic {
	width: 68px;
	height: 68px;
	border-radius: 50%;
	background: var(--bbr-p);
	color: var(--bbr-cr);
	display: grid;
	place-items: center;
	margin: 0 auto 18px;
}
.bbr-quick {
	font-family: var(--bbr-font-body);
}
.bbr-qr {
	background: var(--bbr-cr);
	border-radius: 24px;
	padding: 32px;
	color: var(--bbr-ink);
	display: grid;
	gap: 16px;
	box-shadow: 0 30px 60px rgba(0, 0, 0, .22);
}
.bbr-g3 {
	display: grid;
	grid-template-columns: 1.3fr 1fr 1fr;
	gap: 12px;
}
@media (max-width: 520px) {
	.bbr-g3 {
		grid-template-columns: 1fr;
	}
}

/* 3. Protected controls and text ------------------------------------------ */
/* Scope (see the header): :is(#bbr-scope, .bbr[data-bbr-form], .bbr.bbr-quick) */

/* 3.1 Buttons: shared reset (anything the kit/theme may set on a button) */
:is(#bbr-scope, .bbr[data-bbr-form], .bbr.bbr-quick) button.bbr-btn,
:is(#bbr-scope, .bbr[data-bbr-form], .bbr.bbr-quick) button.bbr-slot,
:is(#bbr-scope, .bbr[data-bbr-form], .bbr.bbr-quick) .bbr-stepper button {
	-webkit-appearance: none;
	appearance: none;
	margin: 0;
	min-width: 0;
	background-image: none;
	box-shadow: none;
	text-shadow: none;
	text-decoration: none;
	font-style: normal;
	word-spacing: normal;
	line-height: 1.6;
	outline: none;
	cursor: pointer;
}

/* 3.2 Pill buttons: "Wyślij rezerwację", "Dalej" (primary), "Nowa rezerwacja" (outline) */
:is(#bbr-scope, .bbr[data-bbr-form], .bbr.bbr-quick) button.bbr-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: auto;
	height: auto;
	min-height: 48px;
	padding: 0 30px;
	border-radius: 50px;
	font-family: var(--bbr-font-ui);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	white-space: nowrap;
	transform: none;
	transition: background-color .25s, color .25s, transform .25s, border-color .25s;
}
:is(#bbr-scope, .bbr[data-bbr-form], .bbr.bbr-quick) button.bbr-btn.bbr-full {
	width: 100%;
}
/* Primary — :focus restates the normal look (the kit gives focused buttons its hover colours). */
:is(#bbr-scope, .bbr[data-bbr-form], .bbr.bbr-quick) button.bbr-btn-p,
:is(#bbr-scope, .bbr[data-bbr-form], .bbr.bbr-quick) button.bbr-btn-p:focus {
	border: 0;
	background-color: var(--bbr-p);
	color: var(--bbr-cr);
	transform: none;
}
:is(#bbr-scope, .bbr[data-bbr-form], .bbr.bbr-quick) button.bbr-btn-p:hover,
:is(#bbr-scope, .bbr[data-bbr-form], .bbr.bbr-quick) button.bbr-btn-p:focus-visible {
	border: 0;
	background-color: var(--bbr-pd);
	color: #fff;
	transform: translateY(-2px);
}
:is(#bbr-scope, .bbr[data-bbr-form], .bbr.bbr-quick) button.bbr-btn-p[disabled],
:is(#bbr-scope, .bbr[data-bbr-form], .bbr.bbr-quick) button.bbr-btn-p[disabled]:hover {
	background-color: var(--bbr-p);
	color: var(--bbr-cr);
	opacity: .6;
	cursor: default;
	transform: none;
}
/* Outline */
:is(#bbr-scope, .bbr[data-bbr-form], .bbr.bbr-quick) button.bbr-btn-o,
:is(#bbr-scope, .bbr[data-bbr-form], .bbr.bbr-quick) button.bbr-btn-o:focus {
	border: 1px solid var(--bbr-p);
	background-color: transparent;
	color: var(--bbr-p);
}
:is(#bbr-scope, .bbr[data-bbr-form], .bbr.bbr-quick) button.bbr-btn-o:hover,
:is(#bbr-scope, .bbr[data-bbr-form], .bbr.bbr-quick) button.bbr-btn-o:focus-visible {
	border: 1px solid var(--bbr-p);
	background-color: var(--bbr-p);
	color: var(--bbr-cr);
}
:is(#bbr-scope, .bbr[data-bbr-form], .bbr.bbr-quick) .bbr-ok button.bbr-btn {
	margin-top: 22px;
}

/* 3.3 Time slots — white with a border; only the selected one is burgundy */
:is(#bbr-scope, .bbr[data-bbr-form], .bbr.bbr-quick) button.bbr-slot,
:is(#bbr-scope, .bbr[data-bbr-form], .bbr.bbr-quick) button.bbr-slot:focus {
	display: inline-block;
	width: auto;
	height: auto;
	min-height: 0;
	padding: 10px 14px;
	border: 1px solid var(--bbr-bd);
	border-radius: 12px;
	background-color: #fff;
	color: var(--bbr-ink);
	font-family: var(--bbr-font-ui);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: normal;
	text-transform: none;
	transition: border-color .2s, background-color .2s, color .2s;
}
:is(#bbr-scope, .bbr[data-bbr-form], .bbr.bbr-quick) button.bbr-slot:hover {
	border-color: var(--bbr-p);
	background-color: #fff;
	color: var(--bbr-ink);
}
:is(#bbr-scope, .bbr[data-bbr-form], .bbr.bbr-quick) button.bbr-slot.is-on,
:is(#bbr-scope, .bbr[data-bbr-form], .bbr.bbr-quick) button.bbr-slot.is-on:hover,
:is(#bbr-scope, .bbr[data-bbr-form], .bbr.bbr-quick) button.bbr-slot.is-on:focus {
	border-color: var(--bbr-p);
	background-color: var(--bbr-p);
	color: var(--bbr-cr);
}

/* 3.4 Guest stepper − / + */
:is(#bbr-scope, .bbr[data-bbr-form], .bbr.bbr-quick) .bbr-stepper button,
:is(#bbr-scope, .bbr[data-bbr-form], .bbr.bbr-quick) .bbr-stepper button:hover,
:is(#bbr-scope, .bbr[data-bbr-form], .bbr.bbr-quick) .bbr-stepper button:focus {
	display: grid;
	place-items: center;
	flex: none;
	width: 50px;
	height: 48px;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 50px;
	background-color: transparent;
	color: var(--bbr-p);
	font-family: var(--bbr-font-ui);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: normal;
	text-transform: none;
}
:is(#bbr-scope, .bbr[data-bbr-form], .bbr.bbr-quick) .bbr-stepper button:disabled {
	opacity: .35;
	cursor: default;
}

/* 3.5 Text fields: input (any type), select, textarea */
:is(#bbr-scope, .bbr[data-bbr-form], .bbr.bbr-quick) input.bbr-inp,
:is(#bbr-scope, .bbr[data-bbr-form], .bbr.bbr-quick) select.bbr-inp,
:is(#bbr-scope, .bbr[data-bbr-form], .bbr.bbr-quick) textarea.bbr-inp,
:is(#bbr-scope, .bbr[data-bbr-form], .bbr.bbr-quick) input.bbr-inp:hover,
:is(#bbr-scope, .bbr[data-bbr-form], .bbr.bbr-quick) select.bbr-inp:hover,
:is(#bbr-scope, .bbr[data-bbr-form], .bbr.bbr-quick) textarea.bbr-inp:hover {
	display: block;
	width: 100%;
	max-width: none;
	height: 50px;
	min-height: 0;
	margin: 0;
	padding: 0 16px;
	border: 1px solid var(--bbr-bds);
	border-radius: 14px;
	background-color: #fff;
	background-image: none;
	box-shadow: none;
	color: var(--bbr-ink);
	font-family: var(--bbr-font-ui);
	font-size: 14px;
	font-weight: 500;
	font-style: normal;
	line-height: 1.6;
	letter-spacing: normal;
	word-spacing: normal;
	text-transform: none;
	text-decoration: none;
	text-shadow: none;
	outline: none;
	transition: border-color .2s, box-shadow .2s;
}
:is(#bbr-scope, .bbr[data-bbr-form], .bbr.bbr-quick) textarea.bbr-inp,
:is(#bbr-scope, .bbr[data-bbr-form], .bbr.bbr-quick) textarea.bbr-inp:hover,
:is(#bbr-scope, .bbr[data-bbr-form], .bbr.bbr-quick) textarea.bbr-inp:focus {
	height: auto;
	min-height: 96px;
	padding: 14px 16px;
	line-height: 1.5;
	resize: vertical;
}
:is(#bbr-scope, .bbr[data-bbr-form], .bbr.bbr-quick) input.bbr-inp:focus,
:is(#bbr-scope, .bbr[data-bbr-form], .bbr.bbr-quick) select.bbr-inp:focus,
:is(#bbr-scope, .bbr[data-bbr-form], .bbr.bbr-quick) textarea.bbr-inp:focus {
	border-color: var(--bbr-p);
	background-color: #fff;
	box-shadow: 0 0 0 3px var(--bbr-ring);
	color: var(--bbr-ink);
	outline: none;
}
/* Error wins over focus, like design.html (.fld.bad .inp). */
:is(#bbr-scope, .bbr[data-bbr-form], .bbr.bbr-quick) .bbr-fld.is-bad input.bbr-inp,
:is(#bbr-scope, .bbr[data-bbr-form], .bbr.bbr-quick) .bbr-fld.is-bad select.bbr-inp,
:is(#bbr-scope, .bbr[data-bbr-form], .bbr.bbr-quick) .bbr-fld.is-bad textarea.bbr-inp {
	border-color: var(--bbr-err);
}

/* 3.6 Consent checkbox — native box, burgundy tick */
:is(#bbr-scope, .bbr[data-bbr-form], .bbr.bbr-quick) .bbr-chk input[type="checkbox"],
:is(#bbr-scope, .bbr[data-bbr-form], .bbr.bbr-quick) .bbr-chk input[type="checkbox"]:focus {
	-webkit-appearance: auto;
	appearance: auto;
	accent-color: var(--bbr-p);
	flex: none;
	width: 18px;
	height: 18px;
	min-height: 0;
	margin: 2px 0 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	outline: none;
	cursor: pointer;
}

/* 3.7 Labels, consent text, privacy link */
:is(#bbr-scope, .bbr[data-bbr-form], .bbr.bbr-quick) .bbr-fld > label {
	display: block;
	margin: 0;
	padding: 0;
	color: var(--bbr-ink);
	font-family: var(--bbr-font-ui);
	font-size: 11.5px;
	font-weight: 600;
	font-style: normal;
	line-height: 1.6;
	letter-spacing: .14em;
	text-transform: uppercase;
	text-decoration: none;
	text-shadow: none;
}
:is(#bbr-scope, .bbr[data-bbr-form], .bbr.bbr-quick) label.bbr-chk {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin: 0;
	padding: 0;
	color: var(--bbr-mu);
	font-family: var(--bbr-font-ui);
	font-size: 13px;
	font-weight: 500;
	font-style: normal;
	line-height: 1.5;
	letter-spacing: normal;
	text-transform: none;
	text-decoration: none;
	text-shadow: none;
	cursor: pointer;
}
:is(#bbr-scope, .bbr[data-bbr-form], .bbr.bbr-quick) .bbr-chk a,
:is(#bbr-scope, .bbr[data-bbr-form], .bbr.bbr-quick) .bbr-chk a:visited {
	color: var(--bbr-p);
	background: none;
	box-shadow: none;
	font: inherit;
	letter-spacing: inherit;
	text-transform: inherit;
	text-decoration: underline;
	text-shadow: none;
}
:is(#bbr-scope, .bbr[data-bbr-form], .bbr.bbr-quick) .bbr-chk a:hover,
:is(#bbr-scope, .bbr[data-bbr-form], .bbr.bbr-quick) .bbr-chk a:focus {
	color: var(--bbr-pd);
	text-decoration: underline;
}

/* 3.8 Headings: "Dziękujemy!" (design .ok .h2) and "Sprawdź termin" (design .qr .h3) */
:is(#bbr-scope, .bbr[data-bbr-form], .bbr.bbr-quick) h2.bbr-h2,
:is(#bbr-scope, .bbr[data-bbr-form], .bbr.bbr-quick) h3.bbr-qh {
	padding: 0;
	color: var(--bbr-p);
	font-family: var(--bbr-font-heading);
	font-weight: 400;
	font-style: normal;
	letter-spacing: normal;
	text-transform: none;
	text-decoration: none;
	text-shadow: none;
}
:is(#bbr-scope, .bbr[data-bbr-form], .bbr.bbr-quick) h2.bbr-h2 {
	margin: 0 0 8px;
	font-size: clamp(30px, 3.5vw, 44px);
	line-height: 1.15;
}
:is(#bbr-scope, .bbr[data-bbr-form], .bbr.bbr-quick) h3.bbr-qh {
	margin: 0;
	font-size: 26px;
	line-height: 1.25;
}

/* 3.9 Paragraphs (theme/kit paragraph spacing must not add gaps) */
:is(#bbr-scope, .bbr[data-bbr-form], .bbr.bbr-quick) p.bbr-fine,
:is(#bbr-scope, .bbr[data-bbr-form], .bbr.bbr-quick) p.bbr-formerr,
:is(#bbr-scope, .bbr[data-bbr-form], .bbr.bbr-quick) p.bbr-qnote,
:is(#bbr-scope, .bbr[data-bbr-form], .bbr.bbr-quick) p.bbr-notice,
:is(#bbr-scope, .bbr[data-bbr-form], .bbr.bbr-quick) .bbr-ok p {
	padding: 0;
	font-style: normal;
	letter-spacing: normal;
	text-transform: none;
	text-shadow: none;
}
:is(#bbr-scope, .bbr[data-bbr-form], .bbr.bbr-quick) p.bbr-fine {
	margin: 10px 0 0;
	color: var(--bbr-mu);
	font-family: var(--bbr-font-ui);
	font-size: 11.5px;
	font-weight: 500;
	line-height: 1.6;
}
:is(#bbr-scope, .bbr[data-bbr-form], .bbr.bbr-quick) p.bbr-formerr {
	margin: 12px 0 0;
	color: var(--bbr-err);
	font-family: var(--bbr-font-ui);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.6;
}
:is(#bbr-scope, .bbr[data-bbr-form], .bbr.bbr-quick) p.bbr-qnote {
	margin: 0;
	color: var(--bbr-mu);
	font-family: var(--bbr-font-ui);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.6;
	text-align: center;
}
/* 1.3.0: minimum-notice line in step 1 */
:is(#bbr-scope, .bbr[data-bbr-form], .bbr.bbr-quick) p.bbr-notice {
	margin: 0 0 16px;
	padding: 12px 14px;
	border: 0;
	border-left: 3px solid #B8863B;
	border-radius: 0 10px 10px 0;
	background: var(--bbr-cr);
	color: #4A453E;
	font-family: var(--bbr-font-ui);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.55;
	text-align: left;
}
:is(#bbr-scope, .bbr[data-bbr-form], .bbr.bbr-quick) .bbr-ok p {
	margin: 4px 0;
	color: var(--bbr-mu);
	font-family: var(--bbr-font-body);
	font-weight: 500;
	line-height: 1.6;
}
:is(#bbr-scope, .bbr[data-bbr-form], .bbr.bbr-quick) .bbr-ok p.bbr-sumline {
	margin: 14px 0 6px;
	color: var(--bbr-ink);
	font-family: var(--bbr-font-ui);
	font-size: 15px;
	font-weight: 600;
}

/* 3.10 Keyboard focus ring (mouse clicks do not show it) */
:is(#bbr-scope, .bbr[data-bbr-form], .bbr.bbr-quick) button.bbr-btn:focus-visible,
:is(#bbr-scope, .bbr[data-bbr-form], .bbr.bbr-quick) button.bbr-slot:focus-visible,
:is(#bbr-scope, .bbr[data-bbr-form], .bbr.bbr-quick) .bbr-stepper button:focus-visible,
:is(#bbr-scope, .bbr[data-bbr-form], .bbr.bbr-quick) .bbr-chk input[type="checkbox"]:focus-visible {
	outline: 2px solid var(--bbr-p);
	outline-offset: 2px;
}

/* 3.11 Reservation number in the success box (1.3.0) */
:is(#bbr-scope, .bbr[data-bbr-form], .bbr.bbr-quick) .bbr-refno {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	max-width: 100%;
	margin: 10px 0 4px;
	padding: 10px 22px;
	border: 1px dashed #B8863B;
	border-radius: 12px;
	background: #FFF8EC;
}
:is(#bbr-scope, .bbr[data-bbr-form], .bbr.bbr-quick) .bbr-refno[hidden] {
	display: none;
}
:is(#bbr-scope, .bbr[data-bbr-form], .bbr.bbr-quick) .bbr-refno small {
	margin: 0;
	color: #8A6420;
	font-family: var(--bbr-font-ui);
	font-size: 11px;
	font-weight: 600;
	font-style: normal;
	line-height: 1.5;
	letter-spacing: .12em;
	text-transform: uppercase;
}
:is(#bbr-scope, .bbr[data-bbr-form], .bbr.bbr-quick) .bbr-refno strong {
	color: var(--bbr-p);
	font-family: var(--bbr-font-ui); /* Montserrat: the heading font's 0 looks like O. */
	font-size: 22px;
	font-weight: 600;
	font-style: normal;
	font-variant-numeric: lining-nums tabular-nums;
	line-height: 1.25;
	letter-spacing: .06em;
	text-transform: none;
	overflow-wrap: anywhere;
}

/* 4. Honeypot + reduced motion -------------------------------------------- */
.bbr-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
@media (prefers-reduced-motion: reduce) {
	:is(#bbr-scope, .bbr[data-bbr-form], .bbr.bbr-quick) button.bbr-btn,
	:is(#bbr-scope, .bbr[data-bbr-form], .bbr.bbr-quick) button.bbr-slot,
	:is(#bbr-scope, .bbr[data-bbr-form], .bbr.bbr-quick) input.bbr-inp,
	:is(#bbr-scope, .bbr[data-bbr-form], .bbr.bbr-quick) select.bbr-inp,
	:is(#bbr-scope, .bbr[data-bbr-form], .bbr.bbr-quick) textarea.bbr-inp {
		transition: none;
	}
	:is(#bbr-scope, .bbr[data-bbr-form], .bbr.bbr-quick) button.bbr-btn-p:hover,
	:is(#bbr-scope, .bbr[data-bbr-form], .bbr.bbr-quick) button.bbr-btn-p:focus-visible {
		transform: none;
	}
}

/* 5. My Account → Moje rezerwacje (1.3.0) --------------------------------- */
/* Own scope (see the header): WooCommerce/Astra style tables, the kit p/a.
   No heading: the page title already says "Moje rezerwacje". */
:is(#bbr-scope, .bbr.bbr-account) {
	color: var(--bbr-ink);
	font-family: var(--bbr-font-ui);
}
:is(#bbr-scope, .bbr.bbr-account) p.bbr-acc-p,
:is(#bbr-scope, .bbr.bbr-account) p.bbr-acc-fine {
	margin: 0 0 18px;
	padding: 0;
	color: var(--bbr-mu);
	font-family: var(--bbr-font-ui);
	font-size: 14px;
	font-weight: 500;
	font-style: normal;
	line-height: 1.6;
	letter-spacing: normal;
	text-transform: none;
	text-shadow: none;
}
:is(#bbr-scope, .bbr.bbr-account) p.bbr-acc-fine {
	margin: 14px 0 0;
	font-size: 12.5px;
}
:is(#bbr-scope, .bbr.bbr-account) .bbr-acc-empty {
	padding: 22px;
	border: 1px dashed var(--bbr-bds);
	border-radius: 14px;
	background: #FCFAF6;
	text-align: center;
}
:is(#bbr-scope, .bbr.bbr-account) .bbr-acc-empty p.bbr-acc-p {
	margin: 0 0 14px;
}
:is(#bbr-scope, .bbr.bbr-account) a.bbr-acc-btn,
:is(#bbr-scope, .bbr.bbr-account) a.bbr-acc-btn:visited,
:is(#bbr-scope, .bbr.bbr-account) a.bbr-acc-btn:focus {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	margin: 0;
	padding: 0 26px;
	border: 0;
	border-radius: 50px;
	background: var(--bbr-p);
	box-shadow: none;
	color: var(--bbr-cr);
	font-family: var(--bbr-font-ui);
	font-size: 13px;
	font-weight: 600;
	font-style: normal;
	line-height: 1.6;
	letter-spacing: .12em;
	text-transform: uppercase;
	text-decoration: none;
	text-shadow: none;
}
:is(#bbr-scope, .bbr.bbr-account) a.bbr-acc-btn:hover,
:is(#bbr-scope, .bbr.bbr-account) a.bbr-acc-btn:focus-visible {
	background: var(--bbr-pd);
	color: #fff;
	text-decoration: none;
}
:is(#bbr-scope, .bbr.bbr-account) a.bbr-acc-btn:focus-visible {
	outline: 2px solid var(--bbr-p);
	outline-offset: 2px;
}
:is(#bbr-scope, .bbr.bbr-account) table.bbr-acc {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	border-spacing: 0;
	background: transparent;
	font-size: 14px;
}
:is(#bbr-scope, .bbr.bbr-account) table.bbr-acc th,
:is(#bbr-scope, .bbr.bbr-account) table.bbr-acc td {
	padding: 12px;
	border: 0;
	border-bottom: 1px solid #F2EBE0;
	background: transparent;
	color: var(--bbr-ink);
	font-family: var(--bbr-font-ui);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.5;
	text-align: left;
	vertical-align: middle;
}
:is(#bbr-scope, .bbr.bbr-account) table.bbr-acc th {
	padding: 10px 12px;
	border-bottom: 2px solid var(--bbr-bd);
	color: var(--bbr-mu);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: normal;
	text-transform: none;
}
:is(#bbr-scope, .bbr.bbr-account) table.bbr-acc tr.is-past td {
	color: var(--bbr-mu);
}
:is(#bbr-scope, .bbr.bbr-account) .bbr-no {
	color: var(--bbr-p);
	font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
	font-size: 12.5px;
	font-weight: 600;
	white-space: nowrap;
}
:is(#bbr-scope, .bbr.bbr-account) .bbr-pill {
	display: inline-block;
	padding: 3px 11px;
	border-radius: 50px;
	background: #ECE7DF;
	color: var(--bbr-mu);
	font-family: var(--bbr-font-ui);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.6;
	white-space: nowrap;
}
:is(#bbr-scope, .bbr.bbr-account) .bbr-pill--nowa { background: #F6E1C3; color: var(--bbr-p); }
:is(#bbr-scope, .bbr.bbr-account) .bbr-pill--potwierdzona { background: #DCEAD3; color: #2E6B2E; }
:is(#bbr-scope, .bbr.bbr-account) .bbr-pill--odrzucona { background: #EBD3D8; color: var(--bbr-err); }
:is(#bbr-scope, .bbr.bbr-account) .bbr-pill--anulowana { background: #ECE7DF; color: var(--bbr-mu); }
:is(#bbr-scope, .bbr.bbr-account) .bbr-pill--zakonczona { background: #DDE6EE; color: #2F4F6B; }
:is(#bbr-scope, .bbr.bbr-account) .bbr-pill--nieobecnosc { background: var(--bbr-ink); color: var(--bbr-cr); }
@media (max-width: 600px) {
	/* Each reservation becomes a small card: number + status, then date + guests. */
	:is(#bbr-scope, .bbr.bbr-account) table.bbr-acc thead {
		display: none;
	}
	:is(#bbr-scope, .bbr.bbr-account) table.bbr-acc,
	:is(#bbr-scope, .bbr.bbr-account) table.bbr-acc tbody {
		display: block;
		width: 100%;
	}
	:is(#bbr-scope, .bbr.bbr-account) table.bbr-acc tr {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 4px 12px;
		align-items: center;
		padding: 12px 0;
		border-bottom: 1px solid #F2EBE0;
	}
	:is(#bbr-scope, .bbr.bbr-account) table.bbr-acc td {
		display: block;
		min-width: 0;
		padding: 0;
		border: 0;
	}
	:is(#bbr-scope, .bbr.bbr-account) table.bbr-acc td.bbr-acc-no { grid-column: 1; grid-row: 1; }
	:is(#bbr-scope, .bbr.bbr-account) table.bbr-acc td.bbr-acc-st { grid-column: 2; grid-row: 1; text-align: right; }
	:is(#bbr-scope, .bbr.bbr-account) table.bbr-acc td.bbr-acc-when { grid-column: 1; grid-row: 2; }
	:is(#bbr-scope, .bbr.bbr-account) table.bbr-acc td.bbr-acc-g { grid-column: 2; grid-row: 2; text-align: right; white-space: nowrap; }
	:is(#bbr-scope, .bbr.bbr-account) table.bbr-acc td.bbr-acc-g::after { content: " " attr(data-unit); }
	:is(#bbr-scope, .bbr.bbr-account) .bbr-pill { white-space: normal; text-align: center; }
}
