/** Shopify CDN: Minification failed

Line 303:0 Unexpected "<"
Line 337:0 Unexpected "<"

**/
/* ================================
   Variant-Buttons (Swatches)
   ================================ */

/* Grundstil der Chips */
.sa-options-position .swatch-view .swatch-button,
#sa-options-position .swatch-view .swatch-button,
.swatch-view .swatch-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 5px 8px !important;
  min-height: 28px !important;
  min-width: 80px !important;
  width: 80px !important;
  margin: 6px 8px 0 0 !important;
  border: 2px solid #d4d4d4 !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: #111 !important;
  cursor: pointer !important;
  transition: all .15s ease !important;
  box-sizing: border-box !important;
}

/* Text in den Chips kleiner und ohne Großschreibung */
.swatch-view .swatch-button .swatch-button-title-text,
.swatch-view .swatch-button span {
  font-size: 12px !important;
  line-height: 1.2 !important;
  text-transform: none !important;
  white-space: nowrap !important; /* Verhindert Textumbruch */
}

/* Hover */
.swatch-view .swatch-button:hover {
  border-color: #6f9a24 !important;
}

/* Ausgewählt */
.swatch-view .swatch-view-item[aria-checked="true"] .swatch-button,
.swatch-view .swatch-button[aria-checked="true"] {
  background: #6f9a24 !important;
  border-color: #6f9a24 !important;
  color: #fff !important;
}

/* Deaktivierte Optionen */
.swatch-view .swatch-view-item[aria-disabled="true"] .swatch-button,
.swatch-view .swatch-button[aria-disabled="true"] {
  opacity: .5 !important;
  cursor: not-allowed !important;
}

/* Mobile: 4 pro Reihe */
@media (max-width: 640px) {
  .swatch-view {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
  .swatch-view-item {
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
  .swatch-view .swatch-button {
    flex: 0 0 23.75% !important;
    max-width: 23.75% !important;
    min-width: 88px !important;
    margin-right: 3px !important;
    margin-bottom: 0.5px !important;
    padding: 4px 6px !important;
  }
  .swatch-view .swatch-button:nth-child(4n) {
    margin-right: 0 !important;
  }
  .swatch-view .swatch-button:nth-child(4n+1) {
    margin-left: 0 !important;
  }
}

/* Sehr schmale Bildschirme */
@media (max-width: 360px) {
  .swatch-view .swatch-button {
    min-width: 82px !important;
  }
}

@media (max-width: 320px) {
  .swatch-view .swatch-button {
    min-width: 78px !important;
  }
}

/* Innere Kapsel transparent */
.swatch-view .swatch-button [swatch-inside="true"],
.swatch-view .swatch-button .swatch-button-title-text,
.swatch-view .swatch-button .swatch-title-and-icon-container {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  color: inherit !important;
}

/* Option-Name (z. B. "Größe") fett */
.swatch-option-name {
  font-weight: bold !important;
}


/* ================================
   Urgency Banner über Warenkorb
   ================================ */

.urgency-banner {
  background: #ff6a00;
  color: #fff;
  text-align: center;
  padding: 10px;
  font-weight: 700;
  border-radius: 8px;
  margin: 10px 0;
}

/* Text in den Chips kleiner und ohne Großschreibung */
.swatch-view .swatch-button .swatch-button-title-text,
.swatch-view .swatch-button span {
  font-size: 12px !important;
  line-height: 1.2 !important;
  text-transform: none !important; /* Großschreibung deaktivieren */
}

/* Fett darstellen des Option-Namens (z. B. Größe oder KOMFORT HÖHE) */
.swatch-option-name {
  font-weight: bold !important;
}

/* --- Urgency-Banner im ATC-Wrapper immer als eigene Zeile --- */
.product-form__action-wrapper {
  /* falls das Theme es nicht schon hat */
  display: flex;
  flex-wrap: wrap;
}

.product-form__action-wrapper .urgency-banner {
  display: block;
  width: 100%;
  flex: 0 0 100%;   /* volle Zeile im Flex-Container */
  order: 1;         /* sitzt nach dem Mengenfeld, vor dem Button */
  margin: 10px 0;
}

/* falls der Wrapper bei dir Grid nutzt */
@supports (display: grid) {
  .product-form__action-wrapper { grid-auto-rows: auto; }
  .product-form__action-wrapper .urgency-banner { grid-column: 1 / -1; }
}

/* Banner-Styling */
.urgency-banner{
  background:#ff6a00;
  color:#fff;
  text-align:center;
  padding:10px;
  font-weight:700;
  border-radius:8px;
  margin:10px 0;
  width:100%;
  display:block;
  font-size:14px;            /* gegen "font-size:0" Elternstyle */
  line-height:1.35;
}

/* Stelle sicher, dass der Wrapper vertikal stapelt */
.product-form__action-wrapper{
  display:flex;
  flex-direction:column;
  gap:10px;
}
/* Urgency Banner – Basis */
.urgency-banner{
  display:block;
  width:100%;
  margin:10px 0;
  padding:12px;
  border-radius:8px;
  text-align:center;
  font-weight:700;
  line-height:1.35;
  color:#fff;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.08);
}

/* Farbstufen */
.urgency-banner.is-na,
.urgency-banner.is-mid{ background:#ff8a00; }    /* 6–10 / unbekannt */
.urgency-banner.is-high { background:#FFC439; }   /* PayPal-Brand-Gelb */
.urgency-banner.is-low{ background:#e53935; }    /* ≤5 (rot) */

/* Puls-Animation für sehr wenig Bestand */
@keyframes pulse-urgency{
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(229,57,53,.4); }
  70%{ transform: scale(1.01); box-shadow: 0 0 0 10px rgba(229,57,53,0); }
  100%{ transform: scale(1); box-shadow: 0 0 0 0 rgba(229,57,53,0); }
}
.urgency-banner.pulse{
  animation: pulse-urgency 1.6s ease-in-out infinite;
}

/* Sicherstellen, dass der Wrapper vertikal stapelt */
.product-form__action-wrapper{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.product-form__action-wrapper{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.product-form__action-wrapper .urgency-banner{
  display:block;
  width:100%;
  margin:10px 0;
}

/* Wrapper wirklich als Spalte behandeln */
.product-form__action-wrapper{
  display: flex !important;
  flex-direction: column !important;
}

/* Reihenfolge innerhalb des Wrappers erzwingen */
.product-form__action-wrapper > [data-quantity-selector],
.product-form__action-wrapper .quantity-selector{
  order: 0 !important;
}

.product-form__action-wrapper > .urgency-banner{
  order: 1 !important;   /* ⬅️ Banner direkt über ATC */
}

.product-form__action-wrapper > button.product-form--atc-button{
  order: 2 !important;   /* Grüner Warenkorb-Button */
}

.product-form__action-wrapper > .shopify-payment-button{
  order: 3 !important;   /* PayPal + „Weitere Bezahlmöglichkeiten“ */
}

/* Falls dein Theme den ATC-Button anders kapselt, diese Varianten abdecken */
.product-form__action-wrapper .product-form--atc-button{
  order: 2 !important;
}
.product-form__action-wrapper .shopify-payment-button__button{
  order: 3 !important;
}

/* Banner immer volle Breite */
.product-form__action-wrapper .urgency-banner{
  width: 100%;
  display: block;
  margin: 10px 0;
}

/* PayPal blau/weiß – starke Overrides */
.shopify-payment-button__button--branded,
.shopify-payment-button .shopify-payment-button__button {
  background-color: #009cde !important;   /* PayPal-Blau */
  background-image: none !important;
  color: #fff !important;
  border: none !important;
  border-radius: 6px !important;
  box-shadow: none !important;
}

.shopify-payment-button__button--branded:hover,
.shopify-payment-button .shopify-payment-button__button:hover {
  background-color: #0070ba !important;   /* dunkler beim Hover */
  background-image: none !important;
}

/* Preis-Anzeige über/unter den Varianten */
.price-main{
  font-weight:700;
  font-size:1.2rem;
  margin:.75rem 0;
}

<style>
  .option-price-badge {
    position: absolute;
    left: 8px;
    top: -30px; /* Anpassung für Platz über dem Button */
    padding: 6px 12px;
    border-radius: 999px;
    background: #6f9a24; /* Grün wie im Beispiel */
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    box-shadow: 0 6px 16px rgba(0,0,0,.15);
    white-space: nowrap;
    pointer-events: none;
    display: none;
    z-index: 10; /* Über anderen Elementen */
  }
  .option-price-badge::after {
    content: "✔"; /* Häkchen hinzufügen */
    margin-left: 5px;
  }
  .options-selection__option-value:hover .option-price-badge,
  .swatch-view .swatch-button:hover .option-price-badge {
    display: block; /* Badge beim Hover anzeigen */
  }
  .options-selection__option-value[aria-checked="true"] .option-price-badge,
  .swatch-view .swatch-button[aria-pressed="true"] .option-price-badge {
    display: block; /* Badge bei ausgewählter Option anzeigen */
  }
  /* Alten Preis-Bereich ausblenden, bis er ersetzt wird */
  .price-main {
    display: none; /* Temporär ausblenden, bis neuer Preis-Logik implementiert */
  }
</style>
