/* Oagency (boka.oagency.io): the booking pages in the oagency.io palette and type (INT-154, 18 Nov 2026).
   Source: the oagency-website repo (brand/tokens.css, docs/brand.md, DESIGN.md). */

/* Self-hosted webfonts, the same files the site ships (@fontsource-variable 5.3.0, SIL OFL 1.1, see fonts/LICENSE-*). */
@font-face {
  font-family: "Manrope Variable"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(fonts/manrope-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope Variable"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(fonts/manrope-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Bricolage Grotesque Variable"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(fonts/bricolage-grotesque-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage Grotesque Variable"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(fonts/bricolage-grotesque-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}


/* The Oagency booking look, round 3 (Robert, 18 Nov 2026): quiet "Papper" (off-white page, white panel, hairlines,
   deep-olive text), free days as pale lime circles, a large calendar, no footer. Loaded only by extensions/oagency,
   after booking.css and /branding.css; it re-points booking.css's --bk-* tokens and resizes the calendar. */
:root {
  /* The oagency.io scale (brand/tokens.css) */
  --oa-lime-50: #f6feec;
  --oa-lime-100: #eafad6;
  --oa-lime-200: #d6f5ac;
  --oa-neon: #b4f03c;
  --oa-moss: #6e961a;      /* hairlines and graphic marks only, never text */
  --oa-olive: #45600b;     /* secondary text and links on light, focus ring */
  --oa-deep: #293907;      /* text, primary buttons */
  --oa-near-black: #192307;
  --oa-free: #e1f8c3;      /* free days: between Lime 100 and Lime 200 */

  /* booking.css tokens */
  --bk-bg: #fafcf6;                         /* off-white with a breath of the lime hue */
  --bk-surface: #fff;
  --bk-text: var(--oa-deep);
  --bk-muted: var(--oa-olive);
  --bk-border: rgb(41 57 7 / .10);
  --bk-soft: var(--oa-lime-50);
  --bk-soft-strong: var(--oa-lime-50);
  --bk-field-border: rgb(41 57 7 / .55);    /* 3.3:1 on white: fields stay visible (WCAG 1.4.11) */
  --bk-overlay: var(--oa-deep);
  --bk-hint-bg: rgb(40 45 35 / .7);         /* grey glass; Lime 50 text is 5.2:1 even over the white panel */
  --bk-hint-text: var(--oa-lime-50);
  --bk-accent: var(--oa-deep);
  --bk-accent-text: var(--oa-lime-50);
  --bk-focus: var(--oa-olive);
  --bk-radius: 20px;
  font-family: "Manrope Variable", -apple-system, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Heads in the one headline face */
.bk-title, .bk-month, .bk-h2, .bk-notice h2, .bk-done h1, .bk-addcal h2, .bk-next h2, .bk-change h2, .bk-video h2 {
  font-family: "Bricolage Grotesque Variable", "Manrope Variable", system-ui, sans-serif;
  letter-spacing: -0.025em;
}
.bk-title { font-weight: 700; font-size: 1.5rem; line-height: 1.1; }
.bk-month { font-weight: 700; font-size: 1.15rem; }

/* Links: olive (the site's link and focus colour on light; neon is never text on light) */
a, .bk-linkbtn { color: var(--oa-olive); text-underline-offset: .18em; }
a:hover, .bk-linkbtn:hover { color: var(--oa-deep); }

/* Focus: 2px olive ring with a 3px gap, as on the site */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible, select:focus-visible,
.bk-chip input:focus-visible + span, .bk-check input:focus-visible {
  outline: 2px solid var(--oa-olive); outline-offset: 3px;
}
.bk-field input:focus-visible, .bk-guest-row input:focus-visible { outline-offset: 2px; }

/* Header: the wordmark, lined up with the panel */
.oa-topbar {
  justify-content: flex-start; width: 100%; max-width: 1040px; margin: 0 auto; height: 76px; padding: 0 1rem;
  background: transparent; border-bottom: 0;
}
.oa-logo { display: inline-flex; padding: 6px; margin-left: -6px; border-radius: 10px; }
.oa-logo img { display: block; width: 124px; height: auto; }

/* The panel: white, a hairline, no glow */
.bk-card { border: 1px solid var(--bk-border); box-shadow: 0 1px 2px rgb(41 57 7 / .04); }
.bk-steps { border-bottom-color: var(--bk-border); }
.bk-step-dot { background: rgb(41 57 7 / .25); }
.bk-step.is-current .bk-step-dot { background: var(--oa-deep); box-shadow: none; }
.bk-cal, .bk-times { border-left-color: var(--bk-border); }
.bk-avatar-initial { background: var(--oa-deep); color: var(--oa-lime-50); }

/* Layout: the core's, as on the first live version (Robert, 18 Nov 2026, round 5): a 1008 px card at 1440 (booking.css
   .bk max-width 1040px), two equal columns in step 1, 32/43/25 in the time step, 1.5rem column padding. */

/* Fields and buttons: soft corners, label first */
.bk-field input[type="text"], .bk-field input[type="email"], .bk-field input[type="tel"], .bk-field textarea, .bk-guest-row input, .bk-select {
  background: #fff; border-radius: 12px;
}
.bk-select { max-width: 100%; }
.bk-btn { border-radius: 14px; }
#bk-continue, .bk-confirm { border-radius: 14px; min-height: 52px; letter-spacing: -0.005em; }
.bk-btn-primary { transition: background-color .2s ease; }
.bk-btn-primary:hover { background: var(--oa-near-black); filter: none; }
.bk-btn:not(.bk-btn-primary):hover { background: var(--oa-lime-50); }
.bk-chip input:checked + span { background: var(--oa-deep); border-color: var(--oa-deep); color: var(--oa-lime-50); }
.bk-nextfree, .bk-scarcity { background: var(--oa-lime-50); border-color: transparent; border-radius: 12px; }
.bk-scarcity::before { background: var(--oa-deep); box-shadow: none; }
.bk-notice-line { color: var(--oa-olive); }

/* Calendar: big, calm. Free days are pale lime circles with bold deep-olive numbers (10:1); the rest steps back. */
.bk-cal-head { margin-bottom: .75rem; }
.bk-nav { width: 44px; height: 44px; border-radius: 50%; border-color: var(--bk-border); background: #fff; }
.bk-nav:hover:not([disabled]) { background: var(--oa-lime-50); }
.bk-grid { border-spacing: 2px; }            /* the core's: 44 px rows, as on the first live version */
.bk-grid th { padding: .5rem 0; }
.bk-grid td { height: auto; }
.bk-day {
  display: block; width: min(44px, 100%); min-width: 0; height: auto; aspect-ratio: 1; margin: 0 auto;
  border-radius: 50%; font-size: 1.0625rem; color: rgb(41 57 7 / .4);
}
.bk-day.is-free { background: var(--oa-free); color: var(--oa-deep); font-weight: 700; }
.bk-day.is-free:hover { background: var(--oa-lime-200); box-shadow: none; }
.bk-day.is-selected, .bk-day.is-selected:hover { background: var(--oa-deep); color: var(--oa-lime-50); }
.bk-day.is-today::after { bottom: 5px; }

/* Step 1 hint: one quiet pill for the whole calendar (BOOKING_HINT_MODE "area") */
.bk-locked {
  -webkit-backdrop-filter: blur(8px) saturate(.8); backdrop-filter: blur(8px) saturate(.8);
  border: 0; border-radius: 999px; box-shadow: 0 8px 24px -12px rgb(25 35 7 / .35);
  font-weight: 500; font-size: .8125rem; padding: .45rem .9rem;
}

/* Times */
.bk-slot { background: #fff; border-color: rgb(41 57 7 / .22); border-radius: 12px; }
.bk-slot:hover { background: var(--oa-lime-50); border-color: var(--oa-olive); }
/* The chosen time is a soft chip, so "Bekräfta" beside it is the one dark, clear action. */
.bk-slot[aria-pressed="true"] { background: var(--oa-lime-50); border-color: var(--oa-deep); color: var(--oa-deep); box-shadow: inset 0 0 0 1px var(--oa-deep); }
.bk-guest-list li, .bk-facts, .bk-notice { background: var(--oa-lime-50); }

/* Inside the oagency.io booking dialog (/book/embed, 998 px wide): no frame of its own (the dialog is the frame) and
   compact enough that step 1 and step 2 fit the dialog without scrolling at 1366x768 (about 645 px for the iframe).
   The page is exactly as tall as its content, so the height it reports to the site is the true one. */
body.bk-body.bk-embed { min-height: 0; }
/* The site sizes the iframe to the reported height, so the iframe itself never scrolls (Robert: "kalendern ska vara en bild");
   this also stops 1px visually-hidden helpers (the live region) from adding a scrollbar. A small screen scrolls the dialog. */
html.bk-fixed:has(> body.bk-embed), html.bk-fixed > body.bk-body.bk-embed { overflow: hidden; }  /* set by booking.js only when the page fits the room the site gave it */
.bk-embed .bk { flex: none; padding: 0; max-width: none; }
.bk-embed .bk-card { border: 0; border-radius: 0; box-shadow: none; }
.bk-embed .bk-steps { padding-block: .6rem; }
/* Round 10, tablet portrait (a frame or window of 641-760px, e.g. the pop-up on a 768px iPad): two columns instead of the
   phone stack, so it fits without scrolling. Step 1: details | calendar. Step 2: the compact host block on top, then
   calendar | times. The compact sizes below apply from 641px too. */
@media (min-width: 641px) and (max-width: 760px) {
  .bk-body .bk-panes { grid-template-columns: 1fr 1fr; }
  .bk-body .bk-cal { border-top: 0; border-left: 1px solid var(--bk-border); }
  .bk-body .bk[data-step="time"] .bk-panes { grid-template-columns: 1fr 1fr; }
  .bk-body .bk[data-step="time"] .bk-info { grid-column: 1 / -1; border-bottom: 1px solid var(--bk-border); }
  .bk-body .bk[data-step="time"] .bk-cal { border-left: 0; }
  .bk-body .bk[data-step="time"] .bk-times { border-top: 0; border-left: 1px solid var(--bk-border); }
}

/* Round 10, 761-900px (an iPad page in portrait, the pop-up on an 820px iPad): three columns, but the times column gets
   room for [time | Bekräfta] side by side. */
@media (min-width: 761px) and (max-width: 900px) {
  .bk-body .bk[data-step="time"] .bk-panes { grid-template-columns: 29fr 41fr 30fr; }
}

@media (min-width: 641px) {
  /* Round 10: the full page (/book and the pages reached from emails) uses the same compact sizes as the pop-up.
     Round 8: on a desktop the pop-up is a fixed frame that shows everything at once, never a scrollbar (Robert). A
     tighter scale (15px root: every rem size is 6% smaller), 40px day circles, a smaller host block and less padding:
     step 1, step 2 with a full day and an error, and both confirmations fit a 1280x720 window with room to spare.
     If a window is shorter still, the site tells us its space and the page zooms itself down (see booking.js). */
  html:has(> body.bk-body) { font-size: 15px; }
  /* The full page: the logo and the card together, centred on the screen (not stuck to the top). A fixed offset for a
     ~690px block (logo + the tallest step), so the card does not move up and down between the steps. */
  body.bk-body:not(.bk-embed) { padding-top: max(0px, calc((100vh - 690px) / 2)); }
  .bk-body .bk-steps { padding-block: .45rem; font-size: .95rem; }
  .bk-body .bk-col { padding: .9rem 1.4rem 1rem; }
  .bk-body .bk-host { gap: .65rem; }
  .bk-body .bk-avatar { width: 40px; height: 40px; }
  .bk-body .bk-title { font-size: 1.15rem; }
  .bk-body .bk-nextfree { margin: .5rem 0; padding: .3rem .7rem; font-size: .95rem; }
  .bk-body .bk-bullets { margin: .4rem 0 .55rem; font-size: .95rem; line-height: 1.4; }
  .bk-body .bk-bullets li + li { margin-top: 0; }
  .bk-body .bk-field { margin-bottom: .45rem; }
  .bk-body .bk-field label { margin-bottom: .1rem; font-size: .95rem; }
  .bk-body .bk-field input[type="text"], .bk-body .bk-field input[type="email"], .bk-body .bk-field input[type="tel"] { min-height: 38px; padding-block: .35rem; }
  .bk-body .bk-field .bk-error { margin-top: .1rem; font-size: .8rem; line-height: 1.3; }
  .bk-body #bk-continue { min-height: 42px; margin-top: .2rem; }
  .bk-body .bk-notice-line { margin-top: .4rem; font-size: .82rem; line-height: 1.35; }
  .bk-body .bk-cal-head { margin-bottom: .15rem; }
  .bk-body .bk-nav { width: 36px; height: 36px; }
  .bk-body .bk-month { font-size: 1.05rem; }
  .bk-body .bk-tz { margin: 0 0 .15rem; font-size: .9rem; }
  .bk-body .bk-grid th { padding: .15rem 0; font-size: .75rem; }
  .bk-body .bk-grid td { height: 40px; }
  .bk-body .bk-day { width: min(40px, 100%); font-size: .95rem; }
  /* Round 10: the times in ONE column, in time order; the chosen time splits in place into [time | Bekräfta] (or
     Boka om) in the same row, so there is never a hole. A short window is handled by the zoom (booking.js, pop-up). */
  .bk-body .bk-times { max-height: none; overflow: visible; padding-inline: 1.1rem; }
  .bk-body .bk-slots { display: flex; flex-direction: column; gap: .3rem; }
  .bk-body .bk-slot-row { flex-wrap: nowrap; gap: .35rem; }
  .bk-body .bk-slot-row.is-selected .bk-slot { flex: 1 1 0; min-width: 0; padding-inline: .4rem; }
  .bk-body .bk-slot-row .bk-confirm { flex: 1 1 0; min-width: max-content; padding-inline: .6rem; }
  .bk-body .bk-slot, .bk-body .bk-confirm { min-height: 34px; padding-block: .2rem; }
  .bk-body .bk-h2 { font-size: .95rem; margin-bottom: .5rem; }
  .bk-body .bk-aside { margin-top: .5rem; padding-top: .5rem; }
  .bk-body .bk-select, .bk-body .bk-addguest { min-height: 38px; }
  /* A failed Bekräfta on a full day (12 times, a chosen row, then this box): a compact box, no bottom margin. */
  .bk-body .bk-times .bk-error-box { margin: .45rem 0 0; padding: .35rem .6rem; border-radius: 8px; font-size: .85rem; line-height: 1.35; }
  .bk-body .bk-factlist li { min-width: 0; }
  .bk-body .bk-select { width: 100%; }
  /* Confirmation (booked or rescheduled) in the pop-up: two columns like step 2, so it fits the site dialog without
     a scrollbar (about 645px tall at a 1366x768 window): what was booked on the left, what to do next on the right. */
  .bk-embed .bk-card-single, .bk-body .bk-card-single:has(.bk-done-more) { max-width: none; }
  body.bk-embed:has(.bk-card-single) { background: var(--bk-surface); }  /* the site's frame may be taller (min 420px): no pale strip */
  .bk-body .bk-done:has(> .bk-done-more) { display: grid; grid-template-columns: 1fr 1fr; align-items: start; padding: 0; }
  .bk-embed .bk-done:has(> .bk-done-more) { min-height: 420px; }  /* 420: the smallest frame height the site allows */
  .bk-body .bk-done-main, .bk-body .bk-done-more { padding: 1.1rem 1.5rem 1.2rem; }
  .bk-body .bk-done-more { border-left: 1px solid var(--bk-border); align-self: stretch; }
  .bk-body .bk-check-badge { width: 40px; height: 40px; font-size: 1.25rem; margin-bottom: .5rem; }
  .bk-body .bk-done .bk-facts { margin-bottom: 0; }
  .bk-body .bk-done-more > section:first-child h2 { margin-top: 0; }
  .bk-body .bk-done-more h2 { margin-top: 1.1rem; }
  .bk-body .bk-addcal-grid { gap: .5rem; margin-top: .6rem; }
  .bk-body .bk-addcal-grid .bk-btn, .bk-body .bk-change .bk-btn { min-height: 38px; padding-block: .3rem; }
  .bk-body .bk-done-more p { margin-block: .25rem 0; }
  .bk-body .bk-change .bk-actions { margin-top: .5rem; }
}

/* Round 11: on a big screen (a MacBook Pro: 1512x982, 1728x1117) the full page is about 12% larger: the logo and the
   card are zoomed (CSS zoom lays text out again, so it stays sharp). Not the body, so the centring offset stays in
   real viewport px: ~690px of logo + tallest step becomes ~775px. The pop-up grows the same way through booking.js. */
@media (min-width: 1400px) and (min-height: 860px) and (pointer: fine) {
  body.bk-body:not(.bk-embed) > .oa-topbar, body.bk-body:not(.bk-embed) > main.bk { zoom: 1.12; }
  body.bk-body:not(.bk-embed) { padding-top: max(0px, calc((100vh - 775px) / 2)); }
}

@media (max-width: 760px) {
  .oa-topbar { height: 64px; }
  .oa-logo img { width: 112px; }
  .bk-title { font-size: 1.4rem; }
  .bk-col { padding: 1.25rem; }
  .bk-cal { padding-inline: .5rem; }   /* the calendar uses the full width of the panel */
  .bk-day { font-size: 1rem; }
}
