/*
 * Formularz rezerwacyjny (/formularz-rezerwacyjny/, spec §6.9, makiety 09 i 09b): nagłówek, przyklejony podgląd,
 * kroki, podsumowanie i wąska stopka. Tylko klasy ob-bf-*, bo stare .form-row, .radio-input
 * i .addon-card stylują style.css i addons.css. Ekran „Dziękujemy” (.form-response) jest wspólny, w blocks.css.
 * Podgląd jest przyklejony (sticky), więc żaden jego przodek nie może mieć overflow: hidden.
 * Trzy poziomy tekstu (spec 2026-11-19): tytuł kroku 20 px / 700, nazwa pola 14 px / 600 nad polem, treść pola 16 px.
 */

.ob-bf {
    --ob-bf-gray: #737378; /* 4.7:1 na białym */
    --ob-bf-hover: #a1a1a6;
    /* Spacing scale (refresh.css): the steps and the receipt stand this far apart. */
    --ob-bf-step-gap: var(--ob-space-6);
    /* One small scale of corners: tiles, fields and buttons; days and thumbnails; the receipt and the preview keep --ob-radius. */
    --ob-bf-radius: 8px;
    --ob-bf-radius-small: 6px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    color: var(--ob-ink);
}

/* A short page (the thank-you) keeps the footer line at the bottom of the window. */
.ob-bf-main {
    flex: 1 0 auto;
}

/* form.js and the noscript rules show and hide with the hidden attribute; no display rule below may win over it. */
.ob-bf [hidden] {
    display: none !important;
}

/* Nagłówek: tak szeroki jak kontener menu na innych stronach (style.css), nie jak treść formularza */
.ob-bf-header__inner {
    max-width: 90%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--ob-space-2);
    height: 64px;
}

.ob-bf-header__logo,
.ob-bf-header__logo img {
    display: block;
}

.ob-bf-header__logo img {
    width: auto;
    height: 52px;
}

.ob-bf-header__phone {
    font-size: 13px;
    color: var(--ob-bf-gray);
}

.ob-bf-header__phone b {
    font-weight: 600;
    color: var(--ob-ink);
}

@media (hover: hover) and (pointer: fine) {
    .ob-bf-header__phone:hover,
    .ob-bf-header__phone:hover b {
        color: var(--ob-pink-dark);
    }
}

.ob-bf-header__call {
    display: none;
    align-items: center;
    gap: var(--ob-space-1);
    font-size: 13px;
    color: var(--ob-bf-gray);
}

.ob-bf-header__call-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--ob-tile);
    color: var(--ob-pink-dark);
}

.ob-bf-header__call svg {
    width: 18px;
    height: 18px;
}

/* Tytuł */
.ob-bf-head {
    padding-top: var(--ob-space-5);
    padding-bottom: var(--ob-bf-step-gap);
}

.ob-bf-head__title {
    margin: 0 0 var(--ob-space-2);
    font-size: 44px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.ob-bf-head__price {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
}

.ob-bf-head__lead {
    margin: var(--ob-space-1) 0 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--ob-bf-gray);
}

/* Dwie kolumny: podgląd i kroki */
.ob-bf-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: var(--ob-space-6);
    align-items: start;
    padding-bottom: var(--ob-space-7);
}

.ob-bf-form {
    min-width: 0;
}

/* Podgląd */
.ob-bf-preview {
    position: sticky;
    top: 24px;
    height: 560px;
    overflow: clip;
    border-radius: var(--ob-radius);
    background: var(--ob-tile);
}

.ob-bf-preview__stage {
    position: absolute;
    inset: 0 0 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 32px 32px 0;
}

/* A machine is a label of its radio: a click on it chooses the machine, as on its tile. */
.ob-bf-preview__machine {
    position: relative;
    display: block;
    flex: 0 1 auto;
    min-width: 0;
    height: 380px;
    max-width: calc((100% - 32px) / 3);
    cursor: pointer;
    transition: filter 0.2s;
}

/*
 * The soft pink glow behind a booth, as on the booth cards and pages; a touch stronger than there, because the panel
 * behind is grey, not white.
 */
.ob-bf-preview__machine::before {
    content: "";
    position: absolute;
    inset: -14% -55%;
    z-index: 0;
    background: radial-gradient(ellipse 46% 44% at 50% 52%, rgba(255, 206, 229, 0.95) 0%, rgba(255, 220, 236, 0.5) 46%, rgba(255, 227, 239, 0) 74%);
    pointer-events: none;
}

.ob-bf-preview__photo {
    position: relative;
    z-index: 1;
    display: block;
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    filter: var(--ob-machine-edge);
}

@media (hover: hover) and (pointer: fine) {
    .ob-bf-preview__machine:hover {
        filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.14));
    }
}

/* One machine left (the one chosen) stands taller. */
.ob-bf-preview__stage:not(:has(> .ob-bf-preview__machine:not([hidden]) ~ .ob-bf-preview__machine:not([hidden]))) .ob-bf-preview__machine {
    height: 430px;
    max-width: 100%;
}

.ob-bf-preview__ai {
    position: absolute;
    z-index: 2;
    right: 36px;
    bottom: 14px;
    width: 170px;
    height: 208px;
    overflow: hidden;
    border: 5px solid #fff;
    border-radius: var(--ob-bf-radius);
    background: #ddd;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
    transform: rotate(5deg);
}

.ob-bf-preview__ai img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 25%;
}

.ob-bf-preview__ai-after {
    clip-path: inset(0 0 0 50%);
}

.ob-bf-preview__ai::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    margin-left: -1px;
    background: #fff;
}

.ob-bf-preview__ai-label {
    position: absolute;
    right: 8px;
    bottom: 8px;
    z-index: 1;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(255, 23, 130, 0.92);
    font-size: 10px;
    font-weight: 600;
    color: #fff;
}

.ob-bf-preview__caption {
    position: absolute;
    right: 0;
    bottom: 22px;
    left: 0;
    margin: 0;
    font-size: 13px;
    text-align: center;
    color: #69696e; /* 5:1 na szarym tle podglądu */
}

/* Kroki */
.ob-bf-step {
    min-width: 0;
    margin: 0 0 var(--ob-bf-step-gap);
    padding: 0;
    border: 0;
}

/* Between the steps a thin line, with more room under it than the step gap above. */
.ob-bf-step + .ob-bf-step {
    padding-top: var(--ob-space-6);
    border-top: 1px solid var(--ob-line);
}

/* A floated legend behaves like a block with its own margin in every browser. */
.ob-bf-step__title {
    float: left;
    width: 100%;
    margin: 0 0 var(--ob-space-2);
    padding: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 28px;
    letter-spacing: -0.01em;
    color: var(--ob-ink);
}

.ob-bf-step__hint {
    margin-left: var(--ob-space-1);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0;
    color: var(--ob-bf-gray);
}

/* The tiles of one choice stand close together; fields, each with its label above, a step further apart. */
.ob-bf-step__body {
    clear: both;
    display: grid;
    gap: var(--ob-space-1);
}

.ob-bf-step__body--fields {
    gap: var(--ob-space-2);
}

/* Kafle: fotobudki, dodatki i godziny */
.ob-bf-tile,
.ob-bf-addon,
.ob-bf-hour {
    position: relative;
    margin: 0;
    padding: var(--ob-space-2);
    border: 1px solid var(--ob-line-control);
    border-radius: var(--ob-bf-radius);
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, transform 120ms var(--ob-ease-out);
}

@media (hover: hover) and (pointer: fine) {
    .ob-bf-tile:hover,
    .ob-bf-addon:hover,
    .ob-bf-hour:hover {
        border-color: var(--ob-bf-hover);
    }
}

.ob-bf-tile:has(.ob-bf-tile__input:checked),
.ob-bf-addon:has(.ob-bf-addon__input:checked),
.ob-bf-hour:has(.ob-bf-hour__input:checked) {
    border-color: var(--ob-pink);
    box-shadow: 0 0 0 1px var(--ob-pink);
}

.ob-bf-tile:has(.ob-bf-tile__input:focus-visible),
.ob-bf-addon:has(.ob-bf-addon__input:focus-visible),
.ob-bf-hour:has(.ob-bf-hour__input:focus-visible) {
    outline: 2px solid var(--ob-pink-dark);
    outline-offset: 2px;
}

/* The native control stays in the tile, focusable and announced, but out of sight. */
.ob-bf-tile__input,
.ob-bf-addon__input,
.ob-bf-hour__input {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}

/* An hour is a row of a radio list: the dot, the name (with its note under it), the price on the right. */
.ob-bf-hour {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 12px var(--ob-space-2);
}

.ob-bf-hour::before {
    content: "";
    flex: none;
    box-sizing: border-box;
    width: 20px;
    height: 20px;
    border: 1.5px solid #c7c7cc;
    border-radius: 50%;
    background: #fff;
    transition: border-color 0.15s, border-width 0.15s;
}

.ob-bf-hour:has(.ob-bf-hour__input:checked)::before {
    border: 6px solid var(--ob-pink);
}

.ob-bf-hour__text {
    flex: 1 1 auto;
}

/* A machine tile is one row: the photo, the name with the description, the price. */
.ob-bf-tile {
    --ob-bf-photo-width: 64px;
    --ob-bf-photo-height: 80px;
    display: grid;
    grid-template-columns: var(--ob-bf-photo-width) minmax(0, 1fr) auto;
    align-items: center;
    column-gap: var(--ob-space-2);
    padding: var(--ob-space-2) var(--ob-space-3) var(--ob-space-2) var(--ob-space-2);
}

.ob-bf-tile__photo {
    display: block;
    grid-column: 1;
    width: var(--ob-bf-photo-width);
    height: var(--ob-bf-photo-height);
    object-fit: contain;
}

.ob-bf-tile__text,
.ob-bf-hour__text,
.ob-bf-addon__text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.ob-bf-tile__text {
    grid-column: 2;
}

/* „Jeszcze nie wiem” has a question mark as big as a photo, so the tiles match, and no price, so its text takes the rest. */
.ob-bf-tile__mark {
    display: flex;
    grid-column: 1;
    align-items: center;
    justify-content: center;
    width: var(--ob-bf-photo-width);
    height: var(--ob-bf-photo-height);
    border-radius: var(--ob-bf-radius-small);
    background: var(--ob-tile);
    font-size: 26px;
    font-weight: 700;
    color: var(--ob-pink-dark);
}

.ob-bf-tile--later .ob-bf-tile__text {
    grid-column: 2 / -1;
}

.ob-bf-tile__name,
.ob-bf-hour__name,
.ob-bf-addon__name {
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1.3;
}

.ob-bf-tile__desc,
.ob-bf-hour__note,
.ob-bf-addon__desc {
    font-size: 12.5px;
    line-height: 1.45;
    color: #555;
}

/* „Najczęściej wybierana”: plain pink text under the name of the 4-hour row. */
.ob-bf-hour__badge {
    color: #c2185b;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.45;
}

.ob-bf-tile__price {
    grid-column: 3;
    font-size: 13px;
    line-height: 1.5;
    white-space: nowrap;
    color: #333;
}

/* Kilka fotobudek */
.ob-bf-help {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--ob-space-2);
    width: 100%;
    margin-top: var(--ob-space-1);
    padding: var(--ob-space-2);
    border: 0;
    border-radius: var(--ob-bf-radius);
    background: var(--ob-tile);
    font-family: inherit;
    font-size: 13px;
    line-height: 1.45;
    text-align: left;
    color: #555;
    cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
    .ob-bf-help:hover {
        background: #ececf0;
    }
}

.ob-bf-help:focus-visible,
.ob-bf-addon__more:focus-visible,
.ob-bf-submit:focus-visible {
    outline: 2px solid var(--ob-pink-dark);
    outline-offset: 2px;
}

.ob-bf-help__text b {
    display: block;
    font-weight: 600;
    color: var(--ob-ink);
}

.ob-bf-help__arrow {
    flex: none;
    font-size: 22px;
    line-height: 1;
    color: var(--ob-pink-dark);
}

/* Dodatki: miniatura, tekst i kwadracik; cena AI i „Zobacz style” pod tekstem, poza etykietą. */
.ob-bf-addon {
    isolation: isolate;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    column-gap: var(--ob-space-2);
    align-items: center;
}

.ob-bf-addon__body {
    display: grid;
    grid-column: 1 / -1;
    grid-row: 1 / span 2;
    grid-template-columns: subgrid;
    grid-template-rows: subgrid;
    align-items: center;
    margin: 0;
    cursor: pointer;
}

/* The label reaches over the whole card, so a click on its padding or beside the button toggles the add-on too. */
.ob-bf-addon__body::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
}

.ob-bf-addon__thumb {
    position: relative;
    display: flex;
    grid-column: 1;
    grid-row: 1 / span 2;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    overflow: hidden;
    border-radius: var(--ob-bf-radius-small);
    background: var(--ob-pink-soft);
    color: var(--ob-pink-dark);
}

.ob-bf-addon__thumb > img {
    width: auto;
    height: auto;
    max-width: 86%;
    max-height: 86%;
    object-fit: contain;
}

.ob-bf-addon__thumb--split {
    background: #ddd;
}

.ob-bf-addon__thumb--split > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: 50% 25%;
}

.ob-bf-addon__after {
    clip-path: inset(0 0 0 50%);
}

.ob-bf-addon__thumb--split::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    margin-left: -1px;
    background: #fff;
}

.ob-bf-addon__thumb--empty svg {
    width: 24px;
    height: 24px;
}

.ob-bf-addon__text {
    grid-column: 2;
    grid-row: 1;
}

.ob-bf-addon__check {
    display: flex;
    grid-column: 3;
    grid-row: 1 / span 2;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 1.5px solid #c7c7cc;
    border-radius: 4px;
    background: #fff;
    color: #fff;
}

.ob-bf-addon__check svg {
    width: 14px;
    height: 14px;
    stroke-width: 3;
    opacity: 0;
}

.ob-bf-addon__input:checked ~ .ob-bf-addon__check {
    border-color: var(--ob-pink);
    background: var(--ob-pink);
}

.ob-bf-addon__input:checked ~ .ob-bf-addon__check svg {
    opacity: 1;
}

.ob-bf-addon__meta {
    display: flex;
    flex-wrap: wrap;
    grid-column: 2;
    grid-row: 2;
    align-items: center;
    gap: 4px var(--ob-space-2);
    margin-top: 4px;
    pointer-events: none;
}

.ob-bf-addon__price {
    font-size: 12px;
    font-weight: 600;
    color: var(--ob-pink-dark);
}

.ob-bf-addon__price:empty {
    display: none;
}

/* Dodatek bez ceny: „cena do ustalenia” spokojniej niż kwota */
.ob-bf-addon__price--later {
    font-weight: 500;
    color: var(--ob-bf-gray);
}

.ob-bf-addon__more {
    padding: 0;
    border: 0;
    background: none;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--ob-ink);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    pointer-events: auto;
}

@media (hover: hover) and (pointer: fine) {
    .ob-bf-addon__more:hover {
        color: var(--ob-pink-dark);
    }
}

/* Godziny */
.ob-bf-hours {
    display: grid;
    gap: var(--ob-space-1);
}

.ob-bf-hours__note {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--ob-bf-gray);
}

.ob-bf-hour__price {
    display: flex;
    flex: none;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    white-space: nowrap;
}

.ob-bf-hour__total {
    font-size: 15px;
    font-weight: 600;
}

.ob-bf-hour__breakdown {
    margin-top: 3px;
    font-size: 11.5px;
    color: var(--ob-bf-gray);
}

/* Pola: nazwa nad polem, ramka i obwódka fokusu na samym polu */
.ob-bf-input {
    display: block;
    margin: 0;
}

.ob-bf-input__label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--ob-ink);
}

.ob-bf-input__hint {
    margin-left: 6px;
    font-size: 13px;
    font-weight: 400;
    color: var(--ob-bf-gray);
}

.ob-bf-input__help {
    display: block;
    margin: -2px 0 var(--ob-space-1);
    font-size: 13px;
    line-height: 1.45;
    color: var(--ob-bf-gray);
}

.ob-bf-input__control {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 11px 14px;
    border: 1px solid var(--ob-line-control);
    border-radius: var(--ob-bf-radius);
    outline: 0;
    background: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--ob-ink);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.ob-bf-input__control:focus {
    border-color: var(--ob-pink);
    box-shadow: 0 0 0 3px var(--ob-pink-badge);
}

@media (pointer: coarse) {
    .ob-bf-input__control {
        font-size: 16px;
    }
}

.ob-bf-input--area .ob-bf-input__control {
    min-height: 96px;
    resize: vertical;
}

/* Data imprezy: mini kalendarz */
/* The calendar stands straight in its step („Termin imprezy”), with no box of its own around the days. */
.ob-bf-cal {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

/* The title of the step names the calendar on screen; the legend stays for screen readers. */
.ob-bf-cal__legend {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.ob-bf-cal__box {
    min-width: 0;
}

.ob-bf-cal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 30px;
    margin-bottom: 10px;
}

.ob-bf-cal__range {
    font-size: 15px;
    font-weight: 700;
    color: var(--ob-ink);
}

.ob-bf-cal__arrows {
    display: flex;
    gap: 6px;
}

.ob-bf-cal__arrow {
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--ob-line-control);
    border-radius: var(--ob-bf-radius);
    background: #fff;
    font-family: inherit;
    font-size: 18px;
    line-height: 1;
    color: #333;
    cursor: pointer;
}

.ob-bf-cal__arrow:disabled {
    opacity: 0.3;
    cursor: default;
}

.ob-bf-cal__arrow:focus-visible,
.ob-bf-cal__more:focus-visible,
.ob-bf-cal__back:focus-visible {
    outline: 2px solid var(--ob-pink-dark);
    outline-offset: 2px;
}

.ob-bf-cal__weekdays,
.ob-bf-cal__page {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 5px;
}

.ob-bf-cal__weekdays {
    margin-bottom: 6px;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ob-bf-gray);
}

.ob-bf-cal__weekday--weekend {
    color: var(--ob-pink-dark);
}

.ob-bf-cal__pages {
    display: flex;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.ob-bf-cal__pages::-webkit-scrollbar {
    display: none;
}

.ob-bf-cal__page {
    flex: 0 0 100%;
    align-content: start;
    scroll-snap-align: start;
}

/* Each page names its range only where the script cannot show it in the head (see the <noscript> rules). */
.ob-bf-cal__page-label {
    display: none;
    grid-column: 1 / -1;
    margin: 6px 0 0;
    font-size: 14px;
    font-weight: 600;
}

/*
 * A day is a cell with a thin frame, so the grid reads at a glance; the weekend (the party days) has a pink frame and
 * number on a light pink; today has a dot; past days are grey without a frame; the chosen day is filled pink.
 */
.ob-bf-day {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 0.92;
    margin: 0;
    border: 1px solid #ececf0;
    border-radius: var(--ob-bf-radius-small);
    background: #fff;
    color: var(--ob-ink);
    cursor: pointer;
    transition: border-color 0.15s, background-color 0.15s;
}

.ob-bf-day--weekend {
    border-color: #f7c3db;
    background: var(--ob-pink-soft);
    color: #b0124f;
}

@media (hover: hover) and (pointer: fine) {
    .ob-bf-day:hover {
        border-color: var(--ob-pink);
    }
}

.ob-bf-day__input {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}

.ob-bf-day__number {
    font-size: 15px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.ob-bf-day__month {
    font-size: 8.5px;
    font-style: normal;
    line-height: 1;
    text-transform: uppercase;
    color: var(--ob-bf-gray);
}

.ob-bf-day--today::after {
    content: "";
    position: absolute;
    bottom: 5px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--ob-pink);
}

.ob-bf-day--past {
    border-color: transparent;
    background: transparent;
    color: #c7c7cc;
    cursor: default;
    pointer-events: none;
}

.ob-bf-day--today {
    font-weight: 700;
}

.ob-bf-day:has(.ob-bf-day__input:checked) {
    border-color: var(--ob-pink);
    background: var(--ob-pink);
    color: #fff;
}

.ob-bf-day:has(.ob-bf-day__input:checked) .ob-bf-day__month {
    color: rgba(255, 255, 255, 0.85);
}

.ob-bf-day--today:has(.ob-bf-day__input:checked)::after {
    background: #fff;
}

.ob-bf-day:has(.ob-bf-day__input:focus-visible) {
    outline: 2px solid var(--ob-pink-dark);
    outline-offset: 2px;
}

/* A quiet second way in, under the grid: the days stay the main choice. */
.ob-bf-cal__more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin: 12px 0 0;
    padding: 10px 12px;
    border: 1px solid var(--ob-line-control);
    border-radius: var(--ob-bf-radius);
    background: #fff;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ob-ink);
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s;
}

@media (hover: hover) and (pointer: fine) {
    .ob-bf-cal__more:hover {
        border-color: var(--ob-pink);
        background: var(--ob-pink-soft);
    }
}

.ob-bf-cal__more svg {
    width: 17px;
    height: 17px;
    color: var(--ob-pink-dark);
}

/* The date field of a later event, in place of the days, with the pink outline of a field in use. */
.ob-bf-cal__manual .ob-bf-input__control {
    border-color: var(--ob-pink);
    box-shadow: 0 0 0 3px var(--ob-pink-badge);
}

.ob-bf-cal__manual .ob-bf-input__control {
    cursor: pointer;
}

.ob-bf-cal__back {
    margin: 10px 0 0;
    padding: 4px 0;
    border: 0;
    background: none;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--ob-pink-dark);
    cursor: pointer;
}

/* Podsumowanie */
.ob-bf-summary {
    padding: var(--ob-space-4);
    border-radius: var(--ob-radius);
    background: var(--ob-tile);
}

.ob-bf-summary__head {
    display: flex;
    align-items: center;
    gap: var(--ob-space-2);
    padding-bottom: var(--ob-space-2);
    border-bottom: 1px solid #e3e3e8;
}

.ob-bf-summary__thumb {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 64px;
    border-radius: var(--ob-bf-radius-small);
    background: #fff;
}

.ob-bf-summary__thumb:not(:has(img:not([hidden]))) {
    display: none;
}

.ob-bf-summary__thumb img {
    width: auto;
    height: 54px;
}

.ob-bf-summary__heading {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ob-bf-summary__machine {
    font-size: 16px;
    font-weight: 600;
}

.ob-bf-summary__caption {
    font-size: 13px;
    color: var(--ob-bf-gray);
}

.ob-bf-summary__caption:empty,
.ob-bf-summary__lines:empty {
    display: none;
}

.ob-bf-summary__lines {
    padding: var(--ob-space-1) 0;
    border-bottom: 1px solid #e3e3e8;
}

/* A line of the receipt (form.js): the label, then the amount, which a panel add-on leaves empty. */
.ob-bf-summary__line {
    display: flex;
    justify-content: space-between;
    gap: var(--ob-space-2);
    padding: var(--ob-space-1) 0;
    font-size: 14px;
    color: #3a3a3c;
}

.ob-bf-summary__line > :last-child {
    font-weight: 500;
    white-space: nowrap;
    color: var(--ob-ink);
}

.ob-bf-summary__total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--ob-space-2);
    padding-top: var(--ob-space-2);
}

.ob-bf-summary__total > span {
    font-size: 15px;
    font-weight: 600;
}

.ob-bf-summary__amount {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.ob-bf-send .form-response--error {
    margin: 0 0 var(--ob-space-2);
    padding: var(--ob-space-2);
    border-radius: var(--ob-bf-radius);
    background: #fff;
    font-size: 14px;
    line-height: 1.45;
    color: var(--ob-pink-dark);
    box-shadow: inset 0 0 0 1px var(--ob-pink-badge);
}

.ob-bf-send .form-response--error p {
    margin: 0;
}

/* --ob-radius is set here for the hover ring of the button (refresh.css), which follows it. */
.ob-bf-submit {
    --ob-radius: var(--ob-bf-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    padding: 15px;
    border: 0;
    border-radius: var(--ob-radius);
    background: linear-gradient(90deg, #ff1782 0%, #e0006f 100%);
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    color: #fff;
    cursor: pointer;
}

.ob-bf-submit:disabled {
    opacity: 0.6;
    cursor: default;
}

.ob-bf-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px var(--ob-space-2);
    margin: var(--ob-space-2) 0 0;
    padding: 0;
    list-style: none;
    font-size: 12px;
    color: var(--ob-bf-gray);
}

/* „Dziękujemy” w miejscu formularza */
.ob-bf-body > .form-response {
    max-width: 560px;
    margin: var(--ob-space-5) auto var(--ob-space-7);
}

/* Stopka */
.ob-bf-footer {
    margin: 0;
    padding: var(--ob-space-4) 0;
    border: 0;
    background: var(--ob-navy);
    color: #dbe5f0;
}

.ob-bf-footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--ob-space-2) var(--ob-space-3);
}

.ob-bf-footer__logo {
    display: block;
    width: auto;
    height: 40px;
    margin: 0;
}

.ob-bf-footer__text {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #dbe5f0;
}

.ob-bf-footer__text a {
    font-size: inherit;
    font-weight: 400;
    line-height: inherit;
    color: #fff;
}

/* Szuflady formularza */
.ob-bf-drawer-more {
    min-width: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--ob-pink-dark);
}

@media (hover: hover) and (pointer: fine) {
    .ob-bf-drawer-more:hover {
        color: var(--ob-pink);
    }
}

.ob-drawer__add.ob-drawer__add--remove,
.ob-drawer__add.ob-drawer__add--remove:hover {
    background: #fff;
    color: var(--ob-pink-dark);
    box-shadow: inset 0 0 0 1.5px var(--ob-pink);
}

.ob-bf-ways {
    display: grid;
    gap: var(--ob-space-2);
}

.ob-bf-way {
    display: flex;
    align-items: center;
    gap: var(--ob-space-2);
    padding: var(--ob-space-2);
    border-radius: 8px;
    background: var(--ob-tile);
    color: var(--ob-ink);
}

@media (hover: hover) and (pointer: fine) {
    .ob-bf-way:hover {
        background: #ececf0;
        color: var(--ob-ink);
    }
}

.ob-bf-way__icon {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 6px;
    background: #fff;
    color: var(--ob-pink-dark);
}

.ob-bf-way__icon svg {
    width: 20px;
    height: 20px;
}

.ob-bf-way__text small {
    display: block;
    font-size: 12px;
    color: var(--ob-muted);
}

.ob-bf-way__text b {
    font-size: 17px;
    font-weight: 700;
}

.ob-bf-ways__tip {
    margin: var(--ob-space-2) 0 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--ob-muted);
}

/* Tablet i telefon: jedna kolumna bez podglądu */
@media (max-width: 1023px) {
    .ob-bf {
        --ob-bf-step-gap: var(--ob-space-5);
    }

    /* One column of 560 px: the title, the form and the footer line share its width and left edge. */
    .ob-bf .ob-wrap {
        max-width: calc(560px + 56px);
    }

    .ob-bf-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        padding-bottom: var(--ob-space-6);
    }

    .ob-bf-preview {
        display: none;
    }
}

@media (max-width: 767px) {
    .ob-bf-header__inner {
        height: 58px;
    }

    .ob-bf-header__logo img {
        height: 44px;
    }

    .ob-bf-header__phone {
        display: none;
    }

    .ob-bf-header__call {
        display: flex;
    }

    /* A shorter page on a phone: less room around the title, between the steps and inside the receipt. */
    .ob-bf-head {
        padding-top: var(--ob-space-3);
        padding-bottom: var(--ob-space-4);
    }

    .ob-bf-head__title {
        font-size: 28px;
    }

    .ob-bf {
        --ob-bf-step-gap: var(--ob-space-4);
    }

    .ob-bf-step + .ob-bf-step {
        padding-top: var(--ob-space-4);
    }

    .ob-bf-tile {
        --ob-bf-photo-width: 48px;
        --ob-bf-photo-height: 60px;
        padding: var(--ob-space-1) var(--ob-space-2);
    }

    .ob-bf-summary {
        padding: var(--ob-space-3);
    }

    .ob-bf-tile__desc {
        display: none;
    }

    .ob-bf-addon {
        grid-template-columns: 48px minmax(0, 1fr) auto;
    }

    .ob-bf-addon__thumb {
        width: 48px;
        height: 48px;
    }

    .ob-bf-footer__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    #drawer-multi .ob-drawer__panel {
        height: auto;
        max-height: 86vh;
        max-height: 86dvh;
    }
}

/* Ruch */
@media (prefers-reduced-motion: reduce) {
    .ob-bf-preview__machine,
    .ob-bf-tile,
    .ob-bf-addon,
    .ob-bf-hour,
    .ob-bf-hour::before,
    .ob-bf-input__control,
    .ob-bf-cal__more {
        transition: none;
    }
}

@media (prefers-reduced-motion: no-preference) {
    :is(.ob-bf-tile, .ob-bf-addon, .ob-bf-hour):active {
        transform: scale(0.98);
    }
}
