/* Booking page overrides that must survive the widget: nb_online_nimbus.js disables
   every stylesheet whose filename starts with "newbook", so these can't live in newbook.css. */

/* Use the site font, not the instance's online font. The widget prints its own `body:is(...)`
   block after newbookOnline.js's override; the `html` prefix outranks it. */
html body,
html body:is(.nb-curved, .nb-square, .nb-standard, .nb-dark, .nb-grid) {
  --nb-font-family: var(--wpt-primary-font), "Work Sans", Arial, sans-serif;
}

/* Narrow the widget's content from its 1500px default (set on `body,html`) */
html body {
  --nb-content-max-width: 1230px;
}

/* "See all accommodation" (newbookOnline.js): the full button style lives here, because
   buttons.css only styles .wpt-button inside an [class*="element-"] block and the widget
   may not sit in one. Also overrides the widget CSS, element version-2 and headings.css. */
#newbook_content #newbook_online_booking_logo_wrapper .nb-see-all-accommodation {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0 0;
  padding: 8px 15px;
  border: 1px solid var(--wpt-general-site-button-colour);
  background: var(--wpt-general-site-button-colour);
  color: #fff;
  font-family: var(--wpt-primary-font);
  font-size: 0.8em;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: all 300ms ease;
}

/* version-2 unsets the base .wpt-button hover; restore it */
#newbook_content #newbook_online_booking_logo_wrapper .nb-see-all-accommodation:hover {
  box-shadow: inset 0 0 0 100vw rgb(0 0 0 / 7%);
}

#newbook_content #newbook_online_booking_logo_wrapper .nb-see-all-accommodation:focus-visible {
  outline: 2px solid var(--wpt-general-site-button-colour);
  outline-offset: 2px;
}

/* Hot deals + language selector can leave no room beside the button on narrow screens */
#newbook_content #newbook_online_booking_logo_wrapper > div:has(> .nb-see-all-accommodation) {
  flex-wrap: wrap;
  row-gap: 8px;
}
