/*
 * Shared styles for the multi-step flows (Add a New Business, Claim, Edit,
 * Change Plan, Dispute, Report, Partner) - IP-Design-Principles.md.
 *
 * Structure/behavior/wording here follow IP-Add-Listing-Example.zip's
 * add-listing-example.html; colors/fonts/spacing/radius are the tokens
 * already defined in tokens.css (extracted from the live site), per
 * Design Principles §1 rule 1: "do not introduce new colors, fonts,
 * shadows or radii." Every selector below is prefixed `.ipflow-` so
 * nothing here can collide with or override an existing live-site rule -
 * additive only, per rule 2 ("existing pages keep their design").
 */

.ipflow-shell {
  max-width: var(--ip-form-width);
  margin: 0 auto;
  /* #header is `position: sticky` (web.css) - it reserves its own space
     in normal flow, so nothing here needs to compensate for it sitting
     "on top" of the page. What every other page actually gets is
     .page-heading's own padding: 40px 0, which every rebuilt flow step
     dropped along with the rest of that markup (no title band/breadcrumb
     needed for a single-column form) - without it the progress bar
     rendered flush against the header, reading as "hidden behind the
     nav" even though nothing was truly overlapping. */
  padding-top: var(--page-top, 40px);
  /* Item 6: the gap to the footer is .main-content's --page-bottom (web.css)
     - was another 40px here on top of it. */
  padding-bottom: 0;
}
/* Wider variant for a step that shows a grid (plan tiles, a two-column
   layout with a sidebar) instead of a single-column form - was a
   `style="max-width:1100px;"` inline on the shell repeated identically
   across every page that needed it (every New Listing step, dashboard/
   upgrade, plans), which is exactly the kind of per-page "forced" value
   that drifts (one page gets tweaked, the rest don't) instead of
   staying a single shared definition.

   1100px was itself an arbitrary number, narrower than the ambient
   .container these pages already sit inside (Bootstrap's own responsive
   width - 1170px at >=1200px viewport, 970px at 992-1199px). That left
   a consistent ~35px of extra empty gutter on each side beyond what
   every other page on the site shows at the same width, reported live
   on /plans and /list-your-business. max-width:none removes the second,
   narrower cap entirely - the shell now just fills the same width
   .container already gives every other page, nothing narrower. */
.ipflow-shell--wide {
  max-width: none;
}

/* Progress indicator - Design Principles §8: "Progress indicator exposes
   'Step 3 of 6: Business' as text." The segments are decorative (aria-
   hidden); the sr-text node carries the real accessible name. */
.ipflow-progress {
  margin: 0 0 var(--ip-space-lg);
}
.ipflow-progress-bar {
  display: flex;
  gap: 4px;
}
.ipflow-progress-seg {
  flex: 1 1 0;
  height: 6px;
  border-radius: var(--ip-radius-sm);
  background: var(--ip-color-border);
}
.ipflow-progress-seg.is-done,
.ipflow-progress-seg.is-current {
  background: var(--ip-color-primary);
}
.ipflow-progress-text {
  display: block;
  margin-top: var(--ip-space-xs);
  font-family: var(--ip-font-body);
  font-size: 13px;
  color: var(--ip-color-dark);
}

/* Integrated flow stepper (IP-Flow-Stepper.md) - replaces both the bar
   above (still reused as-is by .ipflow-stepper-mobile below) and the
   removed .ipflow-steps-sidebar/.signup-steps side panels with one
   component. Sits in the same position the old bar did (above the page
   heading); the panel's old job (naming every step + what it covers)
   now lives in the desktop-only column layout below instead of a
   separate right-hand box - the right column holds only the
   contact-widget card now.

   .ipflow-stepper-mobile is literally .ipflow-progress-bar/-seg/-text
   again (same classes/CSS above) - IP-Flow-Stepper.md §5 asks for
   mobile to stay pixel-identical to what's live today. The 992px switch
   below (matching Bootstrap's own lg breakpoint, same as every
   .col-lg-4 sidebar/widget column on these pages) is what keeps
   whichever one doesn't apply out of the accessibility tree at that
   width too, with no JS needed to juggle aria-hidden on resize. */
.ipflow-stepper {
  /* A grey divider line under the steps with room on both sides (owner 2026-10-07): 24px of space between the steps and
     the line, 32px between the line and the page heading, and a slight shadow under the line (a 1px pseudo-element,
     so the shadow falls below the line only, not around the steps). Every Add and Claim flow page. */
  position: relative;
  margin: 0 0 var(--space-6);
  padding-bottom: var(--space-5);
}
.ipflow-stepper::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--border);
  box-shadow: var(--elevation-band);
}
.ipflow-stepper-desktop {
  display: none;
}
@media (min-width: 992px) {
  .ipflow-stepper-mobile {
    display: none;
  }
  .ipflow-stepper-desktop {
    display: block;
  }
}
.ipflow-stepper-counter {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  color: var(--ink-muted, #757575);
}
.ipflow-stepper-row {
  display: flex;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ipflow-stepper-col {
  flex: 1 1 0;
  min-width: 0;
}
.ipflow-stepper-bar {
  display: block;
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--border, #dedede);
}
/* Design system: green (--secondary-dark) for a completed step, blue
   (--brand-blue) for the current one - IP-Flow-Stepper.md §8.1's own
   open point ("live bar shows completed segments in blue, use green
   unless Jarek says otherwise") is already resolved in tokens.css's own
   comment ("use --secondary-dark directly for... the completed-step
   circle") - green applied directly, not flagged as still open. */
.ipflow-stepper-col.is-done .ipflow-stepper-bar,
.ipflow-stepper-col.is-done .ipflow-stepper-marker {
  background: var(--secondary-dark, #47810f);
}
.ipflow-stepper-col.is-current .ipflow-stepper-bar,
.ipflow-stepper-col.is-current .ipflow-stepper-marker {
  background: var(--brand-blue, #3270a2);
}
.ipflow-stepper-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
}
.ipflow-stepper-marker {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--surface, #fff);
  background: var(--border, #dedede);
}
.ipflow-stepper-col.is-upcoming .ipflow-stepper-marker {
  width: 14px;
  height: 14px;
  border: 1px solid var(--border-strong, #80838a);
  background: transparent;
  color: var(--ink-muted, #757575);
  font-size: 9px;
}
.ipflow-stepper-marker .ph-check {
  font-size: 9px;
}
.ipflow-stepper-title {
  font-size: 13px;
  color: var(--ink, #44555b);
  /* Truncate rather than wrap - acceptance criteria (§7) require no
     overflow in 6 columns at 992px; a title wrapping to 2 lines would
     misalign every bar/marker in the row below it. The longest titles
     ("Zweryfikuj e-mail", "Załóż konto") are still the ones most likely
     to need this at exactly 992px. */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ipflow-stepper-col.is-current .ipflow-stepper-title {
  font-weight: 700;
  color: var(--brand-blue, #3270a2);
}
.ipflow-stepper-col.is-upcoming .ipflow-stepper-title {
  color: var(--ink-muted, #757575);
}
.ipflow-stepper-desc {
  display: block;
  margin-top: 5px;
  /* Lines up with the title text, not the marker - marker width (16px)
     + its gap to the title (6px). */
  margin-left: 22px;
  font-size: 12px;
  line-height: 1.3;
  color: var(--ink-muted, #757575);
}

.ipflow-heading {
  margin: 0 0 var(--ip-space-xs);
}
.ipflow-explain {
  margin: 0 0 var(--ip-space-lg);
  color: var(--ip-color-dark);
}
/* Batch 4 item 9: two same-size .ipflow-explain lines directly under a
   flow-form heading (register.blade.php's "already have an account" /
   "want us to add it" lines) read as one group - close together, with
   the larger gap only after the whole pair, not between the lines. */
.ipflow-explain-group .ipflow-explain {
  margin-bottom: var(--ip-space-xs);
}
.ipflow-explain-group .ipflow-explain:last-child {
  margin-bottom: var(--ip-space-lg);
}
/* .ipflow-subheading removed (2026-09-22 heading audit) - its own
   comment said it replaced a repeated inline font-size/weight/margin-top
   style on kontakt.blade.php's h2s, but that class was never actually
   applied to any template (grep confirms zero usage); kontakt.blade.php's
   heading is already a plain, classless <h2>, so nothing needs restoring. */

/* Error summary - Design Principles §5: heading, count sentence, list of
   links to fields. Reserved position at the top of every step. Same
   tokens as the Alert component's Critical variant (IP-Design-System.md
   §4.12) - --ip-color-error/-bg alias to --danger/--danger-bg - plus a
   matching icon, so this reads as the same "error" visual language as
   every .alert-danger elsewhere rather than its own one-off box. */
.ipflow-error-summary {
  border: 1px solid var(--ip-color-error);
  background: var(--ip-color-error-bg);
  color: var(--ip-color-error);
  border-radius: var(--ip-radius-sm);
  padding: var(--ip-space-md) var(--ip-space-lg);
  margin-bottom: var(--ip-space-lg);
}
/* Item 4c: this box is only ever focused programmatically (right after a
   failed submit, for screen readers - see error-summary.blade.php's own
   script), never a real Tab stop, so the browser's default blue focus
   ring has nothing useful to indicate here - it just looked like the
   summary had a blue border instead of its own red one. */
.ipflow-error-summary:focus {
  outline: none;
}
.ipflow-error-summary-header {
  display: flex;
  align-items: center;
  gap: var(--ip-space-sm);
  margin-bottom: 4px;
}
.ipflow-error-summary-icon {
  font-size: 18px;
  color: var(--ip-color-error);
}
.ipflow-error-summary h2 {
  font-size: 16px;
  margin: 0;
  color: var(--ip-color-error);
}
.ipflow-error-summary p {
  margin: 0 0 var(--ip-space-xs);
}
.ipflow-error-summary ul {
  margin: 0;
  padding-left: 20px;
}
/* No underline at rest or on hover, same as every other link on the
   site (see web.css's own a/a:hover rule, which drops both too) - this
   used to be the one link style still underlined. */
.ipflow-error-summary a {
  color: var(--ip-color-error);
  text-decoration: none;
}

/* Fields */
.ipflow-field {
  margin-bottom: var(--ip-space-lg);
}
.ipflow-field label {
  display: block;
  font-weight: 700;
  margin-bottom: 4px;
  font-family: var(--ip-font-body);
}
.ipflow-field .ipflow-optional {
  font-weight: 400;
  color: var(--ip-color-dark);
}
.ipflow-help {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--ip-color-dark);
}
.ipflow-field-error {
  /* IP-Design-Updates-Session-1.md Item 11: icon + text as a flex row so
     the triangle stays on the message's first line and a wrapped second
     line starts under the text, not under the icon. */
  display: flex;
  align-items: flex-start;
  gap: 4px;
  margin-top: 4px;
  font-size: 12px;
  color: var(--ip-color-error);
  /* Item 11: one weight heavier than the 400 the message rendered at.
     The spec's first choice is medium 500 - that is what was declared
     here, but Lato is loaded in 300/400/700 only (header.blade.php), so
     500 fell back to 400; 600 falls up to the 700 face, which is the
     nearest weight the site actually has. */
  font-weight: 600;
}
/* Design system Form Field spec: "a small alert icon appears at the
   field's trailing edge" on error. First tried as a background-image
   inside the input itself (matching .select-css's own dropdown-arrow
   technique) - reported back from a live screenshot as wrong on two
   counts: it sat awkwardly inside the field rather than reading as part
   of the error message, and on a password field it collided with the
   show/hide eye button sitting at that same right edge (both position
   themselves at the input's trailing edge). Moved here instead - part of
   the error message itself, not the field - which also sidesteps that
   collision entirely since nothing else occupies this space. Reuses the
   same content/font-family technique as .alert:before (both draw the
   Phosphor Regular webfont, not an <i> tag, so no blade template needs
   touching). IP-UI-Polish-Batch-1.md §3 / design system "Form error
   icon": a plain exclamation mark, no circle, sized to the error text's
   line height (caption 16px) and centred on its first line. Phosphor
   Regular (the design system's one weight; the batch doc's "Bold" is
   flagged in the PR). */
.ipflow-field-error:before {
  /* Item 11: outlined warning triangle (Phosphor Regular `warning`,
     replacing the bare exclamation mark), same error red, sized to the
     caption line height. The empty alternative text keeps screen readers
     from announcing the private-use glyph - the text carries the message. */
  content: "\e4e0" / "";
  font: normal normal normal var(--caption-line-height, 16px)/1 "Phosphor";
  flex: none;
}
/* Batch 5 item 1 root cause: every other .ipflow-field-error span is
   conditionally rendered server-side (@if($errors->has(...))) - never in
   the DOM at all when there's no error, so this class's own unconditional
   `display: block` never mattered. The three spans that instead stay in
   the DOM permanently and toggle a plain `hidden` attribute at runtime
   (newListing/details.blade.php's #region-load-error/#city-load-error,
   newListing/categories.blade.php's #sp-err) never actually hid: `hidden`
   and `.ipflow-field-error` are both plain, equal-specificity selectors,
   and this stylesheet loads after bootstrap3.min.css's own `[hidden]{
   display:none}` rule - so this rule's `display: block` always won,
   regardless of the hidden attribute/property's actual value. This is
   why the two state/city "failed to load" messages showed on every page
   load regardless of whether loading actually succeeded, and never
   cleared - nothing about the AJAX calls themselves was ever broken.
   A more specific selector than either of the tied ones fixes it for
   all three spans at once, without changing any @if-rendered usage. */
.ipflow-field-error[hidden] {
  display: none;
}
.ipflow-field.has-error input,
.ipflow-field.has-error select,
.ipflow-field.has-error textarea {
  border-color: var(--ip-color-error);
}
/* Pages still on the older .form-group (Bootstrap) field shape - not yet
   migrated to .ipflow-field (report.blade.php et al, see CLAUDE.md's
   flow-form-template note) - get the same has-error/ipflow-field-error
   treatment without the wrapper class change that migration would need.
   Bootstrap's own .has-error already sets a border-color, just a
   slightly different hardcoded red (#a94442) than this design system's
   token - this overrides it to the same --ip-color-error used everywhere
   else, via one extra class of specificity, so the border reads as the
   same red on every page rather than two near-identical-but-not-quite
   shades depending on which field shape a given page happens to use. */
.form-group.has-error .form-control {
  border-color: var(--ip-color-error);
}

/* Batch 4 item 2: custom city-suggestion dropdown (newListing/details.blade.php's
   Miasto fields) - not native <datalist>, which iOS Safari never renders
   suggestions for at all. Built the same "type to filter a short list"
   shape as the header's own #keyList/#locationPickerList dropdowns, just
   scoped to this one field instead of reusing those pages' own classes
   (which carry header-specific positioning this form doesn't share). */
.ipflow-autocomplete {
  position: relative;
}
.ipflow-autocomplete-list {
  position: absolute;
  z-index: 20;
  top: 100%;
  left: 0;
  right: 0;
  margin: 4px 0 0;
  padding: var(--ip-space-xs) 0;
  list-style: none;
  background: var(--ip-color-white);
  border: 1px solid var(--ip-color-border);
  border-radius: var(--ip-radius-sm);
  box-shadow: var(--elevation-2);
  max-height: 240px;
  overflow-y: auto;
}
.ipflow-autocomplete-option {
  padding: var(--ip-space-xs) var(--ip-space-md);
  font-family: var(--ip-font-body);
  font-size: var(--body-size);
  cursor: pointer;
}
.ipflow-autocomplete-option:hover,
.ipflow-autocomplete-option:active {
  background: var(--ip-color-bg-light);
}
.ipflow-autocomplete-option--add {
  color: var(--ip-color-primary);
  font-weight: 700;
}

/* IP Design System (IP-Design-System.md §4.2): form fields share a
   consistent border/radius-md treatment instead of Bootstrap's own
   .form-control defaults (4px radius, #ccc border, blue glow on
   :focus - the last of which also visually competed with the
   :focus-visible outline below). Scoped to .form-control (what every
   input/select/textarea in this flow already carries) rather than
   listing every input[type=...] individually. Checkboxes/radios are
   left to their native rendering for now - a proper custom-styled
   checkbox is a bigger, separate component, not a plain radius/border
   swap like a text field. */
/* .contact-form-box (claim/plan, claim/review, dashboard/edit,
   dashboard/upgrade, report, partner, and a few older/less-visited
   pages - company, listing, claim/confirm) is the pre-.ipflow-shell
   form wrapper these pages were left on - their .form-control inputs
   never got this same border/radius/focus-ring treatment, so they
   still rendered with Bootstrap's plain square borders/blue glow
   while every other form on the site had already moved on. */
.ipflow-shell .form-control,
.login-form .form-control,
.contact-form-box .form-control {
  border-radius: var(--radius-md);
  border-color: var(--border);
  box-shadow: none;
}
.ipflow-shell .form-control:focus,
.login-form .form-control:focus,
.contact-form-box .form-control:focus {
  border-color: var(--border);
  box-shadow: none;
}
.ipflow-counter {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--ip-color-dark);
  text-align: right;
}
/* One row of a repeated pair of fields (content step's social-link
   name+url rows) - was inline margin-bottom on each generated row. */
.ipflow-social-row {
  margin-bottom: var(--ip-space-xs);
}
/* Generic "a bit of extra top space" utility (login.blade.php's forgot-
   password link, sitting right under the form) - was inline
   margin-top:15px, snapped to the nearest spacing token (16px). */
.ipflow-mt-md {
  margin-top: var(--ip-space-md);
}
.ipflow-counter.is-over {
  color: var(--ip-color-error);
  font-weight: 700;
}

/* Touch targets - Design Principles §4: at least 44x44px.
   accent-color (IP-Auth-Modal-and-Email-Identity.md Part A design-system
   audit): the checked box/dot was the browser's own blue; it now takes
   the brand-blue token, which is what the Form Field component's
   checkbox/radio spec names for the checked state. Still the native
   control otherwise (the spec's fully custom appearance:none checkbox is
   a separate component, see the note above). Applies to every flow-form
   checkbox and radio, not just the login modal's Remember me. */
.ipflow-shell input[type="checkbox"],
.login-form input[type="checkbox"],
.ipflow-shell input[type="radio"] {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  accent-color: var(--brand-blue, #3270a2);
}
.ipflow-checkbox-row,
.ipflow-radio-row {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
}
/* A checkbox (or its label, sitting beside it rather than wrapping it -
   login.blade.php's Remember-me) needing its own font-weight/margin
   reset and, when the label does wrap the checkbox, its own internal
   flex/gap to line the two up. Was inline on newListing/details.blade.php's
   "to firma internetowa" checkbox and login.blade.php's Remember me.
   Also qualified as .ipflow-field .ipflow-checkbox-label (two classes),
   which reliably beats .ipflow-field label's own (one class + one type)
   specificity regardless of source order wherever this sits inside an
   .ipflow-field - a bare .ipflow-checkbox-label there lost to that
   rule's bold/margin, silently reintroducing the exact look this was
   meant to remove. Outside an .ipflow-field (login's case), the plain
   selector alone is enough since nothing else competes for it there. */
.ipflow-checkbox-label,
.ipflow-field .ipflow-checkbox-label {
  font-weight: 400;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
/* Reset for the group-label sitting in an .ipflow-row-between (categories
   step's "Powiązane podkategorie", content step's "Opis") - not a real
   field label, so it shouldn't take .ipflow-field label's bold/margin
   styling; was inline margin:0 on each one. */
.ipflow-row-between label {
  margin: 0;
}
/* A checkbox row generated as one of several in a grid (dashboard/
   upgrade.blade.php's subcategory checklist) needs Bootstrap's .row
   negative side margins zeroed, since nothing here compensates for them
   with its own padding the way a real .container/.col-* pairing would -
   was inline margin:0 on that one .row. */
.ipflow-checkbox-grid-row {
  margin: 0;
}

/* Categories step - one row per subcategory (checkbox + inline sponsor
   pill), matching add-listing-example.html's .cat/.pill pattern. */
.ipflow-row-between {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--ip-space-sm);
}
.ipflow-cat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ip-space-sm);
  min-height: 48px;
  border-bottom: 1px solid var(--ip-color-border);
}
/* The checkbox+label takes the row's available space, leaving room for
   the sponsor pill .ipflow-cat-row's own justify-content:space-between
   pushes to the end - was inline style="flex:1;" on the label, set by
   the categories step's own JS each time it rebuilds this row. */
.ipflow-cat-row .ipflow-checkbox-row {
  flex: 1;
}
.ipflow-counter.is-over {
  color: var(--ip-color-error);
  font-weight: 700;
}

/* Sponsored-subcategory pill picker */
.ipflow-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 4px;
}
/* .ipflow-pill is now just a bare marker/selector hook - the visible
   sizing/color/state treatment comes entirely from the standard
   .btn.btn-sm + .btn-secondary/.btn-primary classes categories.blade.php's JS
   toggles on the same element (per owner direction: use the real button
   style, smallest size, no icon - the old bespoke 44px pill with its own
   colors and a checkmark ::before is gone). */

/* Previous / Next bar - per explicit owner direction, no longer sticky
   on mobile (this used to fix it to the bottom of the screen under
   767px, per an earlier Design Principles §3 decision that's since
   been reversed). Stays in normal document flow at every width now,
   same as desktop. */
.ipflow-nav {
  display: flex;
  /* Per explicit owner direction: every button row is right-aligned,
     Back and Next/Submit grouped together on the right instead of
     pushed to opposite ends - the empty <span></span> placeholder this
     used to need (to hold the left side open for justify-content:
     space-between on a step with no Back button) is gone from every
     .ipflow-nav now that this doesn't push anything apart any more. */
  justify-content: flex-end;
  align-items: center;
  gap: var(--ip-space-md);
  margin-top: var(--ip-space-xl);
}
/* Login's own Remember-me/Login-button row - a checkbox+label, not a
   second button, so it keeps the left/right split instead of bunching
   next to the button on the right like every other .ipflow-nav now. */
.ipflow-nav.ipflow-nav-split {
  justify-content: space-between;
}
/* Error pages (resources/views/errors/*.blade.php) - no Back/Next pair
   to push apart or right-align, just one or two ways forward centered
   under the message above them. */
.ipflow-nav.ipflow-nav-center {
  justify-content: center;
}
/* newListing/register.blade.php's own Wstecz button, per owner
   direction - bold text. Every other flow step's Back button (plain
   .btn.btn-secondary.btn-sm) stays regular weight; scoped to this one
   instance rather than a change to .btn-secondary itself. */
.ipflow-btn-back-bold {
  font-weight: 700;
}
.ipflow-nav .ipflow-btn-next {
  flex: 1 1 auto;
  max-width: 260px;
  /* IP Design System §4.1: large button size, 48px height - the primary
     action on every one of these forms (login, verify, kontakt, and
     every New Listing step share this one rule/class). The Back link
     beside it stays its existing smaller .btn-sm size on purpose - this
     is the one primary action on the row, not both buttons. */
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* A .ipflow-btn-next used as a standalone full-width CTA outside
   .ipflow-nav (newListing/possible-duplicate.blade.php's "claim this
   listing instead" link inside .ipflow-card) - the default .ipflow-nav
   .ipflow-btn-next rule above doesn't apply here since there's no
   .ipflow-nav ancestor, so this needs its own block/full-width/centered
   treatment instead of the flex-item sizing meant for sitting next to a
   Back button. Was inline display/text-align/max-width/margin-top. */
.ipflow-btn-next--block {
  display: block;
  text-align: center;
  max-width: none;
  margin-top: var(--ip-space-sm);
}

/* (The small ring that used to sit in the Next button while a step was sent is gone: the site's one loading look - four bars, public/css/ip-loading.css -
   is put in the button by public/js/ip-loading.js, which flow-forms.js calls on submit; docs section CC.) */

/* A bordered content box - newListing/possible-duplicate.blade.php's
   "here's the existing listing that might be yours" callout. Was inline
   padding/border/radius/margin-bottom on that one usage; a real class
   since a boxed callout like this is a generic enough shape to reuse. */
.ipflow-card {
  padding: var(--ip-space-md);
  border: 1px solid var(--ip-color-border);
  border-radius: var(--ip-radius-sm);
  margin-bottom: var(--ip-space-lg);
}

/* Dialogs - native <dialog>, Design Principles §5: heading, exact
   numbers, at most two buttons, safe action primary, focus trapped by
   the browser's own showModal(). */
.ipflow-shell dialog,
.ipflow-dialog {
  border: none;
  border-radius: var(--ip-radius-sm);
  padding: var(--ip-space-xl);
  /* Was 480px - too narrow for the hours grid's 4 columns (day label +
     two time inputs + a checkbox); the day column's own width fix below
     handles "Poniedziałek" specifically, but the extra room here keeps
     the two time-input columns comfortable too. */
  max-width: 640px;
  width: 92vw;
  box-shadow: 0 8px 30px rgba(0,0,0,.25);
}
.ipflow-dialog::backdrop {
  background: rgba(0,0,0,.5);
}
.ipflow-dialog h2 {
  margin: 0;
}
.ipflow-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ip-space-md);
}
/* The design system's inline icon-only "Close": 32px, a circle (radius-pill, owner 2026-11-26 - like the scroll-to-top button; it was radius-lg).
   IP-Outline-Buttons.md §5.6: it is an Outline Button family icon button
   - white with a 1px border and an ink X at rest, light blue on hover
   (was a button-secondary-fill tint with a blue X and no border). Those
   colors/states come from the shared ip-outline.css - every usage
   carries .ip-outline in its markup - so only the shape stays here.
   Applies to every .ipflow-dialog on the site (Business Hours, Key
   Features, the login + reset modal); every usage renders the Phosphor
   Regular x glyph (ph ph-x) in its own markup, 18px. */
.ipflow-dialog-close {
  width: 32px;   /* the round icon buttons are ONE size - this, the copy-email button and the scroll-to-top (owner 2026-11-27; was 40px) */
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill, 999px);   /* a circle, the shape of the scroll-to-top button (owner 2026-11-26; was radius-lg) */
  font-size: 18px;
  cursor: pointer;
  flex: none;
  /* Invisible 44px tap target (the handoff's own touch-target rule
     names the close button explicitly) without growing the 32px visual
     box - same technique used for the
     contact-widget's link tap targets. */
  position: relative;
}
.ipflow-dialog-close::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
}
.ipflow-dialog-actions {
  display: flex;
  justify-content: flex-end;
  /* Same gap as .ipflow-nav (every other button-row site-wide) - per
     explicit owner direction, button spacing is one value everywhere,
     not a different one per component. */
  gap: var(--ip-space-md);
  margin-top: var(--ip-space-lg);
}

/* Business hours dialog rows - a fixed 4-column grid (day, open, close,
   closed) instead of a flex-wrap row, so all 7 rows line up in a
   consistent grid instead of each one wrapping onto extra lines at its
   own width once the day label + 2 time inputs + checkbox didn't fit
   on one line. */
.ipflow-hours-row {
  display: grid;
  /* 72px fit the shorter day names (Wtorek, Środa, ...) but not
     "Poniedziałek" (Monday), which overflowed into the Od column next
     to it - 110px comfortably fits the longest Polish day name too. */
  grid-template-columns: 110px 1fr 1fr auto;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--ip-space-sm);
}
.ipflow-hours-row .ipflow-hours-day {
  font-weight: 700;
}
.ipflow-hours-row label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 400;
  margin: 0;
}
.ipflow-hours-row .ipflow-hours-closed {
  white-space: nowrap;
}
.ipflow-hours-row select {
  min-height: 44px;
}
.ipflow-hours-copy-row {
  margin: 0 0 var(--ip-space-md);
}
.ipflow-hours-summary {
  font-size: 13px;
  color: var(--ip-color-dark);
  margin-top: 4px;
}

/* Selectable plan tiles (web.partials.plan-tiles, $selectable=true) - the
   flow's own Plan step (newListing/plan-select.blade.php) reuses the live
   /plans page's four-tile layout instead of a plain radio list, per
   IP-Add-Listing-Example.zip and the flowchart. The native radio is kept
   for real keyboard/form semantics but visually replaced by the tile
   itself lighting up via .is-selected, driven by the plan-tiles partial's
   own script. */
.ipflow-shell .pricing-plan-radio {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.ipflow-shell .pricing-plan-radio-label {
  cursor: pointer;
}
.ipflow-shell .pricing-plan-radio:focus-visible + * ,
.ipflow-shell .pricing-plan-radio:focus-visible {
  outline: 3px solid var(--ip-color-primary);
  outline-offset: 2px;
}
.ipflow-shell .pricing-plan.pricing-plan-selectable {
  border: 2px solid transparent;
  border-radius: var(--ip-radius-sm);
  transition: border-color .15s ease;
}
.ipflow-shell .pricing-plan.pricing-plan-selectable.is-selected {
  border-color: var(--ip-color-primary);
}

/* Confirmation page's success circle (add-listing-example.html's .done) */
.ipflow-done-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--ip-color-success, #3c763d);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin: 8px auto 16px;
}
/* Same shape as .ipflow-done-circle, on --danger instead of success -
   used by the custom error pages (resources/views/errors/*.blade.php)
   so a 419/500 reads as "something didn't work" using the same visual
   language as every other flow state circle, not a one-off icon. */
.ipflow-error-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--danger, #9e4a46);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin: 8px auto 16px;
}
/* 500.blade.php's standalone logo - that page deliberately skips the
   normal DB-backed header/footer (see its own comment), so this is its
   only branding; sized/spaced the same way admin's own standalone
   login-page logo is (public/css/style.css's .admin-login-logo), just
   the public-side equivalent since that stylesheet never loads here. */
.ipflow-error-logo {
  max-width: 100%;
  width: auto;
  height: 60px;   /* the old file at its 240px width was 60px high; the width follows the picture (logo swap, owner 2026-11-26) */
  margin: var(--ip-space-xl) 0 var(--ip-space-md);
}

/* Review step - condensed 4-row summary + 3-step timeline
   (add-listing-example.html's .rev/.steps3/.dot). The <dl>/<dt>/<dd>
   here each had their own inline margin:0 (the default <dl> spacing
   otherwise fights with .ipflow-rev-row's own padding/border layout). */
.ipflow-summary-list {
  margin: 0;
}
.ipflow-summary-list dt,
.ipflow-summary-list dd {
  margin: 0;
}
.ipflow-rev-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--ip-space-sm);
  padding: var(--ip-space-sm) 0;
  border-bottom: 1px solid var(--ip-color-border);
}
.ipflow-steps3 {
  display: flex;
  gap: var(--ip-space-sm);
  margin: var(--ip-space-lg) 0 var(--ip-space-md);
  text-align: center;
  font-size: 13px;
  color: var(--ip-color-dark);
}
.ipflow-steps3 > div {
  flex: 1;
}
.ipflow-steps3 b {
  display: block;
  color: var(--ip-color-dark);
  font-weight: 700;
}
.ipflow-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ip-color-info-bg);
  color: var(--ip-color-info);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 6px;
  font-weight: 700;
}

/* Buttons made equal width on a step that opts into it (via this extra
   class) - the shared .ipflow-nav rule alone leaves Back sized to its own
   text while Next/Submit flexes up to 260px, a visible size mismatch the
   owner asked to fix. Scoped so other steps aren't affected until they
   adopt this too. */
.ipflow-nav.ipflow-nav-even .btn {
  flex: 1 1 0;
  max-width: 260px;
}

/* .ipflow-aside-box is the same box treatment the old .ipflow-steps-sidebar
   ("Jak to działa?" step list, IP-Flow-Stepper.md - removed, its job now
   lives in web.partials.flow.stepper instead) used, for a right-hand
   column that isn't a step list - currently unused (kontakt.blade.php's
   own sidebar was replaced by web.partials.contact-widget), kept in case
   a future page wants this look without a step list. */
.ipflow-aside-box {
  background: var(--ip-color-bg-light);
  border-radius: var(--ip-radius-sm);
  padding: var(--ip-space-lg);
}

/* Focus visibility - Design Principles §8. Uses the design system's
   dedicated --focus-ring token (a distinct, more vivid blue meant
   specifically for focus indicators), not --ip-color-primary/
   --brand-blue - the two were never meant to be the same color, they
   just happened to be before this token existed. */
.ipflow-shell a:focus-visible,
.ipflow-shell button:focus-visible,
.ipflow-shell input:focus-visible,
.login-form a:focus-visible,
.login-form button:focus-visible,
.login-form input:focus-visible,
.ipflow-shell select:focus-visible,
.ipflow-shell textarea:focus-visible,
.contact-form-box input:focus-visible,
.contact-form-box select:focus-visible,
.contact-form-box textarea:focus-visible,
.ipflow-pill:focus-visible {
  outline: 3px solid var(--focus-ring, #3270a2);
  outline-offset: 2px;
}
/* Text fields (owner 2026-10-06: the heavy 3px ring is disturbing): a
   brand-blue border + 1px blue edge replaces the 3px outline floating
   2px off the field. The transparent outline is for Windows
   high-contrast mode. Checkboxes, radios, buttons and links keep the
   standard ring above. */
.ipflow-shell input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]):not([type=file]):focus-visible,
.login-form input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]):not([type=file]):focus-visible,
.ipflow-shell select:focus-visible,
.ipflow-shell textarea:focus-visible,
.contact-form-box input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]):not([type=file]):focus-visible,
.contact-form-box select:focus-visible,
.contact-form-box textarea:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 0;
  border-color: var(--brand-blue, #3270a2);
  box-shadow: 0 0 0 1px var(--focus-ring, #3270a2);
}
.ipflow-heading[tabindex="-1"]:focus {
  outline: none;
}

/* claim/register.blade.php's Sign in / Sign up tab bar - was inline
   styles on both the <li> and <a> (border-bottom, font-weight), with
   the active indicator hardcoded to the old pre-tokens green
   (#7cba00) and re-applied by JS as an inline style on every tab
   switch. is-active on the <li> (toggled by the JS instead of setting
   inline styles now) drives both the border and the label weight from
   here, on --brand-blue like every other active-state indicator. */
.claim-auth-tabs {
  display: flex;
  border-bottom: 2px solid var(--border, #eee);
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}
.claim-auth-tabs li {
  flex: 1;
  text-align: center;
  margin-bottom: -2px;
  border-bottom: 2px solid transparent;
}
.claim-auth-tabs li.is-active {
  border-bottom-color: var(--brand-blue, #3270a2);
}
.claim-auth-tab {
  display: block;
  padding: 10px;
  font-weight: normal;
  text-decoration: none;
}
.claim-auth-tabs li.is-active .claim-auth-tab {
  font-weight: bold;
}

/* An element that starts hidden and is shown/hidden again later purely
   via jQuery's .show()/.hide() (claim/register.blade.php's Sign in
   panel, claim/plan.blade.php's sponsored-subcategory section) - was
   inline style="display:none;" on each one. Deliberately NOT
   !important: .show()/.hide() set the element's own inline display
   style directly each time they run, which an !important class rule
   would permanently block from ever taking effect again. */
.ipflow-js-hidden {
  display: none;
}

/* Honeypot field shared by web.partials.registration-antispam-fields
   (claim/newListing register) and duplicated inline on report.blade.php
   and partner.blade.php's own simpler forms - hidden from sighted users
   without display:none (a bot that skips genuinely hidden inputs still
   fills this one in), and aria-hidden on the wrapping <div> keeps
   assistive tech from ever announcing it either. */
.ipflow-honeypot {
  position: absolute;
  left: -9999px;
}

/* Two stacked full-width buttons (originally claim/confirm.blade.php's
   Kontynuuj/Anuluj, before that page was removed from the flow) - was
   inline margin-top on the second one. Scoped to the adjacent-sibling
   case specifically, since a lone .full-width button elsewhere on the
   page needs no extra top spacing of its own. */
.btn.full-width + .btn.full-width {
  margin-top: var(--ip-space-xs);
}

/* Originally claim/confirm.blade.php's business-preamble card sitting
   above its own "Prosisz o dostęp..." paragraph, before that page was
   removed from the flow - was inline margin-bottom. Scoped to
   .contact-form-box specifically: .company-preamble is reused on
   company.blade.php/listing-detail.blade.php/the preview sandbox too,
   each with its own different surrounding layout, so this can't become
   .company-preamble's own default margin without touching those too. */
.contact-form-box .company-preamble {
  margin-bottom: var(--ip-space-lg);
}

/* claim/review.blade.php and dashboard/upgrade-review.blade.php's plain
   review table - only the first row set explicit column widths (an
   HTML table's column widths come from its first row regardless of
   later rows, so later rows never needed their own copy), but each did
   it with its own inline style. */
.ipflow-summary-table tr:first-child th {
  width: 200px;
}
.ipflow-summary-table tr:first-child td:last-child {
  width: 80px;
}

/* claim/plan.blade.php's plain-radio plan/category form - a handful of
   .col-sm-* wrappers each carried their own inline padding/margin
   override instead of a shared class, one of the last pages still on
   this pre-.ipflow-shell layout. Pixel values kept exactly as they were
   (rather than snapped to a spacing token, unlike the simpler single-
   value cases elsewhere in this file) since 5px/15px/10px combinations
   don't map cleanly onto the token scale without a real visual check
   this pass didn't include. */
.ipflow-col-flush {
  padding: 0;
}
.ipflow-subcat-section {
  margin-bottom: 15px;
}
.ipflow-subcat-list {
  padding: 5px 15px;
  margin-bottom: 0;
}
.ipflow-subcat-counter {
  font-size: 12px;
  padding: 0 15px;
}
.ipflow-subcat-hint {
  font-size: 12px;
  margin-bottom: 10px;
}

/* dashboard/edit.blade.php's extra-location fields (street/city/region/
   postal, stacked with no .form-group wrapper of their own around each
   one) - was inline margin-bottom on each input but the last. */
.ipflow-stacked-input {
  margin-bottom: 6px;
}
/* Same page's social-links table - was inline width:100% on the table
   and width:200px on every row's first cell (redundant past the first
   row, same reasoning as .ipflow-summary-table above, but repeated here
   since it's generated by a @for loop rather than fixed rows). */
.ipflow-social-links-table {
  width: 100%;
}
.ipflow-social-links-table td:first-child {
  width: 200px;
}

/* Benefits teaser + "Learn more" modal (IP-Registration-First-Flow.md section 4), partial
   web.partials.flow.benefits-teaser: one short line on the register page and on the claim and add pages, and a
   native <dialog> (the shared .ipflow-dialog look) with a mini side-by-side plan comparison. Tokens only; the
   dialog is wider than the 640px default because it holds four small columns. */
.ipflow-benefits {
  margin: 0 0 var(--ip-space-lg);
}
.ipflow-benefits__text {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--ip-space-xs);
  color: var(--ip-color-dark);
}
.ipflow-benefits__text .ph {
  color: var(--secondary-dark);
  font-size: 20px;
  align-self: center;
}
.ipflow-benefits__more {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--brand-blue);
  text-decoration: none;
  cursor: pointer;
}
.ipflow-benefits__more:hover,
.ipflow-benefits__text a:hover {
  color: var(--brand-blue-dark);
  text-decoration: none;
}
.ipflow-benefits__text a {
  color: var(--brand-blue);
  text-decoration: none;
}
/* The register page's three icon lines (registration / log in / write to us) sit close together as one group. */
.ipflow-benefits--grouped {
  margin-bottom: var(--ip-space-xs);
}
.ipflow-dialog.ipflow-benefits-dialog {
  max-width: 920px;
}
.ipflow-benefits-note {
  margin: var(--ip-space-sm) 0 var(--ip-space-md);
  color: var(--ink-muted);
}
.ipflow-benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--ip-space-md);
}
.ipflow-benefits-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--ip-space-md);
  background: var(--surface);
}
.ipflow-benefits-card.is-free {
  border-color: var(--secondary-dark);
}
.ipflow-benefits-card__name {
  margin: 0;
  font-size: 16px;
}
.ipflow-benefits-card__price {
  margin: var(--ip-space-xs) 0;
  font-weight: 600;
}
.ipflow-benefits-card__price span {
  font-weight: 400;
  color: var(--ink-muted);
}
.ipflow-benefits-card__soon {
  margin: 0 0 var(--ip-space-xs);
  color: var(--ink-muted);
  font-size: 13px;
}
.ipflow-benefits-card__list {
  margin: 0;
  padding-left: var(--ip-space-md);
  list-style: disc;
  overflow-wrap: anywhere;
}
.ipflow-benefits-card__list li {
  list-style: disc; /* the site resets li markers elsewhere */
}
@media (max-width: 991px) {
  .ipflow-benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 575px) {
  .ipflow-benefits-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Radio group on a flow form (register page's communication language): the group label is bold like a field label,
   each option is a normal-weight label beside its radio. */
.ipflow-field .ipflow-label {
  display: block;
  font-weight: 700;
  margin-bottom: 4px;
  font-family: var(--ip-font-body);
}
.ipflow-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ip-space-xs) var(--ip-space-lg);
}
.ipflow-field .ipflow-radio-label {
  display: flex;
  font-weight: 400;
  margin: 0;
}

/* A row of two fields (password + repeat password) that share one hint line underneath: the fields sit closer to the
   hint than to the next field. */
.ipflow-row-hint-below .ipflow-field {
  margin-bottom: var(--ip-space-xs);
}
.ipflow-help--after-pair {
  margin: 0 0 var(--ip-space-lg);
}
