:root {
  --bg: #f79516;
  --paper: rgba(255, 255, 255, 0.86);
  --cream: #fff8e8;
  --cream-a16: rgba(255, 248, 232, 0.16);
  --cream-a28: rgba(255, 248, 232, 0.28);
  --cream-a72: rgba(255, 248, 232, 0.72);
  --cream-a78: rgba(255, 248, 232, 0.78);
  --cream-a82: rgba(255, 248, 232, 0.82);
  --cream-a84: rgba(255, 248, 232, 0.84);
  --cream-a86: rgba(255, 248, 232, 0.86);
  --cream-a90: rgba(255, 248, 232, 0.9);
  --cream-a92: rgba(255, 248, 232, 0.92);
  --teal: #0f5960;
  --teal-dark: #0a3f46;
  --teal-2: #36b9ad;
  --orange: #f79516;
  --yellow: #ffc02d;
  --green: #35b85f;
  --text: #173f44;
  --muted-text: #607377;
  --border: #dbe9e7;
  --shadow: 0 20px 60px rgba(15, 89, 96, 0.12);
  --shadow-card: 0 16px 40px rgba(15, 89, 96, 0.08);
  --radius-card: 28px;
  --logo-navbar-bottom-trim: 10px;
  --radius-panel: 30px;
  --page-bg-image: url("../img/orange-pic-1.png");
  --surface-hero-bg-inner:
    linear-gradient(135deg, var(--cream-a78), rgba(238, 247, 246, 0.68)),
    var(--page-bg-image) center / cover;
  --surface-hero-bg-home:
    linear-gradient(135deg, var(--cream-a82), rgba(238, 247, 246, 0.66)),
    var(--page-bg-image) center / cover;
}

* { box-sizing: border-box; }

html {
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background:
    linear-gradient(rgba(247, 149, 22, 0.18), rgba(247, 149, 22, 0.22)),
    var(--page-bg-image) center top / cover fixed;
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--cream-a28);
  pointer-events: none;
}

.mainPageImg {
  border-radius: 20px;
}

/* Utilities */
.is-hidden {
  display: none !important;
}
.mt-result {
  margin-top: 10px;
}
.mt-lg {
  margin-top: 16px;
}
.mb-lg {
  margin-bottom: 16px;
}
.content-img-fluid {
  width: 90%;
  max-width: 100%;
  height: auto;
  display: block;
}
.blackNormall a,
.blackBold a {
  color: var(--text);
}
.footer-brand-logo {
  width: 120px;
  height: auto;
  padding-left: 20px;
  display: block;
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 22px; }

.navbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 63, 70, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 8px 30px rgba(15, 89, 96, 0.06);
}

.navbar .row,
.navbar .nav-shell {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  align-items: center;
  gap: 12px 20px;
  padding: 1px 0;
  min-height: 64px;
}

.navbar .nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2vw, 22px);
  row-gap: 8px;
  text-align: center;
  width: 100%;
}

.navbar .nav-end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  flex-shrink: 0;
  min-width: 0;
  min-height: 40px;
}


.logo {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 12px;
  color: var(--teal);
  text-decoration: none;
  font-size: 0;
}
.logo img {
  width: 96px;
  max-width: 30vw;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
}
.logo small { display: none; }

.nav-links a {
  color: #fff8e8;
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(0.82rem, 1.15vw, 0.96rem);
}
.nav-links a:hover { color: var(--orange); }
.lang-switch {
  display: inline-flex;
  flex-shrink: 0;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--cream-a16);
  min-height: 36px;
  align-items: center;
}
.lang-switch button {
  border: 0;
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
  background: transparent;
  color: #fff8e8;
  font-weight: 900;
}
.lang-switch button.active {
  background: var(--orange);
  color: #fff;
}
.partner-link {
  color: var(--yellow);
  font-weight: 900;
  text-decoration: none;
}
.partner-link:hover { color: #fff; }
.partner-link-btn {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.nav-shop-user {
  font-weight: 800;
  font-size: clamp(0.78rem, 1.2vw, 0.92rem);
  color: #fff8e8;
  max-width: min(200px, 38vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.nav-auth-guest {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 100%;
}

.nav-login-form {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}

.nav-login-field {
  margin: 0;
}

.nav-login-form input {
  width: min(148px, 34vw);
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 248, 232, 0.1);
  color: #fff8e8;
  font: inherit;
  font-size: 0.86rem;
}

.nav-login-form input::placeholder {
  color: rgba(255, 248, 232, 0.72);
}

.nav-login-submit {
  padding: 7px 14px;
  font-size: 0.86rem;
  white-space: nowrap;
}

.nav-login-result {
  flex: 1 1 100%;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--yellow);
  line-height: 1.3;
}

.nav-register-btn {
  white-space: nowrap;
}

html.shop-logged-out .site-gated-content,
html.shop-logged-out main.site-gated-content,
html.shop-logged-out footer.site-gated-content,
html.shop-logged-out section.site-gated-content,
.site-gated-content[hidden] {
  display: none !important;
}

html.shop-logged-in .site-auth-guest-visible {
  display: none !important;
}

.shop-auth-gate-hint {
  margin: 0;
  padding: 28px 16px 36px;
  text-align: center;
  color: rgba(255, 248, 232, 0.88);
  font-weight: 600;
  font-size: 1rem;
}

.shop-login-fail-actions {
  margin-top: 16px;
}

.shop-login-fail-actions .btn {
  width: 100%;
  justify-content: center;
}
.cart-card--submit-order {
  margin-top: 4px;
}
.cart-submit-order-btn {
  width: 100%;
  justify-content: center;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(247, 149, 22, 0.24);
}
.btn.secondary { background: var(--teal); color: #fff; box-shadow: 0 12px 30px rgba(15, 89, 96, 0.18); }
.btn.ghost {
  background: var(--cream-a90);
  color: var(--teal);
  box-shadow: none;
  border: 1px solid rgba(15, 89, 96, 0.14);
}
.btn-cart {
  gap: 8px;
}
.btn-cart .nav-cart-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}
.btn-cart:hover .nav-cart-icon,
.btn:hover .nav-cart-icon {
  filter: brightness(0) invert(1);
}
.btn:hover {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
  box-shadow: 0 12px 30px rgba(247, 149, 22, 0.28);
}

.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--surface-hero-bg-inner);
  padding: 64px 0;
  border-bottom: 1px solid rgba(15, 89, 96, 0.08);
}
.page-hero.compact { padding: 48px 0; }
.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: 24px;
  align-items: center;
}
.page-hero h1 { margin: 0 0 14px; font-size: clamp(2.2rem, 5vw, 3.2rem); letter-spacing: -0.06em; line-height: 1; }
.page-hero .muted { max-width: 760px; font-size: 1.08rem; }
.lead { color: var(--muted-text); font-size: 1.1rem; line-height: 1.7; }
.hero-panel {
  padding: 22px;
  border-radius: 26px;
  background: var(--cream-a78);
  border: 1px solid rgba(15, 89, 96, 0.08);
  box-shadow: var(--shadow);
}

.section { padding: 70px 0; border-bottom: 1px solid rgba(15, 89, 96, 0.08); }
.section-soft { background: rgba(238, 247, 246, 0.72); }

.hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 78px;
  background: var(--surface-hero-bg-home);
  color: var(--teal);
  border-radius: 0 0 48px 48px;
}
.hero::after {
  content: "";
  position: absolute;
  right: -110px;
  top: 62px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(247, 149, 22, 0.2), rgba(255, 192, 45, 0.1));
  border: 18px solid rgba(247, 149, 22, 0.08);
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 44px;
  align-items: center;
}
.hero-copy h1 {
  margin: 0 0 18px;
  color: var(--orange);
  font-size: clamp(2.5rem, 6vw, 3.2rem);
  line-height: 0.95;
  letter-spacing: -0.08em;
}
.hero-copy p { max-width: 680px; color: var(--muted-text); font-size: 1.15rem; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-card,
.hero-logo-card {
  background: rgba(10, 63, 70, 0.72);
  border: 1px solid rgba(15, 89, 96, 0.08);
  border-radius: 34px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.hero-card img,
.hero-logo-card img { width: 100%; display: block; }
.hero-card-note {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 248, 232, 0.9);
  color: var(--teal);
}
.hero-card-note span { color: var(--muted-text); }
.hero-bullets {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.hero-bullets li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--teal);
  font-weight: 800;
}
.hero-bullets li::before {
  content: "";
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--orange);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--orange);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1.8rem;
}
.eyebrow--small {
  font-size: 0.8rem;
}

.eyebrow:not(.eyebrow--small)::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(297px, 1fr));
  gap: 24px;
}
.machine-cards {
  grid-template-columns: repeat(auto-fit, minmax(297px, 1fr));
}

.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.card img {
  width: 100%;
  height: 198px;
  object-fit: contain;
  background: rgba(255, 248, 232, 0.72);
}
.machine-cards .card img {
  height: 198px;
  object-fit: contain;
  padding: 10px;
}

.machine-gallery {
  position: relative;
  background: rgba(255, 248, 232, 0.72);
}
.machine-gallery-frame {
  position: relative;
  height: 198px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.machine-gallery-img {
  width: 100%;
  height: 198px;
  object-fit: contain;
  padding: 10px;
  box-sizing: border-box;
  background: transparent;
}
.machine-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  color: var(--teal);
  box-shadow: 0 2px 10px rgba(15, 89, 96, 0.15);
  z-index: 2;
}
.machine-gallery-arrow:hover {
  background: #fff;
}
.machine-gallery-prev { left: 8px; }
.machine-gallery-next { right: 8px; }
.machine-gallery-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  padding: 8px 10px 12px;
  flex-wrap: wrap;
}
.machine-gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: rgba(23, 63, 68, 0.28);
  transition: background 0.15s ease, transform 0.15s ease;
}
.machine-gallery-dot.is-active {
  background: var(--teal);
  transform: scale(1.15);
}

.machine-gallery-img,
#machines-grid article.card > img,
.machine-detail-gallery-host img {
  cursor: zoom-in;
}

.machine-image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
    max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  box-sizing: border-box;
  background: rgba(15, 23, 42, 0.92);
  cursor: zoom-out;
}
.machine-image-lightbox.is-open {
  display: flex;
}
.machine-image-lightbox-img {
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: default;
  border-radius: 8px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
}
.machine-image-lightbox-close {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.75rem;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  color: var(--teal);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  z-index: 1;
}
.machine-image-lightbox-close:hover {
  background: #fff;
}

/* Produkte: Klick auf Bild → Detail-Layer (Tabs) */
#products-grid .product-card-visual {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  cursor: zoom-in;
  background: rgba(255, 248, 232, 0.72);
  font: inherit;
  text-align: left;
}
#products-grid .product-card-visual:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: -2px;
}
#products-grid .product-card-visual img,
#products-grid .product-card-visual .machine-gallery-img {
  display: block;
  width: 100%;
  height: 198px;
  object-fit: contain;
}

#products-grid .product-card-visual--gallery {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

#products-grid .product-card-visual--gallery .machine-gallery {
  width: 100%;
}

#products-grid .product-card-visual--gallery .machine-gallery-img {
  cursor: zoom-in;
  padding: 10px;
  box-sizing: border-box;
}

.products-filters {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.25rem 0 0.5rem;
}
.products-search-label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink, #1a2e28);
  max-width: 28rem;
}
.products-search-input {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid #c5d0cb;
  border-radius: 8px;
  font: inherit;
  background: #fff;
}
.products-search-input:focus {
  outline: 2px solid var(--teal, #0d9488);
  outline-offset: 1px;
  border-color: var(--teal, #0d9488);
}
.products-filter-block {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.products-filter-block[hidden] {
  display: none !important;
}
.products-filter-heading {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted, #5a6a62);
}
.products-filter-select {
  width: 100%;
  max-width: 28rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid #c5d0cb;
  border-radius: 8px;
  font: inherit;
  background: #fff;
  color: var(--ink, #1a2e28);
}
.products-filter-select:focus {
  outline: 2px solid var(--teal, #0d9488);
  outline-offset: 1px;
  border-color: var(--teal, #0d9488);
}
.chips-brands,
.chips-categories,
.chips-subgroups {
  margin: 0;
}
.products-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  margin: 28px 0 8px;
}
.products-pagination-pages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.products-page-link {
  min-width: 2.25rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid #c5d0cb;
  border-radius: 6px;
  background: #fff;
  color: var(--ink, #1a2e28);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  line-height: 1.3;
}
.products-page-link:hover {
  border-color: var(--teal, #0d9488);
  color: var(--teal, #0d9488);
}
.products-page-link.active {
  background: var(--teal, #0d9488);
  border-color: var(--teal, #0d9488);
  color: #fff;
  font-weight: 600;
  cursor: default;
}
.products-page-ellipsis {
  padding: 0 0.25rem;
  color: var(--muted, #5a6a62);
  user-select: none;
}
.products-pagination-info {
  flex-basis: 100%;
  font-size: 0.95rem;
  color: var(--muted, #5a6a62);
  text-align: center;
  margin-top: 4px;
}
.products-pagination .btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Katalog-Detail-Modal (Produkt / Automat): Bild + Tabs */
.catalog-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: grid;
  place-items: center;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right))
    max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.catalog-detail-modal.is-open {
  visibility: visible;
  opacity: 1;
}
.catalog-detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  cursor: pointer;
}
.catalog-detail-card {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  max-height: min(92vh, 880px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin: 0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
}
.catalog-detail-close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 3;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.06);
  color: inherit;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.catalog-detail-close:hover {
  background: rgba(0, 0, 0, 0.1);
}
.catalog-detail-inner {
  overflow-y: auto;
  max-height: min(92vh, 880px);
}
.catalog-detail-grid {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(260px, 1.1fr);
  gap: 0;
  align-items: stretch;
}
@media (max-width: 720px) {
  .catalog-detail-grid {
    grid-template-columns: 1fr;
  }
}
.catalog-detail-gallery {
  background: rgba(255, 248, 232, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  min-height: 220px;
}
.catalog-detail-hero-img {
  max-width: 100%;
  max-height: min(48vh, 420px);
  width: auto;
  height: auto;
  object-fit: contain;
}
.catalog-detail-gallery-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}
.catalog-detail-gallery-arrow {
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  background: rgba(255, 255, 255, 0.95);
  color: var(--teal);
  box-shadow: 0 2px 10px rgba(15, 89, 96, 0.12);
}
.catalog-detail-gallery-dots {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.catalog-detail-gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: rgba(23, 63, 68, 0.28);
}
.catalog-detail-gallery-dot.is-active {
  background: var(--teal);
  transform: scale(1.12);
}
.catalog-detail-main {
  padding: 1.25rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.catalog-detail-title {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.3;
  color: var(--teal);
  padding-right: 2rem;
}
.catalog-detail-tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}
.catalog-detail-tab {
  border: 1px solid transparent;
  background: rgba(234, 245, 243, 0.65);
  color: var(--teal);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.45rem 0.75rem;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  font-family: inherit;
}
.catalog-detail-tab:hover {
  background: rgba(234, 245, 243, 1);
}
.catalog-detail-tab.is-active {
  background: var(--paper);
  border-color: var(--border);
  border-bottom-color: transparent;
  margin-bottom: -1px;
}
.catalog-detail-panels {
  flex: 1;
  min-height: 120px;
}
.catalog-detail-tabpanel {
  padding-top: 0.75rem;
  font-size: 0.92rem;
  line-height: 1.45;
}
.catalog-detail-tabpanel[hidden] {
  display: none !important;
}
.catalog-detail-prose p {
  margin: 0 0 0.65rem;
}
.catalog-detail-prose p:last-child {
  margin-bottom: 0;
}
.catalog-detail-lead {
  font-weight: 600;
  color: var(--teal);
}
.catalog-detail-price-line {
  margin-top: 0.5rem;
}
.catalog-detail-spec {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.catalog-detail-spec th,
.catalog-detail-spec td {
  text-align: left;
  vertical-align: top;
  padding: 0.45rem 0.5rem;
  border-bottom: 1px solid var(--border);
}
.catalog-detail-spec th {
  width: 38%;
  color: var(--teal);
  font-weight: 700;
}

.card .content { padding: 18px; }
.price { color: var(--orange); font-weight: 800; }

.chips { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 26px; }
.chip {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  cursor: pointer;
  background: rgba(234, 245, 243, 0.9);
  color: var(--teal);
  font-weight: 800;
}
.chip.active { background: var(--teal); color: #fff; }

/* account.html: login above registration, equal-width panels */
.account-auth-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.25rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}
.account-page-auth-col .account-auth-stack {
  margin-left: 0;
  margin-right: 0;
  max-width: none;
}
.account-auth-stack .account-auth-box {
  width: 100%;
  box-sizing: border-box;
}

/* account.html: auth left, orders right */
.account-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 28rem) minmax(0, 1fr);
  gap: 1.75rem 2.25rem;
  align-items: start;
}
.account-page-grid:has(#account-shop-orders-wrap.is-hidden) {
  grid-template-columns: minmax(0, 28rem);
  justify-items: start;
}
.account-page-auth-col {
  min-width: 0;
  width: 100%;
}
#account-shop-orders-wrap.account-shop-orders-column {
  min-width: 0;
}

@media (max-width: 900px) {
  .account-page-grid {
    grid-template-columns: 1fr !important;
    justify-items: stretch !important;
  }
  .account-page-grid:has(#account-shop-orders-wrap.is-hidden) {
    justify-items: stretch !important;
  }
  .account-page-auth-col {
    max-width: none;
  }
  .account-page-auth-col .account-auth-stack {
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
  }
}

.layout-2 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.cart-total-bar {
  margin-bottom: 16px;
  padding: 16px 14px 18px;
  border-radius: 20px;
  background: rgba(255, 248, 232, 0.92);
  border: 1px solid rgba(247, 149, 22, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 4px;
  min-height: 88px;
}
.cart-total-bar .cart-total-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  opacity: 0.85;
}
.cart-total-bar .cart-total-value {
  font-size: clamp(1.45rem, 4vw, 1.95rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--orange);
  line-height: 1.1;
}

.cart-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cart-card.cart-card--summary {
  padding: 16px 14px 18px;
  border-radius: 20px;
  background: rgba(255, 248, 232, 0.92);
  border: 1px solid rgba(247, 149, 22, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 4px;
  min-height: 88px;
}
.cart-summary-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  opacity: 0.85;
}
.cart-summary-value {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  line-height: 1.15;
  text-align: center;
}
.cart-summary-amount {
  font-size: clamp(1.45rem, 4vw, 1.95rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--orange);
}
.cart-summary-vat {
  font-size: clamp(0.92rem, 2.8vw, 1.05rem);
  font-weight: 800;
  color: var(--orange);
  opacity: 0.92;
}
.cart-card--section {
  background: rgba(255, 248, 232, 0.92);
  border-radius: 16px;
  padding: 16px 14px;
}
.cart-card--products {
  display: flex;
  flex-direction: column;
}
.cart-section-head {
  font-weight: 800;
  color: var(--teal);
  margin-bottom: 10px;
  font-size: 1rem;
}
.cart-placeholder {
  margin: 0;
  font-weight: 600;
  color: var(--teal);
}
.cart-product-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  font-weight: 600;
  color: var(--teal);
}
.cart-product-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.cart-product-title-block {
  flex: 1;
  min-width: 0;
}
.cart-product-prices {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 2px;
}
.cart-price-unit {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--teal);
  line-height: 1.35;
}
.cart-price-line-total {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--teal);
  line-height: 1.3;
}
.cart-product-top .quantity-control {
  flex-shrink: 0;
  margin-top: 2px;
}
.cart-card .cart-thumb {
  background: #fff;
}
.cart-clear-btn {
  margin-top: 14px;
  width: 100%;
  justify-content: center;
}
.cart-card--section .cart-product-row:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

.box {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  padding: 24px;
  box-shadow: 0 16px 40px rgba(15, 89, 96, 0.07);
}

.box h2, .box h3, h1, h2, h3 { color: var(--teal); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.section-head h2 { margin: 0; font-size: clamp(1.8rem, 3.4vw, 3rem); letter-spacing: -0.05em; }
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.benefit-card {
  position: relative;
  overflow: hidden;
  min-height: 170px;
  padding: 22px;
  border-radius: 30px;
  background: var(--paper);
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px rgba(15, 89, 96, 0.07);
}
.benefit-card::before {
  content: "";
  position: absolute;
  right: -28px;
  top: -28px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(247, 149, 22, 0.12);
}
.steps-list { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps-list li {
  counter-increment: step;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px;
  border-radius: 20px;
  background: rgba(243, 251, 250, 0.86);
}
.steps-list li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-weight: 900;
}

.advantage-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 14px;
}
.advantage {
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 248, 232, 0.84);
  border: 1px solid var(--border);
}
.advantage strong { color: var(--orange); }
.machine-preview {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 24px;
  align-items: center;
}
.machine-preview img {
  width: 100%;
  border-radius: 28px;
  background: rgba(255, 248, 232, 0.82);
  box-shadow: var(--shadow);
}
.machine-strip {
  padding: 34px;
  border-radius: 34px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.82), rgba(255, 248, 232, 0.78)),
    var(--page-bg-image) center / cover;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.page-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.products-pdf-cta { margin: 14px 0 20px; }

input, textarea, select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 12px;
  font: inherit;
  margin-top: 6px;
  margin-bottom: 10px;
}

label.checkbox-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}
label.checkbox-line input[type="checkbox"] {
  width: auto;
  margin-top: 4px;
  flex-shrink: 0;
}

.muted { color: var(--muted-text); font-size: 0.95rem; line-height: 1.6; }

.footer {
  background: var(--teal);
  color: #e9fbf8;
  padding: 42px 0;
}
.footer a { color: #e9fbf8; }
.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(16px, 2.5vw, 32px);
}
.footer-brand {
  flex-shrink: 0;
  justify-self: start;
  align-self: center;
  margin-left: 0;
  line-height: 0;
}
.footer-logo-link {
  display: inline-block;
  line-height: 0;
}
.footer-logo {
  display: block;
  width: 96px;
  max-width: 30vw;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: top center;
}
.footer-partners {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px 28px;
  min-height: 48px;
  padding: 6px 8px;
}
.footer-meta {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: clamp(14px, 2.2vw, 28px);
  justify-self: end;
  justify-items: start;
  text-align: left;
  margin-left: auto;
  width: max-content;
  max-width: 100%;
}
.footer-meta .footer-col h3 {
  display: flex;
  align-items: center;
  margin-top: 0;
  margin-bottom: 0.2em;
  font-size: clamp(0.7rem, 0.9vw, 0.8rem);
  font-weight: 700;
  letter-spacing: 0.01em;
}
.footer-meta .footer-col p {
  margin: 3px 0;
  font-size: clamp(0.65rem, 0.82vw, 0.74rem);
  line-height: 1.4;
  color: rgba(233, 251, 248, 0.92);
}
.footer-meta .footer-col a {
  font-size: clamp(0.65rem, 0.82vw, 0.74rem);
  line-height: 1.4;
}
.footer h3 { color: #fff; margin-top: 0; }
.footer p { margin: 7px 0; }
.class_small_icon {
  height: 16px;
  width: 16px;
  margin-right: 8px;
  flex-shrink: 0;
}

@media (min-width: 901px) {
  .footer-brand {
    width: 96px;
    max-width: 30vw;
    overflow: hidden;
    height: calc(min(96px, 30vw) - var(--logo-navbar-bottom-trim));
  }
  .footer-logo-link {
    display: block;
    width: 100%;
  }
  .footer-logo {
    width: 100%;
    max-width: none;
    height: auto;
  }
}

@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 28px;
  }
  .footer-brand {
    justify-self: center;
    width: auto;
    max-width: none;
    height: auto;
    overflow: visible;
  }
  .footer-logo-link {
    display: inline-block;
    width: auto;
  }
  .footer-logo {
    width: 96px;
    max-width: 30vw;
  }
  .footer-meta {
    justify-self: center;
    margin-left: 0;
    width: 100%;
    max-width: 22rem;
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .footer-meta .footer-col h3 {
    justify-content: center;
  }
}

.cart-list { display: grid; gap: 12px; }
.cart-item { border: 1px solid var(--border); border-radius: 16px; padding: 12px; background: rgba(255, 248, 232, 0.86); }
.cart-item-media,
.cart-product-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: start;
}
.cart-product-row {
  padding: 14px 0;
  border-bottom: 1px solid rgba(15, 89, 96, 0.12);
}
.cart-thumb {
  width: 72px;
  height: 58px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 248, 232, 0.7);
}
.cart-product-main {
  display: grid;
  gap: 4px;
  min-width: 0;
  font-weight: 600;
  color: var(--teal);
}
.cart-list--detailed { gap: 16px; }
.cart-product-row--rich { align-items: start; }
.cart-product-title { margin: 0; font-size: 1rem; line-height: 1.25; font-weight: 800; }
.cart-product-meta {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--muted-text);
  line-height: 1.35;
}
.cart-price-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}
.cart-block-title { display: block; margin-bottom: 10px; font-size: 1rem; }
.cart-section-sum {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-weight: 900;
  color: var(--teal);
}
.cart-empty-msg { margin: 0; font-weight: 600; color: var(--muted-text); font-size: 0.92rem; }
.quantity-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 248, 232, 0.82);
}
.quantity-control button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1;
}
.quantity-control button:hover { background: var(--orange); }
.quantity-control strong { min-width: 24px; text-align: center; font-weight: 900; color: var(--teal); }
.small { font-size: 0.86rem; color: var(--muted-text); }

.machine-pitch {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
  margin: 10px 0 12px;
}

/* Automaten-Details: шире контент, таблица без горизонтального скролла на типичных экранах */
.section-soft:has(.machine-details-table-wrap) .container {
  max-width: min(1480px, 100%);
}

.machine-details-table-wrap {
  overflow-x: visible;
  margin-top: 12px;
  -webkit-overflow-scrolling: touch;
}
.machine-details-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.machine-details-table th,
.machine-details-table td {
  border: 1px solid var(--border);
  padding: 12px 14px;
  vertical-align: top;
  text-align: left;
}
.machine-details-table thead th {
  background: rgba(13, 107, 77, 0.08);
  font-weight: 600;
}
.machine-details-table .machine-detail-col-num {
  width: 2.5%;
  min-width: 2.25rem;
}
.machine-details-table .machine-detail-col-name {
  width: 11%;
  min-width: 0;
}
.machine-details-table .machine-detail-gallery-host {
  margin-top: 10px;
}
.machine-details-table .machine-detail-gallery-host .machine-gallery {
  border-radius: 14px;
  overflow: hidden;
}
.machine-details-table .machine-detail-gallery-host > img:only-child {
  display: block;
  width: 100%;
  height: 198px;
  object-fit: contain;
  padding: 10px;
  box-sizing: border-box;
  background: rgba(255, 248, 232, 0.72);
  border-radius: 14px;
}
.machine-details-table .detail-cell {
  white-space: pre-wrap;
  word-break: break-word;
}
.machine-details-table .machine-detail-col-product,
.machine-details-table .machine-detail-col-desc {
  min-width: 0;
  width: 28%;
}
.machine-details-table .machine-detail-col-summary {
  width: 30.5%;
  min-width: 0;
}
.machine-details-table .machine-spec-price-block {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.machine-details-table .machine-spec-price-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted-text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.machine-details-table .machine-spec-price-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.machine-details-table .machine-spec-price-value .price-net-hint {
  font-size: 0.62em;
  font-weight: 600;
  color: var(--muted-text);
  margin-left: 0.15em;
}
.machine-details-table .machine-spec-lines {
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", "Roboto Mono", monospace;
  font-size: 0.82rem;
  line-height: 1.5;
  white-space: pre;
  margin: 0;
  overflow-x: auto;
  max-width: 100%;
}
.machine-details-table .machine-spec-price-block + .machine-spec-lines {
  margin-top: 4px;
}
.machine-details-table tr.machine-detail-row {
  scroll-margin-top: 96px;
}
.machine-details-table tbody tr:target {
  background: rgba(13, 107, 77, 0.1);
  outline: 2px solid rgba(13, 107, 77, 0.35);
}



@media (max-width: 640px) {
  .machine-details-table-wrap {
    overflow-x: auto;
  }
}

.status {
  display: inline-block;
  border-radius: 999px;
  background: rgba(255, 248, 232, 0.86);
  color: var(--teal);
  padding: 5px 10px;
  font-size: 0.82rem;
  font-weight: 700;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 14px;
}
.modal-backdrop.is-open {
  display: flex;
}
.modal {
  width: min(640px, 100%);
  background: rgba(255, 248, 232, 0.94);
  border-radius: 18px;
  padding: 16px;
}

@media (min-width: 901px) {
  .navbar .row,
  .navbar .nav-shell {
    grid-template-columns: auto minmax(0, 1fr) auto;
    justify-items: stretch;
    column-gap: clamp(14px, 2.2vw, 28px);
  }

  .navbar .logo {
    justify-self: start;
    grid-column: 1;
  }

  .navbar .nav-links {
    grid-column: 2;
    justify-self: start;
    justify-content: flex-start;
    flex-wrap: nowrap;
    width: auto;
    max-width: 100%;
    min-width: 0;
    text-align: left;
    gap: clamp(8px, 1.1vw, 18px);
  }

  .navbar .nav-end {
    grid-column: 3;
    justify-self: end;
    flex-wrap: wrap;
    max-width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 900px) {
  html { scroll-padding-top: 72px; }

  .section { padding: 48px 0; }
  .page-hero { padding: 44px 0; }
  .page-hero.compact { padding: 36px 0; }
  .hero { padding: 56px 0 48px; }

  .layout-2 { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-logo-card { max-width: 520px; }
  .machine-preview { grid-template-columns: 1fr; }

  .navbar .row,
  .navbar .nav-shell {
    grid-template-columns: 1fr;
    justify-items: center;
    min-height: 0;
    padding-bottom: 14px;
  }

  .navbar .nav-links {
    position: static;
    transform: none;
    max-width: 100%;
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
    order: 2;
  }

  .navbar .logo { order: 1; }

  .navbar .nav-end {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .nav-auth-guest {
    width: 100%;
    justify-content: center;
  }

  .nav-login-form {
    justify-content: center;
  }

  .nav-login-form input {
    width: min(160px, 42vw);
  }

  .cart-product-row { grid-template-columns: 58px 1fr; gap: 10px; }
  .cart-thumb { width: 58px; height: 50px; }
  .cart-product-top {
    flex-wrap: wrap;
    gap: 10px;
  }
  .cart-product-top .quantity-control {
    margin-left: auto;
  }
  
}

/* Fit4business orders block on account.html */
.account-shop-orders-wrap.is-hidden {
  display: none !important;
}
.account-shop-orders-status:not([hidden]) {
  margin-top: 0.5rem;
}
.account-shop-orders-empty:not([hidden]) {
  margin-top: 0.75rem;
}
.account-reseller-machines-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.account-reseller-machine-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 8px;
  background: #fff;
}
.account-reseller-machine-thumb {
  flex: 0 0 72px;
  width: 72px;
}
.account-reseller-machine-thumb img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.account-reseller-machine-body {
  flex: 1 1 auto;
  min-width: 0;
}
.account-reseller-machine-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}
.reseller-machine-select-host {
  margin-bottom: 1rem;
}
.reseller-machine-select-host.cart-machine-bind {
  margin: 0 0 0.5rem;
  padding: 0.75rem;
  border: 1px solid #c6f6d5;
  border-radius: 8px;
  background: #f0fff4;
}
.cart-machine-bind-hint {
  margin: 0 0 0.75rem;
}
.reseller-machine-select-label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
}
.reseller-machine-select {
  max-width: 100%;
  padding: 0.5rem;
}

.account-orders-table-scroll {
  margin-top: 0.75rem;
  overflow-x: auto;
}
.account-orders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.account-orders-table th,
.account-orders-table td {
  padding: 0.55rem 0.65rem;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.account-orders-table th {
  font-weight: 600;
  color: var(--teal, #0d5c5c);
  white-space: nowrap;
}
.account-orders-table tbody tr:hover {
  background: rgba(13, 92, 92, 0.04);
}

/* account.html: клик по заказу → модальная карточка */
.account-order-row {
  cursor: pointer;
}
.account-order-row:hover {
  background: rgba(13, 92, 92, 0.08) !important;
}
.account-order-row:focus {
  outline: 2px solid var(--teal, #0d5c5c);
  outline-offset: -2px;
}

.account-order-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 1rem;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.account-order-modal.is-open {
  visibility: visible;
  opacity: 1;
}
.account-order-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
}
.account-order-modal-card {
  position: relative;
  z-index: 1;
  max-width: 36rem;
  width: 100%;
  max-height: min(90vh, 640px);
  overflow-y: auto;
  margin: 0;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}
.account-order-modal-close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.06);
  color: inherit;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.account-order-modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
}
.account-order-reorder-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.account-order-reorder-machine-select {
  margin: 0;
}
.account-order-reorder-wrap > .btn.primary {
  align-self: flex-start;
}
.account-order-reorder-wrap .account-order-reorder-hint {
  margin: 0;
}
.account-order-reorder-hint {
  flex: 1 1 auto;
  font-size: 0.875rem;
  line-height: 1.35;
}
.account-order-detail-body {
  margin-top: 0.5rem;
  font-size: 0.92rem;
}
.account-order-detail-summary {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: rgba(13, 92, 92, 0.06);
  border-radius: 10px;
}
.account-order-detail-summary dt {
  font-weight: 700;
  color: var(--teal, #0d5c5c);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.account-order-detail-summary dd {
  margin: 0 0 0.5rem 0;
}
.account-order-detail-lines {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.account-order-detail-lines th,
.account-order-detail-lines td {
  padding: 0.45rem 0.4rem;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.account-order-detail-lines th {
  font-weight: 600;
  color: var(--teal, #0d5c5c);
}
.account-order-detail-contact {
  margin: 0 0 1rem 1.1rem;
  padding: 0;
}
.account-order-detail-body h4 {
  margin: 0.75rem 0 0.5rem;
  font-size: 1rem;
  color: var(--teal, #0d5c5c);
}
