/* EU Gewährleistungslabel v2.5.0
 * Grundsatz: Die harmonisierte Mitteilung ist auf jedem Gerät direkt und
 * vollständig als Grafik sichtbar. Mobil gibt es zusätzlich eine Vergrößerung.
 */
.eu-guarantee-notice {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  text-align: left;
}
.eu-guarantee-notice--cart { margin: 0; padding: 1rem 1rem .35rem; }

.eu-guarantee-notice__link { display: block; width: 100%; max-width: 100%; text-decoration: none; }
.eu-guarantee-notice__link--mobile { display: none; }
.eu-guarantee-notice__image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  border: 0;
}

.eu-guarantee-notice__infolink { margin: .5rem 0 0; font-size: 14px; line-height: 1.4; color: #323232; }
.eu-guarantee-notice__infolink a { text-decoration: underline; text-underline-offset: 2px; word-break: break-word; }

/* Vergrößerung ist auf Desktop nie sichtbar */
.eu-guarantee-modal { display: none; }

@media (max-width: 767.98px) {
  .eu-guarantee-notice--cart { margin: .75rem 0 1rem; padding: 0; }

  .eu-guarantee-notice__link--desktop { display: none; }
  .eu-guarantee-notice__link--mobile { display: block; }

  .eu-guarantee-notice__zoom-hint {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.3;
    color: #555;
    text-decoration: underline;
    text-underline-offset: 2px;
  }

  .eu-guarantee-modal {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
  }
  .eu-guarantee-modal:target,
  .eu-guarantee-modal.is-open { display: flex; }

  .eu-guarantee-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.68); }
  .eu-guarantee-modal__panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
    height: calc(100vh - 20px);
    height: calc(100dvh - 20px);
    min-width: 0;
    background: #fff;
    box-sizing: border-box;
    box-shadow: 0 12px 40px rgba(0,0,0,.35);
  }
  .eu-guarantee-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex: 0 0 auto;
    padding: 12px 14px;
    border-bottom: 1px solid #ddd;
    font-size: 16px;
    line-height: 1.3;
  }
  .eu-guarantee-modal__close { flex: 0 0 auto; font-size: 32px; line-height: 1; color: #323232; text-decoration: none; padding: 0 6px; }
  .eu-guarantee-modal__scroll {
    flex: 1 1 auto;
    min-width: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    background: #f4f4f4;
    display: flex;
    align-items: flex-start;
  }
  /* Doppelte Bildschirmbreite: gut lesbar, seitlich scrollbar, Pinch-Zoom bleibt möglich */
  .eu-guarantee-modal__image { display: block; width: 200%; min-width: 700px; max-width: none; height: auto; border: 0; margin: 0 auto; }
  .eu-guarantee-modal__footer { flex: 0 0 auto; padding: 10px 14px 12px; border-top: 1px solid #ddd; font-size: 14px; line-height: 1.35; background: #fff; }
  .eu-guarantee-modal__footer a { text-decoration: underline; text-underline-offset: 2px; }

  body.eu-guarantee-modal-open { overflow: hidden; }

  /* Umgebenden Warenkorb-Bereich vor Breitenwachstum schützen */
  .cart-summary,
  .cart-summary > *,
  .js-cart-detailed-actions,
  .cart-detailed-actions {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* PayPal „Später bezahlen“ (BNPL) im Warenkorb mittig – passend zum Theme,
   das die Warenkorb-Buttons bis 575px zentriert */
@media (max-width: 575.98px) {
  .cart-detailed-actions [data-container-bnpl] {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
  }
  .cart-detailed-actions [data-container-bnpl] > * {
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media print {
  .eu-guarantee-modal, .eu-guarantee-notice__zoom-hint { display: none !important; }
}
