/*
 * Verdon My account (templates/customer/*.tpl, loaded from customer/page.tpl).
 * Same visual language as checkout.css and order-pages.css: white rounded cards, green accents.
 * Scoped to .vac-layout (the account page row), so nothing outside My account is touched.
 */

.vac-layout {
  --vac-green: #1d6f02;
  --vac-green-dark: #185c02;
  --vac-green-soft: #f0f8ea;
  --vac-green-line: #b8dba4;
  --vac-ink: #1d1d1b;
  --vac-muted: #3d4339;
  --vac-line: #e2e5df;
  --vac-red: #c62828;
  --vac-amber: #8a5300;
  --vac-amber-soft: #fff6e5;
  --vac-amber-line: #f0c36d;
  --vac-radius: 16px;
  --vac-shadow: 0 1px 2px rgba(20, 30, 15, 0.04), 0 8px 24px rgba(20, 30, 15, 0.06);

  padding-bottom: 3rem;
}

/* The site-wide #center-column { padding-bottom: 4rem } (theme-overrides.css section 26) is halved on the account
   pages only: .vac-layout already ends with its own 3rem */
#center-column:has(> .vac-layout) {
  padding-bottom: 2rem;
}

/* ---------- Side menu: one card, active page in green ---------- */

.vac-layout .account-left-column .account-menu {
  display: block;
  margin: 0 0 1rem;
  padding: 0.5rem;
  border: 1px solid var(--vac-line);
  border-radius: var(--vac-radius);
  background: #fff;
  box-shadow: var(--vac-shadow);
}

.vac-layout .account-left-column .account-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vac-layout .account-left-column .account-menu__nav > a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: auto;
  max-width: none;
  min-height: 2.75rem;
  margin: 0;
  /* !important: the old menu CSS and the withdrawal module (pchwiderruf) set padding / weight with stronger selectors */
  padding: 0.5rem 0.875rem !important;
  border: 0;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  color: var(--vac-ink);
  font-size: 0.9375rem;
  font-weight: 600 !important;
  line-height: 1.3;
  text-decoration: none;
  flex: none;
}

/* Module links (GDPR, reviews, order cancellation) wrap their label in a span */
.vac-layout .account-left-column .account-menu__nav > a > .link-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  color: inherit;
  font: inherit;
  font-weight: inherit !important;
}

.vac-layout .account-left-column .account-menu__nav > a:hover,
.vac-layout .account-left-column .account-menu__nav > a:focus-visible {
  background: #f6f8f5;
  color: var(--vac-green);
}

.vac-layout .account-left-column .account-menu__nav > a.account-menu__link--active,
/* Links added by modules (displayCustomerAccount) never get the active class; their pages are told by the body id:
   wishlists (lists + one list) and reviews (the 3 tabs: comment / activity, one review: detail) */
body:is(#module-blockwishlist-lists, #view) .vac-layout .account-left-column .account-menu__nav > a#wishlist_link,
body:is(#comment, #activity, #detail) .vac-layout .account-left-column .account-menu__nav > a#review__link {
  background: var(--vac-green-soft);
  color: var(--vac-green);
  font-weight: 800 !important;
}

/* 24px: the native grid of the outline icon set (components/vicon.tpl, account-icons.svg) */
.vac-layout .account-left-column .account-menu__nav :is(svg, .material-icons) {
  flex: none;
  width: 24px;
  height: 24px;
  margin: 0 !important; /* the old menu CSS adds 12px on the SVG icons only */
  color: var(--vac-green);
  fill: currentColor;
  font-size: 24px;
  line-height: 24px;
}

.vac-layout .account-left-column .account-menu__nav > a.account-menu__link--signout {
  margin-top: 0.375rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--vac-line);
  border-radius: 0 0 10px 10px;
  color: var(--vac-red);
}

.vac-layout .account-left-column .account-menu__nav > a.account-menu__link--signout .material-icons {
  color: var(--vac-red);
}

/* Order cancellation link (pchwiderruf): the module styles it with !important + its id, so this needs both too */
.vac-layout .account-left-column .account-menu--sidebar a#pchwr-account-link {
  gap: 0.75rem !important;
  padding: 0.5rem 0.875rem !important;
  color: var(--vac-ink) !important;
  font-size: 0.9375rem !important;
  font-weight: 600 !important;
}

.vac-layout .account-left-column .account-menu--sidebar a#pchwr-account-link .link-item {
  gap: 0.75rem !important;
  color: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
}

.vac-layout .account-left-column .account-menu--sidebar a#pchwr-account-link .material-icons {
  width: 20px;
  color: var(--vac-green) !important;
  font-size: 20px !important;
}

.vac-layout .account-left-column .account-menu--sidebar a#pchwr-account-link:hover,
.vac-layout .account-left-column .account-menu--sidebar a#pchwr-account-link:focus-visible {
  background: #f6f8f5 !important;
  color: var(--vac-green) !important;
}

/* ---------- Back link (phones; the menu is hidden on sub-pages there) ---------- */

.vac-layout .vac-back {
  display: none;
  align-items: center;
  gap: 0.375rem;
  margin: 0 0 0.75rem;
  color: var(--vac-green);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
}

.vac-layout .vac-back::before {
  content: "";
  width: 1rem;
  height: 1rem;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 5-7 7 7 7'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 5-7 7 7 7'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Page header + cards + buttons ---------- */

.vac-layout .vac-head {
  margin: 0 0 1.25rem;
}

.vac-layout .vac-head__title {
  margin: 0;
  color: var(--vac-ink);
  font-size: 1.625rem;
  font-weight: 800;
  line-height: 1.25;
}

.vac-layout .vac-head__intro {
  max-width: 44rem;
  margin: 0.375rem 0 0;
  color: var(--vac-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.5;
}

.vac-layout .vac-card {
  display: block;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--vac-line);
  border-radius: var(--vac-radius);
  background: #fff;
  box-shadow: var(--vac-shadow);
  color: var(--vac-ink);
}

.vac-layout a.vac-card {
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.vac-layout a.vac-card:hover,
.vac-layout a.vac-card:focus-visible {
  border-color: var(--vac-green-line);
  color: var(--vac-ink);
  transform: translateY(-1px);
}

.vac-layout .vac-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--vac-green);
  border-radius: 12px;
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.vac-layout .vac-btn--primary {
  background: var(--vac-green);
  color: #fff;
}

.vac-layout .vac-btn--primary:hover {
  background: var(--vac-green-dark);
  color: #fff;
}

.vac-layout .vac-btn--ghost {
  background: #fff;
  color: var(--vac-green);
}

.vac-layout .vac-btn--ghost:hover {
  background: var(--vac-green-soft);
  color: var(--vac-green);
}

.vac-layout .vac-btn--danger {
  border-color: #f0c7c7;
  background: #fff;
  color: var(--vac-red);
}

.vac-layout .vac-btn--danger:hover {
  border-color: var(--vac-red);
  background: #fdeeee;
  color: var(--vac-red);
}

.vac-layout .vac-btn--small {
  min-height: 2.25rem;
  padding: 0.25rem 0.875rem;
  border-radius: 10px;
  font-size: 0.875rem;
}

.vac-layout .vac-link {
  color: var(--vac-green);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
}

.vac-layout .vac-link:hover {
  text-decoration: underline;
}

.vac-layout .vac-empty {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.vac-layout .vac-empty__text {
  margin: 0;
  color: var(--vac-muted);
  font-size: 1rem;
  font-weight: 600;
}

/* Order state colours come from the BO; the text stays dark for contrast */
.vac-layout .vac-state {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid color-mix(in srgb, var(--vac-state) 45%, #fff);
  border-radius: 999px;
  background: color-mix(in srgb, var(--vac-state) 14%, #fff);
  color: var(--vac-ink);
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
}

.vac-layout .vac-state::before {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--vac-state);
}

/* ---------- Dashboard ---------- */

.vac-layout .vac-dashboard {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0 0 1rem;
}

.vac-layout .vac-profile {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem 1rem;
}

.vac-layout .vac-profile__avatar {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: var(--vac-green);
  color: #fff;
  font-size: 1.125rem;
  font-weight: 800;
}

.vac-layout .vac-profile__body {
  align-self: center;
  min-width: 0;
}

.vac-layout .vac-profile__name {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 800;
}

.vac-layout .vac-profile__email {
  margin: 0.125rem 0 0;
  color: var(--vac-muted);
  font-size: 0.875rem;
  font-weight: 500;
  overflow-wrap: anywhere;
}


.vac-layout .vac-stat {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.25rem 0.75rem;
}

.vac-layout .vac-stat__icon {
  grid-row: 1 / 3;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  background: var(--vac-stat-soft) var(--vac-stat-icon) center / 1.375rem no-repeat;
}

.vac-layout .vac-stat__number {
  color: var(--vac-ink);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
}

.vac-layout .vac-stat__label {
  color: var(--vac-muted);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}

.vac-layout .vac-stat__link {
  grid-column: 1 / -1;
  margin-top: 0.75rem;
  color: var(--vac-green);
  font-size: 0.875rem;
  font-weight: 700;
}

.vac-layout .vac-stat--orders {
  --vac-stat-soft: var(--vac-green-soft);
  --vac-stat-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d6f02' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 8 12 3 3 8v8l9 5 9-5V8z'/%3E%3Cpath d='m3 8 9 5 9-5M12 13v8'/%3E%3C/svg%3E");
}

.vac-layout .vac-stat--wishlist {
  --vac-stat-soft: #fdeeee;
  --vac-stat-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c62828' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20s-7-4.4-7-10a4 4 0 0 1 7-2.6A4 4 0 0 1 19 10c0 5.6-7 10-7 10z'/%3E%3C/svg%3E");
}

.vac-layout .vac-stat--reviews {
  --vac-stat-soft: #fff6dc;
  --vac-stat-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b8860b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 3 2.8 5.7 6.2.9-4.5 4.4 1 6.2L12 17.3 6.5 20.2l1-6.2L3 9.6l6.2-.9L12 3z'/%3E%3C/svg%3E");
}

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

.vac-layout .vac-shortcut {
  position: relative;
  padding-right: 3rem;
}

.vac-layout .vac-shortcut::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1.25rem;
  width: 1.25rem;
  height: 1.25rem;
  background: var(--vac-green);
  transform: translateY(-50%);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 5 7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 5 7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
}

.vac-layout .vac-shortcut__title {
  display: block;
  color: var(--vac-ink);
  font-size: 1rem;
  font-weight: 800;
}

.vac-layout .vac-shortcut__text {
  display: block;
  margin-top: 0.125rem;
  color: var(--vac-muted);
  font-size: 0.875rem;
  font-weight: 500;
}

.vac-layout .vac-b2b p:last-child {
  margin-bottom: 0;
}

/* ---------- Order history ---------- */

.vac-layout .vac-orders {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vac-layout .vac-order {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding: 1rem 1.25rem;
}

.vac-layout .vac-order__ref {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}

.vac-layout .vac-order__meta {
  margin: 0.125rem 0 0;
  color: var(--vac-muted);
  font-size: 0.875rem;
  font-weight: 500;
}

.vac-layout .vac-order__total {
  min-width: 7rem;
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

/* ---------- Addresses ---------- */

.vac-layout .vac-addresses {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1rem;
}

.vac-layout .vac-address {
  display: flex;
  flex-direction: column;
}

.vac-layout .vac-address__alias {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 800;
}

.vac-layout .vac-address__content {
  flex: 1 1 auto;
  margin: 0 0 1rem;
  color: var(--vac-ink);
  font-size: 0.9375rem;
  font-style: normal;
  line-height: 1.55;
}

.vac-layout .vac-address__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.875rem;
  border-top: 1px solid var(--vac-line);
}

.vac-layout .vac-address-add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 12rem;
  border: 2px dashed var(--vac-green-line);
  background: #fbfdf9;
  box-shadow: none;
  color: var(--vac-green);
}

.vac-layout .vac-address-add__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--vac-green);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.vac-layout .vac-address-add__text {
  color: var(--vac-green);
  font-size: 0.9375rem;
  font-weight: 800;
}

/* ---------- Addresses: delivery addresses and companies (2026-11-09) ---------- */

.vac-layout .vac-addr-note {
  margin: 0 0 1rem;
  padding: 0.875rem 1.125rem;
  border: 1px solid var(--vac-green-line);
  border-radius: 14px;
  background: var(--vac-green-soft);
  color: var(--vac-ink);
  font-size: 0.9375rem;
}

.vac-layout .vac-addr-sections {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* B2B: invoiced on a company, so the companies come first */
.vac-layout .vac-addr-sections--firms-first .vac-addr-section--firms {
  order: -1;
}

.vac-layout .vac-addr-section {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.vac-layout .vac-addr-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.vac-layout .vac-addr-section__icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--vac-green-soft);
}

.vac-layout .vac-addr-section__icon svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: var(--vac-green);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vac-layout .vac-addr-section__text {
  flex: 1 1 16rem;
  min-width: 0;
}

.vac-layout .vac-addr-section__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
}

.vac-layout .vac-addr-section__intro {
  margin: 0.125rem 0 0;
  color: var(--vac-muted);
  font-size: 0.875rem;
}

.vac-layout .vac-addr-section__add {
  flex-shrink: 0;
}

.vac-layout .vac-addr-section .vac-address {
  border: 1px solid var(--vac-line);
  box-shadow: none;
}

/* No action row (a B2B firm): the address ends the card, without the gap kept for the buttons */
.vac-layout .vac-address__content:last-child {
  margin-bottom: 0;
}

/* B2B: the firm is managed by Verdon */
.vac-layout .vac-addr-warning {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  margin: 0;
  padding: 0.875rem 1.125rem;
  border: 1px solid var(--vac-amber-line);
  border-radius: 14px;
  background: var(--vac-amber-soft);
  color: var(--vac-ink);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.vac-layout .vac-addr-warning__icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.0625rem;
  fill: none;
  stroke: var(--vac-amber);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vac-layout .vac-address__line {
  margin: 0 0 0.25rem;
}

.vac-layout .vac-address__line--muted {
  color: var(--vac-muted);
}

.vac-layout .vac-addr-empty {
  margin: 0;
  padding: 1rem 1.125rem;
  border: 2px dashed var(--vac-green-line);
  border-radius: 14px;
  color: var(--vac-muted);
  font-size: 0.9375rem;
}

@media (max-width: 575.98px) {
  .vac-layout .vac-addr-section__add {
    width: 100%;
    justify-content: center;
  }
}

/* ---------- Vouchers ---------- */

.vac-layout .vac-vouchers {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vac-layout .vac-voucher {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  padding: 0;
  overflow: hidden;
}

.vac-layout .vac-voucher__value {
  display: grid;
  place-items: center;
  padding: 1rem;
  border-right: 2px dashed var(--vac-green-line);
  background: var(--vac-green-soft);
  color: var(--vac-green);
  font-size: 1.375rem;
  font-weight: 800;
  text-align: center;
}

.vac-layout .vac-voucher__body {
  padding: 1rem 1.25rem;
}

.vac-layout .vac-voucher__code {
  display: inline-block;
  margin: 0;
  padding: 0.125rem 0.625rem;
  border: 1px solid var(--vac-line);
  border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.vac-layout .vac-voucher__name {
  margin: 0.375rem 0 0.75rem;
  color: var(--vac-muted);
  font-size: 0.9375rem;
  font-weight: 600;
}

.vac-layout .vac-voucher__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem 1.5rem;
  margin: 0;
}

.vac-layout .vac-voucher__facts dt {
  color: var(--vac-muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.vac-layout .vac-voucher__facts dd {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
}

/* ---------- Forms (personal info, address) ---------- */

.vac-layout .vac-form {
  max-width: 48rem;
  padding: 1.5rem;
}

.vac-layout .vac-form .card,
.vac-layout .vac-form .js-address-form {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}

.vac-layout .vac-form__note {
  margin: 0 0 1rem;
  color: var(--vac-muted);
  font-size: 0.8125rem;
  font-weight: 600;
}

.vac-layout .vac-form__note sup {
  color: var(--vac-red);
}

.vac-layout .vac-form .form-label,
.vac-layout .vac-form label:not(.form-check-label):not(.custom-checkbox label) {
  color: var(--vac-muted);
  font-size: 0.8125rem;
  font-weight: 700;
}

.vac-layout .vac-form :is(.form-control, .form-select, select, input[type="text"], input[type="email"], input[type="password"], input[type="tel"]) {
  min-height: 2.875rem;
  border: 1px solid #d4d8d0;
  border-radius: 10px;
  background-color: #fff;
  box-shadow: none;
  color: var(--vac-ink);
  font-size: 0.9375rem;
}

.vac-layout .vac-form :is(.form-control, .form-select, select, input):focus {
  border-color: var(--vac-green);
  box-shadow: 0 0 0 3px var(--vac-green-soft);
  outline: 0;
}

.vac-layout .vac-form .input-group > .form-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.vac-layout .vac-form .input-group > .btn {
  min-width: 2.875rem;
  border-radius: 0 10px 10px 0;
}

.vac-layout .vac-form :is(.form-control-submit, button[type="submit"]) {
  min-height: 2.875rem;
  padding: 0.5rem 1.75rem;
  border: 0;
  border-radius: 12px;
  background: var(--vac-green);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 700;
}

.vac-layout .vac-form :is(.form-control-submit, button[type="submit"]):hover {
  background: var(--vac-green-dark);
}

.vac-layout .vac-form .form-footer {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--vac-line);
}

/* The shared customer form (also used at registration) prints its own title; the page header already has it */
.vac-layout .vac-form .account-title {
  display: none !important; /* the theme forces display:flex on .specific-account-title */
}

/* Bootstrap's own checkbox / radio (form-check-input) is blue when checked */
.vac-layout .vac-form .form-check-input:checked {
  border-color: var(--vac-green);
  background-color: var(--vac-green);
}

.vac-layout .vac-form .form-check-input:focus {
  border-color: var(--vac-green);
  box-shadow: 0 0 0 3px var(--vac-green-soft);
}

/* w-100 is a !important utility on the form's submit button */
.vac-layout .vac-form .form-control-submit.w-100 {
  width: auto !important;
}

/* "Validare CIF" on the address form (anaf_import): same outline button as at checkout */
.vac-layout .vac-form #btnValidateVat {
  min-height: 2.5rem;
  margin: 0.5rem 0 1rem;
  padding: 0.375rem 1.25rem;
  border: 1px solid var(--vac-green);
  border-radius: 10px;
  background: #fff;
  color: var(--vac-green);
  font-size: 0.9375rem;
  font-weight: 700;
}

.vac-layout .vac-form #btnValidateVat:hover {
  background: var(--vac-green-soft);
}

/* ---------- Address form (customer/_partials/address-form.tpl): groups, rows, labels ---------- */

.vac-layout .vaf .vac-form__note {
  margin-bottom: 0.25rem;
}

/* Rows and groups toggled by the form (company data, Bucharest sector): [hidden] must win over display:grid */
.vac-layout .vaf [hidden] {
  display: none !important;
}

/* The address name group opens the form: no top spacing */
.vac-layout .vaf .form-fields > fieldset:first-of-type {
  padding-top: 0;
}

/* Its field label would repeat the group title ("Denumire adresă"); the input keeps an aria-label */
.vac-layout .vaf__group--alias .form-label {
  display: none;
}

/* The type switch is separated from the address name like the groups are from each other */
.vac-layout .vaf__typeblock {
  margin-top: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--vac-line);
}

.vac-layout .vaf__typeblock .vaf__type {
  margin-top: 0;
}

/* "Persoană fizică": the company group is hidden, so no second line right under the switch */
.vac-layout .vaf__typeblock + .vaf__group[hidden] + .vaf__group {
  margin-top: 0;
  border-top: 0;
}

/* "Persoană fizică / Firmă": two large options; the chosen one is green */
.vac-layout .vaf__type {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0.75rem 0 0.25rem;
}

.vac-layout .vaf__type-option {
  position: relative;
  margin: 0;
  cursor: pointer;
}

.vac-layout .vaf__type-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.vac-layout .vaf__type-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: 3.25rem;
  padding: 0.5rem 1rem;
  border: 1.5px solid #d4d8d0;
  border-radius: 12px;
  background: #fff;
  color: var(--vac-ink);
  font-size: 1rem;
  font-weight: 700;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.vac-layout .vaf__type-box svg {
  flex-shrink: 0;
  width: 1.375rem;
  height: 1.375rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vac-layout .vaf__type-option:hover .vaf__type-box {
  border-color: var(--vac-green-line);
}

.vac-layout .vaf__type-option input:checked + .vaf__type-box {
  border-color: var(--vac-green);
  background: var(--vac-green-soft);
  color: var(--vac-green);
  box-shadow: inset 0 0 0 1px var(--vac-green);
}

.vac-layout .vaf__type-option input:focus-visible + .vaf__type-box {
  outline: 3px solid var(--vac-green-line);
  outline-offset: 2px;
}

/* B2B account: "Persoană fizică" cannot be picked */
.vac-layout .vaf__type-option.is-disabled {
  cursor: not-allowed;
}

.vac-layout .vaf__type-option.is-disabled .vaf__type-box {
  border-style: dashed;
  background: #f6f7f5;
  color: #9aa096;
}

.vac-layout .vaf__type-note {
  margin: 0.5rem 0 0;
  color: var(--vac-muted);
  font-size: 0.875rem;
  line-height: 1.45;
}

.vac-layout .vaf__group {
  min-width: 0;
  margin: 0;
  padding: 1.25rem 0 0.25rem;
  border: 0;
}

.vac-layout .vaf__group + .vaf__group {
  margin-top: 0.75rem;
  border-top: 1px solid var(--vac-line);
}

/* A floated legend sits inside the fieldset, so the group's top border stays a plain line */
.vac-layout .vaf__title {
  float: left;
  width: 100%;
  margin: 0 0 0.875rem;
  padding: 0;
  color: var(--vac-ink);
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.3;
}

.vac-layout .vaf__title + * {
  clear: both;
}

.vac-layout .vaf__note {
  margin: -0.5rem 0 0.875rem;
  color: var(--vac-muted);
  font-size: 0.875rem;
  line-height: 1.45;
}

.vac-layout .vaf__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0 1rem;
}

.vac-layout .vaf__row--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vac-layout .vaf__row--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Phone alone on its row: half width, like the fields above it */
.vac-layout .vaf__row--1:has(.box-field-phone) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Address field wrappers come from _partials/form-fields.tpl as "col-12 mb-3 d-flex flex-column" */
.vac-layout .vaf__row > [class*="box-field-"],
.vac-layout .vaf__vat > [class*="box-field-"] {
  width: auto;
  max-width: none;
  margin-bottom: 1rem !important;
  padding: 0;
}

.vac-layout .vaf .form-label.required::after {
  content: " *";
  color: var(--vac-red);
}

/* CIF + "Validare CIF" on one line, the button level with the field */
.vac-layout .vaf__vat {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 0 0.75rem;
}

.vac-layout .vaf__vat #btnValidateVat {
  min-height: 2.875rem;
  margin: 0 0 1rem;
  white-space: nowrap;
}

/* The old address-page rules (custom-second.css, #address ...) pad the fields and the footer by 15px and paint
   Save pale green; the id is repeated here to win over them */
body#address .vac-layout .vaf section.form-fields,
body#address .vac-layout .vaf .form-footer {
  padding-right: 0;
  padding-left: 0;
}

body#address .vac-layout .vaf .form-footer {
  padding-bottom: 0;
}

body#address .vac-layout .vaf .form-footer .btn-primary {
  border: 0;
  border-radius: 12px;
  background: var(--vac-green);
  color: #fff;
  font-size: 0.9375rem;
}

body#address .vac-layout .vaf .form-footer .btn-primary:hover {
  background: var(--vac-green-dark);
}

/* Județ and Localitate are searchable lists (select2), styled like the checkout ones (checkout.css) and like the
   native selects next to them: same height, border, radius and chevron */
.vac-layout .vaf .select2-container .select2-selection--single {
  display: flex;
  align-items: center;
  height: 2.875rem;
  border: 1px solid #d4d8d0;
  border-radius: 10px;
  background: #fff;
}

.vac-layout .vaf .select2-container .select2-selection__rendered {
  flex: 1 1 auto;
  padding-right: 2.5rem;
  padding-left: 0.75rem;
  color: var(--vac-ink);
  font-size: 0.9375rem;
  line-height: 2.875rem;
}

.vac-layout .vaf .select2-container .select2-selection__placeholder {
  color: #6a7066;
}

.vac-layout .vaf .select2-container .select2-selection__arrow {
  top: 50%;
  right: 0.75rem;
  width: 1rem;
  height: 1rem;
  transform: translateY(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E") center / 1rem no-repeat;
}

.vac-layout .vaf .select2-container .select2-selection__arrow b {
  display: none;
}

.vac-layout .vaf .select2-container--focus .select2-selection--single,
.vac-layout .vaf .select2-container--open .select2-selection--single {
  border-color: var(--vac-green);
  box-shadow: 0 0 0 3px var(--vac-green-soft);
}

/* The theme's orange focus outline would sit on top of the green focus ring */
.vac-layout .vaf .select2-container .select2-selection:focus {
  outline: 0;
}

/* The open list is appended to <body>, outside .vac-layout, so it is scoped by the page id */
body#address .select2-dropdown {
  overflow: hidden;
  margin-top: 0.25rem;
  border: 1px solid #d4d8d0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(20, 30, 15, 0.14);
}

body#address .select2-container--open .select2-dropdown--above {
  margin-top: 0;
  margin-bottom: 0.25rem;
}

body#address .select2-search--dropdown {
  padding: 0.5rem;
}

body#address .select2-container--default .select2-search--dropdown .select2-search__field {
  height: 2.5rem;
  padding: 0 0.75rem;
  border: 1px solid #d4d8d0;
  border-radius: 8px;
  outline: 0;
  font-size: 0.9375rem;
}

body#address .select2-container--default .select2-search--dropdown .select2-search__field:focus {
  border-color: #1d6f02;
  box-shadow: 0 0 0 3px rgba(29, 111, 2, 0.14);
}

body#address .select2-results__options {
  padding: 0 0.375rem 0.375rem;
}

body#address .select2-container--default .select2-results__option {
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  color: #1d1d1b;
  font-size: 0.9375rem;
}

body#address .select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: #f0f8ea;
  color: #1d6f02;
}

body#address .select2-container--default .select2-results__option[aria-selected="true"] {
  background-color: transparent;
  color: #1d6f02;
  font-weight: 700;
}

body#address .select2-container--default .select2-results__option--highlighted[aria-selected="true"] {
  background-color: #f0f8ea;
}

/* Empty required fields after Save: the form gets was-validated, but the field border above hid Bootstrap's red */
.vac-layout .vac-form .was-validated :is(.form-control, .form-select):invalid,
.vac-layout .vaf .was-validated [class*="box-field-"]:has(:invalid) .select2-selection {
  border-color: var(--vac-red);
  box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.12);
}

.vac-layout .vac-form .was-validated [class*="box-field-"]:has(:invalid) .form-label {
  color: var(--vac-red);
}

/* ---------- Wishlists (modules/blockwishlist lists.tpl): same layout as the vouchers page ---------- */

/* Our header on the left, the module's "Creează o listă nouă" on its right, the lists under both */
.vac-layout .vwl {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  column-gap: 1rem;
}

.vac-layout .vwl > .vac-head {
  grid-column: 1;
  grid-row: 1;
}

.vac-layout .vwl .wishlist-container {
  display: contents;
}

.vac-layout .vwl .wishlist-container-header {
  grid-column: 2;
  grid-row: 1;
  margin: 0 0 1.25rem;
}

.vac-layout .vwl .wishlist-container-header h1 {
  display: none;
}

.vac-layout .vwl .wishlist-add-to-new {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 2.5rem;
  padding: 0.375rem 1rem;
  border: 1px solid var(--vac-green);
  border-radius: 10px;
  background: #fff;
  color: var(--vac-green) !important;
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.vac-layout .vwl .wishlist-add-to-new:hover {
  background: var(--vac-green-soft);
}

.vac-layout .vwl .wishlist-add-to-new .material-icons {
  font-size: 1.25rem;
}

.vac-layout .vwl .wishlist-container > #content {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}

.vac-layout .vwl .wishlist-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vac-layout .vwl .wishlist-list-item {
  position: relative;
  margin: 0;
  padding: 0;
  border: 1px solid var(--vac-line);
  border-radius: var(--vac-radius);
  background: #fff;
  box-shadow: var(--vac-shadow);
}

.vac-layout .vwl .wishlist-list-item:hover {
  border-color: var(--vac-green-line);
}

.vac-layout .vwl .wishlist-list-item-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  color: var(--vac-ink);
  text-decoration: none;
  cursor: pointer;
}

/* Heart in a soft red circle, like the wishlist counter on the dashboard */
.vac-layout .vwl .wishlist-list-item-link::before {
  content: "";
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: #fdeeee url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c62828' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20s-7-4.4-7-10a4 4 0 0 1 7-2.6A4 4 0 0 1 19 10c0 5.6-7 10-7 10z'/%3E%3C/svg%3E") center / 1.375rem no-repeat;
}

.vac-layout .vwl .wishlist-list-item-title {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  color: var(--vac-ink);
  font-size: 1rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.vac-layout .vwl .wishlist-list-item-title span {
  margin-left: 0.25rem;
  color: var(--vac-muted);
  font-weight: 500;
}

.vac-layout .vwl .wishlist-list-item-right {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.25rem;
}

.vac-layout .vwl .wishlist-list-item-right > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--vac-muted);
}

.vac-layout .vwl .wishlist-list-item-right > button:hover {
  background: var(--vac-green-soft);
  color: var(--vac-green);
}

.vac-layout .vwl .wishlist-list-item-right .material-icons {
  font-size: 1.25rem;
}

/* Rename / delete menu of the extra lists */
.vac-layout .vwl .wishlist-list-item .dropdown-menu {
  padding: 0.375rem;
  border: 1px solid var(--vac-line);
  border-radius: 12px;
  box-shadow: var(--vac-shadow);
}

.vac-layout .vwl .wishlist-list-item .dropdown-menu > button {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--vac-ink);
  font-weight: 600;
  text-align: left;
}

.vac-layout .vwl .wishlist-list-item .dropdown-menu > button:hover {
  background: var(--vac-green-soft);
}

/* Vue's empty state ("No wishlist found.") as a card */
.vac-layout .vwl .wishlist-list-empty {
  margin: 0;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--vac-line);
  border-radius: var(--vac-radius);
  background: #fff;
  box-shadow: var(--vac-shadow);
  color: var(--vac-muted);
  font-weight: 600;
}

/* ---------- Module pages shown inside My account (wishlist, GDPR) ---------- */

.vac-layout .account-right-column > #content:not(:has(.vac-head, .voc-hero)),
.vac-layout .account-right-column .wishlist-container:not(.vwl .wishlist-container) {
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--vac-line);
  border-radius: var(--vac-radius);
  background: #fff;
  box-shadow: var(--vac-shadow);
}

/* ---------- Responsive ---------- */

@media (max-width: 1199.98px) {
  .vac-layout .vac-order {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .vac-layout .vac-order .vac-state {
    justify-self: start;
    grid-row: 2;
  }

  .vac-layout .vac-order__total {
    grid-row: 1;
    grid-column: 2;
  }

  .vac-layout .vac-order__details {
    grid-row: 2;
    grid-column: 2;
  }
}

@media (max-width: 767.98px) {
  /* Sub-pages with a back link: the 10-item menu would push the content far down */
  .vac-layout:has(.vac-back) .account-left-column {
    display: none;
  }

  .vac-layout .vac-back {
    display: inline-flex;
  }

  /* Dashboard: greeting, counters and shortcuts first, the full menu under them */
  .vac-layout:has(.vac-dashboard) .account-right-column {
    order: -1;
  }

  .vac-layout .vac-head__title {
    font-size: 1.375rem;
  }

  .vac-layout .vac-card {
    padding: 1rem;
    border-radius: 14px;
  }

  .vac-layout .vac-dashboard {
    gap: 0.625rem;
  }

  .vac-layout .vac-shortcuts {
    grid-template-columns: minmax(0, 1fr);
  }

  .vac-layout .vac-profile {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .vac-layout .vac-profile .vac-link {
    grid-column: 2;
  }

  /* Phones: the three counters become small tiles side by side; the whole tile is the link */
  .vac-layout .vac-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.875rem 0.5rem;
    text-align: center;
  }

  .vac-layout .vac-stat__icon {
    width: 2.25rem;
    height: 2.25rem;
    margin-bottom: 0.25rem;
    background-size: 1.125rem;
  }

  .vac-layout .vac-stat__number {
    font-size: 1.5rem;
  }

  .vac-layout .vac-stat__label {
    font-size: 0.75rem;
    line-height: 1.25;
    white-space: normal;
  }

  .vac-layout .vac-stat__link {
    display: none;
  }

  .vac-layout .vac-voucher {
    grid-template-columns: minmax(0, 1fr);
    padding: 0;
  }

  .vac-layout .vac-voucher__value {
    border-right: 0;
    border-bottom: 2px dashed var(--vac-green-line);
  }

  .vac-layout .vac-form {
    padding: 1rem;
  }

  /* Address type switch: both labels on one line */
  .vac-layout .vaf__type {
    gap: 0.5rem;
  }

  .vac-layout .vaf__type-box {
    gap: 0.5rem;
    padding: 0.5rem 0.625rem;
    font-size: 0.9375rem;
    white-space: nowrap;
  }

  .vac-layout .vaf__type-box svg {
    width: 1.25rem;
    height: 1.25rem;
  }

  /* Address form: Bloc / Scară / Etaj / Ap. two per line; CIF button under the field */
  .vac-layout .vaf__row--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vac-layout .vaf__vat {
    grid-template-columns: minmax(0, 1fr);
  }

  .vac-layout .vaf__vat #btnValidateVat {
    justify-self: start;
    min-height: 2.5rem;
    margin-top: -0.5rem;
  }

  /* Wishlists: the "new list" button goes under the title */
  .vac-layout .vwl {
    grid-template-columns: minmax(0, 1fr);
  }

  .vac-layout .vwl .wishlist-container-header {
    grid-column: 1;
    grid-row: 2;
    margin-top: -0.5rem;
  }

  .vac-layout .vwl .wishlist-list-item-link {
    gap: 0.75rem;
    padding: 0.875rem 1rem;
  }
}

@media (max-width: 420px) {
  /* Narrow phones: first name / last name and city / postcode stacked */
  .vac-layout .vaf__row--2,
  .vac-layout .vaf__row--1:has(.box-field-phone) {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* ==========================================================================
   Login, register and password pages (from 03.11): kept in the same file, they share it
   ========================================================================== */
/* ==========================================================================
   Verdon login page (customer/authentication.tpl + customer/_partials/login-form-page.tpl), the three password
   pages (customer/password-page.tpl) and the register page (customer/registration.tpl), 2026-11. Loaded on those
   pages only. Fields and buttons (.vauth__input, .vauth__submit, ...) are shared; .vauth is the login layout,
   .vreset the password card, .vregister the register card (both at the end of the file).
   ========================================================================== */
.vauth,
.vreset,
.vregister {
  --vauth-green: var(--green-1, #1d6f02);
  --vauth-green-dark: var(--green-24, #25641c);
  --vauth-tint: #eef6ea;
  --vauth-line: #c4ccc2;
}
.vauth {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: 1.5rem;
  flex: 1 1 100%;
  width: 100%;
  margin: 0.5rem 0 2rem;
}
.vauth__card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem 2.25rem 2rem;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 0.25rem 1.25rem rgb(0 0 0 / 6%);
}

/* Card heading: tinted icon tile, title and one line under it */
.vauth__head {
  display: flex;
  align-items: center;
  gap: 1.125rem;
  margin-bottom: 1.5rem;
}
.vauth__badge {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  background: var(--vauth-tint);
  color: var(--vauth-green-dark);
}
.vauth svg,
.vreset svg,
.vregister svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.vauth__badge svg {
  width: 1.875rem;
  height: 1.875rem;
}
.vauth__title {
  margin: 0;
  color: #111;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.25;
}
.vauth__lead {
  margin: 0.25rem 0 0;
  color: #555;
  font-size: 0.9375rem;
}

/* Fields: icon inside on the left, password eye inside on the right */
.vauth__field {
  margin-bottom: 1rem;
}
.vauth .form-label,
.vreset .form-label,
.vregister .form-label {
  margin-bottom: 0.375rem;
  color: #222;
  font-size: 0.875rem;
  font-weight: 600;
}
.vauth__input {
  position: relative;
}
.vauth__input .form-control {
  height: 2.875rem;
  padding: 0 1rem 0 2.75rem;
  border: 1px solid #b9c2b6;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
}
.vauth__input .form-control:focus {
  border-color: var(--vauth-green);
  box-shadow: 0 0 0 0.2rem rgb(29 111 2 / 15%);
}
.vauth__input-icon {
  position: absolute;
  top: 50%;
  left: 0.875rem;
  z-index: 1;
  width: 1.25rem;
  height: 1.25rem;
  color: #505050;
  transform: translateY(-50%);
  pointer-events: none;
}
.vauth__input.password-field .form-control {
  padding-right: 3rem;
}
.vauth__toggle {
  position: absolute;
  top: 50%;
  right: 0.375rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  border-radius: 0.375rem;
  background: none;
  color: #444;
  transform: translateY(-50%);
}
.vauth__toggle:hover {
  color: var(--vauth-green);
}
.vauth__toggle .material-icons {
  font-size: 1.375rem;
}

.vauth__row {
  display: flex;
  justify-content: flex-end;
  margin: -0.125rem 0 1.25rem;
}
.vauth__forgot {
  color: var(--vauth-green);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
}
.vauth__forgot:hover {
  text-decoration: underline;
}

/* Buttons: filled (login) and outlined (register), both full width with a trailing arrow */
.vauth__submit,
.vauth__register {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 3rem;
  border-radius: 0.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
}
.vauth__submit svg,
.vauth__register svg {
  width: 1.375rem;
  height: 1.375rem;
}
.vauth__register {
  border: 1.5px solid var(--vauth-green);
  color: var(--vauth-green);
  text-decoration: none;
}
.vauth__register:hover {
  background: var(--vauth-tint);
  color: var(--vauth-green);
}
.vauth__register svg:first-child {
  width: 1.625rem;
  height: 1.625rem;
}

/* "sau": a vertical line with the word in a circle */
.vauth__or {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
}
.vauth__or::before {
  content: "";
  position: absolute;
  top: 8%;
  bottom: 8%;
  left: 50%;
  border-left: 1.5px solid var(--vauth-line);
}
.vauth__or span {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--vauth-line);
  border-radius: 50%;
  background: #f6f7f6;
  color: #222;
  font-size: 0.9375rem;
  font-weight: 700;
}

/* Perks under the register button (_partials/verdon-perks.tpl) */
/* Fills the rest of the card, so both cards end at the same height with no empty space */
.vauth__perks {
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  margin: 1.75rem 0 0;
  padding: 1.75rem 0.5rem;
  border-radius: 0.875rem;
  background: var(--vauth-tint);
  list-style: none;
}
.vauth__perks li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  height: 100%;
  padding: 0 0.75rem;
  color: #111;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}
.vauth__perks li + li {
  border-left: 1px solid #cfdccb;
}
.vauth__perks svg {
  width: 3.25rem;
  height: 3.25rem;
  color: var(--vauth-green-dark);
  stroke-width: 1.3;
}

/* Phones and tablets: cards stacked, "sau" as a horizontal line */
@media (max-width: 991.98px) {
  .vauth {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }
  .vauth__card {
    padding: 1.25rem 1.125rem 1.5rem;
  }
  .vauth__or {
    width: auto;
    height: 3rem;
  }
  .vauth__or::before {
    top: 50%;
    right: 6%;
    bottom: auto;
    left: 6%;
    border-top: 1.5px solid var(--vauth-line);
    border-left: 0;
  }
  /* Smaller tile and title: "Doresc sa devin membru Verdon" stays on one line down to 360px wide screens */
  .vauth__head {
    gap: 0.75rem;
    margin-bottom: 1.25rem;
  }
  .vauth__badge {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.625rem;
  }
  .vauth__badge svg {
    width: 1.5rem;
    height: 1.5rem;
  }
  .vauth__title {
    font-size: clamp(0.9375rem, 4.2vw, 1.1875rem);
  }
  .vauth__lead {
    font-size: 0.8125rem;
  }
  .vauth__perks {
    padding: 1.125rem 0.25rem;
  }
  .vauth__perks li {
    padding: 0 0.375rem;
    font-size: 0.8125rem;
  }
  .vauth__perks svg {
    width: 2.5rem;
    height: 2.5rem;
  }
}

/* ==========================================================================
   Password pages: one card, owl on a soft green blob on the left, a thin divider, the form on the right
   ========================================================================== */
.vreset {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  max-width: 68rem;
  margin: 1rem auto 2rem;
  padding: 2.5rem 3rem;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 0.25rem 1.5rem rgb(16 40 20 / 7%);
}
.vreset__art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  padding-right: 2.5rem;
  border-right: 1px solid #e1e5df;
}
/* The soft green blob sits behind the owl as its own layer, so it never clips the illustration */
.vreset__art::before {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(50% - 1.25rem);
  width: min(17rem, 90%);
  aspect-ratio: 1;
  border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%;
  background: #eef7e8;
  transform: translate(-50%, -50%);
}
.vreset__owl {
  position: relative;
  width: 100%;
  max-width: 15rem;
  height: auto;
}
.vreset__body {
  padding-left: 2.75rem;
}
.vreset__title {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.25rem;
  margin: 0 0 0.875rem;
  color: #111;
  font-size: 1.875rem;
  font-weight: 800;
  line-height: 1.15;
}
.vreset__spark {
  width: 1.875rem;
  height: 1.875rem;
  margin-top: -0.875rem;
  color: #7cc242;
  stroke-width: 3 !important;
}
.vreset__lead {
  margin: 0 0 1.5rem;
  color: #333;
  font-size: 1.0625rem;
  line-height: 1.55;
}
.vreset .alert {
  margin-bottom: 1.25rem;
}
.vreset .vauth__submit {
  margin-top: 0.5rem;
}
.vreset__back {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e1e5df;
  color: #222;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}
.vreset__back:hover {
  color: var(--vauth-green);
}
.vreset__back svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Tablets and phones: owl above the form, no divider */
@media (max-width: 767.98px) {
  .vreset {
    grid-template-columns: minmax(0, 1fr);
    margin: 0.5rem 0 1.5rem;
    padding: 1.5rem 1.125rem 1.25rem;
  }
  .vreset__art {
    margin-bottom: 1.25rem;
    padding: 0;
    border-right: 0;
  }
  .vreset__art::before {
    left: 50%;
    width: 10rem;
  }
  .vreset__owl {
    max-width: 11.25rem;
  }
  .vreset__body {
    padding-left: 0;
  }
  .vreset__title {
    font-size: 1.5rem;
  }
  .vreset__spark {
    width: 1.5rem;
    height: 1.5rem;
  }
  .vreset__lead {
    font-size: 0.9375rem;
  }
}

/* ==========================================================================
   Register page: one card, intro (owl, title, perks) on the left, the theme's customer form on the right.
   The form markup is the theme's own ({form_field}), so it is styled here rather than rewritten.
   ========================================================================== */
.vregister {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 8fr);
  max-width: 76rem;
  margin: 1rem auto 2rem;
  overflow: hidden;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 0.25rem 1.5rem rgb(16 40 20 / 7%);
}
/* Soft green corners, as in the mockup */
.vregister::before,
.vregister::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: #eef7e8;
  pointer-events: none;
}
.vregister::before {
  bottom: -9rem;
  left: -7rem;
  width: 22rem;
  height: 14rem;
}
.vregister::after {
  top: -6rem;
  right: -6rem;
  width: 16rem;
  height: 10rem;
}
.vregister__intro {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: 2.5rem 2.5rem 3rem 3rem;
  border-right: 1px solid #e1e5df;
}
.vregister__art {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 1.75rem;
}
.vregister__art::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(18rem, 100%);
  aspect-ratio: 1;
  border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%;
  background: #eef7e8;
  transform: translate(-50%, -50%);
}
.vregister__owl {
  position: relative;
  width: 100%;
  max-width: 15rem;
  height: auto;
}
.vregister__title {
  margin: 0 0 0.75rem;
  color: #111;
  font-size: 1.875rem;
  font-weight: 800;
  line-height: 1.15;
}
.vregister__lead {
  margin: 0 0 1.5rem;
  color: #444;
  font-size: 1.0625rem;
  line-height: 1.5;
}
.vregister__perks {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.vregister__perks li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #222;
  font-size: 1rem;
}
.vregister__perks li::before {
  content: "";
  flex-shrink: 0;
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 50%;
  background: var(--vauth-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 0.875rem no-repeat;
}

/* Right column: the form */
.vregister__form {
  position: relative;
  z-index: 1;
  padding: 2.25rem 3rem 2rem;
}
.vregister .account-title {
  display: none;
}
.vregister #customer-form .card-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1.25rem;
  padding: 0;
}
.vregister #customer-form .card-body > * {
  grid-column: 1 / -1;
}
.vregister #customer-form .card-body > :is(.box-field-firstname, .box-field-lastname, .box-field-company, .box-field-siret) {
  grid-column: auto;
}
.vregister .form-label {
  margin-bottom: 0.375rem !important;
}
/* The site hides the required star on labels; the register mockup shows it */
.vregister .form-label.required::after {
  content: " *";
  color: #d32f2f;
}
.vregister .form-check-label {
  color: #222;
  font-size: 0.9375rem;
}
.vregister .form-check-label p {
  margin: 0;
}
/* Placeholders and box edges a step darker than Bootstrap's defaults, so empty fields still read as fields */
:is(.vauth, .vreset, .vregister) .form-control::placeholder {
  color: #767676;
  opacity: 1;
}
.vregister .form-check-input {
  border-color: #9aa597;
}
.vregister .form-check-input:checked {
  border-color: var(--vauth-green);
  background-color: var(--vauth-green);
}
/* Inputs: icon inside on the left (by field id), same box as the login page */
.vregister #customer-form .form-control {
  height: 2.875rem;
  padding: 0 1rem 0 2.75rem;
  border: 1px solid #b9c2b6;
  border-radius: 0.5rem !important;
  background: #fff no-repeat 0.875rem center / 1.25rem;
  font-size: 0.9375rem;
}
.vregister #customer-form .form-control:focus {
  border-color: var(--vauth-green);
  box-shadow: 0 0 0 0.2rem rgb(29 111 2 / 15%);
}
.vregister #customer-form #field-firstname,
.vregister #customer-form #field-lastname {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23505050' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4.5 20.5c.6-4 3.7-6.5 7.5-6.5s6.9 2.5 7.5 6.5Z'/%3E%3C/svg%3E");
}
.vregister #customer-form #field-email {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23505050' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3.5 6.5 8.5 6.5 8.5-6.5'/%3E%3C/svg%3E");
}
.vregister #customer-form #field-password {
  padding-right: 3rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23505050' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='10.5' width='14' height='10' rx='2'/%3E%3Cpath d='M8 10.5V8a4 4 0 0 1 8 0v2.5M12 14.5v2'/%3E%3C/svg%3E");
}
.vregister #customer-form #field-company {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23505050' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21h18M5 21V7l7-4 7 4v14M9 9h1M14 9h1M9 13h1M14 13h1M9 17h1M14 17h1'/%3E%3C/svg%3E");
}
.vregister #customer-form #field-siret {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23505050' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6M8 13h8M8 17h5'/%3E%3C/svg%3E");
}
/* The theme's password eye button moves inside the field, like on the login page */
.vregister .password-field {
  position: relative;
}
.vregister .password-field > .btn {
  position: absolute;
  top: 50%;
  right: 0.375rem;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  border-radius: 0.375rem !important;
  background: none;
  color: #444;
  transform: translateY(-50%);
}
.vregister .password-field > .btn:hover {
  background: var(--vauth-tint);
  color: var(--vauth-green);
}
.vregister .vauth__submit {
  margin-top: 1rem;
}
.vregister__login {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.75rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid #e1e5df;
  color: #222;
  font-size: 1.0625rem;
}
.vregister__login a {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--vauth-green);
  font-weight: 700;
  text-decoration: none;
}
.vregister__login a:hover {
  text-decoration: underline;
}
.vregister__login svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Labels: the theme's form_field puts .text-capitalize (a layered !important utility) on every label, which turns
   "Nume de familie" into "Nume De Familie". Only a rule in the same layer with a higher specificity can undo it. */
@layer utilities {
  .vregister .form-label {
    text-transform: none !important;
  }
}

@media (max-width: 991.98px) {
  .vregister {
    grid-template-columns: minmax(0, 1fr);
  }
  .vregister__intro {
    align-items: center;
    padding: 1.75rem 1.25rem 1.25rem;
    border-right: 0;
    border-bottom: 1px solid #e1e5df;
    text-align: center;
  }
  .vregister__perks {
    align-items: flex-start;
  }
  .vregister__art {
    margin-bottom: 1.25rem;
  }
  .vregister__art::before {
    width: 11rem;
  }
  .vregister__owl {
    max-width: 10rem;
  }
  .vregister__form {
    padding: 1.5rem 1.25rem 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .vregister {
    margin: 0.5rem 0 1.5rem;
  }
  .vregister__title {
    font-size: 1.5rem;
  }
  .vregister__lead {
    font-size: 0.9375rem;
  }
  .vregister #customer-form .card-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .vregister__login {
    font-size: 1rem;
  }
}

/* Guest order tracking (customer/guest-login.tpl): the password card with the parcel illustration */
.vtrack .vreset__art::before {
  width: min(19rem, 95%);
}
.vtrack__boxes {
  position: relative;
  width: 100%;
  max-width: 22rem;
  height: auto;
}
.vtrack__hint {
  display: block;
  margin-top: 0.375rem;
  color: #555;
  font-size: 0.8125rem;
}
@media (max-width: 767.98px) {
  .vtrack .vreset__art::before {
    width: 11rem;
  }
  .vtrack__boxes {
    max-width: 16rem;
  }
}
