/* ========================================================================== */
/*   DESIGN TOKENS                                                            */
/* ========================================================================== */

/* Global colours, typography and reusable values */

:root {
  --color-brand-primary: #43b3e6;
  --color-brand-primary-dark: #0d3553;
  --color-brand-primary-darker: #08293f;

  /* Every brand tint below is mixed from the one brand colour, so changing
     --color-brand-primary carries through hovers, washes and focus rings. */
  --color-brand-primary-hover: color-mix(in srgb, var(--color-brand-primary) 88%, #000);
  /* Darker brand for text on light surfaces, where the brand blue alone is too faint */
  --color-brand-text: color-mix(in srgb, var(--color-brand-primary) 78%, #000);

  /* Cool neutrals, matching the Hire Shop */
  --color-text: #1f2328;
  --color-text-soft: #353b42;
  --color-text-muted: #68717b;
  --color-text-white: #ffffff;

  --color-link-hover: #2ea6dc;

  /* Surfaces: a white page, with cards set apart by border and shadow */
  --color-bg-page: #ffffff;
  --color-bg: #ffffff;
  --color-bg-card: #ffffff;
  --color-bg-alt: #f5f7f9;
  --color-bg-dark: #101010;
  --color-bg-dark-alt: #1c1c1c;

  --color-border: #d8e0e7;
  --color-border-soft: #e4eaf0;
  --color-border-soft-alt: #edf2f6;
  --color-border-dark-soft: #e4eaf0;
  --color-border-events-mobile: #d9e2e8;

  --color-overlay-brand-light: color-mix(in srgb, var(--color-brand-primary) 8%, transparent);
  --color-overlay-brand-medium: color-mix(in srgb, var(--color-brand-primary) 11%, transparent);
  --color-overlay-brand-strong: color-mix(in srgb, var(--color-brand-primary) 15%, transparent);
  --color-overlay-brand-active: color-mix(in srgb, var(--color-brand-primary) 20%, transparent);

  --color-border-brand-subtle: color-mix(in srgb, var(--color-brand-primary) 18%, transparent);
  --color-border-brand-events: color-mix(in srgb, var(--color-brand-primary) 22%, transparent);

  --focus-ring: 0 0 0 3px color-mix(in srgb, var(--color-brand-primary) 30%, transparent);

  --shadow-nav: 0 24px 60px rgba(10, 16, 24, 0.18);
  --shadow-nav-mobile: 0 18px 40px rgba(10, 16, 24, 0.12);
  --shadow-nav-events: 0 24px 60px rgba(0, 0, 0, 0.28);

  --shadow-card: 0 1px 3px rgba(16, 24, 40, 0.05);
  --shadow-card-hover: 0 12px 28px color-mix(in srgb, var(--color-brand-primary) 18%, transparent);

  --font-primary: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Roboto, Arial, sans-serif;

  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-card: 14px;
  --radius-xl: 22px;
  --radius-pill: 999px;

  --transition-fast: 0.2s ease;
  --transition-medium: 0.22s ease;
}


/* ========================================================================== */
/*   GENERAL STYLING                                                          */
/* ========================================================================== */

/* Reset / box model */

* {
  box-sizing: border-box;
}

/* Base page styling */

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-primary);
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg-page);
}

/* Default element behaviour */

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Keyboard focus: a soft brand ring on anything focusable. Mouse clicks
   do not trigger :focus-visible, so pointer users never see it. */

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--color-brand-primary) 45%, transparent);
  outline-offset: 2px;
}

/* Basic layout helper */

.container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

/* ========================================================================== */
/*   TYPOGRAPHY                                                               */
/* ========================================================================== */

/* Headings */

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.75em 0;
  font-family: var(--font-primary);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 1.45rem + 2.2vw, 2.75rem);
  font-weight: 600;
  color: var(--color-brand-primary);
}

h2 {
  font-size: clamp(1.6rem, 1.3rem + 1.3vw, 2.1rem);
  font-weight: 600;
  color: var(--color-text-soft);
}

h3 {
  font-size: clamp(1.35rem, 1.2rem + 0.7vw, 1.7rem);
  font-weight: 600;
  color: var(--color-text-soft);
}

h4 {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

h5 {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

h6 {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Tablet */

@media (max-width: 1024px) {
  h1 {
    font-size: 2.3rem;
  }

  h2 {
    font-size: 1.85rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  h4 {
    font-size: 1.18rem;
  }

  h5 {
    font-size: 1rem;
  }

  h6 {
    font-size: 0.88rem;
  }
}

/* Mobile */

@media (max-width: 768px) {
  h1 {
    font-size: 1.95rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  h3 {
    font-size: 1.35rem;
  }

  h4 {
    font-size: 1.1rem;
  }

  h5 {
    font-size: 0.98rem;
  }

  h6 {
    font-size: 0.84rem;
  }
}

/* ========================================================================== */
/*   SITE HEADER                                                              */
/* ========================================================================== */

/* Default */

.site-header {
  width: 100%;
  position: relative;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 14px 0;
}

.logo img {
  height: 54px;
  width: auto;
}

/* Tablet */

@media (max-width: 1024px) {
  .header-inner {
    gap: 20px;
    min-height: 82px;
  }

  .logo img {
    height: 48px;
  }
}

/* Mobile */

@media (max-width: 768px) {
  .header-inner {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    min-height: 74px;
  }

  .logo {
    padding: 18px 0;
  }

  .logo img {
    height: 40px;
  }
}


/* ========================================================================== */
/*   HEADER TOOLS                                                             */
/* ========================================================================== */

/* Default */

.header-tools {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.header-phone {
  flex-shrink: 0;
}

.header-phone__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: var(--radius-lg);
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--color-text);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.header-phone__link:hover {
  background: var(--color-overlay-brand-light);
  color: var(--color-link-hover);
}

.header-phone__link i {
  font-size: 1rem;
  color: var(--color-brand-primary);
}

/* Customer portal login, beside the phone number */

.header-login {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.header-login:hover {
  border-color: var(--color-brand-primary);
  background: var(--color-overlay-brand-light);
  color: var(--color-brand-text);
}

.header-login i {
  font-size: 1rem;
  color: var(--color-brand-primary);
}

/* Tablet */

@media (max-width: 1024px) {
  .header-tools {
    gap: 10px;
  }

  .header-phone__link {
    padding: 0 14px;
    font-size: 0.93rem;
  }
}

/* Mobile */

@media (max-width: 768px) {
  .header-tools {
    width: auto;
    margin-left: auto;
  }

  .header-phone {
    display: none;
  }

  .header-login {
    padding: 0 10px;
  }

  .header-login span {
    display: none;
  }
}


/* ========================================================================== */
/*   ACCESSIBILITY HELPERS                                                    */
/* ========================================================================== */

/* Screen reader only text */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  white-space: nowrap;
  border: 0;
  clip: rect(0, 0, 0, 0);
}


/* ========================================================================== */
/*   BUTTONS                                                                  */
/* ========================================================================== */

/* Default */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.btn:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.btn-primary {
    background: var(--color-brand-primary);
    color: #ffffff;
    border-color: var(--color-brand-primary);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--color-brand-primary) 22%, transparent);
}

.btn-primary:hover {
    background: var(--color-brand-primary-hover);
    border-color: var(--color-brand-primary-hover);
}

.btn-primary:focus-visible {
    box-shadow: var(--focus-ring), 0 4px 12px color-mix(in srgb, var(--color-brand-primary) 22%, transparent);
}

.btn-secondary {
    color: var(--color-brand-primary-hover);
    border-color: var(--color-brand-primary);
    background: var(--color-overlay-brand-light);
}

.btn-secondary:hover {
    background: var(--color-overlay-brand-strong);
}

.btn-outline {
    background: transparent;
    border-color: var(--color-text-muted);
    color: var(--color-text);
}

.btn-outline:hover {
    background: var(--color-overlay-brand-active);
}

/* ========================================================================== */
/*   PILLS                                                                    */
/* ========================================================================== */

/* Small rounded labels for tags, sectors and categories */

.ps-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border: 1px solid var(--color-border-brand-subtle);
    border-radius: var(--radius-pill);
    background: var(--color-overlay-brand-light);
    color: var(--color-text-soft);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.5;
}

.ps-pill--neutral {
    border-color: var(--color-border);
    background: var(--color-border-soft-alt);
    color: var(--color-text-muted);
}

/* ========================================================================== */
/*   SITE FOOTER                                                              */
/*   Dark navy: the logo with the address, email, hours and social icons,     */
/*   then Information and the two location lists; a bar beneath with the     */
/*   company line (the registered office included, as the law asks) and the  */
/*   legal links.                                                             */
/* ========================================================================== */

.site-footer {
  clear: both; /* the portal runs on the Hire Shop's styles, which float its page sections */
  margin-top: 64px;
  background: var(--color-brand-primary-darker);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding: 48px 0 40px;
}

.footer-brand__logo {
  display: inline-block;
  margin-bottom: 16px;
}

.footer-brand__logo img {
  display: block;
  height: 38px;
  width: auto;
}

.footer-contact {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-contact li {
  display: flex;
  gap: 10px;
  margin-bottom: 9px;
}

.footer-contact i {
  flex: 0 0 16px;
  margin-top: 3px;
  color: var(--color-brand-primary);
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.72);
}

.footer-contact a:hover {
  color: #ffffff;
}

.footer-contact__trustpilot {
  align-items: center;
}

.footer-trustpilot {
  margin-left: -26px; /* the widget pads its own text, so it lines up with the rows above */
}

.footer-trustpilot a {
  color: rgba(255, 255, 255, 0.72);
}

.footer-socials {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.footer-socials a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  transition: background-color 0.3s ease;
}

.footer-socials a:hover {
  background: var(--color-brand-primary);
}

.footer-heading,
.footer-menu-group__title {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-menu__item + .footer-menu__item {
  margin-top: 9px;
}

/* A link slides right with an arrow on hover */
.footer-menu__link {
  position: relative;
  display: inline-block;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-menu__link::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 50%;
  opacity: 0;
  transform: translateY(-50%) translateX(-8px);
  color: var(--color-brand-primary);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.footer-menu__link:hover {
  color: #ffffff;
  padding-left: 22px;
}

.footer-menu__link:hover::before {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.footer-menu__link.is-active {
  color: var(--color-brand-primary);
  font-weight: 600;
}

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-legal__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 0 20px;
  text-align: center;
}

.footer-legal__inner p {
  margin: 0;
  font-size: 0.7rem;
  line-height: 1.6;
}

/* The legal links in a centred row above the company line, | between each */
.footer-legal__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.74rem;
}

.footer-legal__links > * + *::before {
  content: "|";
  margin: 0 10px;
  color: rgba(255, 255, 255, 0.3);
}

.footer-legal__links a,
.footer-legal__prefs-btn {
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.3s ease;
}

.footer-legal__prefs-btn {
  appearance: none;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font: inherit;
}

.footer-legal__links a:hover,
.footer-legal__prefs-btn:hover {
  color: #ffffff;
}

/* Tablet: the brand across the top, the three lists beneath */
@media (max-width: 1024px) {
  .footer-main {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px 28px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* Mobile: Information on its own, the two location lists side by side */
@media (max-width: 640px) {
  .site-footer {
    margin-top: 60px;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
    padding: 40px 0 30px;
  }

  .footer-nav-col {
    grid-column: 1 / -1;
  }
}

/* ==========================================================================
   PAGE BUSY OVERLAY
   ========================================================================== */

.page-busy-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(15, 23, 42, 0.22);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.page-busy-overlay.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.page-busy-overlay__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;

    min-width: 240px;
    max-width: 90%;
    padding: 26px 30px;
    border-radius: 18px;

    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.16);
}

.page-busy-overlay__spinner-wrap {
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.page-busy-overlay__soundwave {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    height: 44px;
}

/*
   The wave colours are written out in full rather than pulled from the brand
   variables. This site's --color-brand-primary-dark is the deep navy used for
   headings, whereas the hire shop's is a mid blue, so reusing the variable
   here would give the two sites different looking loaders.
*/
.page-busy-overlay__soundwave-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;

    background: var(--color-brand-primary, #43b3e6);
    box-shadow: 0 0 12px rgba(38, 157, 208, 0.22);

    animation:
        pageBusySoundwave 1.05s ease-in-out infinite,
        pageBusySoundwaveColour 1.05s ease-in-out infinite;
}

.page-busy-overlay__soundwave-dot:nth-child(1) {
    animation-delay: 0s, 0s;
}

.page-busy-overlay__soundwave-dot:nth-child(2) {
    animation-delay: 0.1s, 0.1s;
}

.page-busy-overlay__soundwave-dot:nth-child(3) {
    animation-delay: 0.2s, 0.2s;
}

.page-busy-overlay__soundwave-dot:nth-child(4) {
    animation-delay: 0.3s, 0.3s;
}

.page-busy-overlay__soundwave-dot:nth-child(5) {
    animation-delay: 0.4s, 0.4s;
}

.page-busy-overlay__soundwave-dot:nth-child(6) {
    animation-delay: 0.5s, 0.5s;
}

.page-busy-overlay__soundwave-dot:nth-child(7) {
    animation-delay: 0.6s, 0.6s;
}

.page-busy-overlay__text {
    font-size: 0.98rem;
    line-height: 1.4;
    color: #1f2d3d;
    font-weight: 600;
}

body.page-busy-overlay-active {
    overflow: hidden;
}

@keyframes pageBusySoundwave {
    0%,
    100% {
        transform: translateY(0) scale(0.9);
    }

    25% {
        transform: translateY(-12px) scale(1.05);
    }

    50% {
        transform: translateY(0) scale(0.9);
    }

    75% {
        transform: translateY(12px) scale(1.05);
    }
}

@keyframes pageBusySoundwaveColour {
    0%,
    100% {
        opacity: 0.42;
        background: #8dd8f2;
        box-shadow: 0 0 8px rgba(38, 157, 208, 0.16);
    }

    25% {
        opacity: 1;
        background: #1d7faa;
        box-shadow: 0 0 18px rgba(38, 157, 208, 0.34);
    }

    50% {
        opacity: 0.72;
        background: var(--color-brand-primary, #43b3e6);
        box-shadow: 0 0 12px rgba(38, 157, 208, 0.24);
    }

    75% {
        opacity: 1;
        background: #1d7faa;
        box-shadow: 0 0 18px rgba(38, 157, 208, 0.34);
    }
}

/* ========================================================================== */
/*   LIGHTBOX                                                                 */
/* ========================================================================== */

.ps-lightbox-trigger {
  cursor: zoom-in;
}

.ps-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 72px;
  background: rgba(8, 14, 22, 0.92);
  animation: ps-lightbox-in 0.2s ease;
}

.ps-lightbox[hidden] {
  display: none;
}

.ps-lightbox__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  margin: 0;
}

.ps-lightbox__img {
  max-width: 100%;
  max-height: calc(100vh - 110px);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  object-fit: contain;
}

.ps-lightbox__caption {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  text-align: center;
}

.ps-lightbox__close,
.ps-lightbox__nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.ps-lightbox__close:hover,
.ps-lightbox__nav:hover {
  background: var(--color-brand-primary);
}

.ps-lightbox__close {
  top: 18px;
  right: 18px;
}

.ps-lightbox__nav--prev {
  left: 14px;
}

.ps-lightbox__nav--next {
  right: 14px;
}

.ps-lightbox-open,
.ps-lightbox-open body {
  overflow: hidden;
}

@keyframes ps-lightbox-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 640px) {
  .ps-lightbox {
    padding: 70px 12px;
  }

  .ps-lightbox__nav {
    top: auto;
    bottom: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ps-lightbox {
    animation: none;
  }
}

/* ========================================================================== */
/*   BUTTONS: the slim style                                                  */
/* ========================================================================== */

/* Slim buttons across the site. The main (solid) button leads with an arrow
   that nudges forward on hover; secondary and outline buttons share the
   shape without it, so a section has one clear way on. */

.btn {
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    line-height: 1.4;
}

.btn-primary {
    padding-left: 14px;
    box-shadow: none;
}

.btn-primary::before {
    content: "\f061";
    position: relative;
    top: 1px;
    font-family: "Font Awesome 6 Free";
    font-size: 0.8rem;
    font-weight: 900;
    transition: transform var(--transition-fast);
}

.btn-primary:hover::before {
    transform: translateX(3px);
}

.btn-primary:focus-visible {
    box-shadow: var(--focus-ring);
}

/* Buttons that are an action in their own right keep a plain label */
.ps-blog__search .btn-primary::before,
.cookie-prefs__save::before {
    content: none;
}

.ps-blog__search .btn-primary,
.cookie-prefs__save {
    padding-left: 16px;
}

.ps-blog__search .btn-primary {
    padding: 0 22px;
}

/* Buttons side by side line up by their middle, not their text baseline
   (the main button's arrow would otherwise drop it a couple of pixels) */
.btn {
    vertical-align: middle;
}

/* ========================================================================== */
/*   PICKER (the website's tickPicker, assets/js/picker.js)                   */
/* ========================================================================== */

.ps-picker {
  position: relative;
}

.ps-picker__native {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.ps-picker__button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg-card);
  color: var(--color-text);
  font: inherit;
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.ps-picker__button.is-placeholder .ps-picker__text {
  color: var(--color-text-muted);
}

.ps-picker__button:hover {
  border-color: var(--color-border-brand-subtle);
}

.ps-picker__button:focus-visible,
.ps-picker.is-open .ps-picker__button {
  outline: none;
  border-color: var(--color-brand-primary);
  box-shadow: var(--focus-ring);
}

.ps-picker__button.is-invalid {
  border-color: #d93025;
}

.ps-picker__chevron {
  flex-shrink: 0;
  color: var(--color-text-muted);
  font-size: 0.75rem;
  transition: transform var(--transition-fast);
}

.ps-picker.is-open .ps-picker__chevron {
  transform: rotate(180deg);
  color: var(--color-brand-text);
}

.ps-picker__list {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 280px;
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  list-style: none;
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-md);
  background: var(--color-bg-card);
  box-shadow: 0 14px 36px rgba(10, 16, 24, 0.14);
}

.ps-picker__option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-size: 0.93rem;
  cursor: pointer;
}

.ps-picker__option i {
  width: 14px;
  color: var(--color-brand-primary);
  font-size: 0.8rem;
  visibility: hidden;
}

.ps-picker__option.is-selected {
  font-weight: 600;
}

.ps-picker__option.is-selected i {
  visibility: visible;
}

.ps-picker__option.is-active,
.ps-picker__option:hover {
  background: var(--color-overlay-brand-light);
}

.ps-picker.is-up .ps-picker__list {
  top: auto;
  bottom: calc(100% + 6px);
}

/* A slim scrollbar in the list rather than the chunky default */
.ps-picker__list {
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}

.ps-picker__list::-webkit-scrollbar {
  width: 6px;
}

.ps-picker__list::-webkit-scrollbar-thumb {
  border-radius: 3px;
  background: var(--color-border);
}

/* The date picker: a box to type a date into, with a calendar beneath it */
.ps-datepicker__box {
  padding: 0 4px 0 14px;
  cursor: text;
}

.ps-datepicker__typed {
  flex: 1;
  min-width: 0;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  color: var(--color-text);
  font: inherit;
  outline: none;
}

/* The part being typed over (day, month or year) is picked out in the
   brand blue, as tickPicker's own date and time parts are */
.ps-datepicker__typed::selection {
  background: var(--color-brand-primary);
  color: #ffffff;
}

.ps-datepicker__toggle {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--color-text-soft);
  cursor: pointer;
}

.ps-datepicker__toggle:hover,
.ps-datepicker.is-open .ps-datepicker__toggle {
  color: var(--color-brand-text);
}

.ps-datepicker__panel {
  width: 296px;
  right: auto;
  max-height: none;
  padding: 12px;
  overflow: visible;
}

.ps-datepicker__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.ps-datepicker__month {
  padding: 6px 12px;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--color-text);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.ps-datepicker__month:hover {
  background: var(--color-overlay-brand-light);
  color: var(--color-brand-text);
}

.ps-datepicker__nav {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--color-text-soft);
  cursor: pointer;
}

.ps-datepicker__nav:hover {
  background: var(--color-overlay-brand-light);
  color: var(--color-brand-text);
}

.ps-datepicker__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.ps-datepicker__dow {
  padding: 4px 0 6px;
  color: var(--color-text-muted);
  font-size: 0.74rem;
  font-weight: 700;
  text-align: center;
}

.ps-datepicker__day,
.ps-datepicker__m {
  height: 36px;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--color-text);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

.ps-datepicker__day.is-out {
  color: var(--color-text-muted);
  opacity: 0.6;
}

.ps-datepicker__day:hover:not(:disabled),
.ps-datepicker__day.is-active,
.ps-datepicker__m:hover:not(:disabled) {
  background: var(--color-overlay-brand-light);
}

.ps-datepicker__day.is-today,
.ps-datepicker__m.is-today {
  font-weight: 700;
  color: var(--color-brand-text);
  box-shadow: inset 0 0 0 1px var(--color-border-brand-subtle);
}

.ps-datepicker__day.is-selected,
.ps-datepicker__m.is-selected {
  background: var(--color-brand-primary);
  color: #ffffff;
  font-weight: 600;
  opacity: 1;
}

.ps-datepicker__day:disabled,
.ps-datepicker__m:disabled {
  color: var(--color-border);
  cursor: default;
}

/* The year view: twelve months in place of the days */
.ps-datepicker__months {
  display: none;
}

.ps-datepicker.is-months .ps-datepicker__months {
  display: block;
}

.ps-datepicker.is-months .ps-datepicker__days,
.ps-datepicker.is-months .ps-datepicker__foot {
  display: none;
}

.ps-datepicker__mgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.ps-datepicker__m {
  height: 44px;
}

.ps-datepicker__mfoot,
.ps-datepicker__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--color-border);
}

.ps-datepicker__mfoot {
  justify-content: center;
}

.ps-datepicker__foot span {
  display: flex;
  gap: 6px;
}

.ps-datepicker__link,
.ps-datepicker__done {
  padding: 6px 10px;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--color-brand-text);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.ps-datepicker__link:hover {
  background: var(--color-overlay-brand-light);
}

.ps-datepicker__done {
  background: var(--color-brand-primary);
  color: #ffffff;
}

.ps-datepicker__done:hover {
  background: var(--color-brand-text);
}
