/*
 * sleedgaran — storefront styles. Inter is self-hosted (views/fonts, SIL OFL): the official
 * SVGs ask for the bare families Inter-ExtraBold / Inter-Regular and embed nothing; ExtraBold
 * is declared at 700 and 800 so the browser never synthesises a faux bold.
 */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/Inter-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/Inter-SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/Inter-ExtraBold.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/Inter-ExtraBold.woff2') format('woff2'); }
@font-face { font-family: 'Inter-Regular'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/Inter-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Inter-SemiBold'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/Inter-SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Inter-ExtraBold'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/Inter-ExtraBold.woff2') format('woff2'); }
@font-face { font-family: 'Inter-ExtraBold'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/Inter-ExtraBold.woff2') format('woff2'); }

/* Generated label SVGs (inline). Never let the browser fake a weight. */
.sleedgaran-svg { display: block; width: 100%; height: auto; font-synthesis: none; -webkit-font-smoothing: antialiased; }
.sleedgaran-svg-nested { max-width: 240px; }
.sleedgaran-svg-full { max-width: 100%; }

/* Trigger: a <button> (keyboard-reachable) styled as plain inline content. */
.sleedgaran-trigger { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; display: inline-block; max-width: 100%; }
.sleedgaran-trigger:focus { outline: 2px solid #034ea2; outline-offset: 2px; }
.sleedgaran-trigger--notice { text-decoration: underline; }
/* Inline-block capped at the artwork width, so it follows the theme's text alignment. */
.sleedgaran-trigger--label { display: inline-block; vertical-align: top; width: 100%; max-width: 240px; }
.sleedgaran-trigger--label .sleedgaran-svg-nested { max-width: none; }

/* Notice block: the phrase alone; the Your Europe link lives in the dialog (and in <noscript>). */
.sleedgaran-notice { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0.4em 0.9em; font-size: 0.9em; line-height: 1.4; }
.sleedgaran-notice--footer, .sleedgaran-notice--cart, .sleedgaran-notice--checkout, .sleedgaran-notice--product { display: flex; margin: 0.75em 0; clear: both; }
.sleedgaran-notice--header { margin: 0 0.75em; }
.sleedgaran-notice__icon { width: 1.1em; height: 1.1em; vertical-align: -0.15em; margin-right: 0.35em; }
.sleedgaran-notice__link { white-space: nowrap; }

/* Label block on the product page and at checkout. */
.sleedgaran-label { margin: 0.75em 0; clear: both; }
/* Compact rows: one nested label per cart line / listing card. */
.sleedgaran-label--cartline { margin: 0.5em 0 0; }
.sleedgaran-label--cartline .sleedgaran-trigger--label { max-width: 200px; }
.sleedgaran-label--listing { margin: 0.4em 0 0; }
.sleedgaran-label--listing .sleedgaran-trigger--label { max-width: 180px; }
.sleedgaran-label__caption { display: block; margin-top: 0.35em; font-size: 0.85em; line-height: 1.4; }
.sleedgaran-checkout__title { font-weight: 600; margin: 0 0 0.5em; }
.sleedgaran-checkout__list { list-style: none; margin: 0; padding: 0; }
.sleedgaran-checkout__item { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5em 1em; margin-bottom: 0.6em; }
.sleedgaran-checkout__item .sleedgaran-trigger--label { flex: 0 0 220px; max-width: 220px; }
.sleedgaran-checkout__name { flex: 1 1 200px; font-size: 0.9em; }

/* Product-page tab: artwork left, text right, stacked on narrow screens. Text inherits the theme's fonts. */
.sleedgaran-tab { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px 40px; }
.sleedgaran-tab__art { flex: 0 1 340px; max-width: 100%; }
.sleedgaran-tab__art .sleedgaran-tab__notice, .sleedgaran-tab__art .sleedgaran-svg, .sleedgaran-tab__label img { display: block; width: 100%; height: auto; max-width: none; }
/* Placeholder keeps the row from collapsing while the label is fetched. */
.sleedgaran-tab__label[aria-busy] { min-height: 160px; }
.sleedgaran-tab__link { display: inline-block; margin-top: 0.6em; font-size: 0.85em; text-decoration: underline; }
.sleedgaran-tab__text { flex: 1 1 280px; min-width: 0; }
.sleedgaran-tab__lead { font-weight: 700; }
@media (max-width: 767px) {
  .sleedgaran-tab { gap: 16px; }
  .sleedgaran-tab__art { flex-basis: 100%; }
}

/* Dialog: one shared element, fixed and centred (a footer-anchored popover would run off screen). */
.sleedgaran-dialog[hidden] { display: none; }
.sleedgaran-dialog { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, 0.55); }
.sleedgaran-dialog__box { position: relative; background: #fff; color: #231f20; max-width: 560px; width: 100%; max-height: 92vh; overflow: auto; padding: 44px 20px 20px; border-radius: 4px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35); }
/* Roll-over preview: undimmed and click-through, so a click on the trigger pins the card. */
.sleedgaran-dialog--hover { background: transparent; pointer-events: none; }
.sleedgaran-dialog--hover .sleedgaran-dialog__box { pointer-events: auto; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.08); }
.sleedgaran-dialog__close { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border: 0; border-radius: 16px; background: #eee; color: #231f20; font-size: 20px; line-height: 32px; text-align: center; cursor: pointer; }
.sleedgaran-dialog__close:hover, .sleedgaran-dialog__close:focus { background: #ddd; outline: 2px solid #034ea2; }
.sleedgaran-dialog__content img, .sleedgaran-dialog__content svg { display: block; width: 100%; height: auto; margin: 0 auto; }
.sleedgaran-dialog__content--notice img { max-width: 480px; }
.sleedgaran-dialog__footer { margin-top: 14px; font-size: 0.9em; line-height: 1.4; text-align: center; }
.sleedgaran-dialog__loading { padding: 40px 0; text-align: center; color: #666; }
@media (max-width: 480px) {
  .sleedgaran-dialog { padding: 8px; }
  .sleedgaran-dialog__box { padding: 44px 12px 12px; }
}
