:root {
  --xxxlutz-red: #e3001b;
  --xxxlutz-red-dark: #9f161b;
  --header-height: 100px;
  --font-family: "XXXLutz Sans", sans-serif;
}

/* ---------- base ---------------------------------------- */
* {
  margin: 0;
  box-sizing: border-box;
}

html,
body {
  font-family: var(--font-family);
}

/* ---------- header -------------------------------------- */
#header {
  inset: 0 0 auto 0;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  border-bottom: 1px solid #e5e5e5;
  background: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  z-index: 1000;
}

#home-container {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

#home-icon {
  width: 60px;
  height: 60px;
  user-select: none;
  -webkit-user-drag: none;
}

#title {
  font: 700 48px/1 var(--font-family);
}

#xxxlutz-logo {
  width: 266px;
  height: 64px;
  user-select: none;
  -webkit-user-drag: none;
}

/* ---------- preview splash ------------------------------ */
#preview-wrapper {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
}

#preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#preview-overlay {
  position: absolute;
  inset: 0;
  cursor: pointer;
}

/* ---------- advisor host -------------------------------- */
#advisor {
  inset-inline: 0;
  height: calc(100% - var(--header-height));
  overflow: auto;
}

/* ---------- inactivity modal ---------------------------- */
#backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1100;
}

#modal {
  background: #fff;
  border-radius: 2px;
  padding: 32px;
  text-align: center;
  max-width: 630px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

#modal h2 {
  font-size: 48px;
  margin-bottom: 20px;
}

#modal p {
  font-size: 21px;
  margin-bottom: 40px;
  line-height: 1.3;
}

#countdown {
  font: 700 32px/1 var(--font-family);
  color: var(--xxxlutz-red);
  margin-bottom: 40px;
}

#cta {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  background: var(--xxxlutz-red);
  color: #fff;
  border: none;
  border-radius: 2px;
  padding: 10px 40px 10px 28px;
  font: 700 32px/1 var(--font-family);
}

#cta img {
  width: 30px;
  height: 30px;
}

/* ---------- PDP card & layout --------------------------- */
.pdp-card {
  position: fixed;
  top: var(--header-height);
  bottom: 120px;
  inset-inline: 0;
  display: flex;
  justify-content: center;
  gap: 56px;
  padding: 40px;
  overflow: auto;
}

/* product image 723×723 */
.pdp-img-box {
  width: 723px;
  height: 723px;
  border: 1px solid #c8c8c8;
  background: #f4f4f4;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 723px;
  min-height: 723px;
}

.pdp-img-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* meta column */
.pdp-meta {
  width: 400px;
  height: 723px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pdp-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.pdp-sku {
  color: #85848a;
  font: 400 24px var(--font-family);
}

.pdp-name {
  color: #31343f;
  font: 700 28px var(--font-family);
  line-height: 1.25;
}

.pdp-pricing {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pdp-uvp {
  color: #8b8b8b;
  font: 400 24px var(--font-family);
}

.pdp-price {
  color: var(--xxxlutz-red);
  font: 800 48px var(--font-family);
}

.pdp-footnote {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pdp-tax-note {
  color: #878787;
  font: 400 16px var(--font-family);
}

.pdp-full-disclaimer {
  color: #9a9a9a;
  font: 400 12px var(--font-family);
  line-height: 1.4;
}

/* QR component */
.pdp-qr {
  width: 324px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  margin-left: 58px;
}

.pdp-qr-imgbox {
  padding: 10px;
  background: #fff;
  border: 4px solid #f2b300;
  border-radius: 0;
  display: flex;
  justify-content: center;
  width: fit-content;
}

.pdp-qr-imgbox div {
  border-radius: 0;
  margin-top: 0;
}

.pdp-qr-note {
  font: 700 16px var(--font-family);
  color: #202020;
  text-align: left;
}

.pdp-qr-ribbon {
  position: absolute;
  top: -32px;
  left: -58px;
  transform: rotate(-5deg);
  transform-origin: top left;
  background: #000;
  color: #fff;
  padding: 4px 14px;
  border-radius: 0;
  font: 800 24px var(--font-family);
}

#pdp-actions {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 24px;
}

#restart-btn {
  display: flex;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  background: var(--xxxlutz-red);
  color: #fff;
  border: none;
  border-radius: 2px;
  padding: 14px 34px;
  min-width: 420px;
  justify-content: center;
  font: 700 24px/1 var(--font-family);
  box-shadow: none;
  white-space: nowrap;
}

#restart-btn img {
  width: 28px;
  height: 28px;
}

/* CSS spinner used in loading state */
.btn-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(198, 32, 38, 0.2);
  border-top-color: var(--xxxlutz-red);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- kiosk directory fallback -------------------- */
.kiosk-directory {
  padding: 28px 34px 44px;
  max-width: 1400px;
  margin: 0 auto;
  color: #2f3443;
  font-size: 18px;
  line-height: 1.45;
  background: #fff;
}

.kiosk-directory-title {
  margin: 0 0 18px;
  font-size: 34px;
  line-height: 1.1;
}

.kiosk-directory .kiosk-country + .kiosk-country {
  margin-top: 18px;
}

.kiosk-directory .kiosk-country-title {
  margin: 0 0 10px;
  font-size: 18px;
  letter-spacing: 0.04em;
}

.kiosk-directory ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(520px, 1fr));
  gap: 12px;
}

.kiosk-directory .kiosk-site-row {
  display: block;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #e5e8ef;
  border-radius: 10px;
}

.kiosk-directory .kiosk-site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.kiosk-directory .kiosk-site-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.kiosk-directory .site-id {
  display: inline-block;
  font-weight: 700;
  min-width: 38px;
  color: #8f1c20;
  background: rgba(198, 32, 38, 0.12);
  border-radius: 999px;
  padding: 2px 10px;
  text-align: center;
}

.kiosk-directory .site-city {
  font-weight: 700;
}

.kiosk-directory .kiosk-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.kiosk-directory .kiosk-tag {
  display: inline-block;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  padding: 4px 10px;
  border-radius: 999px;
  transition: filter 0.15s ease;
}

.kiosk-directory .kiosk-tag:hover {
  filter: brightness(0.94);
}

.kiosk-directory .kiosk-tag {
  color: #8f1c20;
  background: rgba(198, 32, 38, 0.16);
}

.kiosk-directory .kiosk-sep {
  display: none;
}

@media (max-width: 1100px) {
  .kiosk-directory {
    padding: 20px 20px 28px;
    font-size: 16px;
  }

  .kiosk-directory-title {
    font-size: 26px;
    margin-bottom: 14px;
  }

  .kiosk-directory ul {
    grid-template-columns: 1fr;
  }
}
