/* ── Reset body background ───────────────────────────────── */
body {
  background-color: #fff;
  margin: 0;
  font-family: 'Roboto', Arial, sans-serif;
}

/* ── Topbar ──────────────────────────────────────────────── */
.dw-topbar {
  background-color: #416681;
  border-bottom: 3px solid #960b18;
  height: 41px;
  display: flex;
  align-items: center;
}
.dw-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.dw-topbar__left {
  display: flex;
  align-items: center;
  color: #fff;
  font-size: 13px;
  gap: 8px;
}
.dw-topbar__strip {
  height: 20px;
  opacity: 0.85;
}
.dw-topbar__right {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 3px 0;
}
/* White pill box — matches live site #block-doeshop-warenkorb */
.dw-topbar__pill {
  background-color: #fff;
  border-radius: 4px;
  height: 34px;
  display: flex;
  align-items: center;
  padding: 0 4px;
  color: #323232;
  font-size: 13px;
  font-weight: 400;
  text-transform: uppercase;
  gap: 0;
}
.dw-topbar__lieferland,
.dw-topbar__account,
.dw-topbar__cart {
  display: flex;
  align-items: center;
  padding: 0 10px;
  cursor: pointer;
  white-space: nowrap;
  gap: 4px;
  border-right: 1px solid #ddd;
  height: 100%;
}
.dw-topbar__cart {
  border-right: none;
}
.dw-topbar__flag {
  vertical-align: middle;
}
.dw-topbar__chevron {
  font-size: 11px;
  line-height: 1;
  color: #555;
}
/* Dropdown arrow — pfeildown.png */
.dw-topbar__marrow {
  display: inline-block;
  width: 12px;
  height: 8px;
  background-image: url(../../img/pfeildown.png);
  background-repeat: no-repeat;
  background-size: contain;
  vertical-align: middle;
  position: relative;
  top: 1px;
}
/* Person/account icon — user.png */
.dw-topbar__personicon {
  display: inline-block;
  width: 18px;
  height: 20px;
  background-image: url(../../img/user.png);
  background-repeat: no-repeat;
  background-size: contain;
  vertical-align: middle;
}
/* Cart icon — sprite from icons2.png */
.dw-topbar__carticon {
  display: inline-block;
  width: 15px;
  height: 20px;
  background-image: url(../../img/icons2.png);
  background-position: -83px -8px;
  vertical-align: middle;
}

/* ── Lieferland Dropdown ─────────────────────────────────── */
.dw-topbar__lieferland {
  position: relative;
}
.dw-lieferland-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #416681;
  border-radius: 0 0 4px 4px;
  min-width: 180px;
  z-index: 200;
  list-style: none;
  margin: 0;
  padding: 4px 0;
  box-shadow: 0 4px 8px rgba(0,0,0,0.12);
}
.dw-lieferland-dropdown.dw-open {
  display: block;
}
.dw-lieferland-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 400;
  text-transform: none;
  color: #323232;
  white-space: nowrap;
}
.dw-lieferland-item:hover {
  background-color: #f0f5f8;
}
.dw-lieferland-item img {
  flex-shrink: 0;
}

/* ── Topbar: Search icon, Sortiment button, Hamburger ───── */
.dw-topbar__sortiment {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0 8px;
  display: flex;
  align-items: center;
  height: 100%;
  font-size: 13px;
}

.dw-topbar__sortiment--main {
  background-color: #416681;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 4px;
  padding: 6px 14px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.5px;
  gap: 5px;
  height: auto;
  margin-left: 6px;
}

.dw-topbar__sortiment--main:hover {
  background-color: #365670;
}

.dw-topbar__sortiment-arrow {
  font-size: 16px;
  line-height: 1;
  position: relative;
  top: -1px;
}

.dw-topbar__search-icon {
  font-size: 16px;
  line-height: 1;
}

.dw-topbar__hamburger {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px 4px 6px 10px;
  margin-left: 6px;
}

.dw-topbar__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #fff;
  border-radius: 1px;
}

/* ── Logo-Bar ────────────────────────────────────────────── */
.dw-logobar {
  background-color: #fff;
  border-bottom: 3px solid #960b18;
  padding: 12px 0;
}
.dw-logobar__inner {
  /* width handled by .dw-inner */
}
.dw-logobar__link {
  display: inline-block;
}
.dw-logobar__logo {
  height: 68px;
  width: auto;
}

/* ── Nav-Bar ─────────────────────────────────────────────── */
.dw-navbar {
  background-color: #fff;
  border-bottom: 1px solid #e0e0e0;
  padding: 0;
  margin-bottom: 0;
}
.dw-navbar__inner {
  padding-top: 8px;
  padding-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.dw-navbar__sortiment {
  background-color: #416681;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 8px 18px;
  cursor: pointer;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.dw-navbar__sortiment:hover {
  background-color: #365670;
}
.dw-navbar__arrow {
  font-size: 18px;
  line-height: 1;
}
.dw-navbar__toggler {
  background: none;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 5px 8px;
  cursor: pointer;
}
.dw-navbar__hamburger {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  margin-left: auto;
}
.dw-navbar__hamburger span {
  display: block;
  width: 24px;
  height: 3px;
  background-color: #333;
  border-radius: 2px;
}

/* Nav menu links */
.dw-navbar .navbar-collapse ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
}
.dw-navbar .navbar-collapse ul li a {
  font-size: 13px;
  color: #333;
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 3px;
}
.dw-navbar .navbar-collapse ul li a:hover {
  background-color: #f0f0f0;
}

/* ── Shared inner wrapper (matches header width) ────────── */
.dw-inner {
  max-width: 1170px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
}

/* ── Highlighted bar ────────────────────────────────────── */
.dw-highlighted {
  padding: 12px 0;
  background-color: #f5f5f5;
  border-bottom: 1px solid #ddd;
}

/* ── Main content ───────────────────────────────────────── */
.dw-main {
  padding-top: 24px;
  padding-bottom: 24px;
}

/* ── Footer ─────────────────────────────────────────────── */
.dw-footer {
  border-top: 1px solid #e0e0e0;
  padding: 12px 0;
  margin-top: 32px;
}
.dw-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  font-size: 13px;
  color: #666;
}

/***********************************************************************
 * Olivero overrides for /pay checkout page
 * These MUST live here (theme CSS, loaded AFTER Olivero) so they win
 * the cascade. Scoped under .path-pay / body.path-pay.
 ***********************************************************************/

/* ── Font ─────────────────────────────────────────────── */
.path-pay {
    font-family: 'Roboto Condensed', 'Roboto', Arial, Helvetica, sans-serif;
}

/* ══════════════════════════════════════════════════════════
   LAYOUT: Kill entire Olivero grid/layout system for /pay
   ══════════════════════════════════════════════════════════ */
.path-pay .dialog-off-canvas-main-canvas {
    max-width: none !important;
    display: block !important;
}

.path-pay main.dw-main {
    display: block !important;
}

/* Olivero puts content in a 14-col CSS grid via .grid-full and constrains
   children to columns 3–13 via .layout--pass--content-medium.
   We flatten everything to display:block so the .dw-inner wrapper
   (max-width:1170px) is the only width constraint. */
.path-pay .grid-full,
.path-pay .region--content,
.path-pay .region--highlighted,
.path-pay .layout--pass--content-medium,
.path-pay #content {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    grid-template-columns: none !important;
}

.path-pay .layout--pass--content-medium > *,
.path-pay .layout--content-medium {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: none !important;
}

.path-pay .main-content {
    width: 100% !important;
}

.path-pay .main-content__container {
    padding-block-start: 0 !important;
}

/* Bootstrap col-12 inside the row */
.path-pay .col-12 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
}

/* Olivero region spacing — tighten for checkout */
.path-pay .region--content > * {
    margin-block-end: 0 !important;
}

/* Cart table full width */
.path-pay table.cart {
    width: 100% !important;
}

/* ══════════════════════════════════════════════════════════
   PAGE TITLE  (override Olivero display:inline + serif font)
   ══════════════════════════════════════════════════════════ */
.path-pay h1.page-title,
.path-pay h1 {
    display: block !important;
    text-align: center;
    font-size: 150% !important;
    text-transform: uppercase;
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    font-family: 'Roboto Condensed', 'Roboto', Arial, sans-serif !important;
    font-weight: 700;
    letter-spacing: normal !important;
    color: #333;
    line-height: 1.3;
}

.path-pay .block-page-title-block {
    margin-bottom: 0 !important;
}

/* ══════════════════════════════════════════════════════════
   H2 HEADINGS — base style
   ══════════════════════════════════════════════════════════ */
.path-pay h2 {
    display: block !important;
    font-family: 'Lora', Georgia, 'Times New Roman', serif !important;
    font-weight: 400;
    font-style: italic;
    letter-spacing: normal !important;
    color: #333;
    font-size: 24px;
    line-height: 1.3;
    text-align: center;
    text-transform: none;
    padding-top: 10px;
    margin-bottom: 10px;
}

/* Zahlungsarten heading — uppercase sans-serif like production */
.path-pay .expressbox h2 {
    font-family: 'Roboto Condensed', 'Roboto', Arial, sans-serif !important;
    text-transform: uppercase !important;
    font-style: normal;
    font-weight: 700;
    font-size: 150%;
    color: #416681;
}

/* ══════════════════════════════════════════════════════════
   TEXT INPUTS (override Olivero form-text.css)
   ══════════════════════════════════════════════════════════ */
body.path-pay [type="text"],
body.path-pay [type="email"],
body.path-pay [type="tel"],
body.path-pay [type="number"],
body.path-pay [type="password"],
body.path-pay textarea {
    border-radius: 1px !important;
    border: 1px solid #ccc !important;
    padding: 7px 9px !important;
    min-height: auto !important;
    width: 100% !important;
    max-width: 340px;
    font-family: inherit !important;
    font-size: inherit !important;
    appearance: none !important;
    box-shadow: none !important;
    outline: none !important;
    background-color: #fff !important;
    color: #416681;
    line-height: normal !important;
}

body.path-pay [type="text"]:focus,
body.path-pay [type="email"]:focus,
body.path-pay [type="tel"]:focus,
body.path-pay [type="number"]:focus,
body.path-pay [type="password"]:focus,
body.path-pay textarea:focus {
    border-color: #416681 !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Email field — wider, centered */
.path-pay .mygrowthpureform #email {
    max-width: none;
    width: auto !important;
}

/* ══════════════════════════════════════════════════════════
   SELECT (override Olivero form-select.css)
   ══════════════════════════════════════════════════════════ */
body.path-pay select {
    border-radius: 1px !important;
    border: 1px solid #ccc !important;
    padding: 7px 9px !important;
    height: auto !important;
    min-height: auto !important;
    font-family: inherit !important;
    font-size: inherit !important;
    background-image: none !important;
    appearance: auto !important;
    -webkit-appearance: menulist !important;
    color: #416681;
    max-width: 340px;
    padding-inline-end: 9px !important;
}

body.path-pay select:focus {
    border-color: #416681 !important;
    outline: none !important;
    box-shadow: none !important;
}

/* ══════════════════════════════════════════════════════════
   CHECKBOXES (override Olivero form-boolean.css)
   ══════════════════════════════════════════════════════════ */
body.path-pay input[type="checkbox"],
body.path-pay input[type="radio"] {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    border: none !important;
    background: none !important;
    background-image: none !important;
    background-color: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: -1;
    cursor: pointer;
}

body.path-pay input[type="checkbox"]:focus,
body.path-pay input[type="radio"]:focus {
    border: none !important;
    outline: none !important;
}

body.path-pay input[type="checkbox"]:checked,
body.path-pay input[type="radio"]:checked {
    border: none !important;
    border-width: 0 !important;
    background-image: none !important;
    background-color: transparent !important;
}

/* ══════════════════════════════════════════════════════════
   LINKS (scoped to .dw-main only — NOT admin toolbar)
   ══════════════════════════════════════════════════════════ */
.path-pay .dw-main a {
    color: #b32c2e;
}

.path-pay .dw-main a:hover {
    color: #8a2123;
}

/* Cart product links — dark, not red */
.path-pay .cart a {
    color: #333;
}

/* ══════════════════════════════════════════════════════════
   CART TABLE
   ══════════════════════════════════════════════════════════ */
/* Quantity input */
.path-pay .cart .menge {
    border-radius: 0 !important;
    border-color: #416681 !important;
    text-align: right;
    max-width: 66px;
}

/* Table normalise */
.path-pay table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* ══════════════════════════════════════════════════════════
   EXPRESSBOX (Zahlungsarten bordered section)
   ══════════════════════════════════════════════════════════ */
.path-pay .expressbox {
    border: 2px solid #f2f3f6;
    margin-bottom: 20px;
}

/* ══════════════════════════════════════════════════════════
   LIEFERADRESSE bordered section
   ══════════════════════════════════════════════════════════ */
.path-pay .payadress-inner {
    border: 2px solid #f2f3f6;
    padding: 10px;
    margin-bottom: 20px;
}

/* ══════════════════════════════════════════════════════════
   KAUFEN button area
   ══════════════════════════════════════════════════════════ */
.path-pay .upperpaybuttonwrapper {
    border: 2px solid #f2f3f6;
    padding: 10px;
    margin-bottom: 20px;
}

.path-pay .paybuttonwrapper .info {
    text-align: center;
    color: #b32c2e;
    margin-bottom: 10px;
}

.path-pay .paybuttonwrapper {
    text-align: center;
}

/* ══════════════════════════════════════════════════════════
   VERSAND select (Lieferland dropdown in summary)
   ══════════════════════════════════════════════════════════ */
.path-pay .versandinlinebox select {
    max-width: 180px;
}

/* ══════════════════════════════════════════════════════════
   ZAHLUNGSART labels (Vorkasse, Rechnung, Nachnahme)
   ══════════════════════════════════════════════════════════ */
.path-pay .paymentbox .label {
    font-size: inherit;
    color: #416681;
}

/* ══════════════════════════════════════════════════════════
   Olivero base.css resets — undo serif fonts, spacing, etc.
   ══════════════════════════════════════════════════════════ */

/* Olivero sets h1/h3 to font-family:var(--font-sans) which is Metropolis.
   Also letter-spacing:-0.01em. Override both.
   h2 is handled separately above (Lora italic + expressbox override). */
body.path-pay h1,
body.path-pay h3 {
    font-family: 'Roboto Condensed', 'Roboto', Arial, sans-serif !important;
    letter-spacing: normal !important;
}

/* Olivero block.css adds margin/padding to blocks */
.path-pay .block {
    margin-block-end: 0 !important;
}

/* Olivero links.css styles a tags */
body.path-pay .dw-main a:not(.button) {
    text-decoration: none;
}
body.path-pay .dw-main a:hover:not(.button) {
    text-decoration: underline;
}

/* ══════════════════════════════════════════════════════════
   KLARNA buttons — production-matching layout
   Buttons are full-width pink bars, stacked vertically.
   Main styling comes from mygrowthpureform.css (.klarna-direct-btn).
   ══════════════════════════════════════════════════════════ */
.path-pay #KlarnaPayButtonContainer {
    padding: 0;
    margin: 10px auto 13px auto;
    max-width: 750px;
    overflow: hidden;
}

.path-pay #KlarnaPayButtonOutter {
    max-width: 789px;
    margin: 0 auto;
    overflow: hidden;
}

/* Override Olivero button base styles for Klarna direct buttons */
body.path-pay .klarna-direct-btn {
    background: #ffb3c7 !important;
    border: none !important;
    border-radius: 6px !important;
    color: #111 !important;
    font-family: 'Roboto', Arial, sans-serif !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

/* PayPal loading text */
.path-pay .ppjsloading {
    text-align: center;
    color: #999;
    font-size: 14px;
    padding: 10px 0;
}

/* ══════════════════════════════════════════════════════════
   CHECKMARK spans (custom checkbox indicators)
   ══════════════════════════════════════════════════════════ */
.path-pay .checkmark {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 1px solid #ccc;
    border-radius: 2px;
    vertical-align: middle;
    margin-right: 5px;
    cursor: pointer;
    background-color: #fff;
    position: relative;
}

.path-pay .checkmark.required {
    border-color: #b32c2e;
}
