/* GARAN warranty label + modal.
   Loaded on the storefront product page only when an eligible label is rendered.
   The nested label and the full colour/black-and-white labels are inlined SVGs
   whose <text> uses the Inter typeface, so Inter is bundled here as @font-face. */

/* --- Inter (SIL Open Font License 1.1) --- */
/* Regular (400) */
@font-face {
  font-family: 'Inter-Regular';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/inter-latin-400-normal.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter-Regular';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/inter-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* ExtraBold (800) — the SVGs request font-weight:700 for this family */
@font-face {
  font-family: 'Inter-ExtraBold';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/inter-latin-800-normal.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter-ExtraBold';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/inter-latin-ext-800-normal.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Generic 'Inter' fallback used by the SVG font stacks */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/inter-latin-400-normal.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/inter-latin-800-normal.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Nested (inline) label --- */
.garan-label {
  display: block;
  margin: 12px 0;
}
.garan-label[hidden] {
  display: none;
}
.garan-label__trigger {
  display: inline-block;
  padding: 0;
  margin: 0;
  border: 1px solid #231f20;
  background: none;
  cursor: pointer;
  line-height: 0;
  -webkit-appearance: none;
  appearance: none;
}
.garan-label__trigger:focus-visible {
  outline: 2px solid #034ea2;
  outline-offset: 2px;
}
.garan-label__trigger svg {
  display: block;
  height: 30px;
  width: auto;
}

/* --- Modal --- */
.garan-label__modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  align-items: center;
  justify-content: center;
}
.garan-label__modal.is-open {
  display: flex;
}
.garan-label__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}
.garan-label__dialog {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: calc(100% - 32px);
  max-width: calc(296mm + 24px + 48px);
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: #fff;
  border-radius: 8px;
  padding: 40px 24px 24px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
}
.garan-label__close {
  position: absolute;
  top: 8px;
  right: 12px;
  border: 0;
  background: none;
  font-size: 28px;
  line-height: 1;
  color: #231f20;
  cursor: pointer;
  padding: 4px;
}
.garan-label__labels {
  display: flex;
  flex-wrap: nowrap;
  gap: 24px;
  justify-content: center;
  align-items: flex-start;
}
.garan-label__figure {
  margin: 0;
  flex: 1 1 0;
  min-width: 140px;
  max-width: 148mm;
  text-align: center;
}
.garan-label__full svg {
  display: block;
  width: 100%;
  height: auto;
}
.garan-label__figure figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: #555;
}
