/* EU GARAN label: the nested badge on cards, product page, cart and checkout, and the lightbox
   with the full label (fragments/garan.html, js/garan.js). */

/* The label's own typeface (Inter, OFL). Only fetched on pages that show a badge. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/inter-var-latin-ext-v1.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/inter-var-latin-v1.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.garan-badge {
  display: inline-block;
  padding: 0;
  border: 1px solid #231f20;
  border-radius: 2px;
  background: #fff;
  line-height: 0;
  cursor: pointer;
  vertical-align: middle;
}

.garan-badge:hover,
.garan-badge:focus-visible {
  box-shadow: 0 0 0 2px rgba(3, 78, 162, 0.35);
  outline: none;
}

.garan-badge__svg {
  display: block;
  width: auto;
  height: 28px;
}

.garan-badge--card .garan-badge__svg {
  height: 22px;
}

.garan-badge--line .garan-badge__svg {
  height: 20px;
}

.garan-badge--detail .garan-badge__svg {
  height: 34px;
}

/* Values of the official artwork's text style (Inter ExtraBold, 41.56 on a 56.69 high box). */
.garan-badge__years {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  font-size: 41.56px;
  font-weight: 800;
  letter-spacing: -0.02em;
  fill: #231f20;
}

.product-card__garan {
  margin-top: 6px;
}

.cart-item__garan,
.checkout__review-garan {
  display: block;
  margin-top: 4px;
}

.pd__garan {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
  font-size: 0.9rem;
}

.pd__garan a,
.garan-notice-link a {
  color: var(--primary);
  text-decoration: underline;
}

.garan-notice-link {
  margin: 12px 0 0;
  font-size: 0.85rem;
}

/* Lightbox with the full label */
.garan-lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.garan-lightbox.is-open {
  display: flex;
}

.garan-lightbox__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.garan-lightbox__dialog {
  position: relative;
  width: min(100%, 460px);
  max-height: 100%;
  overflow: auto;
  padding: 44px 20px 18px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.garan-lightbox__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  padding: 4px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: #333;
  cursor: pointer;
}

.garan-lightbox__close:hover {
  background: #f0f0f0;
}

/* Never narrower than 270px: the QR code on the label must stay at least 2 cm and scannable. */
.garan-lightbox__label {
  display: block;
  width: 100%;
  min-width: 270px;
  height: auto;
}

.garan-lightbox__label text {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  fill: #231f20;
}

.garan-lightbox__years {
  font-size: 80px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.garan-lightbox__field {
  font-size: 9px;
  font-weight: 400;
}

.garan-lightbox__links {
  margin: 14px 0 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

.garan-lightbox__links a {
  color: var(--primary, #007765);
  text-decoration: underline;
}
