.margin-top-5 {margin-top: 5px;}
.margin-top-10 {margin-top: 10px;}
.margin-top-15 {margin-top: 15px;}
.margin-top-20 {margin-top: 20px;}
.margin-top-25 {margin-top: 25px;}
.margin-top-30 {margin-top: 30px;}
.margin-top-35 {margin-top: 35px;}
.margin-top-40 {margin-top: 40px;}
.margin-top-45 {margin-top: 45px;}
.margin-top-50 {margin-top: 50px;}

.margin-bottom-5 {margin-bottom: 5px;}
.margin-bottom-10 {margin-bottom: 10px;}
.margin-bottom-15 {margin-bottom: 15px;}
.margin-bottom-20 {margin-bottom: 20px;}
.margin-bottom-25 {margin-bottom: 25px;}
.margin-bottom-30 {margin-bottom: 30px;}
.margin-bottom-35 {margin-bottom: 35px;}
.margin-bottom-40 {margin-bottom: 40px;}
.margin-bottom-45 {margin-bottom: 45px;}
.margin-bottom-50 {margin-bottom: 50px;}

.margin-left-5 {margin-left: 5px;}
.margin-left-10 {margin-left: 10px;}
.margin-left-15 {margin-left: 15px;}
.margin-left-20 {margin-left: 20px;}
.margin-left-25 {margin-left: 25px;}
.margin-left-30 {margin-left: 30px;}
.margin-left-35 {margin-left: 35px;}
.margin-left-40 {margin-left: 40px;}
.margin-left-45 {margin-left: 45px;}
.margin-left-50 {margin-left: 50px;}

.margin-right-5 {margin-right: 5px;}
.margin-right-10 {margin-right: 10px;}
.margin-right-15 {margin-right: 15px;}
.margin-right-20 {margin-right: 20px;}
.margin-right-25 {margin-right: 25px;}
.margin-right-30 {margin-right: 30px;}
.margin-right-35 {margin-right: 35px;}
.margin-right-40 {margin-right: 40px;}
.margin-right-45 {margin-right: 45px;}
.margin-right-50 {margin-right: 50px;}
pre {
  border: 1px solid #cf0909;
  border-left: 1rem solid #cf0909;
  font: lighter 1.2rem/2rem Monaco,'MonacoRegular',monospace;
  padding: 1rem 0.8rem 1rem 1.2rem;
  overflow: auto;
  background: #f7f9c5;
}

.hljs {
  background: transparent !important;
}
/*
   HD Keys neutral UI stylesheet for BespokeSITE CMS.
   Defines reusable form, feedback, modal, pagination, and outline-button treatments for public and module views.
   Developer: Ben Scully | Project: BespokeSITE CMS | Website: bespokesite.co.uk
*/

/* -----------------------------
   Buttons (neutral defaults)
----------------------------- */
.btn{
  border-radius: 14px;
  font-weight: 700;
  letter-spacing: .1px;
  padding: .7rem 1rem;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}

.btn-lg{
  padding: .9rem 1.1rem;
  border-radius: 16px;
}

/* Hide Google's inline badge and show a small neutral notice below protected forms. */
.recaptcha-badge-hidden .grecaptcha-badge{
  display: none !important;
}

.recaptcha-notice{
  display: inline-flex;
  align-items: center;
  justify-self: start;
  margin: .35rem 0 .9rem;
  padding: .35rem .6rem;
  border: 1px solid rgba(108,117,125,.18);
  border-radius: 999px;
  background: rgba(108,117,125,.06);
  color: #5f6d60;
  font-size: .72rem;
  line-height: 1.4;
  font-weight: 600;
}

/* Invisible reCAPTCHA still leaves its widget container in the form, so collapse it when the badge is replaced by text. */
.g-recaptcha.recaptcha-badge-hidden{
  height: 0;
  margin: 0 !important;
  overflow: hidden;
}

.btn-outline-secondary{
  border-width: 2px;
  border-color: rgba(108,117,125,.42);
  color: #495057;
  font-weight: 700;
  background: transparent;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus{
  background: rgba(108,117,125,.10);
  border-color: rgba(108,117,125,.58);
  color: #343a40;
}

.btn-outline-warning{
  border-width: 2px;
  border-color: rgba(255,193,7,.72);
  color: #b58100;
  font-weight: 700;
  background: transparent;
}

.btn-outline-warning:hover,
.btn-outline-warning:focus{
  background: #ffc107;
  border-color: #ffc107;
  color: #ffffff;
}

.btn-outline-danger{
  border-width: 2px;
  border-color: rgba(220,53,69,.42);
  color: #dc3545;
  font-weight: 700;
  background: transparent;
}

.btn-outline-danger:hover,
.btn-outline-danger:focus{
  background: rgba(220,53,69,.08);
  border-color: rgba(220,53,69,.60);
  color: #b02a37;
}

.btn-outline-info{
  border-width: 2px;
  border-color: rgba(13,202,240,.55);
  color: #087990;
  font-weight: 700;
  background: transparent;
}

.btn-outline-info:hover,
.btn-outline-info:focus{
  background: #0dcaf0;
  border-color: #0dcaf0;
  color: #052c35;
}

.btn-outline-dark{
  border-width: 2px;
  border-color: rgba(33,37,41,.55);
  color: #212529;
  font-weight: 700;
  background: transparent;
}

.btn-outline-dark:hover,
.btn-outline-dark:focus{
  background: #212529;
  border-color: #212529;
  color: #ffffff;
}

.btn-outline-light{
  border-width: 2px;
  border-color: rgba(248,249,250,.65);
  color: #ffffff;
  font-weight: 700;
  background: transparent;
}

.btn-outline-light:hover,
.btn-outline-light:focus{
  background: rgba(248,249,250,.14);
  border-color: rgba(248,249,250,.90);
  color: #ffffff;
}

/* -----------------------------
   Forms
----------------------------- */
.form-control,
.form-select{
  min-height: 2.75rem;
  border-radius: 12px;
  border-color: rgba(108,117,125,.24);
  color: #212529;
  background-color: #ffffff;
}

.form-control:focus,
.form-select:focus{
  border-color: rgba(197,63,42,.58);
  box-shadow: 0 0 0 .2rem rgba(197,63,42,.13);
}

.form-control::placeholder{
  color: #8a939b;
}

.form-label{
  font-weight: 700;
  color: #343a40;
}

.form-text{
  color: #6c757d;
}

.form-check-input{
  border-color: rgba(108,117,125,.42);
}

.form-check-input:focus{
  border-color: rgba(197,63,42,.58);
  box-shadow: 0 0 0 .2rem rgba(197,63,42,.13);
}

.form-check-input:checked{
  border-color: #c53f2a;
  background-color: #c53f2a;
}

/* -----------------------------
   Feedback and data components
----------------------------- */
.alert{
  border-radius: 12px;
  border-width: 1px;
}

.card{
  border-radius: 14px;
  border-color: rgba(108,117,125,.18);
}

.table{
  color: #212529;
}

.table > :not(caption) > * > *{
  border-bottom-color: rgba(108,117,125,.18);
}

.badge{
  font-weight: 700;
  letter-spacing: .01em;
}

.dropdown-menu{
  border-radius: 12px;
  border-color: rgba(108,117,125,.18);
  box-shadow: 0 16px 34px rgba(15,23,42,.12);
}

.modal-content{
  border-radius: 16px;
  border-color: rgba(108,117,125,.18);
}

.pagination .page-link{
  color: #343a40;
  border-color: rgba(108,117,125,.24);
}

.pagination .page-link:hover,
.pagination .page-link:focus{
  color: #212529;
  background: rgba(108,117,125,.10);
  border-color: rgba(108,117,125,.38);
}

/*
 * HD Keys public theme stylesheet for BespokeSITE CMS.
 * Defines the custom black, red, white, and warm-grey visual system, including responsive navigation, homepage layouts, ABS Master presentation, service content, breadcrumbs, and mobile actions.
 * Developer: Ben Scully | Project: BespokeSITE CMS | Website: bespokesite.co.uk
 */
:root {
  --brand: #C53F2A;
  --brand-dark: #A13321;
  --ink: #111111;
  --card-bg: #ffffff;
  --band: #111111;
  --page-soft: #f3f1ee;
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow-card: 0 18px 46px rgba(17, 17, 17, 0.09);
}

body {
  color: var(--ink);
  background: #f4f4f4;
  font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--brand);
  color: #fff;
}

.navbar {
  background: var(--band);
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
  transition: padding 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.navbar.navbar-scrolled {
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
}

.navbar .nav-link,
.navbar-brand {
  color: #fff !important;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.navbar .nav-link.active {
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

.navbar-brand img {
  height: 56px;
  width: auto;
  margin-right: 0.75rem;
  transition: height 0.25s ease;
}

.navbar.navbar-scrolled .navbar-brand img {
  height: 44px;
}

.navbar .nav-link:hover {
  color: #f09a8b !important;
  opacity: 1;
}

.navbar .dropdown-menu {
  background: #1d1d1d;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
}

.navbar .dropdown-item {
  color: #fff;
  font-weight: 500;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
  background: rgba(197, 63, 42, 0.2);
  color: #fff;
}

.navbar .dropdown-divider {
  border-top-color: rgba(255, 255, 255, 0.2);
}

.btn-brand {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(197, 63, 42, 0.2);
}

.btn-brand:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
  box-shadow: 0 12px 26px rgba(161, 51, 33, 0.28);
  transform: translateY(-1px);
}

.btn-outline-light {
  border-width: 2px;
  font-weight: 600;
}

.badge-soft {
  background: rgba(197, 63, 42, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.07em;
  font-size: 0.7rem;
}

.hero {
  background: var(--brand);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero-home {
  padding: clamp(2rem, 3vw, 3.25rem) 0 clamp(3.25rem, 5vw, 5rem);
  background:
    radial-gradient(circle at 78% 18%, rgba(197, 63, 42, 0.34), transparent 25%),
    linear-gradient(120deg, #070707 0%, #171717 58%, #351814 100%);
}

.hero-home::before {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  content: "";
  mask-image: linear-gradient(to right, #000, transparent 78%);
}

.hero-home .container {
  position: relative;
  z-index: 1;
}

/* Keep the two hero columns close enough to read as one focused introduction on wide screens. */
.hero-home .row {
  --bs-gutter-x: clamp(2.5rem, 4vw, 4.5rem);
}

.hero-eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-eyebrow {
  color: #f09788;
}

.hero-home h1 {
  max-width: 760px;
  margin-bottom: 1.2rem;
  font-size: clamp(2.55rem, 3.65vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.hero-title-line {
  display: block;
  color: #fff;
}

.hero-title-accent {
  color: #e16a56;
}

/* Preserve the complete local-locksmith message as one line where desktop space permits. */
.hero-title-line-primary {
  white-space: nowrap;
}

/* Treat the service summary as a supporting line so the local shop message remains the visual focus. */
.hero-title-line-secondary {
  margin-top: 0.12em;
  font-size: 0.82em;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

.hero-lead {
  max-width: 670px;
  margin-bottom: 1.6rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  line-height: 1.75;
}

.hero-actions,
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-actions .btn {
  border-radius: 12px;
}

.hero-meta {
  gap: 1.35rem;
  margin-top: 1.35rem;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.82rem;
  font-weight: 600;
}

.hero .glass {
  padding: clamp(1.5rem, 3vw, 2.25rem) !important;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 28px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
}

.hero .glass h2 {
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.4;
}

.hero .glass li {
  display: flex;
  align-items: center;
  min-height: 2rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.92rem;
}

/* Give trust icons inside the red hero enough contrast without changing icons used on light sections. */
.hero .glass .bi-shield-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  background: #fff;
  color: var(--brand-dark) !important;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.18);
  vertical-align: middle;
}

.hero .glass .bi-check-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.45rem;
  height: 1.45rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.34);
  color: #fff !important;
  font-size: 0.82rem;
  vertical-align: middle;
}

@media (min-width: 1200px) {
  /* Give the headline priority while retaining a useful, readable trust panel alongside it. */
  .hero-home .row {
    --bs-gutter-x: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(430px, 0.95fr);
    column-gap: clamp(2.75rem, 3.5vw, 4.5rem);
  }

  .hero-home .row > [class*="col-"] {
    width: 100%;
  }
}

.service-card {
  border: 1px solid #e0e0e0;
  border-radius: 14px;
  transition: 0.2s transform ease, 0.2s box-shadow ease;
  background: var(--card-bg);
}

.section-space {
  padding: clamp(3rem, 4.25vw, 4.5rem) 0;
}

/* Avoid doubling the full section spacing when two content bands meet. */
.section-space + .section-space {
  padding-top: clamp(2.5rem, 3vw, 3.5rem);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.section-heading h2,
.abs-home-copy h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(2rem, 4vw, 3.55rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.04;
}

.section-heading p {
  margin: 0;
  color: #686868;
}

.urgent-strip {
  border-bottom: 1px solid #e1ded9;
  background: #fff;
}

.urgent-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 72px;
  font-size: 0.88rem;
}

.urgent-strip-inner a {
  color: var(--brand-dark);
  font-weight: 800;
}

.urgent-dot {
  display: inline-block;
  width: 0.65rem;
  height: 0.65rem;
  margin-right: 0.65rem;
  border-radius: 50%;
  background: #2aa84a;
  box-shadow: 0 0 0 5px rgba(42, 168, 74, 0.12);
}

.abs-home-spotlight {
  padding: clamp(3.25rem, 5vw, 5rem) 0;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 15% 20%, rgba(197, 63, 42, 0.2), transparent 28%),
    #101010;
}

.abs-home-grid {
  display: grid;
  grid-template-columns: minmax(150px, 0.52fr) minmax(0, 1.6fr) minmax(230px, 0.7fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5.5rem);
}

.abs-home-product {
  display: grid;
  place-items: center;
}

.abs-home-product img {
  width: min(100%, 230px);
  height: auto;
  filter: drop-shadow(0 24px 34px rgba(0, 0, 0, 0.38));
}

.abs-home-copy .section-kicker {
  color: #e77c69;
}

.abs-home-copy p,
.abs-home-action p {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.75;
}

.abs-home-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.4rem;
}

.abs-home-credentials span {
  padding: 0.48rem 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.72rem;
  font-weight: 700;
}

.abs-home-action {
  padding-left: 2rem;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.home-service-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid #dedbd6;
  border-radius: var(--radius-md);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.home-service-card:hover {
  border-color: rgba(197, 63, 42, 0.35);
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}

.home-service-icon {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border-radius: 13px;
  background: #f1ece8;
  color: var(--brand-dark);
  font-size: 1.25rem;
}

.home-service-card span {
  color: var(--brand-dark);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.home-service-card h3 {
  margin: 0.25rem 0 0.65rem;
  font-size: 1.2rem;
  font-weight: 800;
}

.home-service-card p {
  color: #6b6b6b;
  font-size: 0.9rem;
  line-height: 1.65;
}

.home-service-card a {
  color: #171717;
  font-size: 0.82rem;
  font-weight: 800;
}

.home-service-card-abs {
  color: #fff;
  border-color: #222;
  background: linear-gradient(135deg, #171717, #29201e);
}

.home-service-card-abs p,
.home-service-card-abs a {
  color: rgba(255, 255, 255, 0.72);
}

.process-section {
  background: var(--page-soft);
}

.process-list {
  display: grid;
  gap: 0;
}

.process-list > div {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid #d8d4cf;
}

.process-list > div > span {
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
}

.process-list h3 {
  margin-bottom: 0.4rem;
  font-size: 1rem;
  font-weight: 800;
}

.process-list p {
  margin: 0;
  color: #6b6b6b;
  line-height: 1.65;
}

.coverage-panel {
  height: calc(100% - 4rem);
  padding: clamp(1.6rem, 4vw, 2.5rem);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.coverage-panel p {
  color: #5f5f5f;
  line-height: 1.75;
}

.faq-section {
  background: #fff;
}

.faq-list {
  border-top: 1px solid #dedbd6;
}

.faq-list details {
  border-bottom: 1px solid #dedbd6;
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 0;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary i {
  transition: transform 0.2s ease;
}

.faq-list details[open] summary i {
  transform: rotate(45deg);
}

.faq-list p {
  max-width: 780px;
  padding: 0 2.5rem 1.35rem 0;
  margin: 0;
  color: #656565;
  line-height: 1.75;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.service-card-featured {
  border-color: rgba(197, 63, 42, 0.35);
  background:
    linear-gradient(135deg, rgba(197, 63, 42, 0.08), rgba(197, 63, 42, 0.02)),
    var(--card-bg);
}

.service-card-featured .small {
  color: var(--brand-dark);
  letter-spacing: 0.06em;
}

.list-check li {
  margin-bottom: 0.35rem;
}

.list-check i {
  color: var(--brand);
  margin-right: 0.5rem;
  font-weight: 700;
}

.text-success,
.bi-check-circle,
.bi-shield-check,
.bi-check2,
.bi-check {
  color: var(--brand) !important;
}

.footer {
  background: var(--band);
  color: #f2f2f2;
  font-size: 0.9rem;
  border-top: 4px solid var(--brand);
}

.small-muted {
  color: #6f7a83;
}

.strike-muted {
  opacity: 0.55;
  text-decoration: line-through;
}

.pill {
  border-radius: 999px;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #d7d7d7, transparent);
}

.shadow-soft {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

a {
  text-decoration: none;
}

.cta-band {
  background: var(--band);
  color: #fff;
  border-radius: 0;
}

.cta-band p {
  margin-bottom: 0.3rem;
}

.cta-band .big-phone {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

#services h2 {
  letter-spacing: 0.03em;
}

#services .bi {
  vertical-align: middle;
}

/* Support CMS module and content pages without changing the original visual language. */
.content-narrow {
  max-width: 980px;
}

.page-hero {
  background: var(--brand);
  color: #fff;
}

/* Present the Avocet-approved ABS Master service as a premium extension of the HD Keys brand. */
.abs-master-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 82% 12%, rgba(197, 63, 42, 0.42), transparent 28%),
    linear-gradient(135deg, #090909 0%, #1b1b1b 62%, #2b1714 100%);
}

.abs-master-hero::after {
  position: absolute;
  right: -8rem;
  bottom: -12rem;
  width: 28rem;
  height: 28rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  content: "";
}

.abs-master-hero .container {
  position: relative;
  z-index: 1;
}

.abs-master-hero .breadcrumb a,
.abs-master-hero .breadcrumb-item.active,
.abs-master-hero .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.86);
}

.abs-approved-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.abs-approved-badge i {
  color: #ef8b78;
}

.abs-hero-product {
  overflow: hidden;
  padding: clamp(0.75rem, 2vw, 1.25rem);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: rgba(4, 4, 4, 0.72);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.abs-hero-product img {
  display: block;
  width: 100%;
  height: auto;
}

.abs-hero-product figcaption {
  padding: 0.75rem 0.4rem 0.15rem;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

.abs-intro-copy {
  max-width: 760px;
}

.abs-local-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.abs-local-proof > div {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
  padding: 1.2rem;
  border-right: 1px solid rgba(17, 17, 17, 0.1);
}

.abs-local-proof > div:last-child {
  border-right: 0;
}

.abs-local-proof-icon {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: 50%;
  background: rgba(197, 63, 42, 0.12);
  color: var(--brand-dark);
}

.abs-local-proof strong,
.abs-local-proof span {
  display: block;
}

.abs-local-proof strong {
  margin-bottom: 0.2rem;
  font-size: 0.9rem;
}

.abs-local-proof div div span {
  color: #686868;
  font-size: 0.76rem;
  line-height: 1.45;
}

.abs-feature-icon,
.abs-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.1rem;
  border-radius: 12px;
  background: rgba(197, 63, 42, 0.12);
  color: var(--brand-dark);
  font-size: 1.35rem;
  font-weight: 800;
}

.abs-key-card-image {
  float: right;
  width: min(42%, 180px);
  height: 180px;
  margin: -1rem -1rem 1rem 1rem;
  object-fit: contain;
  object-position: top right;
}

.abs-one-key-panel {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(197, 63, 42, 0.28);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(197, 63, 42, 0.08), #fff 52%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.abs-one-key-copy {
  padding: clamp(1.75rem, 5vw, 3.5rem);
}

.abs-one-key-route {
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 280px;
  padding: clamp(1rem, 3vw, 2rem);
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 20%, rgba(197, 63, 42, 0.1), transparent 40%),
    linear-gradient(145deg, #dedbd8, #c4c1be);
}

.abs-one-key-route img {
  display: block;
  width: min(100%, 640px);
  height: auto;
  filter: drop-shadow(0 18px 25px rgba(53, 43, 37, 0.16));
}

/* Keep core and page-level breadcrumbs legible and visually consistent with the HD Keys brand. */
#breadcrumb.breadcrumb-container {
  width: 100%;
  margin: 0;
  padding: 0.85rem max(1rem, calc((100% - 1320px) / 2));
  border-bottom: 1px solid #dedede;
  background: #fff;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
}

#breadcrumb .breadcrumb,
.content-narrow > nav[aria-label="Breadcrumb"] .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0;
  margin: 0;
  padding: 0;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 600;
}

#breadcrumb .breadcrumb-item a,
.content-narrow > nav[aria-label="Breadcrumb"] .breadcrumb-item a {
  color: var(--brand-dark);
  text-decoration: none;
}

#breadcrumb .breadcrumb-item a:hover,
#breadcrumb .breadcrumb-item a:focus-visible,
.content-narrow > nav[aria-label="Breadcrumb"] .breadcrumb-item a:hover,
.content-narrow > nav[aria-label="Breadcrumb"] .breadcrumb-item a:focus-visible {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 0.18rem;
}

#breadcrumb .breadcrumb-item.active,
.content-narrow > nav[aria-label="Breadcrumb"] .breadcrumb-item.active {
  color: #4d4d4d;
}

#breadcrumb .breadcrumb-item + .breadcrumb-item::before,
.content-narrow > nav[aria-label="Breadcrumb"] .breadcrumb-item + .breadcrumb-item::before {
  color: #8a8a8a;
}

/* Breadcrumbs placed on a branded hero use a light treatment instead of the white content treatment. */
.page-hero .breadcrumb,
.hero .breadcrumb {
  color: rgba(255, 255, 255, 0.82);
}

.page-hero .breadcrumb a,
.hero .breadcrumb a,
.page-hero .breadcrumb-item.active,
.hero .breadcrumb-item.active,
.page-hero .breadcrumb-item + .breadcrumb-item::before,
.hero .breadcrumb-item + .breadcrumb-item::before {
  color: #fff;
}

.footer a {
  color: #f2f2f2;
}

.footer a:hover,
.footer a:focus-visible {
  color: #ef8b78;
}

.footer-logo {
  width: auto;
  object-fit: contain;
}

.offcanvas .btn-brand,
.mobile-call-bar .btn-brand {
  color: #fff;
}

.mobile-call-bar {
  display: none;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.5);
  background: #fff;
}

/* Present the shop contact information as a clear destination rather than a generic enquiry page. */
.contact-page {
  background: var(--page-soft);
}

.contact-detail-panel,
.opening-hours-panel,
.contact-form-card {
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.contact-detail-panel {
  overflow: hidden;
  color: #fff;
  background: var(--ink);
}

.contact-detail-panel > section {
  display: grid;
  grid-template-columns: 2.8rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-detail-panel > section:last-child {
  border-bottom: 0;
}

.contact-detail-panel h2 {
  margin-bottom: 0.45rem;
  color: #fff;
  font-size: 1.1rem;
}

.contact-detail-panel p,
.contact-detail-panel address {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
}

.contact-detail-icon {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--brand);
  font-size: 1.15rem;
}

.contact-detail-icon.emergency {
  background: #fff;
  color: var(--brand-dark);
}

.contact-detail-link {
  display: inline-block;
  margin-bottom: 0.35rem;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
  text-decoration: none;
}

.contact-detail-link:hover {
  color: #ffd7d0;
}

.contact-map-link {
  display: inline-flex;
  align-items: center;
  margin-top: 0.8rem;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  text-underline-offset: 0.2em;
}

.contact-map-link:hover {
  color: #ffd7d0;
}

.opening-hours-panel {
  padding: 1.5rem;
  background: #fff;
}

.opening-hours-panel h2 {
  margin-bottom: 1rem;
  font-size: 1.35rem;
}

.opening-hours-panel dl {
  margin: 0;
}

.opening-hours-panel dl > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-top: 1px solid rgba(17, 17, 17, 0.1);
}

.opening-hours-panel dd {
  margin: 0;
  text-align: right;
}

.contact-form-card {
  height: 100%;
  background: #fff;
}

.contact-form-card:hover {
  transform: none;
}

.shop-directions {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1.15fr);
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.shop-directions-copy {
  align-self: center;
  padding: clamp(1.75rem, 4vw, 3rem);
}

.shop-directions-copy h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.shop-directions-form {
  margin-top: 1.5rem;
}

.shop-directions-form .form-control,
.shop-directions-form .btn {
  min-height: 3.25rem;
}

.shop-directions-current {
  display: inline-flex;
  align-items: center;
  margin-top: 1rem;
  color: var(--brand-dark);
  font-size: 0.84rem;
  font-weight: 750;
  text-underline-offset: 0.2em;
}

.shop-map-frame {
  min-height: 430px;
  background: #dedbd8;
}

.shop-map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 430px;
  border: 0;
}

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

@media (max-width: 991.98px) {
  body {
    padding-bottom: 4.75rem;
  }

  .navbar-brand img {
    height: 44px;
  }

  .hero-home {
    padding: 2.5rem 0 3.25rem;
  }

  .hero-home .glass {
    margin-top: 1rem;
  }

  .abs-home-grid {
    grid-template-columns: minmax(120px, 0.42fr) minmax(0, 1.2fr);
  }

  .abs-home-action {
    grid-column: 1 / -1;
    padding: 1.5rem 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 0;
  }

  .offcanvas {
    --bs-offcanvas-width: min(90vw, 390px);
    background: #f5f3f0;
  }

  .offcanvas-header {
    border-bottom: 1px solid #dedbd6;
  }

  .offcanvas-body nav {
    gap: 0.65rem !important;
  }

  .offcanvas-body .btn {
    padding: 0.9rem 1rem;
    border-radius: 12px;
    text-align: left;
  }

  .mobile-call-bar {
    position: fixed;
    z-index: 1040;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    padding: 0.65rem 0.8rem max(0.65rem, env(safe-area-inset-bottom));
    background: rgba(12, 12, 12, 0.97);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(12px);
  }

  .mobile-call-bar .btn {
    min-height: 3.2rem;
    border-radius: 12px;
  }

  .shop-directions {
    grid-template-columns: 1fr;
  }

  .shop-map-frame,
  .shop-map-frame iframe {
    min-height: 360px;
  }
}

@media (max-width: 767.98px) {
  .hero-home h1 {
    font-size: clamp(2.35rem, 11vw, 3.25rem);
    line-height: 1.02;
  }

  .hero-title-line-primary {
    white-space: normal;
  }

  .hero-title-line-secondary {
    font-size: 0.88em;
    white-space: normal;
  }

  .hero-actions {
    display: grid;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .urgent-strip-inner,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .urgent-strip-inner {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .abs-home-grid,
  .service-grid,
  .abs-one-key-panel,
  .abs-local-proof {
    grid-template-columns: 1fr;
  }

  .abs-local-proof > div {
    border-right: 0;
    border-bottom: 1px solid rgba(17, 17, 17, 0.1);
  }

  .abs-local-proof > div:last-child {
    border-bottom: 0;
  }

  .abs-home-product img {
    width: min(50vw, 190px);
  }

  .abs-one-key-route {
    min-height: 230px;
  }

  .home-service-card {
    grid-template-columns: 1fr;
  }

  .section-space {
    padding: 3rem 0;
  }

  .section-space + .section-space {
    padding-top: 2.5rem;
  }
}

@media (max-width: 449.98px) {
  .hero-meta {
    display: grid;
    gap: 0.6rem;
  }

  .abs-home-credentials span {
    flex: 1 1 calc(50% - 0.55rem);
    text-align: center;
  }

  .abs-key-card-image {
    width: 42%;
    height: 140px;
  }

  .shop-directions-form .input-group {
    display: grid;
    gap: 0.65rem;
  }

  .shop-directions-form .form-control,
  .shop-directions-form .btn {
    width: 100%;
    border-radius: 10px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .navbar,
  .navbar-brand img,
  .btn,
  .service-card,
  .home-service-card,
  .faq-list summary i {
    transition: none;
  }
}

/* HD Keys storefront and compact basket navigation for the optional Shop addon. */
.hd-shop-nav-link,
.hd-basket-button {
  white-space: nowrap;
}

.hd-basket-button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-weight: 700;
}

.hd-basket-button:hover,
.hd-basket-button:focus-visible {
  border-color: #fff;
  background: #fff;
  color: var(--ink);
}

.hd-basket-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.55rem;
  height: 1.55rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.72rem;
  line-height: 1;
}

.module-page {
  min-height: 55vh;
  background: linear-gradient(180deg, #ebe8e4 0, #f7f6f4 16rem, #f4f4f4 100%);
}

/* Homepage shop signpost gives the catalogue a clear, contextual internal link. */
.home-shop-band {
  padding: 0 0 var(--section-space);
  background: #f4f4f4;
}

.home-shop-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(1.25rem, 3vw, 2.25rem);
  align-items: center;
  padding: clamp(1.5rem, 4vw, 2.6rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(125deg, #151515 0%, #24201f 58%, #5b2b23 100%);
  color: #fff;
  box-shadow: var(--shadow-card);
}

.home-shop-icon {
  display: grid;
  width: clamp(4rem, 7vw, 5.5rem);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  color: #f3a497;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.home-shop-copy .section-kicker {
  color: #f3a497;
}

.home-shop-copy h2 {
  margin: 0.2rem 0 0.55rem;
  font-size: clamp(1.55rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.home-shop-copy p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
}

.module-page .shop-front {
  width: min(1380px, calc(100% - 2rem));
  padding-top: clamp(2.5rem, 5vw, 4.5rem) !important;
  padding-bottom: clamp(3rem, 6vw, 5rem) !important;
}

.shop-front .shop-heading-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.shop-front .shop-heading-bar h1,
.shop-front > h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.045em;
}

.shop-front .eyebrow {
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.shop-front .shop-layout {
  display: grid;
  grid-template-columns: minmax(230px, 280px) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
}

.shop-front .filters {
  position: sticky;
  top: 96px;
  align-self: start;
  padding: 1.25rem;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.shop-front .filters form {
  display: grid;
  gap: 0.75rem;
}

.shop-front .filters label {
  margin-top: 0.25rem;
  font-size: 0.78rem;
  font-weight: 800;
}

.shop-front .form-control,
.shop-front .form-select,
.shop-front .input-group-text {
  min-height: 46px;
  border-color: rgba(17, 17, 17, 0.16);
  border-radius: 10px;
}

.shop-front .toolbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  color: #615d59;
  font-size: 0.82rem;
  font-weight: 700;
}

.shop-front .product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.shop-front .product-card,
.shop-front .card {
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.shop-front .product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.shop-front .product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(17, 17, 17, 0.13);
}

.shop-front .product-image {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #e9e7e3;
}

.shop-front .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.shop-front .product-card:hover .product-image img {
  transform: scale(1.035);
}

.shop-front .product-image-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: #706b66;
  font-weight: 800;
}

.shop-front .save-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  padding: 0.55rem 0.7rem;
  background: var(--brand);
  color: #fff;
}

.shop-front .product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.2rem;
}

.shop-front .product-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  color: #706b66;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.shop-front .product-body h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.3;
}

.shop-front .product-body h2 a {
  color: var(--ink);
  text-decoration: none;
}

.shop-front .product-body p {
  margin: 0;
  color: #615d59;
  font-size: 0.9rem;
}

.shop-front .price-row,
.shop-front .detail-price,
.shop-front .product-actions,
.shop-front .detail-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.shop-front .price-row strong,
.shop-front .detail-price strong {
  color: var(--brand-dark);
  font-size: 1.35rem;
  font-weight: 800;
}

.shop-front .price-row span,
.shop-front .detail-price span {
  color: #77716b;
  text-decoration: line-through;
}

.shop-front .stock-line {
  color: #2d6845;
  font-size: 0.82rem;
  font-weight: 800;
}

.shop-front .product-actions {
  margin-top: auto;
}

.shop-front .product-actions .form-control,
.shop-front .detail-actions .form-control {
  width: 78px;
}

.shop-front .product-actions .btn {
  flex: 1;
}

.shop-front .product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.shop-front .product-gallery,
.shop-front .product-info {
  min-width: 0;
}

.shop-front .product-gallery img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  background: #e9e7e3;
  object-fit: contain;
}

.shop-front .product-info {
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.shop-front .feature-list {
  display: grid;
  gap: 0.55rem;
  padding-left: 1.2rem;
}

.shop-front .btn {
  border-radius: 10px;
  font-weight: 700;
}

.shop-front .btn-primary {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.shop-front .btn-primary:hover,
.shop-front .btn-primary:focus-visible {
  border-color: var(--brand-dark);
  background: var(--brand-dark);
}

.shop-front .btn-outline-primary {
  border-color: var(--brand);
  background: #fff;
  color: var(--brand-dark);
}

.shop-front .btn-outline-primary:hover,
.shop-front .btn-outline-primary:focus-visible {
  background: var(--brand);
  color: #fff;
}

.shop-front .table-responsive {
  overflow-x: auto;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.shop-front .table {
  min-width: 640px;
  margin-bottom: 0;
}

.shop-front .pagination .page-link {
  color: var(--brand-dark);
}

.shop-front .pagination .active > .page-link {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

@media (max-width: 1399.98px) and (min-width: 1200px) {
  .navbar .container {
    max-width: 100%;
    padding-inline: 1.25rem;
  }

  .navbar-brand img {
    height: 48px;
  }

  .navbar .nav-link {
    padding-inline: 0.55rem !important;
    font-size: 0.92rem;
  }

  .navbar .btn {
    padding-inline: 0.75rem !important;
    font-size: 0.86rem;
  }
}

@media (max-width: 991.98px) {
  .shop-front .shop-layout {
    grid-template-columns: 1fr;
  }

  .shop-front .filters {
    position: static;
  }

  .shop-front .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .home-shop-panel {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .home-shop-panel > .btn {
    grid-column: 1 / -1;
    width: 100%;
  }

  .module-page .shop-front {
    width: min(100% - 1rem, 1380px);
  }

  .shop-front .shop-heading-bar,
  .shop-front .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .shop-front .shop-heading-bar .btn {
    width: 100%;
  }

  .shop-front .product-detail {
    grid-template-columns: 1fr;
  }

  .shop-front .table {
    min-width: 0;
  }

  .shop-front .table thead {
    display: none;
  }

  .shop-front .table tbody,
  .shop-front .table tfoot,
  .shop-front .table tr,
  .shop-front .table td,
  .shop-front .table th {
    display: block;
    width: 100%;
  }

  .shop-front .table tr {
    padding: 0.9rem;
    border-bottom: 1px solid rgba(17, 17, 17, 0.1);
  }

  .shop-front .table td,
  .shop-front .table th {
    padding: 0.35rem 0;
    border: 0;
    text-align: left !important;
  }

  .shop-front .table input[type="number"] {
    max-width: 120px;
  }

  .shop-front form.ms-auto {
    width: 100%;
    max-width: none !important;
  }
}

@media (max-width: 479.98px) {
  .home-shop-panel {
    grid-template-columns: 1fr;
  }

  .home-shop-icon {
    width: 4rem;
  }

  .shop-front .product-grid {
    grid-template-columns: 1fr;
  }

  .shop-front .product-actions,
  .shop-front .detail-actions {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .shop-front .product-actions .btn,
  .shop-front .detail-actions .btn {
    flex: 1 1 100%;
  }
}

/*
 * HD Keys Client Area overrides for BespokeSITE CMS.
 * Applies the public black, red, white, and soft-grey design to existing customer authentication and account screens.
 * Developer: Ben Scully | Project: BespokeSITE CMS | Website: bespokesite.co.uk
 */
.clientarea-auth-shell {
  --clientarea-navy: #111111;
  --clientarea-blue: #c53f2a;
  --clientarea-cyan: #e1705e;
  --clientarea-ink: #171717;
  --clientarea-soft: #666666;
  --clientarea-line: rgba(17, 17, 17, 0.13);
  --clientarea-card: #ffffff;
  --clientarea-shadow: 0 18px 40px rgba(0, 0, 0, 0.11);
}

.clientarea-auth-shell .clientarea-auth-card,
.clientarea-auth-shell .clientarea-sidebar-card,
.clientarea-auth-shell .clientarea-account-card {
  border: 1px solid #e0e0e0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.1);
}

.clientarea-auth-shell .clientarea-auth-head {
  background: linear-gradient(180deg, #fff, #fafafa);
}

.clientarea-auth-shell .clientarea-auth-tab {
  border-color: rgba(197, 63, 42, 0.2);
  background: rgba(197, 63, 42, 0.06);
  color: #292929;
}

.clientarea-auth-shell .clientarea-auth-tab:hover,
.clientarea-auth-shell .clientarea-auth-tab:focus-visible,
.clientarea-auth-shell .clientarea-auth-tab.is-active {
  border-color: rgba(197, 63, 42, 0.35);
  background: rgba(197, 63, 42, 0.12);
  color: #a13321;
}

.clientarea-auth-shell .clientarea-auth-kicker-alt,
.clientarea-auth-shell .clientarea-account-kicker,
.clientarea-auth-shell .clientarea-section-kicker {
  color: #a13321;
}

.clientarea-auth-shell .btn-primary,
.clientarea-auth-shell .btn-success,
.clientarea-auth-shell .clientarea-sidebar-link.is-active {
  border-color: #c53f2a !important;
  background: #c53f2a !important;
  color: #fff !important;
  opacity: 1;
}

.clientarea-auth-shell .btn-primary > *,
.clientarea-auth-shell .btn-success > *,
.clientarea-auth-shell .clientarea-sidebar-link.is-active > * {
  color: inherit !important;
}

.clientarea-auth-shell .btn-primary:hover,
.clientarea-auth-shell .btn-primary:focus,
.clientarea-auth-shell .btn-primary:active,
.clientarea-auth-shell .btn-success:hover,
.clientarea-auth-shell .btn-success:focus,
.clientarea-auth-shell .btn-success:active {
  border-color: #a13321 !important;
  background: #a13321 !important;
  color: #fff !important;
  box-shadow: 0 0 0 0.22rem rgba(197, 63, 42, 0.2) !important;
}

.clientarea-auth-shell .btn-primary:disabled,
.clientarea-auth-shell .btn-success:disabled {
  border-color: #a95d51 !important;
  background: #a95d51 !important;
  color: #fff !important;
  opacity: 0.72;
}

.clientarea-auth-shell .btn-outline-secondary {
  border-color: #333 !important;
  background: #fff !important;
  color: #222 !important;
}

.clientarea-auth-shell .btn-outline-secondary:hover,
.clientarea-auth-shell .btn-outline-secondary:focus,
.clientarea-auth-shell .btn-outline-secondary:active {
  border-color: #111 !important;
  background: #111 !important;
  color: #fff !important;
}

.clientarea-auth-shell .clientarea-auth-links a {
  border-color: rgba(197, 63, 42, 0.18);
  background: rgba(197, 63, 42, 0.05);
  color: #a13321;
}

.clientarea-auth-shell .clientarea-auth-links a:hover,
.clientarea-auth-shell .clientarea-auth-links a:focus-visible {
  border-color: rgba(197, 63, 42, 0.35);
  background: rgba(197, 63, 42, 0.12);
  color: #84291b;
}

.clientarea-auth-shell .clientarea-sidebar-card {
  background:
    radial-gradient(circle at top right, rgba(197, 63, 42, 0.24), transparent 42%),
    linear-gradient(155deg, #1b1b1b, #090909);
}

.clientarea-auth-shell .clientarea-sidebar-link:not(.is-active) {
  color: rgba(255, 255, 255, 0.82);
}

.clientarea-auth-shell .clientarea-sidebar-link:not(.is-active):hover,
.clientarea-auth-shell .clientarea-sidebar-link:not(.is-active):focus-visible {
  color: #fff;
}

.clientarea-auth-shell .clientarea-sidebar-logout .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.75) !important;
  background: transparent !important;
  color: #fff !important;
}

.clientarea-auth-shell .clientarea-sidebar-logout .btn-outline-light:hover,
.clientarea-auth-shell .clientarea-sidebar-logout .btn-outline-light:focus {
  border-color: #fff !important;
  background: #fff !important;
  color: #111 !important;
}

.clientarea-auth-shell .form-control:focus {
  border-color: rgba(197, 63, 42, 0.55);
  box-shadow: 0 0 0 0.2rem rgba(197, 63, 42, 0.13);
}

/*
 * HD Keys admin-area theme overrides for BespokeSITE CMS.
 * Styles the shared admin shell, authentication screens, controls, tables, navigation, and responsive states in the HD Keys black, red, white, and grey visual language.
 * Developer: Ben Scully | Project: BespokeSITE CMS | Website: bespokesite.co.uk
 */

/* Keep every override inside the shared admin wrapper so public pages are unaffected. */
#adminarea {
  --hd-admin-red: #c53f2a;
  --hd-admin-red-dark: #a13321;
  --hd-admin-black: #111111;
  --hd-admin-text: #202020;
  --hd-admin-muted: #656565;
  --hd-admin-line: #dedede;
  --hd-admin-surface: #ffffff;
  --hd-admin-canvas: #f3f3f3;
  color: var(--hd-admin-text);
  background: var(--hd-admin-canvas);
}

#adminarea .container-fluid {
  background: transparent;
}

#adminarea a:not(.btn):not(.list-group-item):not(.nav-link) {
  color: var(--hd-admin-red-dark);
}

#adminarea a:not(.btn):not(.list-group-item):not(.nav-link):hover,
#adminarea a:not(.btn):not(.list-group-item):not(.nav-link):focus-visible {
  color: var(--hd-admin-red);
}

/* Give the sidebar a strong branded hierarchy without changing its shared layout behaviour. */
#adminarea #admin-menu {
  overflow: hidden;
  border: 1px solid #292929;
  border-radius: 14px;
  background: var(--hd-admin-black);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16);
}

#adminarea #admin-menu .list-group-item {
  border-color: rgba(255, 255, 255, 0.08);
  background: transparent;
  color: rgba(255, 255, 255, 0.84);
}

#adminarea #admin-menu .list-group-item i,
#adminarea #admin-menu .module-nav-label,
#adminarea #admin-menu .module-nav-chevron {
  color: inherit;
}

#adminarea #admin-menu .list-group-item-action:hover,
#adminarea #admin-menu .list-group-item-action:focus {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

#adminarea #admin-menu .list-group-item.active,
#adminarea #admin-menu .list-group-item.active:hover,
#adminarea #admin-menu .list-group-item.active:focus {
  border-color: var(--hd-admin-red);
  background: var(--hd-admin-red);
  color: #fff;
}

#adminarea #admin-menu .collapse,
#adminarea #admin-menu .collapsing,
#adminarea #admin-menu .module-nav-group {
  background: rgba(255, 255, 255, 0.035);
}

#adminarea #admin-menu .collapse .list-group-item,
#adminarea #admin-menu .collapsing .list-group-item {
  color: rgba(255, 255, 255, 0.72);
}

/* Shared panels, tables, modals, and forms use one consistent light surface treatment. */
#adminarea .card,
#adminarea .panel,
#adminarea .well,
#adminarea .modal-content,
#adminarea .modules-container,
#adminarea .settings-card {
  border-color: var(--hd-admin-line);
  border-radius: 12px;
  background: var(--hd-admin-surface);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

#adminarea .card-header,
#adminarea .panel-heading,
#adminarea .modal-header {
  border-color: var(--hd-admin-line);
  background: #f8f8f8;
  color: var(--hd-admin-black);
}

#adminarea .table {
  border-color: var(--hd-admin-line);
  background: #fff;
  color: var(--hd-admin-text);
}

#adminarea .table > thead > tr > th,
#adminarea .table thead th {
  border-color: #303030;
  background: var(--hd-admin-black);
  color: #fff;
}

#adminarea .table > tbody > tr > td,
#adminarea .table > tbody > tr > th {
  border-color: var(--hd-admin-line);
  color: var(--hd-admin-text);
}

#adminarea .table-striped > tbody > tr:nth-of-type(odd) > * {
  background: rgba(17, 17, 17, 0.025);
  color: var(--hd-admin-text);
}

#adminarea .form-control,
#adminarea .form-select,
#adminarea select,
#adminarea textarea {
  border-color: #cfcfcf;
  background-color: #fff;
  color: var(--hd-admin-text);
}

#adminarea .form-control:focus,
#adminarea .form-select:focus,
#adminarea select:focus,
#adminarea textarea:focus {
  border-color: rgba(197, 63, 42, 0.7);
  box-shadow: 0 0 0 0.22rem rgba(197, 63, 42, 0.14);
}

#adminarea .form-check-input:checked {
  border-color: var(--hd-admin-red);
  background-color: var(--hd-admin-red);
}

/* Explicit button colours prevent inherited theme text colours from hiding action labels. */
#adminarea .btn-orange,
#adminarea .btn-primary,
#adminarea .btn-success {
  border-color: var(--hd-admin-red) !important;
  background: var(--hd-admin-red) !important;
  color: #fff !important;
}

#adminarea .btn > i,
#adminarea .btn > span,
#adminarea .btn > strong {
  color: inherit !important;
}

#adminarea .btn-orange:hover,
#adminarea .btn-orange:focus,
#adminarea .btn-orange:active,
#adminarea .btn-primary:hover,
#adminarea .btn-primary:focus,
#adminarea .btn-primary:active,
#adminarea .btn-success:hover,
#adminarea .btn-success:focus,
#adminarea .btn-success:active {
  border-color: var(--hd-admin-red-dark) !important;
  background: var(--hd-admin-red-dark) !important;
  color: #fff !important;
  box-shadow: 0 0 0 0.22rem rgba(197, 63, 42, 0.2) !important;
}

#adminarea .btn-danger {
  border-color: #b42318 !important;
  background: #b42318 !important;
  color: #fff !important;
}

#adminarea .btn-warning {
  border-color: #d69e00 !important;
  background: #f2b705 !important;
  color: #211900 !important;
}

#adminarea .btn-info,
#adminarea .btn-secondary {
  border-color: #3d3d3d !important;
  background: #3d3d3d !important;
  color: #fff !important;
}

#adminarea .btn-outline-primary {
  border-color: var(--hd-admin-red) !important;
  background: #fff !important;
  color: var(--hd-admin-red-dark) !important;
}

#adminarea .btn-outline-primary:hover,
#adminarea .btn-outline-primary:focus,
#adminarea .btn-check:checked + .btn-outline-primary {
  border-color: var(--hd-admin-red) !important;
  background: var(--hd-admin-red) !important;
  color: #fff !important;
}

#adminarea .btn-outline-secondary {
  border-color: #3d3d3d !important;
  background: #fff !important;
  color: #292929 !important;
}

#adminarea .btn-outline-secondary:hover,
#adminarea .btn-outline-secondary:focus,
#adminarea .btn-check:checked + .btn-outline-secondary {
  border-color: var(--hd-admin-black) !important;
  background: var(--hd-admin-black) !important;
  color: #fff !important;
}

#adminarea .btn:disabled,
#adminarea .btn.disabled {
  opacity: 0.62;
}

#adminarea .nav-tabs {
  border-bottom-color: #d2d2d2;
}

#adminarea .nav-tabs .nav-link {
  border-color: transparent;
  color: #3b3b3b !important;
}

#adminarea .nav-tabs .nav-link:hover,
#adminarea .nav-tabs .nav-link:focus {
  border-color: #dedede #dedede transparent;
  background: #f6f6f6;
  color: var(--hd-admin-red-dark) !important;
}

#adminarea .nav-tabs .nav-link.active,
#adminarea .nav-tabs .nav-item.show .nav-link {
  border-color: #d2d2d2 #d2d2d2 #fff;
  background: #fff;
  color: var(--hd-admin-red-dark) !important;
  font-weight: 700;
}

#adminarea .page-link {
  border-color: #d6d6d6;
  color: var(--hd-admin-red-dark);
}

#adminarea .page-item.active .page-link {
  border-color: var(--hd-admin-red);
  background: var(--hd-admin-red);
  color: #fff;
}

/* Authentication and recovery screens need their own complete layout because their markup sits outside the normal sidebar shell. */
#adminarea .section.section-soft {
  min-height: calc(100vh - 80px);
  padding: clamp(2.5rem, 7vw, 5.5rem) 0;
  background:
    radial-gradient(circle at 82% 12%, rgba(197, 63, 42, 0.26), transparent 26%),
    linear-gradient(145deg, #080808, #1d1d1d);
}

#adminarea .section-head {
  max-width: 760px;
  margin: 0 auto 2rem;
  text-align: center;
}

#adminarea .section-title,
#adminarea .section-subtitle {
  color: #fff;
}

#adminarea .section-subtitle {
  opacity: 0.76;
}

#adminarea .quote-card {
  height: 100%;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

#adminarea .quote-title {
  color: var(--hd-admin-black);
  font-weight: 800;
}

#adminarea .quote-subtitle {
  color: var(--hd-admin-muted);
}

@media (max-width: 991.98px) {
  #adminarea #admin-menu {
    margin-bottom: 1.25rem;
  }

  #adminarea .section.section-soft {
    min-height: calc(100vh - 64px);
    padding: 2.5rem 0;
  }
}

@media (max-width: 575.98px) {
  #adminarea .container-fluid {
    padding-right: 0.8rem;
    padding-left: 0.8rem;
  }

  #adminarea .quote-card {
    padding: 1.25rem;
    border-radius: 12px;
  }

  #adminarea .table-responsive {
    border-radius: 10px;
  }
}

/*
 * Invoices client-area styles for BespokeSITE CMS.
 * Refines standalone and embedded invoice pages with a cleaner invoice presentation, clearer totals, refund history, redacted line styling, and multi-line item descriptions that mirror the PDF layout more closely.
 * Developer: Ben Scully | Project: BespokeSITE CMS | Website: bespokesite.co.uk
 */

.invoices-clientarea-view {
  color: #0f172a;
}

.invoices-front-shell {
  display: grid;
  gap: 1.5rem;
}

.invoices-front-header-card,
.invoices-front-note-card,
.invoices-front-totals-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 1.25rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.invoices-front-header-card {
  padding: 1.5rem;
}

.invoices-front-eyebrow {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.invoices-front-title {
  margin-top: 0.35rem;
  font-size: clamp(1.45rem, 2vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.invoices-front-status {
  font-size: 0.82rem;
  padding: 0.55rem 0.8rem;
}

.invoices-front-meta-grid,
.invoices-front-party-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.invoices-front-meta-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.invoices-front-party-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.invoices-front-meta-card,
.invoices-front-party-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 1rem;
  padding: 1rem 1.1rem;
}

.invoices-front-meta-label,
.invoices-front-party-label,
.invoices-front-note-label,
.invoices-front-section-kicker {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.invoices-front-meta-value {
  margin-top: 0.35rem;
  font-size: 1rem;
  font-weight: 700;
}

.invoices-front-meta-value-strong {
  color: #0d6efd;
  font-size: 1.2rem;
}

.invoices-front-party-lines {
  margin-top: 0.45rem;
  color: #334155;
  line-height: 1.55;
}

.invoices-front-section {
  display: grid;
  gap: 0.9rem;
}

.invoices-front-section-heading {
  display: grid;
  gap: 0.35rem;
}

.invoices-front-section-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
}

.invoices-front-table-wrap {
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 1rem;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.04);
}

.invoices-front-line-table {
  margin-bottom: 0;
}

.invoices-front-line-table thead th {
  border-top: 0;
  border-bottom-width: 1px;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.95rem 1rem;
  text-transform: uppercase;
}

.invoices-front-line-table td {
  padding: 1rem;
  vertical-align: top;
}

.invoices-front-line-title {
  font-weight: 700;
  line-height: 1.4;
}

.invoices-front-line-detail {
  color: #64748b;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.5;
  margin-top: 0.3rem;
  white-space: normal;
}

.invoices-front-line-redacted .invoices-front-line-title {
  color: #64748b;
  text-decoration: line-through;
}

.invoices-front-line-redacted td:not(:first-child) {
  color: #64748b;
}

.invoices-front-line-redacted-note {
  color: #b42318;
  font-weight: 700;
}

.invoices-front-totals {
  justify-items: end;
}

.invoices-front-totals-card {
  min-width: min(100%, 360px);
  padding: 1rem 1.2rem;
}

.invoices-front-total-row {
  align-items: center;
  display: flex;
  font-size: 0.98rem;
  justify-content: space-between;
  padding: 0.55rem 0;
}

.invoices-front-total-row strong {
  font-size: 1rem;
}

.invoices-front-total-row + .invoices-front-total-row {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.invoices-front-total-row-final {
  color: #0d6efd;
}

.invoices-front-total-row-final strong {
  font-size: 1.35rem;
}

.invoices-front-total-row-refunded {
  color: #15803d;
}

.invoices-front-total-row-net {
  color: #0f172a;
}

.invoices-front-total-row-net strong {
  font-size: 1.2rem;
}

.invoices-front-refund-table td {
  padding: 0.9rem 1rem;
  vertical-align: top;
}

.invoices-front-refund-item {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.invoices-front-refund-item + .invoices-front-refund-item {
  margin-top: 0.35rem;
}

.invoices-front-note-card {
  padding: 1rem 1.1rem;
}

.invoices-front-note-copy {
  color: #334155;
  line-height: 1.65;
  margin-top: 0.5rem;
}

.invoices-front-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.invoices-payment-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.85rem;
}

.invoices-payment-options #gatewayDiv {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 0.9rem;
  display: flex;
  min-height: 3.6rem;
  padding: 0.8rem 1rem;
}

.invoices-payment-options form {
  margin: 0;
}

.invoices-list-table-wrap {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 1rem;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.invoices-list-table {
  margin-bottom: 0;
}

.invoices-list-table thead th {
  background: #f8fafc;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  border-top: 0;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.75rem 1rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.invoices-list-table tbody tr {
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  transition: background 0.12s ease;
}

.invoices-list-table tbody tr:last-child {
  border-bottom: 0;
}

.invoices-list-table tbody tr:hover {
  background: #f8fafc;
}

.invoices-list-table td {
  padding: 0.8rem 1rem;
  vertical-align: middle;
}

.invoice-row-overdue {
  background: rgba(220, 38, 38, 0.03);
}

.invoice-row-overdue:hover {
  background: rgba(220, 38, 38, 0.06) !important;
}

.invoices-list-num {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1e293b;
  text-decoration: none;
}

.invoices-list-num-cell {
  white-space: nowrap;
}

.invoices-list-title-cell {
  color: #475569;
  font-size: 0.9rem;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.invoices-list-date-cell {
  color: #64748b;
  font-size: 0.88rem;
  white-space: nowrap;
}

.invoices-list-amount-cell {
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
}

.invoices-list-actions-cell {
  white-space: nowrap;
}

.invoices-list-overdue-badge {
  font-size: 0.68rem;
  padding: 0.2rem 0.45rem;
  vertical-align: middle;
}

.btn.btn-xs {
  font-size: 0.78rem;
  padding: 0.22rem 0.6rem;
  line-height: 1.5;
  border-radius: 0.35rem;
}

.invoices-cancelled-toggle {
  flex-shrink: 0;
}

@media (max-width: 767.98px) {
  .invoices-list-table-wrap {
    border: 0;
    box-shadow: none;
    overflow: visible;
  }

  .invoices-list-table,
  .invoices-list-table tbody,
  .invoices-list-table tr,
  .invoices-list-table td {
    display: block;
    width: 100%;
  }

  .invoices-list-table thead {
    display: none;
  }

  .invoices-list-table tbody {
    display: grid;
    gap: 1rem;
  }

  .invoices-list-table tbody tr {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  }

  .invoices-list-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: none;
    padding: 0.7rem 0.9rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    text-align: right !important;
    white-space: normal;
  }

  .invoices-list-table td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .invoices-list-table td:last-child {
    border-bottom: 0;
  }

  .invoices-list-actions-cell {
    align-items: stretch !important;
    flex-wrap: wrap;
  }

  .invoices-list-actions-cell::before {
    flex-basis: 100%;
    text-align: left;
  }

  .invoices-list-actions-cell .btn {
    flex: 1 1 6rem;
    min-height: 2.65rem;
  }

  .invoices-front-header-card,
  .invoices-front-note-card,
  .invoices-front-totals-card {
    border-radius: 1rem;
  }

  .invoices-front-header-card {
    padding: 1.15rem;
  }

  .invoices-front-line-table thead th,
  .invoices-front-line-table td {
    padding: 0.8rem 0.75rem;
  }

  .invoices-front-totals {
    justify-items: stretch;
  }

  .invoices-front-totals-card {
    min-width: 100%;
  }
}

/*
 * Car Key Pricing Client Area styles for BespokeSITE CMS.
 * Provides responsive quote cards and secure quote-detail presentation inside the standalone customer account shell.
 * Developer: Ben Scully | Project: BespokeSITE CMS | Website: bespokesite.co.uk
 */

.clientarea-car-quotes .clientarea-section-intro { margin-bottom: 0; }
.carkey-client-list-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.carkey-client-new-quote { flex: 0 0 auto; }
.carkey-client-new-quote i,
.carkey-client-detail-actions i { margin-right: .35rem; }
.carkey-client-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.carkey-client-card,
.carkey-client-detail-card { border: 1px solid rgba(148, 163, 184, .22); border-radius: 1rem; background: #fff; box-shadow: 0 12px 28px rgba(15, 23, 42, .06); }
.carkey-client-card { display: flex; flex-direction: column; gap: .9rem; padding: 1.15rem; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.carkey-client-card:hover { border-color: rgba(37, 99, 235, .28); box-shadow: 0 18px 36px rgba(15, 23, 42, .1); transform: translateY(-2px); }
.carkey-client-card-head,
.carkey-client-detail-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.carkey-client-reg { display: block; color: #172033; font-size: 1.15rem; font-weight: 800; letter-spacing: .06em; }
.carkey-client-date { margin-top: .2rem; color: #6b7280; font-size: .78rem; }
.carkey-client-field { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding-bottom: .65rem; border-bottom: 1px solid rgba(148, 163, 184, .14); }
.carkey-client-field span { color: #64748b; font-size: .82rem; }
.carkey-client-field strong { max-width: 62%; color: #1e293b; font-size: .88rem; text-align: right; }
.carkey-client-pagination { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.carkey-client-detail-head { margin-bottom: 1.5rem; }
.carkey-client-detail-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.carkey-client-detail-title { margin-bottom: 1.25rem; }
.carkey-client-detail-title h2 { margin: .4rem 0 .2rem; color: #172033; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; }
.carkey-client-detail-title p { margin: 0; color: #64748b; }
.carkey-client-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.carkey-client-detail-card { padding: 1.2rem; }
.carkey-client-detail-card h3 { margin: 0 0 1rem; color: #172033; font-size: 1.05rem; font-weight: 800; }
.carkey-client-detail-card .carkey-client-field { margin-bottom: .65rem; }
.carkey-client-total { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-top: 1rem; padding-top: 1rem; border-top: 2px solid rgba(37, 99, 235, .18); }
.carkey-client-total span { color: #475569; font-weight: 700; }
.carkey-client-total strong { color: #172033; font-size: 1.45rem; }
.carkey-client-disclaimer { margin: 1rem 0 0; color: #64748b; font-size: .78rem; line-height: 1.55; }
.carkey-client-answers { margin-top: 1rem; }
.carkey-client-empty { position: relative; overflow: hidden; padding: clamp(1.5rem, 5vw, 3rem); border: 1px dashed rgba(37, 99, 235, .3); border-radius: 1rem; background: linear-gradient(145deg, rgba(239, 246, 255, .9), rgba(255, 255, 255, .96)); text-align: center; }
.carkey-client-empty-icon { display: inline-grid; width: 3.5rem; height: 3.5rem; place-items: center; margin-bottom: 1rem; border-radius: 50%; background: #fff; color: #2563eb; box-shadow: 0 8px 20px rgba(37, 99, 235, .12); font-size: 1.25rem; }
.carkey-client-empty h3 { margin: 0 0 .5rem; color: #172033; font-size: 1.3rem; font-weight: 800; }
.carkey-client-empty p { max-width: 32rem; margin: 0 auto 1.25rem; color: #64748b; line-height: 1.6; }
.carkey-client-new-quote:focus-visible,
.carkey-client-detail-actions .btn:focus-visible,
.carkey-client-empty .btn:focus-visible { outline: 3px solid rgba(37, 99, 235, .28); outline-offset: 3px; }

@media (max-width: 767.98px) {
  .carkey-client-list-head { align-items: stretch; flex-direction: column; }
  .carkey-client-new-quote { width: 100%; min-height: 2.85rem; }
  .carkey-client-grid,
  .carkey-client-detail-grid { grid-template-columns: 1fr; }
  .carkey-client-detail-head { align-items: stretch; flex-direction: column-reverse; }
  .carkey-client-detail-head .badge { align-self: flex-start; }
  .carkey-client-field { align-items: flex-start; flex-direction: column; gap: .25rem; }
  .carkey-client-field strong { max-width: none; text-align: left; }
  .carkey-client-card .btn,
  .carkey-client-detail-head .btn { flex: 1 1 10rem; min-height: 2.85rem; }
  .carkey-client-card:hover { transform: none; }
}

.stripe-payment-method-list{display:grid;gap:.85rem}.stripe-payment-method-card{display:grid;grid-template-columns:3rem minmax(0,1fr) auto;align-items:center;gap:.875rem;border:1px solid rgba(15,23,42,.14);border-radius:8px;padding:.95rem 1rem;background:#fff;box-shadow:0 1px 2px rgba(15,23,42,.06);transition:border-color .16s ease,box-shadow .16s ease,background-color .16s ease,transform .16s ease}.stripe-payment-method-card:hover{border-color:rgba(13,110,253,.42);box-shadow:0 8px 22px rgba(15,23,42,.1);transform:translateY(-1px)}.stripe-payment-method-card.is-default{border-color:#0d6efd;background:linear-gradient(180deg,rgba(13,110,253,.08),rgba(13,110,253,.03));box-shadow:0 0 0 1px rgba(13,110,253,.18),0 10px 26px rgba(13,110,253,.12)}.stripe-payment-method-card-empty{grid-template-columns:3rem minmax(0,1fr)}.stripe-payment-method-copy{display:grid;gap:.12rem;min-width:0}.stripe-payment-element{border:1px solid rgba(15,23,42,.14);border-radius:8px;padding:1rem;background:#fff}.stripe-payment-method-actions{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;justify-content:flex-end}.stripe-payment-confirm-modal .modal-dialog{max-width:540px}.stripe-payment-card-choice{position:relative;margin:0 0 .75rem 0;padding:0}.stripe-payment-card-input{position:absolute;opacity:0;pointer-events:none}.stripe-payment-card-option{display:grid;grid-template-columns:3rem minmax(0,1fr) auto;align-items:center;gap:.875rem;width:100%;margin:0;padding:.95rem 1rem;border:1px solid rgba(15,23,42,.14);border-radius:8px;background:#fff;box-shadow:0 1px 2px rgba(15,23,42,.06);cursor:pointer;transition:border-color .16s ease,box-shadow .16s ease,background-color .16s ease,transform .16s ease}.stripe-payment-card-option:hover{border-color:rgba(13,110,253,.42);box-shadow:0 8px 22px rgba(15,23,42,.1);transform:translateY(-1px)}.stripe-payment-card-input:focus-visible+.stripe-payment-card-option{outline:3px solid rgba(13,110,253,.22);outline-offset:2px}.stripe-payment-card-input:checked+.stripe-payment-card-option{border-color:#0d6efd;background:linear-gradient(180deg,rgba(13,110,253,.08),rgba(13,110,253,.03));box-shadow:0 0 0 1px rgba(13,110,253,.18),0 10px 26px rgba(13,110,253,.12)}.stripe-payment-card-input:disabled+.stripe-payment-card-option{cursor:not-allowed;opacity:.68;background:#f8f9fa;box-shadow:none;transform:none}.stripe-payment-card-mark{display:flex;flex-direction:column;justify-content:space-between;width:3rem;height:2rem;padding:.42rem;border-radius:6px;background:linear-gradient(135deg,#172033,#40506d);box-shadow:inset 0 0 0 1px rgba(255,255,255,.12)}.stripe-payment-card-mark span:first-child{display:block;width:.72rem;height:.52rem;border-radius:2px;background:#f4d06f}.stripe-payment-card-mark span:last-child{display:block;width:1.65rem;height:.18rem;border-radius:999px;background:rgba(255,255,255,.72)}.stripe-payment-card-copy{display:grid;gap:.12rem;min-width:0}.stripe-payment-card-title{font-weight:700;color:#172033;line-height:1.2;overflow-wrap:anywhere}.stripe-payment-card-meta{font-size:.875rem;color:#64748b}.stripe-payment-card-badges{display:flex;align-items:center;gap:.35rem;flex-wrap:wrap;justify-content:flex-end}@media (max-width:640px){.stripe-payment-method-card{grid-template-columns:3rem minmax(0,1fr);align-items:start}.stripe-payment-method-actions{grid-column:2;justify-content:flex-start}.stripe-payment-method-actions .btn{flex:1 1 auto}}@media (max-width:480px){.stripe-payment-card-option{grid-template-columns:3rem minmax(0,1fr);align-items:start}.stripe-payment-card-badges{grid-column:2;justify-content:flex-start}}.stripe-payment-confirm-modal{z-index:1065}.modal-backdrop{z-index:1050}.stripe-payment-method-form [data-stripe-status][hidden]{display:none!important}
