/**
 * EU guarantee-of-durability label, Regulation (EU) 2025/1960 Annex II.
 *
 * The label artwork itself carries its own styles inside the inline SVG. Only
 * size and the surrounding dialog are set here; scaling stays proportional via
 * the viewBox, so never set both width and height on the SVG.
 */

/* Inter is prescribed by the regulation. The SVG asks for "Inter-ExtraBold, Inter"
   and "Inter-Regular, Inter" — the specific names fall through to this variable
   face, whose weight axis font-variation-settings then addresses. */
@font-face {
    font-family: 'Inter';
    src: url('../fonts/InterVariable.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

.garan-label {
    margin: 1.5em 0;
}

.garan-label__trigger {
    display: inline-block;
    max-width: 320px;
    text-decoration: none;
    border: 0;
}

.garan-label__trigger:focus,
.garan-label__trigger:focus-visible {
    outline: 3px solid #034ea2;
    outline-offset: 3px;
}

.garan-label__svg {
    display: block;
    width: 100%;
    height: auto;
}

.garan-label__svg--full {
    max-width: 269px;
    margin: 0 auto;
}

.garan-label__hint {
    display: block;
    margin-top: .5em;
    font-size: .85em;
    text-decoration: underline;
}

.garan-label__dialog {
    max-width: 34em;
    width: calc(100% - 2em);
    padding: 0;
    border: 1px solid #231f20;
    background: #fff;
    color: #231f20;
}

.garan-label__dialog::backdrop {
    background: rgba(0, 0, 0, .6);
}

/* No-JS fallback: the trigger is a plain anchor, so the dialog opens on :target.
   It renders in the flow rather than as an overlay, which is fine — the point is
   that the full label stays reachable without scripting. */
.garan-label__dialog:target {
    display: block;
    position: static;
}

.garan-label__dialog-inner {
    padding: 1.5em;
}

.garan-label__terms {
    margin-top: 1.5em;
    font-size: .9em;
    line-height: 1.5;
}

.garan-label__more {
    margin-top: 1em;
}

.garan-label__close {
    display: inline-block;
    margin-top: 1.5em;
}
