/* CSS Variables */
:root {
  --avenir: "AvenirNext", sans-serif;
  --lora: "Lora", serif;

  --body-color: #036;

  --primary-color: #008a88;
  --secondary-color: #6a0dad;
  --secondary-color-lt: rgba(106, 13, 173, 0.04);
}

/* FONTS */
@font-face {
  font-family: "AvenirNext";
  src:
    url("fonts/AvenirNext-Regular.woff2") format("woff2"),
    url("fonts/AvenirNext-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "AvenirNext";
  src:
    url("fonts/AvenirNext-Medium.woff2") format("woff2"),
    url("fonts/AvenirNext-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "AvenirNext";
  src:
    url("fonts/AvenirNext-Bold.woff2") format("woff2"),
    url("fonts/AvenirNext-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Lora";
  src:
    url("fonts/Lora-VariableFont_wght.woff2") format("woff2"),
    url("fonts/Lora-VariableFont_wght.woff") format("woff");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

body {
  position: relative;
  font-family: var(--avenir);
  color: var(--body-color) !important;
  font-weight: 400;
  overflow-x: hidden;
}
a {
  color: var(--primary-color) !important;
  text-decoration: none;
}

.nadireo-bg {
  background: url("images/nadireo-bg.webp") no-repeat center bottom;
  background-size: cover;
}
/* NAVBAR */
.navbar {
  position: relative;
  background-color: #f0f0f0;
  border-radius: 0.5rem;
  margin: 0.5rem 0;
  padding: 0.5rem 1rem;
}

@media (max-width: 1399.98px) {
  #navbarNav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #f0f0f0;
    border-radius: 0 0 0.5rem 0.5rem;
    padding: 0.75rem;
    z-index: 99;
    box-shadow: 0 1rem 2rem rgba(0, 51, 102, 0.1);
  }

  .navbar:has(#navbarNav.show),
  .navbar:has(#navbarNav.collapsing) {
    border-radius: 0.5rem 0.5rem 0 0;
  }

  #navbarNav.show,
  #navbarNav.collapsing {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .navbar .navbar-nav {
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    width: 100%;
    padding: 0.25rem 0;
  }

  .navbar .nav-item {
    position: relative;
    width: auto;
  }

  .navbar .nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.65rem 0.75rem !important;
    border-radius: 0.375rem;
    font-size: 1.05rem;
    font-weight: 700;
    text-align: center;
  }

  .navbar .nav-link:hover,
  .navbar .nav-link:focus-visible,
  .navbar .dropdown.show > .nav-link,
  .navbar .nav-item.show > .nav-link {
    background: rgba(0, 138, 136, 0.08);
    color: var(--primary-color) !important;
    outline: none;
  }

  .navbar .dropdown-menu {
    position: absolute;
    top: calc(100% + 0.25rem);
    left: 50%;
    width: min(18rem, calc(100vw - 2rem));
    margin: 0.25rem 0 0;
    padding: 0.35rem;
    border: 1px solid rgba(0, 51, 102, 0.08);
    border-radius: 0.375rem;
    background: #fff;
    box-shadow: 0 0.75rem 1.75rem rgba(0, 51, 102, 0.12);
    transform: translateX(-50%);
    z-index: 100;
  }

  .navbar .dropdown-item {
    padding: 0.55rem 0.65rem;
    border-radius: 0.3125rem;
    color: var(--body-color) !important;
    font-weight: 600;
  }

  .navbar .dropdown-item:hover,
  .navbar .dropdown-item:focus-visible {
    background: rgba(0, 138, 136, 0.08);
    color: var(--primary-color) !important;
  }

  .navbar-search {
    order: 2;
    width: 100%;
    min-height: 2.75rem;
    margin: 0 !important;
    padding: 0 0.75rem !important;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .navbar-search .bi {
    flex: 0 0 auto;
    color: var(--body-color);
    font-size: 1.1rem;
  }

  .navbar-account-actions {
    order: 3;
  }

  .navbar-language-switcher {
    order: 4;
  }
}

@media (max-width: 767.98px) {
  #navbarNav.show,
  #navbarNav.collapsing {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0.5rem;
  }

  .navbar .navbar-nav {
    flex: 0 0 100%;
  }

  .navbar-search {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    padding: 0 !important;
  }

  .navbar-search input {
    min-width: 0;
  }

  .navbar-account-actions {
    flex: 0 0 auto;
    width: 100%;
    gap: 0.5rem;
  }

  .navbar-account-actions .btn {
    flex: 0 0 auto;
    min-height: 2.5rem;
    padding-right: 0.8rem !important;
    padding-left: 0.8rem !important;
    white-space: nowrap;
  }

  .navbar-account-link,
  .navbar-cart-link {
    flex-basis: 2.5rem;
    width: 2.5rem !important;
    height: 2.5rem;
    min-height: 2.5rem;
  }

  .navbar-language-switcher {
    flex: 0 0 100%;
    margin-top: 0.25rem;
  }
}

/* Mobile-first base styles */
.navbar-nav {
  align-items: center;
  gap: 1.5rem;
}
.menu-item {
  font-size: 1rem;
}
.nav-link {
  color: var(--body-color) !important;
  padding: 0 !important;
  margin: 0 !important;
  font-weight: 500;
}
.nav-link:hover {
  color: var(--primary-color) !important;
}
.navbar-search input {
  width: 100%;
  color: var(--body-color) !important;
}

.navbar #navbarNav .btn {
  width: 100%;
  margin-top: 0.5rem;
}

.navbar-account-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  margin-top: 0.5rem;
  flex-direction: row-reverse;
}

@media (max-width: 1399.98px) {
  .navbar-account-actions {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 0;
  }

  .navbar-account-actions:not(.navbar-account-actions--guest) {
    justify-content: space-between;
  }

  .navbar-account-actions .btn,
  .navbar-account-link,
  .navbar-cart-link {
    flex: 1 1 0;
    width: auto !important;
    height: auto;
    min-height: 2.75rem;
    margin: 0 !important;
  }

  .navbar-account-link,
  .navbar-cart-link {
    flex: 0 0 2.75rem;
    width: 2.75rem !important;
    height: 2.75rem;
    border-radius: 50%;
  }

  .navbar-account-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .navbar-account-actions--guest .btn-primary {
    order: 1;
  }

  .navbar-account-actions--guest .btn-outline-secondary {
    order: 2;
  }

  .navbar-account-actions:not(.navbar-account-actions--guest)
    .navbar-account-link:not(.navbar-cart-link) {
    order: 1;
  }

  .navbar-account-actions:not(.navbar-account-actions--guest)
    .navbar-cart-link {
    order: 2;
  }

  .navbar-account-actions:not(.navbar-account-actions--guest) .btn {
    order: 3;
  }
}

@media (min-width: 768px) and (max-width: 1399.98px) {
  #navbarNav.show,
  #navbarNav.collapsing {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .navbar .navbar-nav {
    flex: 0 0 100%;
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
  }

  .navbar-search {
    flex: 1 1 14rem;
    width: auto;
    min-width: 0;
    order: 2;
  }

  .navbar-account-actions {
    flex: 0 0 auto;
    width: auto;
    order: 3;
  }

  .navbar-language-switcher {
    align-self: flex-start;
    margin: 0;
  }
}

@media (max-width: 767.98px) {
  .navbar-search {
    flex: 0 0 auto;
    width: 100%;
  }

  .navbar-account-actions {
    flex: 0 0 auto;
    width: 100%;
    gap: 0.5rem;
    flex-direction: row;
    justify-content: flex-start;
  }

  .navbar-account-actions .btn {
    flex: 0 0 auto;
    min-height: 2.5rem;
    padding-right: 0.8rem !important;
    padding-left: 0.8rem !important;
    order: 1 !important;
  }

  .navbar-account-link,
  .navbar-cart-link {
    flex: 0 0 2.5rem;
    width: 2.5rem !important;
    height: 2.5rem;
    min-height: 2.5rem;
  }

  .navbar-account-actions .navbar-cart-link {
    margin-left: auto !important;
    order: 3 !important;
  }

  .navbar-account-actions .navbar-account-link:not(.navbar-cart-link) {
    order: 4 !important;
  }
}

@media (min-width: 1400px) {
  .navbar-account-actions {
    flex-direction: row;
  }
}

.navbar-account-actions .btn {
  width: auto !important;
  margin-top: 0 !important;
}

@media (max-width: 1399.98px) {
  .navbar-account-actions .btn {
    width: auto !important;
  }
}

.navbar-account-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin: 0;
  border: 1px solid var(--body-color);
  border-radius: 50%;
  color: var(--body-color) !important;
  font-size: 1.2rem;
  line-height: 1;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.navbar-account-link:hover,
.navbar-account-link:focus-visible {
  border-color: var(--primary-color);
  background-color: var(--primary-color);
  color: #fff !important;
  outline: none;
}

.navbar-language-switcher {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  margin: 0.5rem auto 0;
  font-size: 1.15rem;
  line-height: 1;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.navbar-language-switcher:hover,
.navbar-language-switcher:focus-visible {
  opacity: 0.75;
  transform: translateY(-1px);
  outline: none;
}

.navbar-language-switcher img {
  display: block;
  width: 1.25rem;
  height: auto;
}

.navbar-cart-link {
  position: relative;
}

.navbar-cart-badge {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 0.9rem;
  height: 0.9rem;
  padding: 0 0.18rem;
  border: 1px solid #f0f0f0;
  border-radius: 999px;
  color: #fff;
  background-color: #dc2626;
  font-size: 0.5rem;
  font-weight: 700;
  line-height: 1;
}

.navbar-cart-badge.is-active {
  display: inline-flex;
}

.navbar-cart-badge,
.navbar-cart-badge.is-active {
  display: none !important;
}

.btn-outline-secondary:hover {
  color: #fff !important;
  background-color: var(--primary-color) !important;
}

.navbar #navbarNav .btn-primary {
  border-color: var(--primary-color) !important;
  background-color: var(--primary-color) !important;
  color: #fff !important;
}

.navbar #navbarNav .btn-primary:hover,
.navbar #navbarNav .btn-primary:focus-visible {
  border-color: #006e6d !important;
  background-color: #006e6d !important;
}

/* Desktop overrides */
@media (min-width: 1400px) {
  .navbar {
    position: relative;
  }

  .navbar .navbar-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    align-items: unset;
    display: flex;
    gap: 2rem;
  }

  .navbar-search input {
    width: 120px;
  }

  .navbar #navbarNav .btn {
    width: auto;
    margin-top: 0;
  }

  .navbar-account-link {
    margin: 0;
  }

  .navbar-account-actions {
    width: auto;
    margin-top: 0;
    margin-left: 1rem;
  }

  .navbar-language-switcher {
    margin: 0 0 0 0.75rem;
  }
}

.navbar-brand {
  margin-right: 1rem;
}
/* BACKGROUNDS */
.green-bg {
  background-color: var(--primary-color);
  color: #fff;
}

/* HOME */
.navbar-container {
  position: relative;
  z-index: 100;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 4rem;
  margin-top: -5.7rem;
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: #0369;
  z-index: 1;
}

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

@media (min-width: 992px) {
  .hero {
    padding: 12rem 0 6rem;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

h1.hero-title {
  color: #fff;
  max-width: 36ch;
  font-size: clamp(2.75rem, 5vw, 3.5rem);
  font-style: normal;
  font-weight: 500;
  line-height: 112%; /* 3.92rem */
  /* letter-spacing: -0.105rem; */
}

.hero-desc {
  font-size: 1.25rem;
  line-height: 150%; /* 1.875rem */
  color: #fff;
  max-width: 60ch;
  margin-bottom: 4rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
@media (min-width: 992px) {
  .hero-actions {
    justify-content: flex-start;
  }
}

@media (min-width: 992px) {
  .hero-title {
    font-size: 3rem;
  }
}
.logo-home-section {
  padding: 2rem 0 5rem 0;
  border-top: 1px solid #b8e905;
}
.logo-home-section p {
  margin-bottom: 1rem;
}

.logo-home-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  align-items: center;
  justify-content: center;
}

.video-wrapper {
  border-radius: 1rem;
  overflow: hidden;
  will-change: transform, width, border-radius;
}

.video-home-section {
  padding: 3rem 0;
}

.video-home {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  opacity: 0.5;
}

@media (max-width: 991.98px) {
  .video-home {
    opacity: 1;
  }
}

/* END HOME */

/* INDUSTRY PAGE HERO */
.industry-hero {
  min-height: 60vh;
  padding: 7rem 0 4rem;
  align-items: flex-end;
  overflow: hidden;
}

@media (min-width: 992px) {
  .industry-hero {
    padding: 9rem 0 5rem;
    align-items: center;
  }
}

.industry-hero .hero-overlay {
  background: linear-gradient(155deg, white 57%, #008a88 100%);
  opacity: 0.6;
}

.industry-hero .hero-bg-video {
  filter: blur(5px);
  transform: scale(1.05); /* evita i bordi bianchi causati dal blur */
}

.industry-hero h1.hero-title,
.industry-hero .hero-desc {
  color: var(--body-color) !important;
}

.hero-breadcrumb {
  font-size: 0.875rem;
  color: rgba(0, 51, 102, 0.65);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 0.25rem;
}

.hero-breadcrumb a {
  color: rgba(0, 51, 102, 0.65);
  text-decoration: none;
  transition: color 0.2s;
}

.hero-breadcrumb a:hover {
  color: var(--primary-color);
}

.hero-breadcrumb .breadcrumb-sep {
  opacity: 0.5;
  line-height: 1;
}

.hero-breadcrumb .breadcrumb-current {
  color: var(--body-color);
  font-weight: 500;
}
/* END INDUSTRY PAGE HERO */

/* COMMON STYLES */
p,
ul li {
  font-size: 1rem;
}
@media (min-width: 992px) {
  p,
  ul li {
    font-size: 1.25rem;
  }
}

.img-rounded img,
.img-rounded {
  border-radius: 0.75rem;
}

.medium-paragraph {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 112%; /* 2.8rem */
}
@media (min-width: 992px) {
  .medium-paragraph {
    font-size: 2rem;
    line-height: 112%; /* 2.24rem */
    letter-spacing: -0.08rem;
  }
}

.bigger-paragraph {
  font-size: 1.75rem;
  font-weight: 500;
}
@media (min-width: 992px) {
  .bigger-paragraph {
    font-size: 2.5rem;
    line-height: 112%; /* 2.8rem */
    letter-spacing: -0.05rem;
  }
}
/* END COMMON STYLES */

/* PILLS / TAGS */
.pill {
  display: grid;
  align-items: center;
  color: #cd89ff;
  border-radius: 62.4375rem;
  border: 1px solid rgba(205, 137, 255, 0.3);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.2rem 0.85rem;

  font-size: 0.8rem;
  width: fit-content;
}

/* BUTTONS */
.btn-filled {
  text-align: center;
  font-size: 1rem;
  letter-spacing: 0.0325rem;
  background-color: var(--primary-color);
  color: #fff !important;
  border: 2px solid var(--primary-color);
  border-radius: 0.25rem;
  padding: 1rem 3rem;
  font-weight: 300;
  text-decoration: none;
}

.btn-filled .wp-element-button {
  background: none;
  color: #fff !important;
}

.btn-filled:hover {
  background-color: #006e6d;
  border-color: #006e6d;
  color: #fff;
}

.product-detail-open .btn-filled {
  width: 100%;
}
/* @media (min-width: 992px) {
  .product-detail-open .btn-filled {
    width: auto;
  }
} */

.btn-filled-white {
  font-size: 1rem;
  letter-spacing: 0.0325rem;
  background-color: #fff;
  color: var(--body-color);
  border: 1px solid rgba(0, 51, 102, 0.3);

  border-radius: 0.25rem;
  padding: 1rem 3rem;
  font-weight: 300;
}

.btn-filled-white .wp-element-button {
  background: none;
  color: var(--body-color) !important;
}

.btn-filled-white:hover {
  border: 1px solid var(--body-color);
  background-color: #fff;
}

.btn-lined {
  font-size: 1rem;
  letter-spacing: 0.0325rem;
  background-color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 51, 102, 0.3);
  color: var(--body-color);
  border-radius: 0.25rem;
  padding: 1rem 3rem;
  font-weight: 300;
}

.btn-lined:hover {
  border: 1px solid var(--body-color);
  color: #fff;
  background-color: rgba(255, 255, 255, 1);
}

/* .dark-bg .btn-lined {
  color: #fff;
  background-color: transparent;
  border-color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.dark-bg .btn-lined:hover {
  color: var(--body-color);
} */

/* WHO WE SERVE SECTION */
.who-we-serve-home-section {
  position: relative;
  overflow: hidden;
  padding: 12vh 0;
  margin-top: 3.5rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.wws-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: darken;
  z-index: 1;
}

.wws-overlay {
  position: absolute;
  inset: 0;
  background: #f0f0f0;
  z-index: 0;
}
.who-we-serve-home-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  flex: 1;
}

/* Stats row */
.wws-stats-row {
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  row-gap: 2rem;
}

.wws-stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.wws-stat-number {
  font-family: var(--lora);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1;
  color: var(--secondary-color);
  margin-bottom: 0.25rem;
}

.wws-stat-label {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 140%; /* 1.225rem */
}

.wws-stat-sub {
  font-size: 0.8rem;
  color: rgba(0, 51, 102, 0.7);
}

/* Text row */
.wws-text-row {
  margin-bottom: 3.5rem;
  row-gap: 1.5rem;
}

.wws-eyebrow {
  display: block;
  font-size: 1.25rem;
  font-weight: 600;
  color: #b8e905;
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
  font-family: var(--lora);
}

.wws-heading {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
}

.wws-accent {
  color: var(--secondary-color);
}

.wws-desc {
  padding-inline: 0;
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 0;
}
@media (min-width: 992px) {
  .wws-desc {
    padding-inline: 2rem;
  }
}

/* Cards */
.wws-cards-row {
  row-gap: 1.5rem;
}

.wws-card {
  background: #f9f9f9;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 1rem;
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.wws-card-title {
  font-size: 1.4rem;
  font-weight: 700;

  margin-bottom: 1.5rem;
  line-height: 1.25;
}

.wws-card-sub {
  font-size: 0.85rem;
  color: rgba(0, 51, 102, 0.7);
}

.wws-card-desc {
  font-size: 0.95rem;
  line-height: 1.65;

  margin: 0;
  flex: 1;
}

.wws-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--body-color);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  margin-top: 1.5rem;
  -webkit-transition: all 0.3s 0s ease;
  -moz-transition: all 0.3s 0s ease;
  -o-transition: all 0.3s 0s ease;
  transition: all 0.3s 0s ease;
}

.wws-card-link:hover {
  color: var(--secondary-color);
}

.wws-card-link-icon {
  margin-bottom: 2px;
  transform: translateX(0);
  -webkit-transition: all 0.3s 0s ease;
  -moz-transition: all 0.3s 0s ease;
  -o-transition: all 0.3s 0s ease;
  transition: all 0.3s 0s ease;
}

.wws-card-link:hover .wws-card-link-icon {
  transform: translateX(3px);
}
/* END WHO WE SERVE */

/* PLATFORM SECTION */
.platform-home {
  padding: 5rem 0 6rem;
  background: #fff;
  min-height: 100vh;
  display: grid;
  place-content: center;
}

.platform-header {
  margin-bottom: 2.62rem;
}

.platform-eyebrow {
  font-family: var(--lora);
  display: block;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.platform-title {
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  font-weight: 500;
  color: var(--body-color);
  margin: 0;
}

.platform-accent {
  color: var(--primary-color);
}

/* Tabs nav */
.platform-tabs {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  border-bottom: 1px solid #e0e0e0;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.platform-tabs .nav-item {
  flex: 1;
}

.platform-tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 0.75rem 1rem;
  width: 100%;
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
  font-family: var(--avenir);
  color: #999;
  cursor: pointer;
  transition:
    color 0.2s,
    border-color 0.2s;
  white-space: nowrap;
}

.platform-tab-btn.active,
.platform-tab-btn:focus-visible {
  color: var(--body-color);
  border-bottom-color: var(--primary-color);
  outline: none;
}

.platform-tab-btn:hover {
  color: var(--body-color);
}

/* Tab content */
.platform-tab-content {
  /* Bootstrap fade needs relative container */
}

.platform-pane {
  transition: opacity 0.4s ease;
}

.platform-pane-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  background: #f4f4f4;
  border-radius: 1.25rem;
  padding: 2.5rem;
  align-items: flex-start;
}

@media (min-width: 992px) {
  .platform-pane-inner {
    flex-direction: row;
    align-items: stretch;
    gap: 3rem;
  }
}

.platform-pane-text {
  flex: 0 0 auto;
  width: 100%;
  display: flex;
  align-items: flex-start;
}

@media (min-width: 992px) {
  .platform-pane-text {
    width: 30%;
  }
}

.platform-pane-text p {
  font-size: 1.3rem;
  line-height: 150%; /* 1.5rem */
  font-weight: 500;
  color: var(--body-color);
  margin: 0;
}

.platform-pane-video {
  flex: 1;
}
@media (min-width: 992px) {
  .platform-pane-video {
    padding-left: 4rem;
  }
}
.platform-pane-video video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: 0.75rem;
}

/* END PLATFORM */

/* SOLUTIONS SECTION */
.solutions-home {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 6rem;
  background: #f0f0f0;
  min-height: 100vh;
}

.solutions-panes {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.solutions-pane {
  position: absolute;
  inset: 0;
}

.solutions-globe-img {
  position: absolute;
  top: calc(50% + 5rem);
  right: 50%;
  transform: translateY(-50%) translateX(50%);
  width: 65%;
  max-width: 780px;
  pointer-events: none;
  user-select: none;
}

.solutions-content {
  position: relative;
  z-index: 1;
}

.solutions-tabs-col {
  display: flex;
  flex-direction: column;
  padding-top: 2rem;
  margin-bottom: 2rem;
}

.solutions-tab {
  background: none;
  border: none;
  padding: 0.5rem;
  text-align: left;
  font-size: 1rem;
  font-family: var(--avenir);
  font-weight: 400;
  color: #888;
  cursor: pointer;
  transition:
    color 0.2s,
    border-color 0.2s;
  line-height: 1.4;
  color: var(--body-color);
}
@media (min-width: 992px) {
  .solutions-tab {
    padding: 1rem 1.25rem;
  }
}

.solutions-tab.active {
  color: var(--primary-color);
  /* font-weight: 500; */
}

.solutions-tab:hover {
  color: var(--primary-color);
}

.solutions-card {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 3rem);
  max-width: 20rem;
  border-radius: 1rem;
  background: rgba(240, 240, 240, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 1.5rem;
  z-index: 1;
}

.solutions-card-text {
  font-size: 1rem;
  font-weight: 400;
  color: var(--body-color);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.solutions-card-cta {
  display: inline-flex;
  text-decoration: none;
}

.solutions-card-cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  transition: transform 0.3s ease;
}

.solutions-card-cta:hover .solutions-card-cta-icon {
  transform: translateX(3px);
}
/* END SOLUTIONS */

/* EXPLORE OUR SOLUTIONS */
.explore-our-solutions {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 0;
  color: #fff;
}

.eos-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.eos-overlay {
  position: absolute;
  inset: 0;
  /* background: rgba(0, 100, 80, 0.72); */
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.3) 100%),
    rgba(0, 138, 136, 0.8);

  z-index: 1;
}

.eos-content {
  position: relative;
  z-index: 2;
}

.eos-eyebrow {
  color: #b8e905 !important;
  font-size: 1.25rem;
}

.eos-title {
  color: #fff !important;
}

.eos-accent {
  color: #b8e905;
}

.eos-desc {
  font-size: 1.1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0;
}

/* Slider wrapper — full width, padding to align with container */
.eos-slider-wrap {
  position: relative;
  z-index: 2;
  padding-left: max(1.5rem, calc((100vw - 1320px) / 2 + 1.5rem));
  padding-right: 0;
  padding-bottom: 4rem;
}

.eos-swiper {
  overflow: visible;
}

.eos-swiper .swiper-slide {
  height: auto;
}

.eos-card {
  position: relative;
  border-radius: 0.75rem;
  background: rgba(0, 163, 161, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-bottom: 1.5rem;
  height: 100%;
  -webkit-transition: all 0.3s 0s ease;
  -moz-transition: all 0.3s 0s ease;
  -o-transition: all 0.3s 0s ease;
  transition: all 0.3s 0s ease;
}

.eos-card:hover {
  border-radius: 0.75rem;
  background: rgba(0, 108, 107, 0.1);
  box-shadow: 0 0 0 4px rgba(184, 233, 5, 0.3);
}

.eos-card-img {
  width: 100%;
  aspect-ratio: 3/2;
  overflow: hidden;
  padding: 1rem;
}

.eos-card-img img {
  border-radius: 0.5rem;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.eos-card-title {
  font-size: 1.25rem;
  font-weight: 500;
  color: #fff;
  margin: 0;
  padding: 0 1.25rem;
}

.eos-card-text {
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  padding: 0 1.25rem;
  flex: 1;
}

.eos-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff !important;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0 1.25rem;
  transition: color 0.2s;
}

.eos-card:hover .eos-card-link {
  color: #b8e905;
}

.eos-card-link-icon {
  width: 1.5rem;
  height: 1.5rem;
  margin-left: 0.5rem;
  transform: translateX(0);
  transition: transform 0.3s ease;
}

.eos-card:hover .eos-card-link-icon {
  transform: translateX(3px);
}

/* Controls bar */
.eos-controls {
  position: relative;
  z-index: 2;
  display: none; /* shown by JS only when slides overflow */
  align-items: center;
  justify-content: center;
  padding-top: 2rem;
  padding-bottom: 6rem;
}
.eos-controls .bi-chevron-left::before,
.eos-controls .bi-chevron-right::before {
  font-size: 1.5rem !important;
}
.eos-scrollbar-wrap {
  position: relative;
  max-width: 20rem;
  width: 100%;
  height: 0.25rem;
}

.swiper-scrollbar.eos-scrollbar {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 0.125rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 99px;
}

.eos-scrollbar .swiper-scrollbar-drag {
  background: #b8e905;
  border-radius: 99px;
}

.eos-nav {
  position: absolute;
  right: 2rem;
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

@media (max-width: 991.98px) {
  .eos-nav {
    position: relative;
    right: auto;
    justify-content: center;
  }
}

.eos-btn-prev,
.eos-btn-next {
  background: none;
  border: none;
  color: #fff;

  cursor: pointer;
  padding: 0.25rem 0.5rem;
  transition: color 0.2s;
  line-height: 1;
}
.quotes-outer .bi-chevron-left::before,
.quotes-outer .bi-chevron-right::before {
  font-size: 2.5rem !important;
}

.eos-btn-prev:hover,
.eos-btn-next:hover {
  color: #b8e905;
}

.eos-btn-prev.swiper-button-disabled,
.eos-btn-next.swiper-button-disabled {
  color: rgba(255, 255, 255, 0.25);
  cursor: default;
  pointer-events: none;
}

/* END EXPLORE OUR SOLUTIONS */

/* ================================
   QUOTES SECTION
   ================================ */
.quotes-home {
  padding: 3rem 0;
  background: #fff;
}
@media (min-width: 992px) {
  .quotes-home {
    padding: 12rem 0;
  }
}

.quotes-outer {
  position: relative;
  display: flex;
  align-items: center;
}

.quotes-swiper {
  flex: 1;
  min-width: 0;
}

.quotes-slide-inner {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.quotes-mark {
  flex-shrink: 0;
  display: flex;
  gap: 0.375rem;
  padding-top: 0.375rem;
}

.quotes-body {
  flex: 1;
}

.quotes-text {
  font-family: var(--lora);
  font-size: clamp(1rem, 2.5vw, 2rem);
  font-weight: 400;
  color: var(--body-color);
  margin: 0 0 1.75rem;
  border: none;
  padding: 0;
  max-width: 42.5rem;
  text-align: center;
}
@media (min-width: 992px) {
  .quotes-text {
    text-align: left;
  }
}

.quotes-divider {
  border: solid 0.0625rem var(--secondary-color);
  margin: 0 0 1.5rem 0;
  width: 100%;
  opacity: 1;
}
@media (min-width: 992px) {
  .quotes-divider {
    width: calc(100% + 60px + 1.5rem);
    margin: 0 0 1.25rem calc(-60px - 1.5rem);
  }
}

.quotes-author {
  font-family: var(--avenir);
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--body-color);
  margin: 0;
  width: 100%;
  text-align: center;
}

@media (min-width: 992px) {
  .quotes-author {
    margin: 0 0 0.25rem calc(-60px - 1.5rem);
    width: calc(100% + 60px + 1.5rem);
  }
}

.quotes-role {
  font-family: var(--avenir);
  font-size: 1rem;
  color: rgba(0, 51, 102, 0.7);
  margin: 0;
  width: 100%;
  text-align: center;
}
@media (min-width: 992px) {
  .quotes-role {
    margin: 0 0 0 calc(-60px - 1.5rem);
    width: calc(100% + 60px + 1.5rem);
  }
}
.quotes-pagination {
  position: static !important;
  margin-top: 2.5rem;
  text-align: center;
}

.quotes-pagination .swiper-pagination-bullet {
  background: #ccc;
  opacity: 1;
  width: 0.5rem;
  height: 0.5rem;
}

.quotes-pagination .swiper-pagination-bullet-active {
  background: var(--body-color);
}

.quotes-btn-prev,
.quotes-btn-next {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--body-color);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.5rem 1.25rem;
  transition: color 0.2s;
  line-height: 1;
}

.quotes-btn-prev:hover,
.quotes-btn-next:hover {
  color: var(--primary-color);
}

.quotes-btn-prev.swiper-button-disabled,
.quotes-btn-next.swiper-button-disabled {
  color: #ccc;
  cursor: default;
  pointer-events: none;
}

/* Hide nav + pagination when single slide */
.quotes-outer.is-single .quotes-btn-prev,
.quotes-outer.is-single .quotes-btn-next,
.quotes-outer.is-single .quotes-pagination {
  display: none;
}
/* END QUOTES SECTION */

/* ================================
   HOME CTA SECTION
   ================================ */
.home-cta {
  position: relative;
  overflow: hidden;
  padding: 7rem 0;
  color: #fff;
  text-align: center;
}

.home-cta-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.home-cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 5, 40, 0.25);
  z-index: 1;
}

.home-cta-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.home-cta-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 500;
  color: #fff;
  margin: 0;
  line-height: 150%; /* 1.875rem */
}

.home-cta-desc {
  font-size: 1.25rem;
  line-height: 1.65;
  max-width: 44ch;
  margin: 0;
}

.home-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

/* END HOME CTA SECTION */

/* ================================
   FOOTER
   ================================ */
.site-footer {
  background-color: #f0f0f0;
  padding: 4rem 0 2rem;
}

.footer-top {
  margin-bottom: 2rem;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo img {
  height: 6rem;
  width: auto;
}

.footer-logo-serco {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.footer-logo-serco img {
  height: 1.5rem;
  width: auto;
}

.footer-desc {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--body-color);
  opacity: 0.7;
  margin: 0;
  max-width: 46ch;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 2rem;
}

.footer-social-link {
  margin-right: 1rem;
  color: var(--body-color) !important;
  -webkit-transition: all 0.3s 0s ease;
  -moz-transition: all 0.3s 0s ease;
  -o-transition: all 0.3s 0s ease;
  transition: all 0.3s 0s ease;
}

a.footer-social-link svg,
a.footer-social-link svg path {
  color: inherit;
  fill: currentColor !important;
  transition: fill 0.2s;
}

.footer-social-link:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

a.footer-social-link:hover svg,
a.footer-social-link:hover svg path {
  color: var(--primary-color);
  fill: var(--primary-color) !important;
}

.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.footer-nav-heading {
  font-family: var(--lora);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-color);
  margin: 0;
  letter-spacing: 0.01em;
}

.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-nav-list a {
  font-size: 0.8125rem;
  color: var(--body-color) !important;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav-list a:hover {
  color: var(--primary-color);
}

.footer-divider {
  border-color: var(--body-color);
  opacity: 0.15;
  margin: 0 0 1.5rem;
}

.footer-bottom {
  align-items: center;
  row-gap: 0.75rem;
  padding-bottom: 1rem;
}

.footer-copy {
  font-size: 1rem;
  color: var(--body-color);
  margin: 0;
  opacity: 0.7;
}

.footer-legal {
  font-size: 0.8125rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  justify-content: flex-start;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 992px) {
  .footer-legal {
    justify-content: flex-end;
  }
}

.footer-legal a {
  font-size: 0.8125rem;
  color: var(--body-color);
  text-decoration: none;
  opacity: 0.7;
  transition:
    opacity 0.2s,
    color 0.2s;
}

.footer-legal a:hover {
  opacity: 1;
  color: var(--primary-color);
}
/* END FOOTER */

/* ================================
   SERVICES / CATALOG PAGE
   ================================ */
.services-page {
  padding: 4rem 0 7rem;
  background: #fff;
  min-height: 60vh;
}

.services-header {
  margin-bottom: 2rem;
}

.services-title {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 500;
  color: var(--body-color);
  margin: 0 0 0.35rem;
  line-height: 1.15;
}

.page-services-subtitle p {
  color: #4b5563;
  font-size: 1rem;
  font-weight: 400;
  line-height: 150%; /* 1.5rem */
}

/* ── Toolbar ── */
.services-toolbar-container {
  border-radius: 0.75rem;
  border: 1px solid #f0f0f0;
  background: #f5f5f5;

  padding: 1rem;
  margin-bottom: 1.5rem;
}
.services-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.services-search-wrap {
  position: relative;
  flex: 1;
  min-width: 220px;
}

.services-search-icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(0, 51, 102, 0.4);
  pointer-events: none;
}

.services-search {
  width: 100%;
  height: 2.625rem;
  padding: 0 1rem 0 2.625rem;
  border: 1px solid rgba(0, 51, 102, 0.18);
  border-radius: 0.5rem;
  font-family: var(--avenir);
  font-size: 0.9375rem;
  color: var(--body-color);
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
}

.services-search:focus {
  border-color: var(--primary-color);
}

.services-search::placeholder {
  color: rgba(0, 51, 102, 0.4);
}

/* ── Dropdown filters ── */
.services-filters {
  display: flex;
  gap: 0.625rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.services-filter-select {
  height: 2.625rem;
  padding: 0 2.25rem 0 0.875rem;
  border: 1px solid rgba(0, 51, 102, 0.18);
  border-radius: 0.5rem;
  font-family: var(--avenir);
  font-size: 0.9rem;
  color: var(--body-color);
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' fill='none' viewBox='0 0 11 7'%3E%3Cpath stroke='%23003366' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M1 1l4.5 4.5L10 1'/%3E%3C/svg%3E")
    no-repeat right 0.75rem center;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}

.services-filter-select:focus {
  border-color: var(--primary-color);
}

/* ── Category tabs + count row ── */
.services-cats-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(0, 51, 102, 0.1);
  padding-bottom: 1rem;
}

.services-cats {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.services-cat-btn {
  background: none;
  border: none;
  padding: 0.375rem 1rem;
  border-radius: 2rem;
  font-family: var(--avenir);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--body-color);
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}

.services-cat-btn:hover {
  background: rgba(0, 138, 136, 0.08);
  color: var(--primary-color);
}

.services-cat-btn.active {
  background: rgba(0, 138, 136, 0.2);
}

.services-active-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin-left: auto;
  font-family: var(--avenir);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--body-color);
  cursor: pointer;
  user-select: none;
}

.services-active-toggle-text {
  white-space: nowrap;
}

.services-active-toggle-switch {
  position: relative;
  display: inline-flex;
  width: 3rem;
  height: 1.625rem;
  flex: 0 0 3rem;
}

.services-active-toggle-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.services-active-toggle-slider {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(0, 51, 102, 0.16);
  border-radius: 999px;
  background: rgba(0, 51, 102, 0.12);
  transition:
    background 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
}

.services-active-toggle-slider::before {
  content: "";
  position: absolute;
  top: 0.1875rem;
  left: 0.1875rem;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 51, 102, 0.22);
  transition: transform 0.2s;
}

.services-active-toggle-input:checked + .services-active-toggle-slider {
  border-color: var(--primary-color);
  background: var(--primary-color);
}

.services-active-toggle-input:checked + .services-active-toggle-slider::before {
  transform: translateX(1.375rem);
}

.services-active-toggle-input:focus-visible + .services-active-toggle-slider {
  box-shadow: 0 0 0 3px rgba(0, 138, 136, 0.18);
}

.services-count {
  font-size: 0.875rem;
  color: rgba(0, 51, 102, 0.5);
  margin: 0;
  white-space: nowrap;
}

/* ── Product cards ── */
.services-grid {
  margin-top: 2rem;
}

.services-card {
  border-radius: 0.5rem;
  background: #f5f5f5;
  padding: 1rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  transition: border-color 0.2s;
}

.services-card:hover {
  border-color: #e0e0e0;
}

.services-card-tag {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-weight: 500;
  color: var(--body-color);
  text-align: center;
  font-size: 0.75rem;
  border-radius: 62.4375rem;
  background: rgba(0, 51, 102, 0.04);
  width: fit-content;
  text-transform: capitalize;
}

.services-card-title {
  color: var(--body-color);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 132%; /* 1.98rem */
  letter-spacing: -0.015rem;
}

.services-card-desc {
  color: rgba(0, 51, 102, 0.7);
  font-size: 1rem;
  font-weight: 300;
  line-height: 150%; /* 1.5rem */
}

.services-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--body-color);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  margin-top: auto;
  transition: color 0.2s;
}

.services-card-link:hover {
  color: var(--primary-color);
}

.services-card-link-icon {
  display: inline-flex;
  align-items: center;
  transition: transform 0.2s;
}

.services-card-link:hover .services-card-link-icon {
  transform: translateX(3px);
}
.services-card-link.services-card-link-details:hover .services-card-link-icon {
  transform: translateX(0);
}

.services-empty {
  text-align: center;
  color: rgba(0, 51, 102, 0.5);
  padding: 4rem 0;
}

@media (max-width: 575.98px) {
  .services-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .services-search-wrap {
    min-width: 0;
  }

  .services-filters {
    justify-content: flex-start;
  }

  .services-active-toggle {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
  }
}

/* ── Logged-in card extras ──────────────────────────────────────────────── */
.services-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.services-card-header-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.services-card-header-right {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  flex-shrink: 0;
}

.services-card-new-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  font-weight: 300;
  color: #cbb303b2;
  line-height: 1;
}

.services-card-status {
  padding: 0.25rem 0.5rem;

  border-radius: 62.4375rem;
  background: rgba(0, 138, 136, 0.05);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--body-color);
}

.services-card-status--ready {
  color: #9ca3af;
}
.services-card-status--ready svg {
  fill: #dc2626;
}
.services-card-status--purchased svg {
  fill: #008a88;
}

.services-card-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: auto;
  flex-wrap: wrap;
}

.services-card-link--open {
  color: var(--primary-color) !important;
}

.services-card-link--open:hover {
  color: #006e6d !important;
}

.services-card-link--activation-pending {
  color: #8a949e !important;
  cursor: default;
  pointer-events: none;
  transition: none;
}

.services-card-link--activation-pending:hover {
  color: #8a949e !important;
}

/* Traceable icon */
.services-card-traceable {
  display: inline-flex;
  align-items: center;
  cursor: default;
}
/* END SERVICES / CATALOG PAGE */

/* ============================================================
   SERVICES PAGE — PRODUCT ACCESS MODAL
   ============================================================ */

/* ── Backdrop & Dialog ─────────────────────────────────── */
.services-modal-content {
  border: none;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
}

/* ── Close bar ─────────────────────────────────────────── */
.services-modal-close-bar {
  display: flex;
  justify-content: flex-end;
  padding: 20px 24px 0;
}
.services-modal-close-bar .btn-close {
  opacity: 0.6;
  transition: opacity 0.2s;
}
.services-modal-close-bar .btn-close:hover {
  opacity: 1;
}

/* ── Modal Body ────────────────────────────────────────── */
.services-modal-body {
  padding: 8px 40px 24px;
}
.services-modal-product-title {
  color: #003357;
  font-size: 2rem;
  font-weight: 500;
  line-height: 112%; /* 2.24rem */
  letter-spacing: -0.08rem;
}
.services-modal-body p,
.services-modal-body li {
  color: #4a5568;
  /*line-height: 1.7;
  font-size: 1.875rem;*/
}
.services-modal-body a {
  color: #008a88;
  text-decoration: underline;
}
.services-modal-default-text {
  color: #6b7280;
  font-style: italic;
}

/* ── Modal Footer ──────────────────────────────────────── */
.services-modal-footer {
  border-top: 1px solid #e5e7eb;
  padding: 24px 40px 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.services-modal-footer-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.services-modal-footer-btns .btn-filled,
.services-modal-footer-btns .btn-lined {
  min-width: 148px;
  text-align: center;
  font-size: 0.9rem;
}
.services-modal-login-text {
  margin: 0;
  font-size: 0.85rem;
  color: #9ca3af;
}
.services-modal-login-text a {
  color: #008a88;
  font-weight: 600;
  text-decoration: none;
}
.services-modal-login-text a:hover {
  text-decoration: underline;
}

/* ── Responsive tweaks ─────────────────────────────────── */
@media (max-width: 575.98px) {
  .services-modal-body {
    padding: 8px 24px 20px;
  }
  .services-modal-footer {
    padding: 20px 24px 28px;
  }
  .services-modal-footer-btns {
    flex-direction: column;
    width: 100%;
  }
  .services-modal-footer-btns .btn-filled,
  .services-modal-footer-btns .btn-lined {
    width: 100%;
  }
}

/* END SERVICES / PRODUCT ACCESS MODAL */

/* HEADROOM PLUGIN */
.headroom {
  -webkit-transition: all 0.8s 0s ease;
  -moz-transition: all 0.8s 0s ease;
  -o-transition: all 0.8s 0s ease;
  transition: all 0.8s 0s ease;
  position: sticky;
  z-index: 100;
  top: 0;
}

.headroom--pinned {
  top: 10px;
}

.headroom--unpinned {
  top: -160px;
}

/* ============================================================
   PRODUCT DETAIL PAGE (single WooCommerce product)
   ============================================================ */

.product-detail-page {
  padding: 4rem 0 7rem;
  background: #fff;
  min-height: 60vh;
}

/* ── Status row (tag + badge) ──────────────────────────────── */
.product-detail-status-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

/* ── Title ─────────────────────────────────────────────────── */
.product-detail-title {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 500;
  color: var(--body-color);
  margin: 0 0 0.75rem;
  line-height: 1.15;
}

/* ── Provider ──────────────────────────────────────────────── */
.product-detail-provider {
  font-size: 1rem;
  font-weight: 600;
  color: var(--body-color);
  margin-bottom: 1.5rem;
}

.product-detail-provider strong {
  font-weight: 700;
}

/* ── Body / the_content ────────────────────────────────────── */
.product-detail-body {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--body-color);
  margin-bottom: 2rem;
}

.product-detail-body p {
  font-size: 1rem;
  margin-bottom: 1rem;
}

/* ── Open button ───────────────────────────────────────────── */
.product-detail-open {
  margin-top: 0.25rem;
  margin-bottom: 1.5rem;
}

.product-open-btn {
  padding: 0.875rem 2.5rem;
  font-size: 1rem;
  font-weight: 500;
  display: inline-block;
}

.product-open-btn--disabled,
.product-open-btn--disabled:hover,
.product-open-btn--disabled:focus {
  border-color: #cfd6dc !important;
  background-color: #e5e9ed !important;
  color: #7b8791 !important;
  cursor: default;
  pointer-events: none;
  transition: none;
}

.request-access-modal .modal-dialog {
  max-width: 34rem;
}

.request-access-modal-body {
  padding-top: 0.75rem;
}

.request-access-modal-title {
  margin: 0 0 0.35rem;
  color: rgba(0, 51, 102, 0.68);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
}

.request-access-modal-product {
  margin: 0 0 1.5rem;
  color: #003357;
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0;
}

.request-access-modal-form form.cart {
  display: grid;
  gap: 1rem;
  margin: 0;
}

.request-access-modal-form .team-fields,
.request-access-modal-form .wc-memberships-for-teams-team-fields-wrapper {
  display: grid;
  gap: 1rem;
}

.request-access-modal-form .form-row,
.request-access-modal-form .quantity {
  margin: 0;
}

.request-access-modal-form label,
.request-access-modal-form .team-seat-count-label {
  display: block;
  margin: 0 0 0.45rem;
  color: var(--body-color);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
}

.request-access-modal-form .team-seat-count-label {
  margin-bottom: -0.55rem;
}

.request-access-modal-form input[type="text"],
.request-access-modal-form input[type="email"],
.request-access-modal-form input[type="number"],
.request-access-modal-form input[type="tel"],
.request-access-modal-form select,
.request-access-modal-form textarea,
.request-access-modal-form .qty {
  width: 100%;
  min-height: 3.125rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid #dce3e7;
  border-radius: 0.5rem;
  background: #fff;
  color: var(--body-color);
  font-family: var(--avenir);
  font-size: 0.9375rem;
  line-height: 1.4;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.request-access-modal-form input[type="text"]:hover,
.request-access-modal-form input[type="email"]:hover,
.request-access-modal-form input[type="number"]:hover,
.request-access-modal-form input[type="tel"]:hover,
.request-access-modal-form select:hover,
.request-access-modal-form textarea:hover,
.request-access-modal-form .qty:hover {
  border-color: #b7c7cf;
}

.request-access-modal-form input:focus,
.request-access-modal-form select:focus,
.request-access-modal-form textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(0, 138, 136, 0.12);
}

.request-access-modal-form .single_add_to_cart_button {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.875rem 2rem;
  border: 2px solid var(--primary-color);
  border-radius: 0.25rem;
  background-color: var(--primary-color);
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
}

.request-access-modal-form .single_add_to_cart_button:hover,
.request-access-modal-form .single_add_to_cart_button:focus-visible {
  border-color: #006e6d;
  background-color: #006e6d;
  color: #fff;
}

.wc-block-cart .wc-block-components-quantity-selector {
  display: none !important;
}

.wc-block-cart .wc-block-cart-items {
  table-layout: auto !important;
}

.wc-block-cart .wc-block-cart-item__image {
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.wc-block-cart .wc-block-cart-item__image img {
  display: none !important;
}

.wc-block-cart .wc-block-cart-item__product {
  width: 100% !important;
  min-width: min(22rem, 100%) !important;
  padding-left: 0 !important;
}

.wc-block-cart .wc-block-cart-item__wrap {
  max-width: 42rem !important;
}

.wc-block-cart .wc-block-components-product-name,
.wc-block-cart .wc-block-components-product-metadata,
.wc-block-cart .wc-block-components-product-details {
  word-break: normal !important;
  overflow-wrap: normal !important;
}

.wc-block-cart .wc-block-cart-item__total {
  width: 8rem !important;
  min-width: 8rem !important;
  text-align: right;
}

.wp-block-woocommerce-empty-cart-block > .wp-block-heading:not(:first-child),
.wp-block-woocommerce-empty-cart-block > .wp-block-separator,
.wp-block-woocommerce-empty-cart-block > .wp-block-woocommerce-product-new {
  display: none !important;
}

.wc-block-checkout .wc-block-components-order-summary-item__quantity {
  display: none !important;
}

.wc-block-checkout .wc-block-checkout__marketing-opt-in,
.wc-block-checkout .wc-block-components-checkbox:has(input[name*="marketing"]),
.wc-block-checkout .wc-block-components-checkbox:has(input[id*="marketing"]),
.wc-block-checkout .wc-block-components-checkbox:has(input[name*="optin"]),
.wc-block-checkout .wc-block-components-checkbox:has(input[id*="optin"]) {
  display: none !important;
}

/* ── Sidebar (action buttons) ──────────────────────────────── */
.product-detail-sidebar-col {
  padding-top: 0.25rem;
}

.product-detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 992px) {
  .product-detail-sidebar {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

/* ── Action buttons ────────────────────────────────────────── */
.product-action-btn {
  display: block;
  padding: 0.5rem 1.5rem;
  border: 1px solid rgba(0, 51, 102, 0.25);
  border-radius: 0.375rem;
  font-family: var(--avenir);
  font-size: 0.8125rem;
  letter-spacing: 0.00813rem;
  font-weight: 500;
  color: var(--body-color) !important;
  text-decoration: none;
  text-align: center;
  background: #fff;
  transition:
    border-color 0.2s,
    color 0.2s;
  white-space: nowrap;
  width: 100%;
  cursor: pointer;
}

.product-action-btn:hover {
  border-color: var(--body-color);
  color: var(--body-color);
}

.product-action-btn--no-link {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

/* ── Features section ──────────────────────────────────────── */
.product-features-section {
  padding: 3rem 0 4rem;
}

.product-features-heading {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  color: var(--body-color);
  margin: 0 0 1rem 0;
  border-bottom: 1px solid rgba(0, 51, 102, 0.1);
  padding-bottom: 1rem;
}

.product-features-grid {
  row-gap: 2rem;
}

.product-feature-item {
  border-left: 1px solid var(--secondary-color);
  padding-left: 1rem;
  height: 100%;
}

.product-feature-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--body-color);
  margin: 0 0 0.375rem;
  line-height: 1.3;
}

.product-feature-desc {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: rgba(0, 51, 102, 0.7);
  margin: 0;
}

/* ── Features section ──────────────────────────────────────── */
.product-traceable-section {
  padding: 3rem 0 4rem;
}
.product-traceable-section p,
.product-traceable-section ul li {
  font-size: 1rem;
}

/* ── Preview / Demo section ────────────────────────────────── */
.product-preview-section {
  padding: 3rem 0 4rem;
}
.product-preview-section .container {
  border: 1px solid rgba(0, 51, 102, 0.1);
  border-radius: 0.75rem;
  padding: 1rem;
}

.product-preview-heading {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  color: var(--body-color);
  margin: 0 0 1.75rem;
}

/* Single image */
.product-preview-single {
  border: 2px dashed rgba(0, 51, 102, 0.2);
  border-radius: 0.75rem;
  background: rgba(0, 138, 136, 0.04);
  overflow: hidden;
  padding: 1rem;
}

.product-preview-single img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

/* Swiper variant */
.product-preview-swiper-wrap {
  position: relative;
  border: 2px dashed rgba(0, 51, 102, 0.2);
  border-radius: 0.75rem;
  background: rgba(0, 138, 136, 0.04);
  overflow: hidden;
  padding: 0;
}

.product-preview-swiper {
  width: 100%;
}

.product-preview-swiper .swiper-slide {
  line-height: 0;
}

.product-preview-swiper .swiper-slide img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  background: transparent;
}

.product-preview-pagination {
  bottom: 0.75rem !important;
}

.product-preview-pagination .swiper-pagination-bullet {
  background: var(--body-color);
  opacity: 0.3;
}

.product-preview-pagination .swiper-pagination-bullet-active {
  opacity: 1;
}

.product-preview-btn-prev,
.product-preview-btn-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(0, 51, 102, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--body-color);
  font-size: 0.875rem;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s;
  backdrop-filter: blur(4px);
}

.product-preview-btn-prev {
  left: 0.75rem;
}

.product-preview-btn-next {
  right: 0.75rem;
}

.product-preview-btn-prev:hover,
.product-preview-btn-next:hover {
  background: #fff;
  border-color: var(--body-color);
}

/* ── Related Services section ──────────────────────────────── */
.product-related-section {
  padding: 3rem 0 4rem;
}

.product-related-heading {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  color: var(--body-color);
  margin: 0 0 1.75rem;
}

/* END PRODUCT DETAIL PAGE */

/* ============================================================
   SEARCH RESULTS PAGE
   ============================================================ */

.search-results-page {
  padding: 4rem 0 7rem;
  min-height: 60vh;
}

/* ── Header ─────────────────────────────────────────────────── */
.search-results-header {
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0, 51, 102, 0.08);
}

.search-results-title {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 500;
  color: var(--body-color);
  margin: 0 0 0.35rem;
  line-height: 1.15;
}

.search-results-title span {
  color: var(--primary-color);
}

/* ── Sections ────────────────────────────────────────────────── */
.search-results-section {
  margin-bottom: 3.5rem;
}

.search-results-section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.search-results-section-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0, 51, 102, 0.45);
  margin: 0;
  white-space: nowrap;
}

.search-results-section-divider {
  flex: 1;
  height: 1px;
  background: rgba(0, 51, 102, 0.08);
}

.search-results-section-count {
  font-size: 0.75rem;
  color: rgba(0, 51, 102, 0.4);
  white-space: nowrap;
}

/* ── Pages & Industries list ─────────────────────────────────── */
.search-results-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.search-results-list-item {
  display: flex;
}

.search-results-list-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--body-color);
  text-decoration: none;
  transition:
    background 0.18s,
    color 0.18s;
  border: 1px solid transparent;
}

.search-results-list-link::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-color);
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity 0.18s;
}

.search-results-list-link:hover {
  background: rgba(0, 138, 136, 0.05);
  color: var(--primary-color);
  border-color: rgba(0, 138, 136, 0.15);
}

.search-results-list-link:hover::before {
  opacity: 1;
}

/* ── No results ─────────────────────────────────────────────── */
.search-no-results {
  text-align: center;
  padding: 5rem 0;
}

.search-no-results-icon {
  color: rgba(0, 51, 102, 0.15);
  margin-bottom: 1.25rem;
}

.search-no-results-title {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--body-color);
  margin: 0 0 0.5rem;
}

.search-no-results-text {
  font-size: 1rem;
  color: rgba(0, 51, 102, 0.5);
  margin: 0;
}

/* END SEARCH RESULTS PAGE */

/* CONTACT PAGE */
.contact-page {
  /* min-height: 100vh; */
  overflow: hidden;
}

.contact-page__content {
  padding: 5vh 4vw 5vh 0;
}
.contact-page__content p {
  font-size: 1rem;
}

.contact-page__image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: absolute;
  top: -0.5rem;
  right: 0;
  bottom: 500px;
  z-index: -1;
}
.page-template-page-contacts .navbar {
  margin-bottom: 0;
}
.dropdown-item:focus {
  background-color: #f8f9fb !important;
}
.contact-page__content label {
  width: 100%;
  color: var(--body-color);
  font-size: 0.8125rem;
  font-style: normal;
  font-weight: 500;
  line-height: 1.25rem; /* 153.846% */
  letter-spacing: 0.00813rem;
}
.contact-page__content input[type="text"],
.contact-page__content input[type="email"],
.contact-page__content textarea,
.contact-page__content select {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border-radius: 0.25rem;
  border: 1px solid #e4e4e4 !important;
  background: #fff;
  font-family: var(--avenir);
  font-size: 0.9375rem;
  color: var(--body-color);
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
}
.gform-theme--framework ::placeholder {
  color: #aaa !important;
}
.contact-page__content input[type="text"]:focus,
.contact-page__content input[type="email"]:focus,
.contact-page__content textarea:focus,
.contact-page__content select:focus {
  border-color: var(--primary-color);
}
.contact-page__content textarea {
  min-height: 150px;
  resize: vertical;
}
.contact-page__content input[type="submit"].wpcf7-submit {
  padding: 0.75rem 1.5rem;
  margin-top: 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  background: var(--primary-color);
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}
.contact-page__content input[type="submit"].wpcf7-submit:hover {
  background: #006e6d;
}

/* TERMS PAGE */
.terms-page {
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.65;
  font-size: 16px;
}
.terms-page h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.25em;
}
.terms-page .effective-date {
  margin-bottom: 2rem;
  color: #555;
}
.terms-page h2 {
  margin-top: 2.2rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e5e5;
  font-size: 1.45rem;
}
.terms-page h3 {
  margin-top: 1.6rem;
  font-size: 1.15rem;
}
.terms-page p {
  margin: 0 0 1rem;
}
.terms-page ol {
  margin: 0 0 1.2rem 1.5rem;
}
.terms-page li {
  margin-bottom: 0.55rem;
}

/* B2BKing overrides
Nasconde titolo e campi Personal Details 
*/
/* .b2bking_subaccounts_new_account_container_content_large_title:has(
  + .b2bking_subaccounts_new_account_container_content_element
    input[name="b2bking_subaccounts_new_account_name"]
),
.b2bking_subaccounts_new_account_container_content_element:has(
  input[name="b2bking_subaccounts_new_account_name"]
),
.b2bking_subaccounts_new_account_container_content_element:has(
  input[name="b2bking_subaccounts_new_account_last_name"]
),
.b2bking_subaccounts_new_account_container_content_element:has(
  input[name="b2bking_subaccounts_new_account_job_title"]
),
.b2bking_subaccounts_new_account_container_content_element:has(
  input[name="b2bking_subaccounts_new_account_phone_number"]
), */

/* Nasconde titolo e opzioni Permissions */

.b2bking_subaccounts_new_account_container_content_large_title:has(
  + .b2bking_subaccounts_new_account_container_content_element_checkbox
),
.b2bking_subaccounts_new_account_container_content_element_checkbox {
  display: none !important;
}

/* ============================================================
   MY ACCOUNT — B2BKing Conversations
   ============================================================ */

/* Wrapper principale */
.woocommerce-account #b2bking_myaccount_conversations_container,
.woocommerce-account #b2bking_myaccount_conversation_endpoint_container {
  font-family: var(--avenir);
  color: var(--body-color);
}

/* Header pagina Conversations */
.woocommerce-account #b2bking_myaccount_conversations_container_top,
.woocommerce-account #b2bking_myaccount_conversation_endpoint_container_top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.woocommerce-account #b2bking_myaccount_conversations_title,
.woocommerce-account #b2bking_myaccount_conversation_endpoint_title {
  color: var(--body-color);
  font-family: var(--avenir);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* Pulsanti principali */
.woocommerce-account #b2bking_myaccount_make_inquiry_button,
.woocommerce-account #b2bking_myaccount_send_inquiry_button,
.woocommerce-account .b2bking_myaccount_view_conversation_button,
.woocommerce-account #b2bking_conversation_message_submit,
.woocommerce-account
  #b2bking_myaccount_conversation_endpoint_container_top
  button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--primary-color) !important;
  border-radius: 0.375rem !important;
  background-color: var(--primary-color) !important;
  color: #fff !important;
  font-family: var(--avenir);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: none !important;
  text-decoration: none !important;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.woocommerce-account #b2bking_myaccount_make_inquiry_button:hover,
.woocommerce-account #b2bking_myaccount_send_inquiry_button:hover,
.woocommerce-account .b2bking_myaccount_view_conversation_button:hover,
.woocommerce-account #b2bking_conversation_message_submit:hover,
.woocommerce-account
  #b2bking_myaccount_conversation_endpoint_container_top
  button:hover {
  border-color: #006e6d !important;
  background-color: #006e6d !important;
  color: #fff !important;
}

/* Pulsante Go Back */
.woocommerce-account #b2bking_myaccount_conversation_endpoint_container_top a {
  color: #fff !important;
  text-decoration: none;
}

/* ============================================================
   NEW CONVERSATION PANEL
   ============================================================ */

.woocommerce-account .b2bking_myaccount_new_conversation_container {
  overflow: hidden;
  margin-bottom: 2rem;
  border: 1px solid rgba(0, 51, 102, 0.08) !important;
  border-radius: 0.75rem !important;
  background: #f5f5f5 !important;
  box-shadow: none !important;
}

/* Barra superiore del box */
.woocommerce-account .b2bking_myaccount_new_conversation_top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3rem;
  padding: 0.75rem 1.5rem !important;
  background: var(--body-color) !important;
  color: #fff !important;
}

.woocommerce-account .b2bking_myaccount_new_conversation_top_item {
  color: #fff !important;
  font-family: var(--avenir);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1;
}

.woocommerce-account .b2bking_myaccount_new_conversation_close {
  padding: 0.4rem 0.65rem;
  border-radius: 0.25rem;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.woocommerce-account .b2bking_myaccount_new_conversation_close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Contenuto form */
.woocommerce-account .b2bking_myaccount_new_conversation_content {
  padding: 1.5rem !important;
  background: #f5f5f5 !important;
}

.woocommerce-account .b2bking_myaccount_new_conversation_content_element {
  margin-bottom: 1.25rem;
}

.woocommerce-account .b2bking_myaccount_new_conversation_content_element_text {
  margin: 0 0 0.45rem;
  color: var(--body-color);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.35;
}

/* Campi */
.woocommerce-account #b2bking_myaccount_conversation_type,
.woocommerce-account #b2bking_myaccount_title_conversation_start,
.woocommerce-account #b2bking_myaccount_textarea_conversation_start,
.woocommerce-account #b2bking_conversation_user_new_message {
  width: 100%;
  min-height: 3.125rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid #dce3e7 !important;
  border-radius: 0.5rem !important;
  background-color: #fff !important;
  color: var(--body-color) !important;
  font-family: var(--avenir);
  font-size: 0.9375rem;
  line-height: 1.4;
  outline: none;
  box-shadow: none !important;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.woocommerce-account #b2bking_myaccount_textarea_conversation_start,
.woocommerce-account #b2bking_conversation_user_new_message {
  min-height: 10rem;
  resize: vertical;
}

.woocommerce-account #b2bking_myaccount_conversation_type {
  padding-right: 2.5rem;
  appearance: none;
  -webkit-appearance: none;
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' fill='none' viewBox='0 0 11 7'%3E%3Cpath stroke='%23003366' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M1 1l4.5 4.5L10 1'/%3E%3C/svg%3E")
    no-repeat right 0.9rem center !important;
}

.woocommerce-account #b2bking_myaccount_title_conversation_start::placeholder,
.woocommerce-account
  #b2bking_myaccount_textarea_conversation_start::placeholder,
.woocommerce-account #b2bking_conversation_user_new_message::placeholder {
  color: rgba(0, 51, 102, 0.4);
}

.woocommerce-account #b2bking_myaccount_conversation_type:focus,
.woocommerce-account #b2bking_myaccount_title_conversation_start:focus,
.woocommerce-account #b2bking_myaccount_textarea_conversation_start:focus,
.woocommerce-account #b2bking_conversation_user_new_message:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 0.2rem rgba(0, 138, 136, 0.12) !important;
}

/* Bottom form */
.woocommerce-account .b2bking_myaccount_start_conversation_bottom,
.woocommerce-account .b2bking_myaccount_conversation_endpoint_bottom {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

/* ============================================================
   CONVERSATION LIST
   ============================================================ */

.woocommerce-account .b2bking_myaccount_individual_conversation_container {
  overflow: hidden;
  margin-bottom: 1rem;
  border: 1px solid rgba(0, 51, 102, 0.08) !important;
  border-radius: 0.75rem !important;
  background: #fff !important;
  box-shadow: none !important;
}

/* Header tabellare */
.woocommerce-account .b2bking_myaccount_individual_conversation_top {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr 1fr;
  gap: 0;
  background: #f5f5f5 !important;
  border-bottom: 1px solid rgba(0, 51, 102, 0.08);
}

.woocommerce-account .b2bking_myaccount_individual_conversation_top_item {
  padding: 0.875rem 1rem;
  color: var(--body-color) !important;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.35;
}

/* Contenuto riga */
.woocommerce-account .b2bking_myaccount_individual_conversation_content {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr 1fr;
  gap: 0;
  background: #fff !important;
}

.woocommerce-account .b2bking_myaccount_individual_conversation_content_item {
  padding: 0.875rem 1rem;
  color: rgba(0, 51, 102, 0.78) !important;
  font-size: 0.9375rem;
  line-height: 1.45;
}

/* Footer card */
.woocommerce-account .b2bking_myaccount_individual_conversation_bottom {
  display: flex;
  justify-content: flex-end;
  padding: 1rem;
  border-top: 1px solid rgba(0, 51, 102, 0.08);
  background: #fff;
}

.woocommerce-account .b2bking_myaccount_individual_conversation_bottom a {
  color: #fff !important;
  text-decoration: none;
}

/* ============================================================
   SINGLE CONVERSATION ENDPOINT
   ============================================================ */

.woocommerce-account #b2bking_myaccount_conversation_endpoint_container {
  overflow: hidden;
  border: 1px solid rgba(0, 51, 102, 0.08);
  border-radius: 0.75rem;
  background: #fff;
  padding: 1.5rem;
}

/* Header meta */
.woocommerce-account
  #b2bking_myaccount_conversation_endpoint_container_top_header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
  padding: 1rem;
  border-radius: 0.5rem;
  background: #f5f5f5;
}

.woocommerce-account
  .b2bking_myaccount_conversation_endpoint_container_top_header_item {
  color: rgba(0, 51, 102, 0.7);
  font-size: 0.9375rem;
  line-height: 1.4;
}

.woocommerce-account
  .b2bking_myaccount_conversation_endpoint_top_header_text_bold {
  color: var(--body-color);
  font-weight: 700;
}

/* Area messaggi */
.woocommerce-account #b2bking_conversation_messages_container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-radius: 0.75rem;
  background: #f5f5f5;
}

/* Bubble messaggi */
.woocommerce-account .b2bking_conversation_message {
  width: fit-content;
  max-width: min(42rem, 100%);
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  background: #fff;
  color: var(--body-color);
  font-size: 0.9375rem;
  line-height: 1.55;
  box-shadow: none;
  border: 1px solid rgba(0, 51, 102, 0.08);
}

/* Messaggi dell'utente */
.woocommerce-account .b2bking_conversation_message_self {
  align-self: flex-end;
  background: rgba(0, 138, 136, 0.08);
  border-color: rgba(0, 138, 136, 0.16);
}

/* Timestamp */
.woocommerce-account .b2bking_conversation_message_time {
  margin-top: 0.5rem;
  color: rgba(0, 51, 102, 0.5);
  font-size: 0.75rem;
  line-height: 1.35;
}

/* Textarea risposta */
.woocommerce-account #b2bking_conversation_user_new_message {
  margin-top: 0.5rem;
}

/* ============================================================
   PAGINATION
   ============================================================ */

.woocommerce-account .b2bking_myaccount_conversations_pagination_container {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
}

.woocommerce-account .b2bking_myaccount_conversations_pagination_button {
  color: var(--primary-color);
  font-size: 0.9375rem;
  font-weight: 600;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 767.98px) {
  .woocommerce-account #b2bking_myaccount_conversations_container_top,
  .woocommerce-account #b2bking_myaccount_conversation_endpoint_container_top {
    flex-direction: column;
    align-items: stretch;
  }

  .woocommerce-account #b2bking_myaccount_make_inquiry_button,
  .woocommerce-account #b2bking_myaccount_send_inquiry_button,
  .woocommerce-account .b2bking_myaccount_view_conversation_button,
  .woocommerce-account #b2bking_conversation_message_submit,
  .woocommerce-account
    #b2bking_myaccount_conversation_endpoint_container_top
    button {
    width: 100%;
  }

  .woocommerce-account .b2bking_myaccount_new_conversation_content,
  .woocommerce-account #b2bking_myaccount_conversation_endpoint_container {
    padding: 1rem !important;
  }

  .woocommerce-account .b2bking_myaccount_individual_conversation_top {
    display: none;
  }

  .woocommerce-account .b2bking_myaccount_individual_conversation_content {
    display: grid;
    grid-template-columns: 1fr;
    padding: 1rem;
    gap: 0.5rem;
  }

  .woocommerce-account .b2bking_myaccount_individual_conversation_content_item {
    padding: 0;
    font-size: 0.9375rem;
  }

  .woocommerce-account
    .b2bking_myaccount_individual_conversation_content_item:nth-child(
      1
    )::before {
    content: "Title: ";
    font-weight: 700;
    color: var(--body-color);
  }

  .woocommerce-account
    .b2bking_myaccount_individual_conversation_content_item:nth-child(
      2
    )::before {
    content: "Type: ";
    font-weight: 700;
    color: var(--body-color);
  }

  .woocommerce-account
    .b2bking_myaccount_individual_conversation_content_item:nth-child(
      3
    )::before {
    content: "User: ";
    font-weight: 700;
    color: var(--body-color);
  }

  .woocommerce-account
    .b2bking_myaccount_individual_conversation_content_item:nth-child(
      4
    )::before {
    content: "Last Reply: ";
    font-weight: 700;
    color: var(--body-color);
  }

  .woocommerce-account .b2bking_myaccount_individual_conversation_bottom,
  .woocommerce-account .b2bking_myaccount_start_conversation_bottom,
  .woocommerce-account .b2bking_myaccount_conversation_endpoint_bottom {
    justify-content: stretch;
  }

  .woocommerce-account
    #b2bking_myaccount_conversation_endpoint_container_top_header {
    flex-direction: column;
  }

  .woocommerce-account .b2bking_conversation_message {
    max-width: 100%;
  }
}

/* ============================================================
   FIX — B2BKing Conversations colors + single conversation view
   ============================================================ */

/* Usa il teal del sito, non il blu scuro */
.woocommerce-account .b2bking_myaccount_new_conversation_top,
.woocommerce-account
  #b2bking_myaccount_conversation_endpoint_container_top_header {
  background: var(--primary-color) !important;
  color: #fff !important;
}

.woocommerce-account .b2bking_myaccount_new_conversation_top_item,
.woocommerce-account
  .b2bking_myaccount_conversation_endpoint_container_top_header_item,
.woocommerce-account
  .b2bking_myaccount_conversation_endpoint_top_header_text_bold {
  color: #fff !important;
}

/* Container single conversation: niente effetto box annidato troppo pesante */
.woocommerce-account #b2bking_myaccount_conversation_endpoint_container {
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
}

/* Header single conversation */
.woocommerce-account #b2bking_myaccount_conversation_endpoint_container_top {
  margin-bottom: 1.5rem;
}

.woocommerce-account #b2bking_myaccount_conversation_endpoint_title {
  margin: 0;
}

/* Barra Type / Date */
.woocommerce-account
  #b2bking_myaccount_conversation_endpoint_container_top_header {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 2rem !important;
  padding: 1.25rem 1.5rem !important;
  border: none !important;
  border-radius: 0.5rem 0.5rem 0 0 !important;
  box-shadow: none !important;
}

.woocommerce-account
  .b2bking_myaccount_conversation_endpoint_container_top_header_item {
  font-size: 1rem !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
}

/* Area messaggi */
.woocommerce-account #b2bking_conversation_messages_container {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 1rem !important;
  min-height: 14rem;
  max-height: 28rem;
  margin: 0 0 1.5rem !important;
  padding: 1.5rem !important;
  border: 1px solid rgba(0, 51, 102, 0.06) !important;
  border-radius: 0.75rem !important;
  background: #f5f5f5 !important;
  overflow-y: auto;
  box-shadow: none !important;
}

/* Reset completo dei messaggi B2BKing */
.woocommerce-account
  #b2bking_conversation_messages_container
  .b2bking_conversation_message {
  position: static !important;
  display: block !important;
  float: none !important;
  clear: both !important;
  width: fit-content !important;
  min-width: 12rem !important;
  max-width: min(34rem, 78%) !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0.875rem 1rem !important;
  border: 1px solid rgba(0, 51, 102, 0.08) !important;
  border-radius: 0.75rem !important;
  background: #fff !important;
  color: var(--body-color) !important;
  font-family: var(--avenir) !important;
  font-size: 0.9375rem !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
  text-align: left !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;
  box-shadow: none !important;
  transform: none !important;
}

/* Messaggi inviati dall'utente */
.woocommerce-account
  #b2bking_conversation_messages_container
  .b2bking_conversation_message_self {
  align-self: flex-end !important;
  margin-left: auto !important;
  margin-right: 0 !important;
  background: rgba(0, 138, 136, 0.08) !important;
  border-color: rgba(0, 138, 136, 0.2) !important;
}

/* Timestamp: sotto il testo, non sovrapposto */
.woocommerce-account
  #b2bking_conversation_messages_container
  .b2bking_conversation_message_time {
  position: static !important;
  display: block !important;
  float: none !important;
  clear: both !important;
  width: auto !important;
  height: auto !important;
  margin: 0.55rem 0 0 !important;
  padding: 0 !important;
  color: rgba(0, 51, 102, 0.55) !important;
  font-family: var(--avenir) !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  text-align: left !important;
  white-space: normal !important;
  opacity: 1 !important;
}

/* Textarea risposta */
.woocommerce-account #b2bking_conversation_user_new_message {
  display: block !important;
  width: 100% !important;
  min-height: 8rem !important;
  margin: 0 !important;
  padding: 0.875rem 1rem !important;
  border: 1px solid #dce3e7 !important;
  border-radius: 0.5rem !important;
  background: #fff !important;
  color: var(--body-color) !important;
  font-family: var(--avenir) !important;
  font-size: 0.9375rem !important;
  line-height: 1.45 !important;
  resize: vertical;
  box-shadow: none !important;
  outline: none !important;
}

.woocommerce-account #b2bking_conversation_user_new_message:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 0.2rem rgba(0, 138, 136, 0.12) !important;
}

/* Bottom invio messaggio */
.woocommerce-account .b2bking_myaccount_conversation_endpoint_bottom {
  display: flex !important;
  justify-content: flex-end !important;
  margin-top: 1rem !important;
}

/* Go Back più coerente */
.woocommerce-account
  #b2bking_myaccount_conversation_endpoint_container_top
  button {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}

.woocommerce-account
  #b2bking_myaccount_conversation_endpoint_container_top
  button:hover {
  background-color: #006e6d !important;
  border-color: #006e6d !important;
}

/* New Conversation: header teal e box più pulito */
.woocommerce-account .b2bking_myaccount_new_conversation_container {
  border-radius: 0.75rem !important;
  overflow: hidden !important;
}

.woocommerce-account .b2bking_myaccount_new_conversation_top {
  border-radius: 0 !important;
}

.woocommerce-account .b2bking_myaccount_new_conversation_close {
  background: rgba(255, 255, 255, 0.16) !important;
  color: #fff !important;
}

.woocommerce-account .b2bking_myaccount_new_conversation_close:hover {
  background: rgba(255, 255, 255, 0.26) !important;
}

/* Mobile */
@media (max-width: 767.98px) {
  .woocommerce-account
    #b2bking_myaccount_conversation_endpoint_container_top_header {
    flex-direction: column;
    align-items: flex-start;
    border-radius: 0.5rem !important;
  }

  .woocommerce-account #b2bking_conversation_messages_container {
    padding: 1rem !important;
    max-height: none;
  }

  .woocommerce-account
    #b2bking_conversation_messages_container
    .b2bking_conversation_message {
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .woocommerce-account .b2bking_myaccount_conversation_endpoint_bottom {
    justify-content: stretch !important;
  }

  .woocommerce-account #b2bking_conversation_message_submit {
    width: 100%;
  }
}

/* ============================================================
   MY ACCOUNT — B2BKing Subaccounts
   ============================================================ */

.woocommerce-account .b2bking_subaccounts_container {
  font-family: var(--avenir);
  color: var(--body-color);
}

/* Header pagina */
.woocommerce-account .b2bking_subaccounts_container_top {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1rem;
  margin-bottom: 1.5rem !important;
}

.woocommerce-account .b2bking_subaccounts_container_top_title {
  color: var(--body-color) !important;
  font-family: var(--avenir);
  font-size: clamp(1.75rem, 3vw, 2.25rem) !important;
  font-weight: 500 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.02em;
}

/* Pulsanti principali */
.woocommerce-account .b2bking_subaccounts_container_top_button,
.woocommerce-account .b2bking_subaccounts_account_button,
.woocommerce-account
  .b2bking_subaccounts_new_account_container_content_bottom_button,
.woocommerce-account .b2bking_subaccounts_container button[type="button"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  min-height: 2.75rem !important;
  padding: 0.75rem 1.5rem !important;
  border: 2px solid var(--primary-color) !important;
  border-radius: 0.375rem !important;
  background-color: var(--primary-color) !important;
  color: #fff !important;
  font-family: var(--avenir) !important;
  font-size: 0.9375rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  box-shadow: none !important;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.woocommerce-account .b2bking_subaccounts_container_top_button:hover,
.woocommerce-account .b2bking_subaccounts_account_button:hover,
.woocommerce-account
  .b2bking_subaccounts_new_account_container_content_bottom_button:hover,
.woocommerce-account
  .b2bking_subaccounts_container
  button[type="button"]:hover {
  border-color: #006e6d !important;
  background-color: #006e6d !important;
  color: #fff !important;
}

/* Icone pulsanti */
.woocommerce-account .b2bking_subaccounts_container button svg {
  width: 1.25rem !important;
  height: 1.25rem !important;
  flex: 0 0 auto;
}

/* ============================================================
   SUBACCOUNT LIST CARD
   ============================================================ */

.woocommerce-account .b2bking_subaccounts_account_container {
  overflow: hidden;
  margin-bottom: 1.25rem !important;
  border: 1px solid rgba(0, 51, 102, 0.08) !important;
  border-radius: 0.75rem !important;
  background: #fff !important;
  box-shadow: none !important;
}

/* Barra superiore singolo subaccount */
.woocommerce-account .b2bking_subaccounts_account_top {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  min-height: 2.75rem !important;
  padding: 0.75rem 1rem !important;
  background: var(--primary-color) !important;
  color: #fff !important;
  font-family: var(--avenir) !important;
  font-size: 0.9375rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}

.woocommerce-account .b2bking_subaccounts_account_top_icon {
  width: 1.25rem !important;
  height: 1.25rem !important;
}

.woocommerce-account .b2bking_subaccounts_account_top_icon path {
  fill: #fff !important;
}

/* Righe contenuto card */
.woocommerce-account .b2bking_subaccounts_account_line {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1rem !important;
  padding: 1.25rem 1rem !important;
  background: #fff !important;
}

.woocommerce-account
  .b2bking_subaccounts_account_line
  + .b2bking_subaccounts_account_line {
  padding-top: 0 !important;
}

.woocommerce-account .b2bking_subaccounts_account_name_title {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.25rem !important;
}

.woocommerce-account .b2bking_subaccounts_account_name {
  color: var(--body-color) !important;
  font-family: var(--avenir);
  font-size: 1.125rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
}

.woocommerce-account .b2bking_subaccounts_account_title,
.woocommerce-account .b2bking_subaccounts_account_phone_email_text {
  color: rgba(0, 51, 102, 0.68) !important;
  font-family: var(--avenir);
  font-size: 0.9375rem !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
}

.woocommerce-account .b2bking_subaccounts_account_phone_email {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.25rem !important;
}

/* Bottone edit dentro card: secondario */
.woocommerce-account .b2bking_subaccounts_account_button {
  min-height: 2.5rem !important;
  padding: 0.625rem 1rem !important;
  border-color: rgba(0, 51, 102, 0.22) !important;
  background: #fff !important;
  /*color: var(--body-color) !important;*/
  font-size: 0.875rem !important;
}

.woocommerce-account .b2bking_subaccounts_account_button svg path {
  fill: var(--body-color) !important;
}

.woocommerce-account .b2bking_subaccounts_account_button:hover {
  border-color: var(--primary-color) !important;
  background: rgba(0, 138, 136, 0.08) !important;
  color: var(--primary-color) !important;
}

.woocommerce-account .b2bking_subaccounts_account_button:hover svg path {
  fill: var(--primary-color) !important;
}

/* ============================================================
   NEW / EDIT SUBACCOUNT PANEL
   ============================================================ */

.woocommerce-account .b2bking_subaccounts_new_account_container {
  overflow: hidden !important;
  margin-bottom: 2rem !important;
  border: 1px solid rgba(0, 51, 102, 0.08) !important;
  border-radius: 0.75rem !important;
  background: #fff !important;
  box-shadow: none !important;
}

/* Header pannello */
.woocommerce-account .b2bking_subaccounts_new_account_container_top {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  min-height: 3rem !important;
  padding: 0.75rem 1.5rem !important;
  background: var(--primary-color) !important;
  color: #fff !important;
}

.woocommerce-account .b2bking_subaccounts_new_account_container_top_title {
  color: #fff !important;
  font-family: var(--avenir);
  font-size: 0.9375rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}

.woocommerce-account .b2bking_subaccounts_new_account_container_top_close {
  padding: 0.4rem 0.65rem !important;
  border-radius: 0.25rem !important;
  background: rgba(255, 255, 255, 0.16) !important;
  color: #fff !important;
  font-family: var(--avenir);
  font-size: 0.875rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  cursor: pointer;
}

.woocommerce-account
  .b2bking_subaccounts_new_account_container_top_close:hover {
  background: rgba(255, 255, 255, 0.26) !important;
}

/* Contenuto pannello */
.woocommerce-account .b2bking_subaccounts_new_account_container_content {
  padding: 1.5rem !important;
  background: #fff !important;
}

/* Titoli sezioni: Login Details / Personal Details / Permissions */
.woocommerce-account
  .b2bking_subaccounts_new_account_container_content_large_title {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  margin: 0 0 1.25rem !important;
  color: var(--body-color) !important;
  font-family: var(--avenir);
  font-size: 1.25rem !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
}

.woocommerce-account .b2bking_subaccount_top_margin {
  margin-top: 2rem !important;
}

.woocommerce-account
  .b2bking_subaccounts_new_account_container_content_large_title_icon {
  width: 1.5rem !important;
  height: 1.5rem !important;
  flex: 0 0 auto;
}

.woocommerce-account
  .b2bking_subaccounts_new_account_container_content_large_title_icon
  path {
  fill: var(--primary-color) !important;
}

.woocommerce-account .b2bking_span_title_text_subaccount {
  color: var(--body-color) !important;
  font-family: var(--avenir);
  font-size: 1.25rem !important;
  font-weight: 500 !important;
}

/* Elementi form */
.woocommerce-account
  .b2bking_subaccounts_new_account_container_content_element {
  margin-bottom: 1.25rem !important;
}

.woocommerce-account
  .b2bking_subaccounts_new_account_container_content_element_label {
  display: block !important;
  margin: 0 0 0.45rem !important;
  color: var(--body-color) !important;
  font-family: var(--avenir);
  font-size: 0.8125rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
}

/* Campi input */
.woocommerce-account
  .b2bking_subaccounts_new_account_container_content_element_text,
.woocommerce-account .b2bking_subaccounts_container input[type="text"],
.woocommerce-account .b2bking_subaccounts_container input[type="email"],
.woocommerce-account .b2bking_subaccounts_container input[type="password"],
.woocommerce-account .b2bking_subaccounts_container input[type="tel"],
.woocommerce-account .b2bking_subaccounts_container select,
.woocommerce-account .b2bking_subaccounts_container textarea {
  width: 100% !important;
  min-height: 3.125rem !important;
  padding: 0.75rem 0.9rem !important;
  border: 1px solid #dce3e7 !important;
  border-radius: 0.5rem !important;
  background: #fff !important;
  color: var(--body-color) !important;
  font-family: var(--avenir) !important;
  font-size: 0.9375rem !important;
  line-height: 1.4 !important;
  box-shadow: none !important;
  outline: none !important;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.woocommerce-account
  .b2bking_subaccounts_new_account_container_content_element_text::placeholder,
.woocommerce-account .b2bking_subaccounts_container input::placeholder,
.woocommerce-account .b2bking_subaccounts_container textarea::placeholder {
  color: rgba(0, 51, 102, 0.4) !important;
}

.woocommerce-account
  .b2bking_subaccounts_new_account_container_content_element_text:focus,
.woocommerce-account .b2bking_subaccounts_container input:focus,
.woocommerce-account .b2bking_subaccounts_container select:focus,
.woocommerce-account .b2bking_subaccounts_container textarea:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 0.2rem rgba(0, 138, 136, 0.12) !important;
}

/* Separatore */
.woocommerce-account .b2bking_subaccount_horizontal_line {
  margin-bottom: 1.5rem !important;
  padding-bottom: 1.5rem !important;
  border-bottom: 1px solid rgba(0, 51, 102, 0.1) !important;
}

/* ============================================================
   PERMISSIONS / CHECKBOXES
   ============================================================ */

.woocommerce-account
  .b2bking_subaccounts_new_account_container_content_element_checkbox {
  /*display: flex !important;*/
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1rem !important;
  margin-bottom: 0.75rem !important;
  padding: 0.875rem 1rem !important;
  border: 1px solid rgba(0, 51, 102, 0.08) !important;
  border-radius: 0.5rem !important;
  background: #f5f5f5 !important;
}

.woocommerce-account
  .b2bking_subaccounts_new_account_container_content_element_checkbox_name {
  color: rgba(0, 51, 102, 0.82) !important;
  font-family: var(--avenir);
  font-size: 0.9375rem !important;
  font-weight: 500 !important;
  line-height: 1.45 !important;
}

.woocommerce-account
  .b2bking_subaccounts_new_account_container_content_element_checkbox_input {
  width: 1.125rem !important;
  height: 1.125rem !important;
  accent-color: var(--primary-color);
}

/* Se nel tuo CSS stai già nascondendo Permissions, questo blocco non cambia nulla.
   Serve solo se decidi di mostrarle in futuro. */

/* ============================================================
   BOTTOM ACTIONS / VALIDATION
   ============================================================ */

.woocommerce-account .b2bking_subaccounts_new_account_container_content_bottom {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1rem !important;
  margin-top: 2rem !important;
  padding-top: 1.5rem !important;
  border-top: 1px solid rgba(0, 51, 102, 0.1) !important;
}

.woocommerce-account
  .b2bking_subaccounts_new_account_container_content_bottom_validation_errors {
  flex: 1;
  color: #b91c1c !important;
  font-family: var(--avenir);
  font-size: 0.9375rem !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
}

/* Button create/update */
.woocommerce-account
  .b2bking_subaccounts_new_account_container_content_bottom_button {
  margin-left: auto !important;
}

/* Eventuali bottoni delete generati nella pagina edit */
.woocommerce-account .b2bking_subaccounts_container button[class*="delete" i],
.woocommerce-account .b2bking_subaccounts_container .button[class*="delete" i],
.woocommerce-account .b2bking_subaccounts_container [id*="delete" i] {
  border-color: rgba(0, 51, 102, 0.22) !important;
  background: #fff !important;
  color: #b91c1c !important;
}

.woocommerce-account
  .b2bking_subaccounts_container
  button[class*="delete" i]:hover,
.woocommerce-account
  .b2bking_subaccounts_container
  .button[class*="delete" i]:hover,
.woocommerce-account .b2bking_subaccounts_container [id*="delete" i]:hover {
  border-color: #b91c1c !important;
  background: rgba(220, 38, 38, 0.06) !important;
  color: #b91c1c !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 767.98px) {
  .woocommerce-account .b2bking_subaccounts_container_top {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .woocommerce-account .b2bking_subaccounts_container_top_button,
  .woocommerce-account .b2bking_subaccounts_account_button,
  .woocommerce-account
    .b2bking_subaccounts_new_account_container_content_bottom_button,
  .woocommerce-account .b2bking_subaccounts_container button[type="button"] {
    width: 100% !important;
  }

  .woocommerce-account .b2bking_subaccounts_account_line {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .woocommerce-account .b2bking_subaccounts_account_line > div:last-child {
    width: 100%;
  }

  .woocommerce-account .b2bking_subaccounts_new_account_container_content {
    padding: 1rem !important;
  }

  .woocommerce-account .b2bking_subaccounts_new_account_container_top {
    padding: 0.75rem 1rem !important;
  }

  .woocommerce-account
    .b2bking_subaccounts_new_account_container_content_bottom {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .woocommerce-account
    .b2bking_subaccounts_new_account_container_content_bottom_validation_errors {
    width: 100%;
  }

  .woocommerce-account
    .b2bking_subaccounts_new_account_container_content_element_checkbox {
    align-items: flex-start !important;
  }
}

/* Reset bottoni B2BKing troppo generici */
.woocommerce-account .b2bking_subaccounts_container button[type="button"] {
  box-shadow: none !important;
  text-shadow: none !important;
}

/* Close X: niente grigio vecchio */
.woocommerce-account .b2bking_subaccounts_new_account_container_top_close,
.woocommerce-account [class*="b2bking_subaccounts"][class*="close" i] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 1.875rem !important;
  padding: 0.4rem 0.75rem !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-radius: 0.25rem !important;
  background: rgba(255, 255, 255, 0.14) !important;
  color: #fff !important;
  font-family: var(--avenir) !important;
  font-size: 0.875rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  cursor: pointer !important;
}

.woocommerce-account .b2bking_subaccounts_new_account_container_top_close:hover,
.woocommerce-account [class*="b2bking_subaccounts"][class*="close" i]:hover {
  background: rgba(255, 255, 255, 0.24) !important;
  color: #fff !important;
}

/* New / Create / Update: primari teal */
.woocommerce-account .b2bking_subaccounts_container_top_button,
.woocommerce-account
  .b2bking_subaccounts_new_account_container_content_bottom_button,
.woocommerce-account
  .b2bking_subaccounts_container
  button[type="button"]:last-of-type {
  border: 2px solid var(--primary-color) !important;
  background: var(--primary-color) !important;
  color: #fff !important;
}

.woocommerce-account .b2bking_subaccounts_container_top_button:hover,
.woocommerce-account
  .b2bking_subaccounts_new_account_container_content_bottom_button:hover,
.woocommerce-account
  .b2bking_subaccounts_container
  button[type="button"]:last-of-type:hover {
  border-color: #006e6d !important;
  background: #006e6d !important;
  color: #fff !important;
}

/* Icone dei bottoni primari sempre bianche */
.woocommerce-account .b2bking_subaccounts_container_top_button svg path,
.woocommerce-account
  .b2bking_subaccounts_new_account_container_content_bottom_button
  svg
  path,
.woocommerce-account
  .b2bking_subaccounts_container
  button[type="button"]:last-of-type
  svg
  path {
  fill: #fff !important;
}

/* Edit account nella card: rendiamolo primario coerente, icona bianca */
.woocommerce-account .b2bking_subaccounts_account_button {
  min-height: 2.75rem !important;
  padding: 0.75rem 1.25rem !important;
  border: 2px solid var(--primary-color) !important;
  border-radius: 0.375rem !important;
  background: var(--primary-color) !important;
  color: #fff !important;
  font-family: var(--avenir) !important;
  font-size: 0.9375rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}

.woocommerce-account .b2bking_subaccounts_account_button:hover {
  border-color: #006e6d !important;
  background: #006e6d !important;
  color: #fff !important;
}

.woocommerce-account .b2bking_subaccounts_account_button svg path,
.woocommerce-account .b2bking_subaccounts_account_button:hover svg path {
  fill: #fff !important;
}

/* Delete subaccount: niente grigio vecchio, stile danger pulito */
.woocommerce-account
  .b2bking_subaccounts_new_account_container_content_bottom
  button:first-of-type:not(:last-of-type),
.woocommerce-account .b2bking_subaccounts_container button[class*="delete" i],
.woocommerce-account .b2bking_subaccounts_container .button[class*="delete" i],
.woocommerce-account .b2bking_subaccounts_container [id*="delete" i] {
  border: 2px solid rgba(185, 28, 28, 0.18) !important;
  border-radius: 0.375rem !important;
  background: rgba(220, 38, 38, 0.06) !important;
  color: #b91c1c !important;
  font-family: var(--avenir) !important;
  font-size: 0.9375rem !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}

.woocommerce-account
  .b2bking_subaccounts_new_account_container_content_bottom
  button:first-of-type:not(:last-of-type):hover,
.woocommerce-account
  .b2bking_subaccounts_container
  button[class*="delete" i]:hover,
.woocommerce-account
  .b2bking_subaccounts_container
  .button[class*="delete" i]:hover,
.woocommerce-account .b2bking_subaccounts_container [id*="delete" i]:hover {
  border-color: #b91c1c !important;
  background: rgba(220, 38, 38, 0.1) !important;
  color: #b91c1c !important;
}

/* Icona delete rossa */
.woocommerce-account
  .b2bking_subaccounts_new_account_container_content_bottom
  button:first-of-type:not(:last-of-type)
  svg
  path,
.woocommerce-account
  .b2bking_subaccounts_container
  button[class*="delete" i]
  svg
  path,
.woocommerce-account
  .b2bking_subaccounts_container
  .button[class*="delete" i]
  svg
  path,
.woocommerce-account .b2bking_subaccounts_container [id*="delete" i] svg path {
  fill: #b91c1c !important;
}

/* Layout bottom edit: delete a sinistra, update a destra */
.woocommerce-account .b2bking_subaccounts_new_account_container_content_bottom {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1rem !important;
}

.woocommerce-account
  .b2bking_subaccounts_new_account_container_content_bottom
  button:first-of-type:not(:last-of-type) {
  margin-right: auto !important;
}

.woocommerce-account
  .b2bking_subaccounts_new_account_container_content_bottom
  button:last-of-type {
  margin-left: auto !important;
}

/* Evita che il bottone Edit account vada su due righe in desktop */
@media (min-width: 768px) {
  .woocommerce-account .b2bking_subaccounts_account_button {
    white-space: nowrap !important;
  }
}

/* Mobile */
@media (max-width: 767.98px) {
  .woocommerce-account
    .b2bking_subaccounts_new_account_container_content_bottom {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .woocommerce-account
    .b2bking_subaccounts_new_account_container_content_bottom
    button,
  .woocommerce-account .b2bking_subaccounts_account_button {
    width: 100% !important;
  }
}

.woocommerce-account .b2bking_subaccounts_account_line > div:last-child {
  flex: 0 0 auto !important;
  display: flex !important;
  justify-content: flex-end !important;
}

.woocommerce-account .b2bking_subaccounts_account_button {
  width: auto !important;
  min-width: 9.75rem !important;
  max-width: none !important;
  box-sizing: border-box !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.65rem !important;

  padding: 0.75rem 1.5rem !important;
  white-space: nowrap !important;
  text-align: center !important;
}

.woocommerce-account .b2bking_subaccounts_account_button svg {
  flex: 0 0 1.125rem !important;
  width: 1.125rem !important;
  height: 1.125rem !important;
}

.woocommerce-account .b2bking_subaccounts_account_button svg path {
  fill: #fff !important;
}

/* ============================================================
   SERCO FIX — B2BKing Subaccounts: hide permissions completely
   ============================================================ */

/* Nasconde il titolo Permissions quando è seguito dalle checkbox */
.woocommerce-account
  .b2bking_subaccounts_new_account_container_content_large_title:has(
    + .b2bking_subaccounts_new_account_container_content_element_checkbox
  ) {
  display: none !important;
}

/* Nasconde tutte le righe permessi */
.woocommerce-account
  .b2bking_subaccounts_new_account_container_content_element_checkbox {
  display: none !important;
}

/* Nasconde eventuali input permission rimasti nel DOM */
.woocommerce-account .b2bking_subaccounts_container input[name*="permission" i],
.woocommerce-account .b2bking_subaccounts_container input[id*="permission" i] {
  display: none !important;
}

/* Se resta un separatore subito prima della sezione permessi */
.woocommerce-account
  .b2bking_subaccount_horizontal_line:has(
    + .b2bking_subaccounts_new_account_container_content_large_title
      + .b2bking_subaccounts_new_account_container_content_element_checkbox
  ) {
  display: none !important;
}

/* ============================================================
   SERCO FIX — B2BKing Subaccounts buttons final override
   ============================================================ */

/* Update / Create subaccount */
.woocommerce-account
  .b2bking_subaccounts_new_account_container_content_bottom
  .b2bking_subaccounts_new_account_container_content_bottom_button,
.woocommerce-account
  .b2bking_subaccounts_new_account_container_content_bottom
  button:last-of-type {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.65rem !important;

  min-height: 2.75rem !important;
  padding: 0.75rem 1.5rem !important;

  border: 2px solid var(--primary-color) !important;
  border-radius: 0.375rem !important;
  background: var(--primary-color) !important;
  color: #fff !important;

  font-family: var(--avenir) !important;
  font-size: 0.9375rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;

  box-shadow: none !important;
  text-shadow: none !important;
  cursor: pointer !important;
}

.woocommerce-account
  .b2bking_subaccounts_new_account_container_content_bottom
  .b2bking_subaccounts_new_account_container_content_bottom_button:hover,
.woocommerce-account
  .b2bking_subaccounts_new_account_container_content_bottom
  button:last-of-type:hover {
  border-color: #006e6d !important;
  background: #006e6d !important;
  color: #fff !important;
}

/* Icona update/create bianca */
.woocommerce-account
  .b2bking_subaccounts_new_account_container_content_bottom
  .b2bking_subaccounts_new_account_container_content_bottom_button
  svg
  path,
.woocommerce-account
  .b2bking_subaccounts_new_account_container_content_bottom
  button:last-of-type
  svg
  path {
  fill: #fff !important;
}

/* Delete subaccount */
.woocommerce-account
  .b2bking_subaccounts_new_account_container_content_bottom
  button:first-of-type:not(:last-of-type),
.woocommerce-account .b2bking_subaccounts_container button[class*="delete" i],
.woocommerce-account .b2bking_subaccounts_container [id*="delete" i] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.65rem !important;

  min-height: 2.75rem !important;
  padding: 0.75rem 1.5rem !important;

  border: 2px solid rgba(185, 28, 28, 0.22) !important;
  border-radius: 0.375rem !important;
  background: rgba(220, 38, 38, 0.06) !important;
  color: #b91c1c !important;

  font-family: var(--avenir) !important;
  font-size: 0.9375rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;

  box-shadow: none !important;
  text-shadow: none !important;
  cursor: pointer !important;
}

.woocommerce-account
  .b2bking_subaccounts_new_account_container_content_bottom
  button:first-of-type:not(:last-of-type):hover,
.woocommerce-account
  .b2bking_subaccounts_container
  button[class*="delete" i]:hover,
.woocommerce-account .b2bking_subaccounts_container [id*="delete" i]:hover {
  border-color: #b91c1c !important;
  background: rgba(220, 38, 38, 0.1) !important;
  color: #b91c1c !important;
}

/* Icona delete rossa */
.woocommerce-account
  .b2bking_subaccounts_new_account_container_content_bottom
  button:first-of-type:not(:last-of-type)
  svg
  path,
.woocommerce-account
  .b2bking_subaccounts_container
  button[class*="delete" i]
  svg
  path,
.woocommerce-account .b2bking_subaccounts_container [id*="delete" i] svg path {
  fill: #b91c1c !important;
}
