/* LUYS Theme 3.34 — compact live Trustpilot badge and footer placement. */
.luys-trustpilot-badge {
  display: inline-grid;
  grid-template-columns: max-content;
  align-items: center;
  gap: 4px 9px;
  width: max-content;
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(42, 38, 34, .12);
  border-radius: 14px;
  background: rgba(255, 255, 255, .97);
  color: #292622;
  font-family: "DM Sans", sans-serif;
  line-height: 1.1;
  text-decoration: none;
  box-shadow: 0 12px 34px rgba(36, 30, 26, .16);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.luys-trustpilot-badge:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 182, 122, .42);
  box-shadow: 0 16px 38px rgba(36, 30, 26, .20);
}

.luys-trustpilot-badge:focus-visible {
  outline: 3px solid rgba(0, 182, 122, .30);
  outline-offset: 3px;
}

.luys-trustpilot-badge__brand {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.luys-trustpilot-badge__brand strong {
  color: #17211f;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -.02em;
}

.luys-trustpilot-badge__mark {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: #00b67a;
  font-size: 23px;
  line-height: 1;
}

.luys-trustpilot-badge__stars {
  display: grid;
  grid-template-columns: repeat(5, 15px);
  gap: 2px;
}

.luys-trustpilot-badge__stars span {
  display: grid;
  width: 15px;
  height: 15px;
  place-items: center;
  background: #d8dddb;
  color: #fff;
  font-size: 10px;
  line-height: 1;
}

.luys-trustpilot-badge__stars span.is-active { background: #00b67a; }

.luys-trustpilot-badge__meta,
.luys-trustpilot-badge__status {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.luys-trustpilot-badge__status { grid-column: 1 / -1; }

.luys-trustpilot-badge__meta strong,
.luys-trustpilot-badge__status strong {
  overflow: hidden;
  color: #292622;
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.luys-trustpilot-badge__meta small,
.luys-trustpilot-badge__status small {
  overflow: hidden;
  color: #766f68;
  font-size: 9px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.luys-trustpilot-float {
  position: fixed;
  left: clamp(16px, 2.2vw, 34px);
  bottom: clamp(18px, 2.2vw, 34px);
  z-index: 10000;
  max-width: calc(100vw - 32px);
}

.luys-footer__brand-head--with-trustpilot {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  margin-bottom: 24px;
}

.luys-footer__brand-head--with-trustpilot .luys-footer__logo {
  flex: 1 1 auto;
  min-width: 0;
  margin-bottom: 0;
}

.luys-footer__brand-head--with-trustpilot .luys-footer__logo img {
  width: min(172px, 100%);
}

.luys-trustpilot-badge--footer {
  flex: 0 0 auto;
  width: max-content;
  padding: 7px 8px;
  gap: 3px 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .72);
  box-shadow: none;
}

.luys-trustpilot-badge--footer .luys-trustpilot-badge__brand { gap: 4px; }
.luys-trustpilot-badge--footer .luys-trustpilot-badge__mark { width: 16px; height: 16px; font-size: 18px; }
.luys-trustpilot-badge--footer .luys-trustpilot-badge__brand strong { font-size: 11px; }
.luys-trustpilot-badge--footer .luys-trustpilot-badge__stars { grid-template-columns: repeat(5, 11px); gap: 1px; }
.luys-trustpilot-badge--footer .luys-trustpilot-badge__stars span { width: 11px; height: 11px; font-size: 7px; }
.luys-trustpilot-badge--footer .luys-trustpilot-badge__meta strong,
.luys-trustpilot-badge--footer .luys-trustpilot-badge__status strong { font-size: 8.5px; }
.luys-trustpilot-badge--footer .luys-trustpilot-badge__meta small,
.luys-trustpilot-badge--footer .luys-trustpilot-badge__status small { font-size: 7.5px; }

body.luys-mobile-menu-is-open .luys-trustpilot-float,
body.luys-mobile-cart-is-open .luys-trustpilot-float {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 900px) {
  .luys-trustpilot-float {
    left: max(12px, env(safe-area-inset-left, 0px));
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    width: max-content;
    padding: 8px 9px;
    border-radius: 12px;
  }

  body.single-product .luys-trustpilot-float,
  body.luys-has-configurator-dock .luys-trustpilot-float {
    bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 380px) {
  .luys-footer__brand-head--with-trustpilot { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  .luys-trustpilot-badge { transition: none; }
}
