/* Legal guarantee notice / EU GARAN — Regulation (EU) 2025/1960
   Only our own UI (bar, buttons, dialog) is styled. The official images are never
   recoloured, cropped or stretched: they are only scaled proportionally. */

:root {
  --lg-blue: #003399;   /* EU reference blue from the Regulation */
  --lg-yellow: #FFED00; /* EU reference yellow */
  --lg-ink: #1a1a1a;
  --lg-bg: #ffffff;
}
/* Defaults; overridden by the plugin "Appearance" settings (inline style) */
html {
  --lg-bar-bg: var(--lg-blue);
  --lg-bar-text: #ffffff;
  --lg-icon: var(--lg-yellow);
  --lg-link: var(--lg-blue);
  --lg-font-size: 14px;
  --lg-underline: underline;
}

.lg-noscroll { overflow: hidden; }

/* ---------- trigger buttons ---------- */
.lg-trigger {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font: inherit;
  line-height: 1.3;
  cursor: pointer;
  border: 0;
  background: none;
  color: var(--lg-link);
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0;
}
.lg-trigger:focus-visible,
.lg-notice__zoom:focus-visible,
.lg-garan__btn:focus-visible,
.lg-dialog__close:focus-visible {
  outline: 3px solid var(--lg-icon);
  outline-offset: 2px;
}
.lg-icon {
  flex: 0 0 auto;
  width: 1.15em;
  height: 1.15em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 4 5v6c0 5 3.4 9.7 8 11 4.6-1.3 8-6 8-11V5l-8-3Zm-1.2 14.2-3.5-3.5 1.4-1.4 2.1 2.1 4.6-4.6 1.4 1.4-6 6Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 4 5v6c0 5 3.4 9.7 8 11 4.6-1.3 8-6 8-11V5l-8-3Zm-1.2 14.2-3.5-3.5 1.4-1.4 2.1 2.1 4.6-4.6 1.4 1.4-6 6Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* site-wide top bar */
.lg-topbar {
  background: var(--lg-bar-bg);
  color: var(--lg-bar-text);
  text-align: center;
  padding: .45em 16px;
  font-size: var(--lg-font-size);
  position: relative;
  z-index: 1000;
}
.lg-trigger--bar { color: var(--lg-bar-text); text-decoration: var(--lg-underline); }
.lg-trigger--bar .lg-icon { color: var(--lg-icon); }

/* floating pill */
.lg-floating {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 9990;
}
.lg-trigger--floating {
  background: var(--lg-bar-bg);
  color: var(--lg-bar-text);
  text-decoration: none;
  padding: .6em 1em;
  border-radius: 999px;
  font-size: var(--lg-font-size);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}
.lg-trigger--floating .lg-icon { color: var(--lg-icon); }
@media (max-width: 480px) {
  .lg-trigger--floating { font-size: 13px; padding: .55em .85em; }
}

/* ---------- inline notice ---------- */
.lg-notice { margin: 1.5em auto; width: 100%; }
.lg-notice__zoom,
.lg-garan__btn {
  display: block;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  width: 100%;
}
.lg-notice__img,
.lg-garan__img {
  display: block;
  width: 100%;
  height: auto;
}
.lg-notice__caption,
.lg-garan__caption {
  margin-top: .5em;
  font-size: .95em;
  text-align: center;
}
.lg-notice__caption a,
.lg-garan__caption a { color: var(--lg-link); }

/* ---------- GARAN ---------- */
.lg-garan--full { max-width: 300px; margin: 1em 0; }
.lg-garan--nested { display: inline-block; vertical-align: middle; }
.lg-garan--nested .lg-garan__btn { width: auto; cursor: pointer; }
.lg-garan__nested { display: block; height: 64px; width: auto; }

/* ---------- dialog ---------- */
.lg-dialog {
  width: min(94vw, 760px);
  max-height: 94vh;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: var(--lg-bg);
  color: var(--lg-ink);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
  overflow: hidden;
}
.lg-dialog[open] { display: flex; flex-direction: column; }
.lg-dialog::backdrop { background: rgba(0, 0, 0, .6); }
.lg-dialog__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px 10px 16px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 14px;
}
.lg-dialog__more { color: var(--lg-link); font-weight: 600; }
.lg-dialog__close {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #f1f3f5;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: var(--lg-ink);
  margin-left: auto;
}
.lg-dialog__close:hover { background: #e2e6ea; }
.lg-dialog__body {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px;
}
.lg-dialog__img { display: block; width: 100%; height: auto; }
.lg-dialog__foot {
  padding: 8px 16px 12px;
  font-size: 13px;
  text-align: center;
  border-top: 1px solid #e5e7eb;
}
.lg-dialog__foot a { color: #555; }

@media print {
  .lg-topbar, .lg-floating { display: none !important; }
}
