/* =========================================================================
   Content components
   -------------------------------------------------------------------------
   Styles for the class names used inside CMS content (ukps-*), the
   tabbed pages, sliders, the store locator and the account dashboard.
   All colours/sizes come from tokens in base.css.
   ========================================================================= */

/* ---------------------------------------------------------------- generic content */
.cms-content > :last-child { margin-bottom: 0; }
/* Typography of imported CMS content, as on the old site. The store locator
   page and designed marketing pages (e.g. Keystone Bathrooms, .ks-bath) keep
   their own styling. The :has(#ukps-map-wrapper) / :has(.ks-bath) clauses give
   these selectors ID-level specificity, which would otherwise override skin
   heading colour and line-height (t269u). */
.cms-content:not(:has(#ukps-map-wrapper)):not(:has(.ks-bath)) { line-height: 16px; }
.cms-content:not(:has(#ukps-map-wrapper)):not(:has(.ks-bath)) p { margin: 0 0 16px; font-size: 1.1rem; line-height: 1.3; }
.cms-content:not(:has(#ukps-map-wrapper)):not(:has(.ks-bath)) :is(h1, h2) { font-size: 32px; font-weight: 400; line-height: 25px; color: var(--brand-ink); }
.cms-content:not(:has(#ukps-map-wrapper)):not(:has(.ks-bath)) h1 { margin-bottom: 16px; }
.cms-content:not(:has(#ukps-map-wrapper)):not(:has(.ks-bath)) p.large-text { font-size: 1.4rem; }
@media (max-width: 1024px) { .cms-content .ukps-careers-content p.large-text { font-size: 1rem; margin-bottom: 0; } }
.top-para { font-weight: 700; }
.large-text { font-size: 1.4rem; line-height: 1.3; }
.ukps-red-text { color: var(--brand-accent); }

.ukps-banner { display: block; width: 100%; height: auto; background: var(--brand-primary); }
@media (min-width: 768px) { .ukps-banner { min-height: 194px; object-fit: cover; } }
@media (min-width: 1219px) { .ukps-banner { min-height: 316px; } }
div.ukps-accent-bar { height: var(--space-half); margin: 0; background: var(--highlight-color); }

.ukps-vr-dashed, .ukps-vr-dotted { width: 0; height: 100%; margin: auto; border-right: 1px dotted var(--divider); }
@media (max-width: 767px) { .ukps-vr-dashed, .ukps-vr-dotted { display: none; } }

ul.ukps-custom-bullets { list-style: none; padding-left: 1.4em; }
ul.ukps-custom-bullets li { position: relative; margin-bottom: .4em; }
ul.ukps-custom-bullets li::before {
  content: ""; position: absolute; left: -1.2em; top: .55em;
  width: .5em; height: .5em; border-radius: 50%; background: var(--brand-primary);
}

.ukps-content-wrap,
.ukps-how-we-work-content-wrap,
.ukps-careers-content-wrap,
.ukps-training-development-content-wrap,
.ukps-about-us-content-wrap {
  padding: var(--space);
  background: var(--surface-muted);
}
.ukps-registered-address { font-size: .9rem; color: var(--text-muted); }
.ukps-cookie-types td, .ukps-cookie-types th, .ukps-our-cookies td, .ukps-our-cookies th {
  padding: 6px 10px; border: 1px solid var(--border); vertical-align: top; text-align: left;
}

/* embedded forms & documents (heights match the embedded apps) */
.ukps-form-iframe, .ukps-form-register-iframe { width: 100%; min-height: 650px; }
.account-application-iframe { width: 100%; height: 700px; margin-bottom: 20px; }
iframe.ukps-vacancies { width: 100%; height: 480px; margin: 20px 0; padding: 1px 0; background: var(--surface-sunken); }
@media (max-width: 870px) { iframe.ukps-vacancies { height: 490px; } }
@media (max-width: 620px) { iframe.ukps-vacancies { height: 755px; } }
@media (max-width: 600px) { .ukps-how-we-work-content-wrap { padding: var(--space) 4px; } }
.ukps-privacy-notice-iframe { width: 100%; height: 580px; }
.embedded-pdf { width: 100%; height: 80vh; }

/* ---------------------------------------------------------------- tabs
   Bootstrap-compatible markup: .tabbable > ul.nav.nav-tabs + .tab-content */
.tabbable { position: relative; }
ul.nav-tabs {
  position: absolute; top: -36px; left: 5px; width: max-content;
  display: flex; flex-wrap: nowrap;
  margin: 0; padding: 0; list-style: none;
}
ul.nav-tabs > li + li { margin-left: 2px; }
ul.nav-tabs > li > a {
  display: block; padding: 12px 16px; white-space: nowrap; line-height: 10px;
  border: 1px solid var(--surface-sunken); border-bottom: 0;
  border-radius: var(--radius-tab) var(--radius-tab) 0 0;
  background: var(--brand-primary); color: #fff;
  font-size: .9rem; font-weight: 700; text-decoration: none;
}
ul.nav-tabs > li > a:hover { background: #fff; color: var(--brand-primary); }
ul.nav-tabs > li.active > a {
  background: var(--surface-muted); color: var(--brand-primary);
  border-color: var(--brand-primary); position: relative; top: 1px;
}
.tab-content { background: var(--surface-muted); padding: 0; }
.tab-content > .tab-pane { display: none; }
.tab-content > .tab-pane.active { display: block; }

/* When the strip is wider than the screen, menuTabs-x.js (page content) turns it
   into a "<Page> Menu" dropdown by adding .tab-menu / .tab-menu-open. */
ul.nav-tabs .tab-menu-more {
  display: flex; align-items: center; gap: 4px; box-sizing: content-box;
  height: 7px; padding: 11px 14px 17px; cursor: pointer;
  border: 1px solid #fff; border-radius: var(--radius-tab) var(--radius-tab) 0 0;
  background: var(--brand-primary); color: #fff; font-size: .9rem; font-weight: 700; line-height: 10px;
}
ul.nav-tabs .tab-menu-more .material-icons { font-size: 20px; line-height: 9px; }
ul.nav-tabs.tab-menu > li:not(.tab-menu-more) { display: none; }
ul.nav-tabs.tab-menu-open { z-index: 1; flex-direction: column; border-bottom: 3px solid var(--brand-primary); }
ul.nav-tabs.tab-menu-open > li + li { margin-left: 0; }
ul.nav-tabs.tab-menu-open .tab-menu-more { width: 200px; height: 8px; padding: 14px; cursor: alias; }
ul.nav-tabs.tab-menu-open > li > a, ul.nav-tabs.tab-menu-open > li.active > a {
  top: 0; border: 1px solid var(--surface-muted); border-radius: 0; background: #fff; color: var(--brand-primary);
}
ul.nav-tabs.tab-menu-open > li:hover > a { background: var(--brand-primary); color: #fff; }

/* accordions (ukps-accordian.js) */
.accordian-trigger { cursor: pointer; }
.accordian-collapsable.accordian-collapsed { display: none; }

/* testimonial carousel (testimonial-carrousel3.js injects its own layout CSS) */
.testimonial-photo img { border-radius: 50%; width: 96px; height: 96px; object-fit: cover; }
.testimonial-name { font-weight: 700; color: var(--brand-primary); }
.testimonial-title { font-size: .9rem; color: var(--text-muted); }
/* The script uses Font Awesome class names for its controls; draw them without loading FA. */
.fas { font-style: normal; font-family: "Material Icons"; line-height: 1; }
.fas.fa-chevron-left::before { content: "chevron_left"; }
.fas.fa-chevron-right::before { content: "chevron_right"; }
.fas.fa-pause::before { content: "pause"; }
.fas.fa-play::before { content: "play_arrow"; }

/* ---------------------------------------------------------------- home tiles */
.ukps-home-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 32px 17px; }
.ukps-home-tiles-item { border-right: 1px dotted var(--brand-nav-bg); text-align: center; }
.ukps-home-tiles-item:last-child { border-right: 0; }
.ukps-home-tiles-image-wrap,
.ukps-showrooms-image-wrap,
.ukps-careers-image-wrap,
.ukps-about-us-image-wrap,
.ukps-training-development-image-wrap,
.ukps-policy-tiles-image-wrap {
  margin: 0; padding: 2px;
  background: #fff; border: 1px solid var(--border);
  box-shadow: 0 0 2px 1px rgb(0 0 0 / .1);
}
.ukps-home-tiles-image, .ukps-policy-tiles-image, .ukps-showrooms-image, .ukps-careers-image, .ukps-about-us-image {
  display: block; width: 100%; height: 100%; object-fit: cover;
}
.ukps-home-tiles-item .ukps-home-tiles-image-wrap { margin: 0 15px; }
.ukps-home-tiles-text { padding: 20px 0; font-weight: 700; color: var(--tile-text); font-size: min(1.8vw, 28px); line-height: 16px; }
.ukps-home-tiles-item a { text-decoration: none; }
@media (max-width: 767px) {
  .ukps-home-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ukps-home-tiles-item { margin-bottom: 30px; }
  .ukps-home-tiles-item:nth-child(n+3) { margin-bottom: 0; }
  .ukps-home-tiles-item:nth-child(2n) { border-right: 0; }
  .ukps-home-tiles-text { font-size: 3.5vw; }
}
@media (max-width: 400px) {
  .ukps-home-tiles { grid-template-columns: 1fr; }
  .ukps-home-tiles-item { border-right: 0; }
  .ukps-home-tiles-text { font-size: 6vw; }
}

/* ---------------------------------------------------------------- policy tiles
   matches live: 3 equal columns, no gap, 32px/17px panel inset, 15px image inset, 30px row gap */
.ukps-policy-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 32px 17px; }
.ukps-policy-tiles-item { position: relative; margin-bottom: 30px; }
.ukps-policy-tiles-item:nth-child(3n+1):nth-last-child(-n+3),
.ukps-policy-tiles-item:nth-child(3n+1):nth-last-child(-n+3) ~ .ukps-policy-tiles-item { margin-bottom: 0; }
.ukps-policy-tiles-item .ukps-policy-tiles-image-wrap { margin: 0 15px; }
.ukps-policy-tiles-item a { text-decoration: none; }
.ukps-policy-tiles-text-wrap {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 80%;
  text-align: center;
  background: linear-gradient(to right, transparent, #fffa, #fffc, #fffa, transparent);
}
.ukps-policy-tiles-text { font-size: 20px; font-weight: 700; color: var(--text); padding: 10px 0; line-height: 25px; }
@media (min-width: 1220px) { .ukps-policy-tiles-image { min-height: 171px; } }
@media (max-width: 600px) {
  .ukps-policy-tiles { grid-template-columns: 1fr; }
  .ukps-policy-tiles-item { margin-bottom: 0; }
}

/* ---------------------------------------------------------------- about / careers / training layouts
   text | spacer | pictures */
.ukps-about-us-content,
.ukps-careers-content,
.ukps-training-development-content {
  display: grid; grid-template-columns: 9fr calc(var(--space) * 2) 6fr; align-items: start;
}
.ukps-about-us-content > :nth-child(2),
.ukps-careers-content > :nth-child(2),
.ukps-training-development-content > :nth-child(2) { justify-self: center; align-self: stretch; }
.ukps-about-us-image-wrap-wrapper { display: block; }
.ukps-careers-content-pics,
.ukps-training-development-content-pics { display: grid; grid-template-rows: auto auto; gap: var(--space); }
.ukps-careers-image-in-text, .ukps-training-development-image-in-text, .ukps-about-us-image-in-text { display: none; }
.ukps-about-us-image-2 { margin: 0 auto var(--space-half); }
.ukps-about-us-image-wrap { width: 100%; box-sizing: content-box; }
.ukps-careers-content-wrap p { text-align: justify; }
@media (max-width: 767px) {
  .ukps-about-us-content, .ukps-careers-content, .ukps-training-development-content { display: block; }
  .ukps-careers-content-pics, .ukps-training-development-content-pics, .ukps-about-us-content-pics { display: none; }
  .ukps-about-us-image-wrap-wrapper { display: inline-block; text-align: center; }
  .ukps-about-us-image-wrap { margin: var(--space) auto; }
  .ukps-about-us-image-2 { margin: 0 auto var(--space); }
  .ukps-about-us-content-wrap { padding: var(--space-half); }
  .ukps-careers-image-in-text, .ukps-training-development-image-in-text, .ukps-about-us-image-in-text {
    display: block; float: right; width: 50%; margin: 5px 0 20px 20px;
  }
}
@media (max-width: 500px) {
  .ukps-careers-image-in-text, .ukps-training-development-image-in-text, .ukps-about-us-image-in-text { width: 100%; margin: 5px 0 20px; }
}

/* ---------------------------------------------------------------- showrooms */
.ukps-showrooms-content-wrap { padding: var(--space); background: var(--surface-muted); }
.ukps-showrooms-content-wrap div.ukps-vr-dotted { display: none; }
.ukps-showrooms-content { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space); }
.showroom-rows { display: grid; gap: var(--space); }
.showrooms-4-image-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space); }
.showrooms-2-image-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space); }
.ukps-showrooms-content div p:last-child { margin: 0; }
.ukps-store-list-wrap {
  width: 100%; height: 100%; max-height: 80vh; overflow-y: auto;
  background: #fff; border: 1px solid var(--border); box-shadow: 0 0 2px 1px rgb(0 0 0 / .1);
}
.ukps-store-list-wrap ul { list-style: none; margin: 5px 20px; padding: 0; }
.ukps-store-list-wrap ul li {
  padding: 5px 0; cursor: pointer; font-weight: 700; color: var(--brand-primary);
  border-bottom: 1px solid color-mix(in srgb, var(--brand-primary) 50%, transparent);
}
.ukps-store-list-wrap ul li:last-child { border-bottom: 0; }
.ukps-store-list-wrap ul li:hover { background: var(--surface-muted); }
@media (max-width: 767px) {
  .ukps-showrooms-content { grid-template-columns: 1fr; }
  .showrooms-4-image-row { grid-template-columns: repeat(2, 1fr); }
  .showrooms-2-image-row { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- store locator (locations6.js)
   The page content carries its own detailed rules; these give the frame. */
#ukps-map-wrapper { position: relative; }
/* Widget icons (locations6.js, showrooms2.js): fonts and classes are in icons.css */
.ukps-material-icons { font-size: 1.3rem; vertical-align: middle; color: var(--brand-accent); }
.ukps-material-icons.large { font-size: 1.6rem; }
.ukps-material-icons-fill { color: var(--brand-accent); }
.ukps-material-icons-fill.large { font-size: 1.6rem; color: darkorange; }
.ukps-material-icons-button {
  font-size: 2rem; padding: 5px; color: var(--brand-accent);
  border: 2px solid var(--brand-accent); border-radius: 5px;
}
.ukps-close-filter-button, .ukps-close-sort-button { float: right; cursor: pointer; }
.l-header__actions-icon { color: var(--brand-accent); font-size: 32px; }
.ukps-postcode-search-wrapper { position: relative; }
.ukps-reset-search { position: absolute; top: 9px; right: 45px; display: none; cursor: pointer; }
#ukps-stores-controls .ukps-filters-wrapper .material-icons { overflow: hidden; max-width: 20px; }
#ukps-stores-controls .ukps-filters-wrapper span.ukps-sort-alpha-button,
#ukps-stores-controls .ukps-filters-wrapper span.ukps-sort-distance-button { text-decoration: none; background: var(--brand-accent); color: #fff; }
ul.store-data { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
ul.store-data li:empty { display: none; }
.ukps-mobile-buttons ul { list-style: none; padding: 0; }
img.ukps-brand-logo { position: absolute; right: -20px; top: -11px; }
#ukps-stores-list .ukps-list-address div { line-height: 20px; }
#ukps-stores-list .ukps-location-image-wrap-wrapper .showroom-overlay {
  position: absolute; top: 5px; left: 5px; z-index: 1; border-radius: 5px; background: rgb(255 255 255 / .8);
}
#ukps-stores-list .ukps-location-image-wrap-wrapper .showroom-overlay i.ukps-material-icons-button { font-size: 2.2em; margin: 0; padding: 2px 1px 0; border: 0; }
.store-more-detail { display: none; }
.store-more-detail.ukps-show { display: block; }
.ukps-mobile-buttons, .opening-times-button, .ukps-mobile-toggle-details { display: none; }
.ukps-map-list-wrapper { display: none; grid-template-columns: minmax(0, 1fr) 350px; grid-template-rows: 58px 1fr; gap: 8px; }
.ukps-map { width: 100%; height: 760px; grid-row-end: 2; }
#ukps-stores-controls { position: relative; display: grid; grid-template-columns: 198px 136px; padding: 8px; background: var(--surface-sunken); }
#ukps-stores-controls #postcode-search { width: 150px; margin: 0; padding: 4px 30px 4px 6px; }
#ukps-stores-controls #search-button { position: absolute; right: 11px; top: 1px; height: 28px; border: 0; border-radius: 2px; background: var(--brand-accent); color: #fff; }
#ukps-stores-controls .ukps-filters-wrapper {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  height: 28px; line-height: 26px; border-radius: 3px; background: #fff;
}
#ukps-stores-controls .ukps-filters-wrapper .ukps-filter-link,
#ukps-stores-controls .ukps-filters-wrapper .ukps-sort-link { text-align: center; cursor: pointer; }
#ukps-stores-controls .ukps-filters-wrapper span { font-size: .9rem; color: var(--brand-primary); text-decoration: underline; }
#ukps-stores-controls .ukps-filter-overlay,
#ukps-stores-controls .ukps-sort-overlay {
  display: none; position: absolute; right: -8px; top: 50px; z-index: 1; width: 330px; padding: 8px;
  background: var(--surface-sunken); border-bottom: 2px solid var(--border); border-radius: 0 0 10px 10px;
}
/* The controls (and their Filter / Sort / Settings / Info menus) stack above the store list, whose sticky
   card headers have z-index 2, so an open menu and its Close button are never covered by a header */
#ukps-map-wrapper #ukps-stores-controls { z-index: 20; }
#ukps-map-wrapper #ukps-stores-controls .ukps-filter-overlay, #ukps-map-wrapper #ukps-stores-controls .ukps-sort-overlay,
#ukps-map-wrapper #ukps-stores-controls .ukps-settings-overlay, #ukps-map-wrapper #ukps-stores-controls .ukps-info-overlay { z-index: 30; }
#ukps-stores-controls .ukps-sort-overlay .ukps-sort-options { list-style: none; margin: 5px 0; padding: 0; }
#ukps-stores-controls .ukps-sort-overlay .ukps-sort-options li { display: inline; margin-right: 8px; }
#ukps-stores-controls .ukps-filter-results {
  position: absolute; top: 39px; right: 8px; z-index: 1; width: 126px; padding: 0 5px;
  font-size: .75rem; color: #fff; text-align: center; white-space: nowrap;
  border-radius: 3px; background: var(--brand-nav-bg);
}
#ukps-stores-controls .ukps-filter-results:empty { display: none; }
#ukps-stores-controls [class$="-filter-wrapper"]:not(.ukps-filters-wrapper):not(.ukps-showroom-filter-wrapper) {
  position: relative; margin: var(--space) 0; padding: 25px 10px 10px; font-size: .9rem;
  background: #fff; border: 1px solid var(--border); border-radius: 5px;
}
#ukps-stores-controls [class$="-filter-header"] {
  position: absolute; top: -11px; left: 10px; padding: 0 5px; line-height: 20px; font-size: .95em;
  background: #fff; border: 1px solid var(--border); border-radius: 3px;
}
#ukps-stores-controls #ukps-brands-filter { display: grid; grid-template-columns: repeat(8, 1fr); gap: 3px; }
#ukps-stores-controls .ukps-brands-filter-wrapper button { width: 100%; height: 36px; border: 2px outset var(--border); border-radius: 5px; background: var(--border); }
#ukps-stores-controls .ukps-brands-filter-wrapper button.active { background: #aaa; border-style: inset; }
#ukps-stores-controls .ukps-brands-filter-wrapper button img { width: 20px; }
#ukps-stores-list { height: 680px; overflow-y: auto; }
#ukps-stores-list a { color: var(--brand-primary); text-decoration: underline; }
div.ukps-store { padding: 16px; margin-bottom: var(--space-half); border: 1px solid var(--border); }
div.ukps-store h3 { position: relative; margin: 8px 20px 0 0; cursor: pointer; }
div.ukps-store .ukps-distance { font-size: .9rem; }
div.ukps-store .ukps-distance span.distance { color: darkorange; border-bottom: 1px dotted var(--border); }
#ukps-stores-list .ukps-store li { margin: 8px 0; }
#ukps-stores-list .ukps-opening-time-wrapper { list-style: none; padding: 0; }
#ukps-stores-list .ukps-opening-time-wrapper li { margin: 0; line-height: 16px; }
/* Locator cards (all sites; Alistair t110u): small brand line, regular-weight location name,
   opening hours indented to line up with the "Opening Times" label (24px icon + a space), not the icon */
#ukps-map-wrapper #ukps-stores-list div.ukps-store h3 .ukps-brand-name { line-height: 0.7; font-size: 0.7em; }
#ukps-map-wrapper #ukps-stores-list div.ukps-store h3 .ukps-location-name { font-weight: 400; font-size: 0.9em; }
/* Sticky card header (locations6.js scrollHeads): the 0.7 line-height brand line draws ~6px above the h3 box,
   so give the header 8px of top padding (cancelled by a -8px margin, so the unstuck card looks the same) and an
   opaque background, so when it sticks at top:0 the brand name is fully visible and nothing shows above it. */
#ukps-map-wrapper #ukps-stores-list div.ukps-store h3 { padding-top: 8px; margin-top: -8px; background-color: var(--ukps-card-bg, #fff); z-index: 2; }
#ukps-map-wrapper #ukps-stores-list .ukps-opening-times-list .ukps-opening-time-wrapper { padding-left: 28px; }
#ukps-stores-list .ukps-list-address { display: grid; grid-template-columns: 25px 1fr; }
#ukps-stores-list .ukps-location-image-wrap-wrapper { position: relative; margin-bottom: var(--space-half); }
#ukps-stores-list .ukps-location-image-wrap { max-width: 400px; }
#ukps-stores-list .ukps-showroom-button,
#ukps-stores-list .ukps-virtual-tour-button { float: right; margin: -2px 0 0 4px; padding: 1px 8px 1px 1px; cursor: pointer; background: var(--brand-accent); }
#ukps-stores-list .ukps-showroom-button:hover,
#ukps-stores-list .ukps-virtual-tour-button:hover { opacity: .8; }
#ukps-stores-list span.text-under-button { display: block; font-size: .6rem; text-align: center; color: var(--brand-accent); }
#ukps-stores-list .ukps-material-icons-button { margin: 5px; cursor: pointer; }
.ukps-mobile-buttons li.ukps-mobile-showroom-button:empty { display: none; }
@media (max-width: 767px) {
  .ukps-map-list-wrapper { grid-template-columns: 1fr; gap: 0; }
  .ukps-map { height: 350px; margin-top: 64px; }
  #ukps-stores-controls { grid-template-columns: 198px 1fr; width: calc(100% - 16px); }
  #ukps-stores-list { height: calc(100vh - 550px); min-height: 320px; }
  div.ukps-store { padding: 4px 8px; margin-bottom: 8px; }
  #ukps-stores-list ul.store-data li { display: none; }
  #ukps-stores-list ul.store-data.showing li { display: list-item; }
  #ukps-stores-list ul.store-data.showing li.ukps-list-address { display: grid; }
  .ukps-mobile-buttons { display: block; position: relative; margin: 16px 0; }
  .ukps-mobile-toggle-details {
    display: inline-block; margin: 3px; padding: 2px 4px; cursor: pointer;
    font-size: .85rem; color: #fff; background: var(--brand-accent);
  }
  .ukps-opening-times-list { display: none; }
  .ukps-material-icons-button { padding: 2px 5px; }
  #ukps-stores-list .ukps-location-image-wrap-wrapper .showroom-overlay { display: none; }
  #ukps-stores-list .ukps-mobile-buttons .ukps-location-image-wrap-wrapper { float: right; }
  #ukps-stores-list .ukps-mobile-buttons .ukps-location-image-wrap { max-width: 130px; }
}
@media (max-width: 400px) { #ukps-stores-list .ukps-mobile-buttons .ukps-location-image-wrap { max-width: 100px; } }
@media (max-width: 369px) { #ukps-stores-list .ukps-mobile-buttons .ukps-location-image-wrap { display: none; } }

/* ---------------------------------------------------------------- banner slider */
.slider { position: relative; overflow: hidden; }
.slider__track { display: grid; }
.slider__slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s; }
.slider__slide.is-active { opacity: 1; visibility: visible; }
.slider--slide .slider__slide { opacity: 1; transform: translateX(100%); transition: transform .6s ease, visibility .6s; }
.slider--slide .slider__slide.is-active { transform: none; }
.slider--slide .slider__slide.is-prev { transform: translateX(-100%); }
.slider__slide img { display: block; width: 100%; height: auto; }
.slider__slide > a { display: block; }
.slider__caption { position: absolute; inset: auto 0 15%; padding: 0 5%; color: #fff; text-shadow: 0 1px 3px rgb(0 0 0 / .6); }
.slider__caption--center { text-align: center; }
.slider__caption--right { text-align: right; }
.slider__dots { position: absolute; right: 0; bottom: 0; height: 18px; display: flex; align-items: center; }
.slider__dot {
  width: 8px; height: 8px; margin: 3px 5px; padding: 0; cursor: pointer; box-sizing: content-box;
  background: var(--brand-nav-bg); border: 1px solid var(--brand-nav-bg); border-radius: 0;
}
.slider__dot.is-active { width: 10px; height: 10px; margin-block: 0; background: #fff; border: 2px solid var(--brand-accent); border-radius: 10px; }
.slider__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border: 0; border-radius: 50%; cursor: pointer;
  background: rgb(255 255 255 / .7); color: var(--brand-primary);
  opacity: 0; transition: opacity .2s;
}
.slider:hover .slider__arrow, .slider__arrow:focus-visible { opacity: 1; }
.slider__arrow--prev { left: 12px; }
.slider__arrow--next { right: 12px; }
.slider--mobile { display: none; }
@media (max-width: 767px) {
  .slider--desktop { display: none; }
  .slider--mobile { display: block; }
}

/* ---------------------------------------------------------------- account area
   Native rebuild of the old UKPS account pages (the willbond site embedded documents.ukps.website
   / ganymede in iframes). Class names follow the old markup so the look can be compared 1:1. */
/* t370u: centre the Account H1 in the white band between the category nav and the tabs
   (shared; site-main already adds --space-half above). */
.acct-area { padding-block: 0 var(--space); }
.acct-area__title { margin: 0; font-weight: 400; color: var(--brand-ink); }
.acct-area__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin: 0 0 var(--space-half); }
.acct-area__head .acct-switch { margin: 0; }
.acct-area__toolbar-wrap { position: relative; margin: 0; }

/* Switch Account (old HPS site): grey dropdown button aligned with the H1 */
.acct-switch { position: relative; margin: 0 0 12px; }
.acct-switch__btn {
  display: inline-flex; align-items: center; gap: 2px; padding: 6px 8px 6px 12px; border: 1px solid #ccc; border-radius: 4px;
  background: #e6e6e6; color: #333; font-size: .9rem; font-weight: 700; cursor: pointer; list-style: none; user-select: none;
}
.acct-switch__btn::-webkit-details-marker { display: none; }
.acct-switch__btn:hover, .acct-switch[open] .acct-switch__btn { background: #d4d4d4; border-color: #adadad; }
.acct-switch__btn .material-icons { font-size: 20px; }
.acct-switch__menu {
  position: absolute; right: 0; top: calc(100% + 4px); z-index: 50; min-width: 260px; max-height: 60vh; overflow: auto;
  margin: 0; padding: 4px 0; border: 1px solid #0002; border-radius: 4px; background: #fff; box-shadow: 0 6px 12px #0000002e;
}
.acct-switch__item {
  display: block; width: 100%; padding: 8px 16px; border: 0; background: none; text-align: left; font: inherit; font-size: .9rem; color: #333; cursor: pointer;
}
.acct-switch__item:hover, .acct-switch__item:focus-visible { background: #f5f5f5; color: var(--brand-primary); }
.acct-switch__item.is-active { background: var(--brand-primary); color: #fff; }
.acct-switch__code { font-weight: 700; }
.acct-switch__name { display: block; font-size: .8rem; opacity: .85; }

/* t231u: desktop top-bar switcher — inherit the bar colour, no brand-accent / red hover.
   t240u: stretch to the bar height (32px expanded, 20px compact) and use line-height 1
   plus a 16px caret so the label lines up with Quick Order, Sign out and the location pill. */
.site-header__acct-switch,
.acct-switch--header {
  position: relative;
  display: inline-flex;
  align-items: center;
  align-self: stretch;
  flex: 0 1 auto;
  min-width: 0;
  max-width: min(32vw, 280px);
  margin: 0 14px 0 0;
  padding-right: 14px;
  border-right: 1px solid rgb(255 255 255 / .3);
}
.acct-switch--header .acct-switch__btn {
  display: inline-flex; align-items: center; gap: 4px;
  box-sizing: border-box; height: 100%; max-width: 100%; margin: 0; padding: 0;
  background: transparent; border: 0; border-radius: 0; box-shadow: none;
  color: inherit; font: inherit; font-size: .8rem; font-weight: 700; line-height: 1;
  text-align: left; cursor: pointer;
}
.acct-switch--header .acct-switch__btn::-webkit-details-marker { display: none; }
.acct-switch--header .acct-switch__current { display: inline-flex; flex-direction: row; align-items: center; gap: .35em; min-width: 0; max-width: 100%; overflow: hidden; }
.acct-switch--header .acct-switch__code,
.acct-switch--header .acct-switch__name { display: inline; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-switch--header .acct-switch__name { font-size: inherit; font-weight: 600; opacity: .9; }
.acct-switch--header .acct-switch__btn .material-icons {
  font-size: 16px; width: 16px; height: 16px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}
.acct-switch--header .acct-switch__btn:hover,
.acct-switch--header .acct-switch__btn:focus-visible,
.acct-switch--header[open] .acct-switch__btn {
  background: transparent; border-color: transparent; color: inherit; text-decoration: underline;
}
.acct-switch--header .acct-switch__btn:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.acct-switch--header .acct-switch__menu {
  right: 0; left: auto; min-width: 240px; z-index: 80;
  background: #fff; color: #1c1c1b;
}
.acct-switch--header .acct-switch__item { color: #1c1c1b; }
.acct-switch--header .acct-switch__item:hover,
.acct-switch--header .acct-switch__item:focus-visible {
  background: #f3f3f3; color: #1c1c1b;
}
.acct-switch--header .acct-switch__item.is-active { background: #1c1c1b; color: #fff; }

@media (max-width: 1199px) {
  .acct-switch--header { max-width: min(28vw, 220px); }
}
@media (max-width: 991px) {
  .acct-switch--header { max-width: min(28vw, 200px); }
}

/* t232u / t248u: account switcher inside the coloured mobile-drawer account block */
.acct-switch--drawer { margin: 4px 0; color: inherit; }
.acct-switch--drawer .acct-switch__btn {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; margin: 0; padding: 8px 10px;
  background: color-mix(in srgb, var(--drawer-account-text, #fff) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--drawer-account-text, #fff) 40%, transparent);
  border-radius: 4px;
  color: inherit; font: inherit; font-weight: 700; text-align: left; cursor: pointer;
}
.acct-switch--drawer .acct-switch__btn { list-style: none; }
.acct-switch--drawer .acct-switch__btn::-webkit-details-marker { display: none; }
.acct-switch--drawer .acct-switch__current { display: flex; flex-direction: column; min-width: 0; }
.acct-switch--drawer .acct-switch__name { font-size: .8rem; font-weight: 600; }
.acct-switch--drawer .acct-switch__menu {
  position: static; margin: 8px 0 4px; width: 100%; min-width: 0;
  box-shadow: none; border: 1px solid var(--border-soft, #e3e3e3);
  background: var(--surface, #fff); color: var(--text, #333);
}
.acct-switch--drawer .acct-switch__item { color: inherit; }
.acct-switch--drawer .acct-switch__item:hover,
.acct-switch--drawer .acct-switch__item:focus-visible { background: #f5f5f5; color: inherit; }
.acct-switch--drawer .acct-switch__item.is-active { background: var(--brand-ink, #1c1c1b); color: #fff; }

/* Icon tabs sitting on a navy bar */
.acct-tabs { position: relative; }
.acct-tabs .ukps-nav-backdrop {
  position: absolute; left: 0; right: 0; bottom: 0; height: 16px;
  background: var(--brand-primary); z-index: 1;
}
.ukps-account-tabs { position: relative; z-index: 2; display: flex; width: max-content; max-width: 100%; margin: 0 0 0 10px; padding: 0; list-style: none; }
.ukps-account-tabs li a {
  display: flex; align-items: center; gap: 5px; margin: 0 1px 0 0; padding: 6px 10px;
  border: 1px solid #eee; border-bottom-color: transparent; border-radius: 15px 15px 3px 3px;
  background: var(--brand-primary); color: #fff; font-size: .9rem; font-weight: 700; line-height: 20px; text-decoration: none;
}
.ukps-account-tabs li a .material-icons { font-size: 18px; color: #fff; }
.ukps-account-tabs li a:hover, .ukps-account-tabs li.active a { background: #eee; color: var(--brand-primary); border-color: var(--brand-primary); border-bottom-color: transparent; text-decoration: none; }
.ukps-account-tabs li a:hover { background: #fff; }
.ukps-account-tabs li a:hover .material-icons, .ukps-account-tabs li.active a .material-icons { color: var(--brand-primary); }

/* t214u: Basket Menu / Account Menu — a burger + label that opens the actions or tabs on small screens. Desktop is unchanged. */
.page-menu__toggle { display: none; }
.page-menu__toggle .material-icons { font-size: 22px; }
.basket-page__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 16px; }
.basket-page__head h1 { margin: 0; }
.basket-page__toolbar-wrap { position: relative; }

@media (max-width: 767px) {
  .page-menu__toggle {
    display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto;
    white-space: nowrap; margin-left: auto;
  }
  /* site-main padding-top is 0 on small screens, so keep a matching 8px above the title */
  .acct-area { padding-top: var(--space-half); }
  .acct-area__toolbar-wrap { margin: 0 0 12px; }
  .acct-area__head { flex-wrap: nowrap; }
  .acct-area__title { flex: 1 1 auto; min-width: 0; }
  .basket-page__toolbar-wrap .page-menu__panel,
  .acct-area__toolbar-wrap .ukps-account-tabs {
    display: none;
    position: absolute; top: 100%; right: 0; left: 0; z-index: 40;
    flex-direction: column; align-items: stretch;
    width: 100%; max-width: none; margin: 4px 0 0; padding: 8px;
    background: #fff; border: 1px solid #ddd; border-radius: 8px;
    box-shadow: 0 8px 24px rgb(0 0 0 / .16);
  }
  .basket-page__toolbar-wrap.is-open .page-menu__panel,
  .acct-area__toolbar-wrap.is-open .ukps-account-tabs { display: flex; }
  .basket-page__toolbar-wrap .page-menu__panel .button,
  .basket-page__toolbar-wrap .page-menu__panel .btn-cta,
  .basket-page__toolbar-wrap .page-menu__panel form { width: 100%; margin: 0; }
  .basket-page__toolbar-wrap .page-menu__panel .button,
  .basket-page__toolbar-wrap .page-menu__panel .btn-cta {
    justify-content: flex-start;
  }
  .acct-tabs { position: static; margin: 0; }
  .acct-tabs .ukps-nav-backdrop { display: none; }
  .acct-tabs .ukps-account-tabs { left: auto; }
  .acct-tabs .ukps-account-tabs li { width: 100%; }
  .acct-tabs .ukps-account-tabs li a {
    margin: 0; border: 0; border-radius: 6px; background: transparent;
    color: var(--brand-ink); font-weight: 600;
  }
  .acct-tabs .ukps-account-tabs li a .material-icons { color: var(--brand-ink); }
  .acct-tabs .ukps-account-tabs li a:hover,
  .acct-tabs .ukps-account-tabs li.active a {
    background: #f2f2f2; color: var(--brand-primary); border: 0;
  }
  .acct-tabs .ukps-account-tabs li a:hover .material-icons,
  .acct-tabs .ukps-account-tabs li.active a .material-icons { color: var(--brand-primary); }
}

/* Grey panel with the water watermark */
.account-view {
  position: relative; margin: 0 0 var(--space-half); padding: 16px; border-radius: 0 0 5px 5px; font-size: .9rem;
  background: #eee url(../img/account-watermark.webp) no-repeat right bottom;
}
.account-view__body > :first-child { margin-top: 0; }
.account-view a { color: var(--brand-accent); }
.account-view a:hover { color: var(--brand-primary); }

/* Sub-nav: Dashboard | Invoices | Credit Notes | Statements | Payments */
.ukps-account-subnav-wrap { margin: 0 0 16px; }
.ukps-account-subnav { margin: 0; padding: 4px 8px; list-style: none; border-bottom: 1px solid var(--brand-nav-bg); font-size: .9rem; }
.ukps-account-subnav li { display: inline-block; padding-right: 16px; }
.ukps-account-subnav li a { color: var(--brand-primary); text-decoration: none; }
.ukps-account-subnav li a:hover { text-decoration: underline; }
.ukps-account-subnav li.active a { color: var(--brand-accent); font-weight: 700; text-decoration: underline; }

.acct-area__signout { display: flex; justify-content: flex-end; margin: 0; }
.acct-area__signout .btn-logout { padding: 6px 12px; min-height: 0; font-size: .85rem; font-weight: 700; }
.btn.btn-logout, .btn.btn-logout:hover { background: var(--brand-accent); border-color: var(--brand-accent); color: #fff; }
.btn.btn-logout:hover { background: var(--brand-primary); border-color: var(--brand-primary); }

/* Dashboard (ganymede get-account-dashboard) */
.ukps-dashboard-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; }
.ukps-dashboard-wrap > section { position: relative; flex: 1 1 50%; max-width: 50%; padding: 0 8px 0 0; box-sizing: border-box; }
/* Cash accounts have no Limits and Balances column: Other Information goes full-width so there is no empty half-row (t247u). */
.ukps-dashboard-wrap--no-limits > .ukps-dashboard-information { flex-basis: 100%; max-width: 100%; }
h3.ukps-h3-title { margin: 1em 0 .6em; font-size: 18px; font-weight: 700; color: var(--brand-primary); text-decoration: underline; }
.ukps-dashboard-data-wrap { display: grid; grid-template-columns: 120px 1fr; gap: 8px; font-size: .85rem; }
.ukps-dashboard-data-wrap > div { padding: 8px 4px; }
.ukps-dashboard-data-wrap > div:first-child { font-weight: 700; }
.ukps-dashboard-data-wrap .ukps-span-2 { grid-column: 1 / 3; font-weight: 400; }
.ukps-dashboard-data-wrap.ukps-overdue-text { color: red; }
.ukps-dashboard-data-wrap.ukps-overdue { height: 16px; }
.ukps-dashboard-data-wrap .ukps-overdue-notice { padding-top: 0; font-size: .7rem; line-height: 0; color: red; font-weight: 700; }
.account-view a.ukps-dashboard-btn, .account-view .ukps-download-btn {
  display: inline-flex; align-items: center; gap: 4px; padding: 6px; border: 1px solid var(--brand-accent); border-radius: 4px;
  background: var(--brand-accent); color: #fff; font: inherit; font-weight: 700; font-size: .8rem; line-height: 1.2; text-decoration: none; cursor: pointer;
}
.account-view a.ukps-dashboard-btn:hover, .account-view .ukps-download-btn:hover { background: #fff; color: var(--brand-accent); }
.account-view .ukps-download-btn .material-icons { font-size: 18px; }
.acct-ico { font-size: 1rem; vertical-align: middle; color: var(--brand-primary); font-variation-settings: 'FILL' 0, 'wght' 600; }
.acct-break { overflow-wrap: anywhere; }
.ukps-limits-chart { position: absolute; top: 0; right: 30px; width: 260px; opacity: .85; }
.ukps-limits-chart svg { display: block; width: 100%; height: auto; }

/* Document pages (invoices, credit notes, statements, payments, orders) */
.acct-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5em; margin: 0 0 12px; font-size: 18px; font-weight: 700; color: var(--brand-primary); text-decoration: underline; }
.acct-title small { font-size: .8em; font-weight: 400; color: var(--text-muted); }
.account-view__body h2 { font-size: 1.05rem; font-weight: 700; color: var(--brand-primary); margin: 16px 0 8px; }
.account-view__body.cms-content h2 { font-size: 32px; font-weight: 400; }
.acct-muted { color: var(--text-muted); font-size: .85rem; }

.acct-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin: 0 0 var(--space-half); }
.acct-filters label { display: grid; gap: 4px; font-weight: 700; font-size: .85rem; }
.acct-filters select { min-height: 32px; padding: 4px 8px; border: 1px solid var(--border); border-radius: 4px; background: var(--surface); font: inherit; }
.acct-filters__end { margin-left: auto; }
.acct-dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 var(--space-half); }
.acct-dl dt { font-weight: 700; }
.acct-dl dd { margin: 0; }
.acct-dl--inline { grid-template-columns: repeat(auto-fill, minmax(120px, max-content) minmax(140px, 1fr)); }
.acct-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.acct-page-info { margin: 12px 0 0; color: var(--text-muted); }
.button .material-icons { font-size: 18px; vertical-align: -4px; }

.table-wrap { overflow-x: auto; margin: 0 0 var(--space-half); }
.account-view .table-wrap { padding: 16px; background: #fff6; }
.acct-table { width: 100%; font-size: .85rem; background: transparent; margin: 0; border-collapse: collapse; }
.acct-table th, .acct-table td { padding: 8px 10px; border-bottom: 1px solid #0000001a; text-align: left; vertical-align: top; }
.acct-table thead th { background: none; color: var(--brand-primary); font-weight: 700; white-space: nowrap; border-bottom: 1px solid #0000004d; }
.acct-table tbody tr:nth-child(odd) { background: #00000006; }
.acct-table tbody tr:hover { background: #cccccc88; }
.acct-table tfoot th, .acct-table tfoot td { font-weight: 700; border-top: 1px solid #0000004d; border-bottom: 0; }
.acct-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.acct-table .col-check { width: 1%; }
.acct-docs { white-space: nowrap; }
.acct-docs a { display: inline-flex; align-items: center; gap: 2px; margin-right: 10px; }
.acct-docs .material-icons { font-size: 18px; color: var(--brand-accent); }

/* B2C web account area (t244u) */
.web-acct { margin: 0 0 8px; }
.web-acct__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 0 0 24px; }
.web-acct__card { background: #fff; border: 1px solid var(--border-soft, #0000001a); border-radius: var(--radius, 4px); padding: 16px 18px; }
.web-acct__card h3 { margin: 0 0 10px; font-size: 1.05rem; color: var(--brand-primary); }
.web-acct__dl { margin: 0 0 12px; }
.web-acct__dl > div { display: grid; grid-template-columns: 8em 1fr; gap: 4px 12px; padding: 4px 0; }
.web-acct__dl dt { margin: 0; color: var(--text-muted, #555); font-weight: 600; }
.web-acct__dl dd { margin: 0; }
.web-acct__dl--wide > div { grid-template-columns: 10em 1fr; }
.web-acct__addr { white-space: pre-line; margin: 0 0 8px; }
.web-acct__note { font-size: .9rem; color: var(--text-muted, #555); margin: 0 0 12px; }
.web-acct__default { display: inline-block; margin-left: .35em; padding: 0 8px; border-radius: 10px; background: #e9f5ec; color: #1b4b1e; font-size: .75rem; font-weight: 700; }
.web-acct__inline { display: inline; margin: 0 0 0 .5em; }
button.linkish { background: none; border: 0; padding: 0; color: var(--brand-accent, #0b57d0); cursor: pointer; font: inherit; text-decoration: underline; }
button.linkish:hover { color: var(--brand-primary); }
.web-acct__form { max-width: 720px; }
.web-acct__form fieldset { border: 0; margin: 0 0 20px; padding: 0; }
.web-acct__form legend h3, .web-acct__form legend { font-size: 1.1rem; font-weight: 700; color: var(--brand-primary); margin: 0 0 10px; }
.web-acct__form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin: 0 0 16px; }
.web-acct__wide { grid-column: 1 / -1; }
.web-acct .field { display: grid; gap: 4px; align-content: start; }
.web-acct .field__label { font-weight: 700; }
.web-acct .field__control input, .web-acct .field__control select {
  width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid var(--border, #ccc); border-radius: 4px; font: inherit;
}
.web-acct .field.has-error input, .web-acct .field.has-error select { border-color: #b3261e; }
.web-acct .field__error { color: #b3261e; margin: 0; font-size: .85rem; }
.web-acct .checkbox { display: block; margin: 0 0 12px; }
.web-acct__password { margin-top: 32px; padding-top: 16px; border-top: 1px solid #0000001a; }
.acct-pager { margin: 12px 0 0; font-size: .9rem; }
@media (max-width: 767px) {
  .web-acct__form-grid { grid-template-columns: 1fr; }
  .web-acct__dl > div, .web-acct__dl--wide > div { grid-template-columns: 1fr; }
}

.badge { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: .8rem; font-weight: 700; }
.badge--ok { background: #e9f5ec; color: #1b4b1e; }
.badge--warn { background: #fff3cd; color: #6d4c00; }
.badge--bad { background: #fbeaea; color: #6b1510; }

.acct-form { max-width: 720px; }
.acct-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin: 0 0 var(--space-half); }
.acct-form .form__field { margin: 0 0 12px; }
.acct-form .has-error input { border-color: #b3261e; }
.form__error { color: #b3261e; font-weight: 400; }
.acct-choices { border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 12px 16px; margin: 0 0 var(--space-half); }
.acct-choice { display: block; padding: 4px 0; }
/* Password tab (old form#frm-delivery) */
.account-view #frm-delivery { max-width: 480px; padding: 8px 0 0; }
.account-view .button--primary { background: var(--brand-accent); border-color: var(--brand-accent); color: #fff; }
.account-view .button--primary:hover { background: var(--brand-primary); border-color: var(--brand-primary); }

.print-only { display: none; }
@media (max-width: 990px) { .ukps-limits-chart { display: none; } }
@media (max-width: 767px) {
  .ukps-dashboard-wrap > section { max-width: none; flex-basis: 100%; }
  .acct-form__grid { grid-template-columns: 1fr; }
  .acct-filters__end { margin-left: 0; }
  .ukps-account-tabs { margin-left: 0; }
  .ukps-account-tabs li a { font-size: .8rem; padding: 6px 8px; }
}
@media print {
  .site-header, .site-footer, .acct-tabs, .ukps-account-subnav-wrap, .acct-area__title, .breadcrumbs, .no-print, .flashes { display: none !important; }
  .print-only { display: block; }
  .account-view { background: none; padding: 0; }
  .acct-table thead th { background: none; color: #000; border-bottom: 2px solid #000; }
  a[href]::after { content: none !important; }
}

/* Old DataTables look: options bar, length/search controls, pager, totals footer */
.ukps-invoice-options-wrap, .ukps-statement-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 32px; margin: 0 0 12px; padding: 4px 8px; border-radius: 5px;
  background: var(--brand-ink); color: #fff; font-weight: 700; font-size: .85rem;
}
.ukps-invoice-options-wrap label, .ukps-statement-bar label { display: inline-flex; align-items: center; gap: 8px; }
.ukps-invoice-options-wrap select, .ukps-statement-bar select { min-height: 28px; padding: 2px 6px; border: 1px solid #ccc; border-radius: 3px; background: #fff; color: #333; font: inherit; font-weight: 400; }
.ukps-invoice-options-wrap .ukps-download-btn { margin: 2px 0 2px auto; }
.acct-dt { margin: 0 0 var(--space-half); padding: 12px; background: #fff6; border-radius: 4px; }
.acct-dt__top, .acct-dt__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; font-size: .85rem; }
.acct-dt__top { margin: 0 0 8px; }
.acct-dt__bottom { margin: 8px 0 0; }
.acct-dt__top select, .acct-dt__top input { min-height: 28px; padding: 2px 6px; border: 1px solid #aaa; border-radius: 3px; background: #fff; font: inherit; }
.acct-dt__top input { width: 180px; margin-left: 6px; }
.acct-dt__scroll { overflow-x: auto; }
.acct-dt__pager { display: flex; gap: 2px; }
.acct-dt__pager button {
  min-width: 30px; padding: 4px 8px; border: 1px solid transparent; border-radius: 2px; background: none; font: inherit; color: #333; cursor: pointer;
}
.acct-dt__pager button:hover:not(:disabled) { border-color: #111; background: linear-gradient(#585858, #111); color: #fff; }
.acct-dt__pager button.is-current { border-color: #979797; background: linear-gradient(#fff, #dcdcdc); }
.acct-dt__pager button:disabled { color: #999; cursor: default; }
.acct-datatable thead th[data-sort] { position: relative; padding-right: 22px; cursor: pointer; user-select: none; }
.acct-datatable thead th[data-sort]::after { content: "\2195"; position: absolute; right: 6px; opacity: .3; font-weight: 400; }
.acct-datatable thead th[data-sort="asc"]::after { content: "\25B2"; opacity: .8; font-size: .7em; top: 50%; transform: translateY(-50%); }
.acct-datatable thead th[data-sort="desc"]::after { content: "\25BC"; opacity: .8; font-size: .7em; top: 50%; transform: translateY(-50%); }
.acct-datatable thead th[data-sort="none"]::after { content: "\2195"; }
.acct-datatable .center { text-align: center; }
.acct-datatable tfoot { background: #cccccccc; }
.acct-datatable tfoot th { text-align: right; padding: 6px 10px; }
.acct-datatable tbody tr.js-selectable { cursor: pointer; }
.acct-datatable tbody tr.is-selected, .acct-datatable tbody tr.is-selected:hover { background: #b0bed9; }
.acct-datatable .acct-dt__empty td { text-align: center; color: var(--text-muted); }
.acct-row-check { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.acct-balance { font-size: .75rem; font-style: italic; color: red; }
.acct-view-icons { white-space: nowrap; }
.acct-view-icons a { display: inline-block; margin: 0 2px; color: var(--brand-primary); text-decoration: none; }
.acct-view-icons .material-symbols-outlined { font-size: 22px; vertical-align: middle; }
.acct-view-icons a:hover { color: var(--brand-accent); }
.acct-hint { margin: 4px 0 0; font-size: .8rem; color: var(--text-muted); }
.acct-selected-count { font-weight: 400; }
.no-table-results { padding: 8px 0; }
.no-table-results p { margin: 0; }

/* Statements: PDF viewer area (old #pdf-statement iframe, 800px, 2px border) */
.ukps-statement-viewer { min-height: 360px; margin: 0 0 16px; border: 2px solid #ccc; border-radius: 4px; background: #fff; }
.ukps-statement-viewer object { display: block; height: 800px; }
.ukps-statement-pending { display: grid; justify-items: center; gap: 4px; max-width: 520px; margin: 0 auto; padding: 64px 16px; text-align: center; color: #555; }
.ukps-statement-pending .material-symbols-outlined { font-size: 56px; color: #bbb; }
.ukps-statement-pending p { margin: 0; }

/* t241u: phone / touch fallback — hide the embed and month select, show one button per month */
.ukps-statement-months { display: none; margin: 0 0 16px; }
.ukps-statement-months__lead { margin: 0 0 10px; font-size: .95rem; color: #333; }
.ukps-statement-months__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ukps-statement-months__item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; border: 1px solid #ccc; border-radius: 6px; background: #fff;
}
.ukps-statement-months__item.is-current { border-color: var(--brand-ink, #1c1c1b); box-shadow: inset 3px 0 0 var(--brand-ink, #1c1c1b); }
.ukps-statement-months__open { flex: 1; min-width: 0; font-weight: 700; color: var(--brand-primary); text-decoration: none; }
.ukps-statement-months__open:hover, .ukps-statement-months__open:focus-visible { text-decoration: underline; }
.ukps-statement-months__download { flex-shrink: 0; font-size: .85rem; color: var(--text-muted, #555); text-decoration: underline; }
@media (max-width: 767px) {
  .ukps-statements.has-pdf .ukps-statement-bar,
  .ukps-statements.has-pdf .ukps-statement-viewer { display: none; }
  .ukps-statements.has-pdf .ukps-statement-months { display: block; }
}
html.is-pdf-external .ukps-statements.has-pdf .ukps-statement-bar,
html.is-pdf-external .ukps-statements.has-pdf .ukps-statement-viewer { display: none; }
html.is-pdf-external .ukps-statements.has-pdf .ukps-statement-months { display: block; }
.acct-statement-summary { margin: 0 0 8px; }
.acct-statement-summary > summary { cursor: pointer; font-weight: 700; color: var(--brand-primary); margin: 0 0 8px; }

/* Request Change (old plumbcity form) */
.ukps-request-change { max-width: 760px; }
.ukps-rc-account { margin: 0 0 12px; font-size: .95rem; }
.ukps-rc-account span { color: red; font-size: 1.2rem; }
.ukps-rc-question { font-weight: 700; margin: 0 0 4px; }
ul.reason-for-change { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
ul.reason-for-change li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 10px; background: var(--brand-primary); color: #fff; }
ul.reason-for-change li input { zoom: 1.75; margin: 0; accent-color: var(--brand-accent); }
ul.reason-for-change li label { cursor: pointer; font-weight: 700; }
.ukps-rc-msg p { margin: 0 0 8px; }
.ukps-rc-section { margin: 0 0 16px; padding: 0; border: 0; }
.ukps-rc-section > legend { padding: 0; margin: 0 0 8px; font-weight: 700; color: var(--brand-primary); text-decoration: underline; }
.ukps-rc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
.ukps-request-change .field-wrap { display: grid; gap: 4px; }
.ukps-request-change .ph-text { font-weight: 700; font-size: .85rem; display: inline-flex; align-items: center; gap: 4px; }
.ukps-request-change input[type=text], .ukps-request-change input[type=tel], .ukps-request-change input[type=number] {
  width: 100%; min-height: 34px; padding: 4px 8px; border: 1px solid #aaa; border-radius: 3px; background: #fff; font: inherit; box-sizing: border-box;
}
.ukps-request-change input[readonly] { background: #f3f3f3; color: #666; }
.ukps-request-change .has-error input { border-color: #b3261e; }
.ukps-request-change .error-msg { color: #b3261e; font-size: .8rem; }
.ukps-rc-money { display: flex; align-items: center; gap: 6px; max-width: 240px; font-weight: 700; }
.ukps-tip { display: inline-flex; color: var(--brand-primary); cursor: help; }
.ukps-tip .material-symbols-outlined { font-size: 18px; }
.ukps-rc-submit { margin: 8px 0; }
.ukps-rc-submit .ukps-dashboard-btn { display: inline-flex; padding: 8px 24px; border: 1px solid var(--brand-accent); border-radius: 4px; background: var(--brand-accent); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.ukps-rc-submit .ukps-dashboard-btn:hover { background: #fff; color: var(--brand-accent); }
.ukps-rc-footnote { margin: 8px 0 0; color: red; font-size: .85rem; }
.ukps-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 767px) {
  .ukps-rc-grid { grid-template-columns: 1fr; }
  .ukps-invoice-options-wrap .ukps-download-btn { margin-left: 0; }
  .acct-dt__top input { width: 140px; }
}
@media print { .acct-dt__top, .acct-dt__bottom, .acct-switch { display: none !important; } .acct-statement-summary > summary { display: none; } }

/* ---------------------------------------------------------------- customer sign-in (matches the old UKPS /account/login.html page) */
.login-page { color: #333; line-height: 16px; }
.container.page.login-page.login-page { padding-bottom: 0; }
.login-page__heading h1 { margin: 0 0 16px; font-size: 32px; line-height: normal; font-weight: 400; color: var(--brand-ink); }
.login-page__cols { display: grid; grid-template-columns: 1fr 1fr; column-gap: 30px; align-items: start; }
.login-page .alert { margin-bottom: 16px; }
.login-well { margin: 0 0 20px; padding: 19px; background: #f5f5f5; border: 1px solid #e3e3e3; border-radius: 4px; box-shadow: inset 0 1px 1px rgb(0 0 0 / .05); }
.login-well fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.login-well .field { margin: 0 0 20px; }
.login-well .field__label { display: block; margin: 0 0 8px; font-size: 14px; line-height: 20px; font-weight: 600; color: #333; }
.login-well .required { cursor: pointer; }
.login-well .field__control input[type=text],
.login-well .field__control input[type=email],
.login-well .field__control input[type=password] {
  display: block; width: 100%; max-width: 100%; height: 40px; margin: 0; padding: 8px 12px; box-sizing: border-box;
  font: inherit; font-size: 16px; line-height: 20px; color: #555; background: #fff;
  border: 1px solid #ccc; border-radius: 4px; box-shadow: inset 0 1px 1px rgb(0 0 0 / .075);
}
.login-well input:focus { border-color: var(--brand-ink); outline: 0; box-shadow: inset 0 1px 1px rgb(0 0 0 / .075), 0 0 0 3px rgb(0 51 105 / .2); }
.login-well .control-group { margin: 0 0 10px; }
.login-well__submit {
  display: inline-block; margin: 0; padding: 12px 20px; border: 0; border-radius: 4px; cursor: pointer;
  font: inherit; font-size: 16px; line-height: 24px; font-weight: 400; color: #e6ebf0; background: var(--brand-ink);
}
.login-well__submit:hover, .login-well__submit:focus { background: var(--brand-primary); color: #fff; }
.login-well__forgot { margin-top: 8px; }
.login-well__forgot a { color: var(--brand-ink); text-decoration: none; font-size: 16px; }
.login-well__forgot a:hover { text-decoration: underline; }
.login-page__aside .cmspg-content { margin: 0; }
.login-page__aside .ukps-account-access-instructions { margin: 0; }
.login-page__aside h3 { margin: 0 0 10px; font-size: 1.4rem; line-height: 1.2; font-weight: 400; color: var(--brand-ink); }
.login-page__aside h3 a { color: inherit; text-decoration: none; }
.login-page__aside p { margin: 0 0 16px; font-size: 1.1rem; line-height: 1.3; color: #333; }
.login-page__aside p a { color: var(--brand-ink); text-decoration: underline; }
@media (max-width: 767px) {
  .container.page.login-page.login-page { padding: 0; }
  .login-page__heading h1 { margin: 8px; }
  .login-page__cols { grid-template-columns: 1fr; }
  .login-well { border-radius: 4px; }
  .login-well .field__control input[type=text],
  .login-well .field__control input[type=email],
  .login-well .field__control input[type=password] { width: 100%; height: 44px; padding: 12px 16px; }
  .login-well__submit { font-size: 18px; line-height: 27px; padding: 14px 24px; }
  .login-page__aside .ukps-account-access-instructions { margin: 16px; }
  .login-page__aside p { margin-bottom: 8px; }
}

/* contain child margins like live (bootstrap .container clearfix): keeps 32px grey below policy tiles */
.cms-block-section__inner-container { display: flow-root; }

/* ---------------------------------------------------------------- Location details block (one-location sites) */
.location-card { display: grid; grid-template-columns: minmax(260px, 1fr) 2fr; gap: 24px; margin: 0 0 32px; }
.location-card__name { margin: 0 0 4px; color: var(--brand-primary); }
.location-card__type { margin: 0 0 12px; color: var(--action-sub, #666); }
.location-card__address { font-style: normal; margin: 0 0 12px; line-height: 1.5; }
.location-card__contact { list-style: none; margin: 0 0 16px; padding: 0; }
.location-card__contact li { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; }
.location-card__contact .material-icons { font-size: 20px; color: var(--action-icon, var(--brand-primary)); }
.location-card__hours-title { margin: 8px 0 6px; font-size: 1.05rem; }
.location-card__hours { border-collapse: collapse; }
.location-card__hours th, .location-card__hours td { text-align: left; padding: 3px 16px 3px 0; font-weight: normal; vertical-align: top; }
.location-card__hours th { font-weight: 700; }
.location-card__notes { margin-top: 12px; font-size: .9rem; }
.location-card__map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; }
@media (max-width: 800px) { .location-card { grid-template-columns: 1fr; } .location-card__map iframe { min-height: 300px; } }

/* ---------------------------------------------------------------- locator brand panel
   brand-panel.js: the up-arrow tab above the map's top-right opens an animated panel over the
   "Location Finder" title ("Use your <Brand> account number at any UKPS branded location").
   Colours come from each site's tokens (--brand-primary / --brand-accent). */
.ukps-title-wrapper.ukps-brand-panel-host { position: relative; z-index: 3; --ukps-bp-gap: 8px; --ukps-bp-tab-h: 16px; }
.ukps-brand-panel-toggle {
  position: absolute; right: 0; bottom: calc(-1 * var(--ukps-bp-gap)); z-index: 4; display: flex; align-items: center; justify-content: center;
  width: 30px; height: var(--ukps-bp-tab-h); overflow: hidden; padding: 0; border: 0; border-radius: 4px 4px 0 0; cursor: pointer;
  color: #fff; background: var(--brand-accent); box-shadow: 0 -1px 3px rgba(0,0,0,.15);
  opacity: 1; visibility: visible; transition: background-color .2s ease, opacity .25s ease, visibility 0s linear 0s;
}
/* while the panel is open the tab is hidden (not focusable, not announced); X / Esc close the panel and bring it back */
.ukps-brand-panel-toggle.is-open { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, visibility 0s linear .2s; }
.ukps-brand-panel-toggle .material-icons { font-size: 26px; line-height: 16px; transition: transform .3s ease; }
.ukps-brand-panel-toggle:hover .material-icons { transform: translateY(-2px); }
.ukps-brand-panel-toggle.is-open:hover .material-icons { transform: rotate(180deg) translateY(-2px); }
.ukps-brand-panel-toggle.is-open .material-icons { transform: rotate(180deg); }
.ukps-brand-panel-toggle:focus-visible, .ukps-brand-panel__close:focus-visible { outline: 3px solid var(--brand-accent); outline-offset: 2px; }
.ukps-brand-panel-toggle:not(.is-open) .material-icons { animation: ukps-bp-nudge 2.4s ease-in-out 3s 2; }

.ukps-brand-panel {
  position: absolute; inset: 0 0 calc(var(--ukps-bp-tab-h) - var(--ukps-bp-gap)) 0; z-index: 3; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 46%) 34px;
  align-items: center; gap: 10px; padding: 0 4px 0 16px; overflow: hidden; border-radius: 4px;
  color: #fff; background: var(--brand-primary);
  background-image: linear-gradient(115deg, rgba(255,255,255,.14) 0 38%, transparent 38% 41%, rgba(0,0,0,.12) 41%);
  box-shadow: 0 6px 18px rgba(0,0,0,.22), inset 0 -4px 0 var(--brand-accent);
  clip-path: inset(100% 0 0 0 round 4px);
}
.ukps-brand-panel[hidden] { display: none; }
.ukps-brand-panel.is-open { animation: ukps-bp-rise .55s cubic-bezier(.2,.9,.25,1.15) forwards; }
.ukps-brand-panel.is-closing { animation: ukps-bp-sink .4s ease-in forwards; }
.ukps-brand-panel__glow { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-120%); }
.ukps-brand-panel.is-playing .ukps-brand-panel__glow { animation: ukps-bp-sheen 1.6s ease-out .5s, ukps-bp-sheen 1.6s ease-out 7.4s; }

.ukps-brand-panel__msgs { position: relative; height: 100%; min-width: 0; }
.ukps-brand-panel__msg {
  position: absolute; left: 0; right: 0; top: 50%; margin: 0; font-size: 1.05rem; line-height: 1.2; font-weight: 400;
  opacity: 0; transform: translateY(40%) scale(.96); text-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.ukps-brand-panel__msg strong { font-weight: 700; color: #fff; }
.ukps-brand-panel__msg .material-icons { font-size: 1.3em; vertical-align: -.25em; color: var(--brand-accent); }
.ukps-brand-panel__msg--3 strong.ukps-brand-panel__count {
  display: inline-block; min-width: 2.2ch; padding: 0 .3em; border-radius: 3px; color: var(--brand-primary); background: #fff;
  font-variant-numeric: tabular-nums; text-align: center; text-shadow: none;
}
.ukps-brand-panel.is-playing .ukps-brand-panel__msg--1 { animation: ukps-bp-in .5s ease-out .45s forwards, ukps-bp-out .45s ease-in 3.2s forwards; }
.ukps-brand-panel.is-playing .ukps-brand-panel__msg--1 .material-icons { animation: ukps-bp-pop .6s ease-out .7s 2; }
.ukps-brand-panel.is-playing .ukps-brand-panel__msg--2 { animation: ukps-bp-in .5s ease-out 3.6s forwards, ukps-bp-out .45s ease-in 6.7s forwards; }
.ukps-brand-panel.is-playing .ukps-brand-panel__msg--3 { animation: ukps-bp-in .6s cubic-bezier(.2,.9,.25,1.2) 7.1s forwards; }

.ukps-brand-panel__logos {
  display: flex; height: 100%; align-items: center; overflow: hidden; opacity: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.ukps-brand-panel.is-playing .ukps-brand-panel__logos { animation: ukps-bp-fade .8s ease .9s forwards; }
.ukps-brand-panel__track { display: flex; flex: none; gap: 8px; margin: 0; padding: 0 8px 0 0; list-style: none; }
.ukps-brand-panel.is-playing .ukps-brand-panel__track { animation: ukps-bp-marquee 26s linear infinite; }
.ukps-brand-panel__chip {
  --chip-h: 40px; display: flex; flex: none; align-items: center; gap: 6px; height: var(--chip-h); padding: 0 12px 0 0; border-radius: calc(var(--chip-h) / 2); overflow: hidden;
  color: var(--brand-ink, #333); background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); font-size: .78rem; white-space: nowrap;
}
.ukps-brand-panel__chip img { flex: none; width: var(--chip-h); height: var(--chip-h); object-fit: contain; background: #fff;
  border-radius: calc(var(--chip-h) / 2) 0 0 calc(var(--chip-h) / 2); }
.ukps-brand-panel__close {
  display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%;
  cursor: pointer; color: #fff; background: rgba(0,0,0,.18); transition: background-color .2s ease;
}
.ukps-brand-panel__close:hover { background: rgba(0,0,0,.35); }
.ukps-brand-panel__close .material-icons { font-size: 20px; }

/* reduced motion: the final message and a static logo row, no movement */
.ukps-brand-panel.is-static, .ukps-brand-panel.is-static.is-open { animation: none; clip-path: none; }
.ukps-brand-panel.is-static .ukps-brand-panel__msg--1, .ukps-brand-panel.is-static .ukps-brand-panel__msg--2,
.ukps-brand-panel.is-static .ukps-brand-panel__track--dup, .ukps-brand-panel.is-static .ukps-brand-panel__glow { display: none; }
.ukps-brand-panel.is-static .ukps-brand-panel__msg--3, .ukps-brand-panel.is-static .ukps-brand-panel__logos { animation: none; opacity: 1; transform: translateY(-50%); }
.ukps-brand-panel.is-static .ukps-brand-panel__logos { transform: none; }
.ukps-brand-panel.is-static .ukps-brand-panel__track { animation: none; flex-wrap: nowrap; }
@media (prefers-reduced-motion: reduce) { .ukps-brand-panel-toggle, .ukps-brand-panel-toggle.is-open, .ukps-brand-panel-toggle .material-icons { animation: none; transition: none; } }

@media (max-width: 767px) {
  .ukps-title-wrapper.ukps-brand-panel-host { --ukps-bp-gap: 0px; }
  .ukps-brand-panel { bottom: 0; grid-template-columns: minmax(0, 1fr) 30px; grid-template-rows: 32px 1fr; gap: 0 6px; padding: 1px 4px 4px 10px; }
  .ukps-brand-panel__msgs { grid-column: 1; grid-row: 1; }
  .ukps-brand-panel__logos { grid-column: 1; grid-row: 2; }
  .ukps-brand-panel__close { grid-column: 2; grid-row: 1; width: 26px; height: 26px; }
  .ukps-brand-panel__msg { font-size: .76rem; line-height: 1.1; }
  .ukps-brand-panel__chip { --chip-h: 22px; padding: 0 8px 0 0; font-size: .68rem; gap: 4px; }
}

/* the whole panel as an inline strip that replays on a loop: UKPSBrandPanel.strip() (the branch picker, t152u).
   Same messages, timing and chips; it sits in the flow (no rise / tab / close), the logos scroll the whole
   time (they don't restart with each message cycle), and the last message fades before the next cycle. */
.ukps-brand-panel--inline {
  position: relative; inset: auto; z-index: auto; grid-template-columns: minmax(0, 1fr) minmax(0, 36%); gap: 14px;
  min-height: 56px; padding: 0 0 0 20px; border-radius: 0; clip-path: none; box-shadow: inset 0 -3px 0 var(--brand-accent);
}
.ukps-brand-panel--inline.is-open { animation: none; }
.ukps-brand-panel--inline .ukps-brand-panel__msgs { min-height: 56px; }
.ukps-brand-panel--inline .ukps-brand-panel__msg { font-size: 1rem; }
.ukps-brand-panel--inline .ukps-brand-panel__logos { opacity: 1; animation: none; }
.ukps-brand-panel--inline .ukps-brand-panel__track,
.ukps-brand-panel--inline.is-playing .ukps-brand-panel__track { animation: ukps-bp-marquee var(--ukps-bt-dur, 40s) linear infinite; will-change: transform; }
.ukps-brand-panel--inline:hover .ukps-brand-panel__track { animation-play-state: paused; }
.ukps-brand-panel--inline .ukps-brand-panel__chip { --chip-h: 34px; }
.ukps-brand-panel--inline.is-playing .ukps-brand-panel__msg--3 {
  animation: ukps-bp-in .6s cubic-bezier(.2,.9,.25,1.2) 7.1s forwards, ukps-bp-out .5s ease-in 15.4s forwards;
}
.ukps-brand-panel--inline.is-static .ukps-brand-panel__track { animation: none; }
.ukps-brand-panel--inline.is-static .ukps-brand-panel__logos { overflow-x: auto; scrollbar-width: none; }
@media (prefers-reduced-motion: reduce) {
  .ukps-brand-panel--inline .ukps-brand-panel__track { animation: none; }
}
@media (max-width: 767px) {
  .ukps-brand-panel--inline { grid-template-columns: minmax(0, 1fr); grid-template-rows: 36px 30px; gap: 2px 0; min-height: 0; padding: 4px 0 7px 12px; }
  .ukps-brand-panel--inline .ukps-brand-panel__msgs { grid-column: 1; grid-row: 1; min-height: 0; margin-right: 12px; }
  .ukps-brand-panel--inline .ukps-brand-panel__logos { grid-column: 1; grid-row: 2; }
  .ukps-brand-panel--inline .ukps-brand-panel__msg { font-size: .8rem; line-height: 1.15; }
  .ukps-brand-panel--inline .ukps-brand-panel__chip { --chip-h: 26px; padding: 0 8px 0 0; font-size: .68rem; gap: 4px; }
}

@keyframes ukps-bp-rise { from { clip-path: inset(100% 0 0 0 round 4px); transform: translateY(12px); } to { clip-path: inset(0 0 0 0 round 4px); transform: none; } }
@keyframes ukps-bp-sink { from { clip-path: inset(0 0 0 0 round 4px); } to { clip-path: inset(100% 0 0 0 round 4px); transform: translateY(10px); } }
@keyframes ukps-bp-in { from { opacity: 0; transform: translateY(40%) scale(.96); filter: blur(3px); } to { opacity: 1; transform: translateY(-50%) scale(1); filter: none; } }
@keyframes ukps-bp-out { from { opacity: 1; transform: translateY(-50%); } to { opacity: 0; transform: translateY(-140%); } }
@keyframes ukps-bp-fade { to { opacity: 1; } }
@keyframes ukps-bp-marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@keyframes ukps-bp-sheen { from { transform: translateX(-120%); } to { transform: translateX(120%); } }
@keyframes ukps-bp-pop { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.35) rotate(-8deg); } }
@keyframes ukps-bp-nudge { 0%, 100% { transform: none; } 20% { transform: translateY(-4px); } 40% { transform: none; } 55% { transform: translateY(-2px); } }

/* ---------------------------------------------------------------- store locator on phones (t125u)
   After the live www.ukps.com mobile finder (locations6-mobile.js + mobile-map.css): below 768px the
   finder fills the screen under the search bar, the map OR the list shows (map first), a fixed bottom
   bar switches Map / List / Info, and a tapped card or pin opens that location's details in a sheet over
   the map/list. locations6.js adds .ukps-is-mobile (plus .ukps-m-map / .ukps-m-list) and sets --ukps-m-h
   to the height left above the bar. Desktop: the bar and the sheet are never shown. */
#ukps-map-wrapper .ukps-mobile-footer, #ukps-map-wrapper #ukps-store-mobile-overlay, #ukps-stores-controls .ukps-go-icon { display: none; }
@media (max-width: 767px) {
  body:has(#ukps-map-wrapper.ukps-is-mobile) .site-footer { display: none; }
  body:has(#ukps-map-wrapper.ukps-is-mobile) { padding-bottom: calc(50px + env(safe-area-inset-bottom)); }
  body:has(#ukps-map-wrapper.ukps-is-mobile) .cms-block-section__body { padding: 0; }
  body #ukps-map-wrapper.ukps-is-mobile .ukps-map-list-wrapper {
    position: relative; height: var(--ukps-m-h, calc(100dvh - 200px)); grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto minmax(0, 1fr); gap: 0;
  }
  body #ukps-map-wrapper.ukps-is-mobile #ukps-map-4,
  body #ukps-map-wrapper.ukps-is-mobile #ukps-stores-list { grid-row: 3; grid-column: 1; height: auto; min-height: 0; margin: 0; }
  body #ukps-map-wrapper.ukps-is-mobile #ukps-stores-list { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 8px 8px 12px; }
  body #ukps-map-wrapper.ukps-is-mobile.ukps-m-map #ukps-stores-list,
  body #ukps-map-wrapper.ukps-is-mobile.ukps-m-list #ukps-map-4 { display: none; }
  /* search bar: one row, Filter (and Sort in the list); Settings, Info and the result note live elsewhere */
  body #ukps-map-wrapper.ukps-is-mobile #ukps-stores-controls { grid-template-columns: minmax(0, 1fr) 128px; gap: 8px; width: auto; padding: 8px; }
  body #ukps-map-wrapper.ukps-is-mobile.ukps-m-map #ukps-stores-controls { grid-template-columns: minmax(0, 1fr) 64px; }
  body #ukps-map-wrapper.ukps-is-mobile #ukps-stores-controls #postcode-search { width: 100%; height: 36px; padding: 6px 70px 6px 8px; font-size: 1rem; box-sizing: border-box; }
  body #ukps-map-wrapper.ukps-is-mobile #ukps-stores-controls #search-button { top: 0; right: 0; height: 36px; width: 40px; padding: 0; border-radius: 0 3px 3px 0; }
  body #ukps-map-wrapper.ukps-is-mobile #ukps-stores-controls .ukps-go-text { display: none; }
  body #ukps-map-wrapper.ukps-is-mobile #ukps-stores-controls .ukps-go-icon { display: inline-block; color: #fff; vertical-align: middle; }
  body #ukps-map-wrapper.ukps-is-mobile .ukps-reset-search { top: 6px; right: 46px; font-size: 1.4rem; }
  body #ukps-map-wrapper.ukps-is-mobile .ukps-result-settings,
  body #ukps-map-wrapper.ukps-is-mobile #ukps-stores-controls .ukps-filter-results { display: none; }
  body #ukps-map-wrapper.ukps-is-mobile #ukps-stores-controls .ukps-filters-wrapper { height: 36px; line-height: 36px; }
  body #ukps-map-wrapper.ukps-is-mobile.ukps-m-map #ukps-stores-controls .ukps-filters-wrapper { grid-template-columns: 1fr; }
  body #ukps-map-wrapper.ukps-is-mobile.ukps-m-map #ukps-stores-controls .ukps-sort-link { display: none; }
  body #ukps-map-wrapper.ukps-is-mobile div#use-my-location { top: 36px; left: 0; right: auto; bottom: auto; width: calc(100% - 136px); min-width: 210px; padding: 0 10px; border-radius: 0 0 3px 3px; box-shadow: 0 4px 10px rgb(0 0 0 / .2); }
  body #ukps-map-wrapper.ukps-is-mobile div#use-my-location-link { padding: 14px 0; border-bottom: 1px solid #888; font-size: 1rem; }
  body #ukps-map-wrapper.ukps-is-mobile .ukps-postcode-search-wrapper .search-brand-wrapper { position: static; margin: 0; padding: 14px 0; font-size: 1rem; line-height: 20px; }
  /* Filter / Sort / Info menus fill the finder below the search bar */
  body #ukps-map-wrapper.ukps-is-mobile #ukps-stores-controls .ukps-filters-wrapper { position: static; }
  body #ukps-map-wrapper.ukps-is-mobile #ukps-stores-controls .ukps-filter-overlay,
  body #ukps-map-wrapper.ukps-is-mobile #ukps-stores-controls .ukps-sort-overlay,
  body #ukps-map-wrapper.ukps-is-mobile #ukps-stores-controls .ukps-settings-overlay,
  body #ukps-map-wrapper.ukps-is-mobile #ukps-stores-controls .ukps-info-overlay {
    position: absolute; top: 52px; left: 0; right: 0; width: auto; max-height: calc(var(--ukps-m-h, 70vh) - 120px); overflow-y: auto;
    border-radius: 0; box-sizing: border-box; box-shadow: 0 6px 14px rgb(0 0 0 / .2);
  }
  /* list: name cards only; the details open in the sheet */
  body #ukps-map-wrapper.ukps-is-mobile #ukps-stores-list .ukps-mobile-toggle-details,
  body #ukps-map-wrapper.ukps-is-mobile #ukps-stores-list ul.store-data,
  body #ukps-map-wrapper.ukps-is-mobile #ukps-stores-list .ukps-mobile-buttons { display: none !important; }
  body #ukps-map-wrapper.ukps-is-mobile #ukps-stores-list div.ukps-store { padding: 6px 10px 8px; margin-bottom: 6px; }
  body #ukps-map-wrapper.ukps-is-mobile #ukps-stores-list div.ukps-store h3 { margin: 0 34px 0 0; padding-top: 8px; position: relative; top: auto !important; }
  body #ukps-map-wrapper.ukps-is-mobile #ukps-stores-list img.ukps-brand-logo { right: -30px; top: 3px; }
  /* details sheet */
  body #ukps-map-wrapper.ukps-is-mobile #ukps-store-mobile-overlay:not(:empty) {
    position: absolute; inset: 0; z-index: 40; display: block; padding: 0 12px 16px; overflow-y: auto; overscroll-behavior: contain;
    background: #fff; box-shadow: 0 -2px 10px rgb(0 0 0 / .15);
  }
  body #ukps-map-wrapper.ukps-is-mobile #ukps-store-mobile-overlay:empty { display: none !important; }
  #ukps-store-mobile-overlay .ukps-mobile-overlay-close {
    position: sticky; top: 8px; float: right; z-index: 3; display: grid; place-items: center; width: 34px; height: 34px; margin: 8px -4px 0 8px; padding: 0;
    border: 0; border-radius: 50%; cursor: pointer; color: #fff; background: var(--brand-primary);
  }
  #ukps-store-mobile-overlay .ukps-mobile-overlay-close .material-icons { font-size: 22px; }
  #ukps-store-mobile-overlay .ukps-mobile-overlay-close:focus-visible { outline: 3px solid var(--brand-accent); outline-offset: 2px; }
  #ukps-store-mobile-overlay div.ukps-store { margin: 0; padding: 0; border: 0; background: transparent !important; }
  #ukps-store-mobile-overlay div.ukps-store h3 {
    position: sticky; top: 0; z-index: 2; margin: 0 -12px; padding: 12px 54px 8px 12px; cursor: default;
    background: #fff !important; border-bottom: 1px solid var(--border);
  }
  #ukps-store-mobile-overlay h3 .ukps-brand-name { font-size: 0.65em; line-height: 1; }
  #ukps-store-mobile-overlay h3 .ukps-location-name { font-weight: 400; }
  #ukps-store-mobile-overlay img.ukps-brand-logo { right: 50px; top: 8px; }
  #ukps-store-mobile-overlay ul.store-data { display: block !important; margin-top: 8px; font-size: .95rem; }
  #ukps-store-mobile-overlay ul.store-data > li { display: list-item; margin: 10px 0; }
  #ukps-store-mobile-overlay ul.store-data > li.ukps-list-address { display: grid; grid-template-columns: 25px 1fr; }
  #ukps-store-mobile-overlay .ukps-opening-times-list { display: block; }
  #ukps-store-mobile-overlay .ukps-opening-time-wrapper { list-style: none; padding-left: 28px; }
  #ukps-store-mobile-overlay .ukps-opening-time-wrapper li { margin: 0; line-height: 18px; }
  #ukps-store-mobile-overlay a { color: var(--brand-primary); text-decoration: underline; }
  #ukps-store-mobile-overlay .ukps-location-image-wrap-wrapper { position: relative; max-width: 475px; margin-bottom: 10px; }
  #ukps-store-mobile-overlay .ukps-location-image-wrap, #ukps-store-mobile-overlay li.ukps-store-photo img { max-width: 100%; height: auto; }
  #ukps-store-mobile-overlay .ukps-mobile-buttons { display: none; }
  /* bottom bar */
  body #ukps-map-wrapper.ukps-is-mobile .ukps-mobile-footer {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
    height: calc(50px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); box-sizing: border-box;
    text-align: center; background: rgb(255 255 255 / .25); border-top: 1px solid rgb(0 0 0 / .15);
  }
  body #ukps-map-wrapper.ukps-is-mobile .ukps-mobile-footer > div {
    padding-top: 4px; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
    color: rgb(255 255 255 / .8); background: var(--locator-bar-bg, var(--mobile-bar-bg, var(--brand-primary)));
  }
  body #ukps-map-wrapper.ukps-is-mobile .ukps-mobile-footer > div > div { font-size: .8rem; line-height: 1.1; }
  body #ukps-map-wrapper.ukps-is-mobile .ukps-mobile-footer .material-icons { font-size: 1.7rem; color: inherit; }
  body #ukps-map-wrapper.ukps-is-mobile .ukps-mobile-footer > div.active { color: #fff; box-shadow: inset 0 3px 0 var(--brand-accent); }
  body #ukps-map-wrapper.ukps-is-mobile .ukps-mobile-footer > div.active .material-icons { color: var(--brand-accent); }
  body #ukps-map-wrapper.ukps-is-mobile .ukps-mobile-footer > div:focus-visible { outline: 3px solid var(--brand-accent); outline-offset: -3px; }
  /* map reset (zoom_out_map) button, top left under Google's own controls */
  .ukps-map-reset-button {
    width: 40px; height: 40px; margin: 10px 0 0 10px; padding: 8px; border: 0; border-radius: 2px; cursor: pointer;
    color: #5e5e5e; background: #fff; box-shadow: rgb(0 0 0 / .3) 0 1px 4px -1px;
  }
  .ukps-map-reset-button .ukps-map-button-icon { font-size: 1.5rem !important; color: #5e5e5e !important; }
  body:has(#ukps-map-wrapper.ukps-is-mobile) [id^=cookiescript_badge] { bottom: 60px !important; }
}
@media (max-width: 400px) {
  body #ukps-map-wrapper.ukps-is-mobile #ukps-stores-controls { grid-template-columns: minmax(0, 1fr) 84px; }
  body #ukps-map-wrapper.ukps-is-mobile.ukps-m-map #ukps-stores-controls { grid-template-columns: minmax(0, 1fr) 44px; }
  body #ukps-map-wrapper.ukps-is-mobile #ukps-stores-controls .ukps-filters-wrapper span { display: none; }
}

/* Gas Safe logo and ID-card capture (t201) */
img.gas-safe-logo { display: inline-block; vertical-align: middle; flex: none; align-self: center; object-fit: contain; }
img.gas-safe-logo--page { height: 76px; width: auto; max-width: 72px; max-height: 80px; margin: 0; object-fit: contain; }
img.gas-safe-logo--line { height: 18px !important; width: auto !important; max-width: 20px !important; max-height: 18px !important; margin-left: 0.4rem; vertical-align: -3px; }
img.gas-safe-logo--heading { height: 28px; width: auto; max-width: 28px; margin-right: 0.4rem; vertical-align: -6px; }
.basket-line__title, .co-line__title, .bmodal__added-title { display: inline; }
.basket-line__info > .gas-safe-logo--line { align-self: flex-start; }
.basket-line__heading { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0 0.2rem; }
.basket-line__title .gas-safe-logo,
.co-line__title .gas-safe-logo,
.bmodal__added-title .gas-safe-logo { margin-left: 0.35rem; }
.gas-safe-id { margin: 1.25rem 0; padding: 1rem 1.1rem; border: 1px solid #c5d0c2; border-radius: 8px; background: #f7faf6; }
.gas-safe-id__title { display: flex; align-items: center; margin: 0 0 0.5rem; font-size: 1.15rem; }
.gas-safe-id__intro, .gas-safe-id__meta { margin: 0 0 0.75rem; }
.gas-safe-id__lines { margin: 0 0 0.75rem; padding-left: 1.1rem; }
.gas-safe-id__actions, .gas-safe-id__retake, .gas-safe-id__bar { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0.5rem 0; }
.gas-safe-id__btn { position: relative; overflow: hidden; cursor: pointer; display: inline-flex; align-items: center; }
.gas-safe-id__btn input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.gas-safe-id__thumb { display: block; max-width: 280px; width: 100%; height: auto; border: 1px solid #ccc; border-radius: 4px; margin: 0.4rem 0; aspect-ratio: 85.6 / 54; object-fit: contain; background: #111; }
.gas-safe-id__ok { color: #1b5e20; font-weight: 600; }
.checkout-submit-wrap { display: flex; flex-direction: column; align-items: stretch; gap: 0.4rem; }
.dco-actions .checkout-submit-wrap { flex: 1 1 auto; min-width: 12rem; }
.gas-safe-id__submit-hint { margin: 0; font-size: 0.9rem; line-height: 1.35; color: #3d4a44; }
.gas-safe-id__error { color: #9b1c1c; margin: 0.5rem 0 0; }
.gas-safe-cam { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.7); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.gas-safe-cam[hidden] { display: none !important; }
.gas-safe-cam__panel { background: #fff; border-radius: 10px; padding: 1rem; max-width: 640px; width: 100%; }
.gas-safe-cam__view { position: relative; background: #000; border-radius: 6px; overflow: hidden; }
.gas-safe-cam__view video { display: block; width: 100%; height: auto; max-height: 70vh; }
.gas-safe-cam__frame { position: absolute; left: 50%; top: 50%; width: 86%; max-width: 520px; aspect-ratio: 85.6 / 54; transform: translate(-50%, -50%); border: 2px solid #fff; border-radius: 8px; box-shadow: 0 0 0 999px rgba(0,0,0,.35); pointer-events: none; }
.gas-safe-cam__bar { display: flex; justify-content: flex-end; gap: 0.6rem; margin-top: 0.75rem; }
.gas-safe-cam__hint { margin: 0 0 0.75rem; }
@media (max-width: 600px) {
  img.gas-safe-logo--page { height: 72px; max-width: 68px; }
  .gas-safe-id__thumb { max-width: 100%; }
}


/* t226u: login codes, password checklist */
.login-well__hint { margin: 0 0 12px; font-size: .9rem; color: #555; line-height: 1.4; }
.login-code__input {
  display: block; width: 12rem; max-width: 100%; height: 40px; margin: 0; padding: 8px 12px; box-sizing: border-box;
  font: inherit; font-size: 1.35rem; line-height: 20px; font-weight: 600; letter-spacing: .4em; text-align: center; color: #555; background: #fff;
  border: 1px solid #ccc; border-radius: 4px; box-shadow: inset 0 1px 1px rgb(0 0 0 / .075);
}
.login-code__input:focus { border-color: var(--brand-ink); outline: 0; box-shadow: inset 0 1px 1px rgb(0 0 0 / .075), 0 0 0 3px rgb(0 51 105 / .2); }
@media (max-width: 767px) {
  .login-code__input { height: 44px; padding: 12px 16px; }
}
.login-code__email { font-weight: 600; }
.login-code__resend { margin-top: 1rem; }
.login-code__back { margin-top: 1rem; }
.login-set-password__intro { margin: 0 0 1rem; line-height: 1.45; }
.pw-check { list-style: none; margin: .25rem 0 1rem; padding: 0; font-size: .9rem; }
.pw-check li { position: relative; padding: .15rem 0 .15rem 1.4rem; color: #666; }
.pw-check li::before { content: '○'; position: absolute; left: 0; }
.pw-check li.is-ok { color: #1b7a3a; }
.pw-check li.is-ok::before { content: '✓'; }
.pw-check li.is-bad { color: #a33; }
.button--link { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }
.check { display: flex; gap: .5rem; align-items: flex-start; margin: .75rem 0; }

.login-well__email { margin: 0 0 16px; font-size: 14px; line-height: 20px; }
.login-well__email-value { font-weight: 600; word-break: break-all; }
.login-well__change { margin-left: .6em; font-weight: 400; white-space: nowrap; }


/* t237u: skeleton shown while an account sub-page fragment loads */
.account-view__body.is-loading { min-height: 12rem; }
.acct-skel { padding: 8px 0 16px; }
.acct-skel__line {
  height: 12px;
  border-radius: 4px;
  margin: 10px 0;
  max-width: 70%;
  background: color-mix(in srgb, var(--text-muted, #5c6670) 18%, transparent);
  animation: acct-skel 1.1s ease-in-out infinite;
}
.acct-skel__line--title { height: 18px; max-width: 40%; margin-bottom: 18px; }
.acct-skel__line--wide { max-width: 100%; height: 8rem; }
@keyframes acct-skel { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
