/* QRnik QR generator layout */

.qr-gen-page .page-title {
  letter-spacing: -0.03em;
}

.qr-gen-preview-sticky {
  top: 1rem;
  z-index: 2;
}

.qr-preview-stage {
  background:
    linear-gradient(45deg, #e2e8f0 25%, transparent 25%) 0 0 / 16px 16px,
    linear-gradient(-45deg, #e2e8f0 25%, transparent 25%) 0 8px / 16px 16px,
    linear-gradient(45deg, transparent 75%, #e2e8f0 75%) 8px -8px / 16px 16px,
    linear-gradient(-45deg, transparent 75%, #e2e8f0 75%) -8px 0 / 16px 16px,
    #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 1rem;
  padding: 1.25rem;
  min-height: 18rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-preview-stage img {
  max-width: 100%;
  height: auto;
  image-rendering: pixelated;
}

.qr-style-tile {
  min-height: 5.5rem;
  border-width: 2px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 0.4rem;
}

.qr-style-tile .qr-style-mini {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  padding: 3px;
  background: #fff;
  border-radius: 0.35rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.qr-style-tile .qr-style-mini span {
  display: block;
  background: #0f172a;
  border-radius: 1px;
}

.qr-style-tile[data-value="rounded"] .qr-style-mini span {
  border-radius: 3px;
}

.qr-style-tile[data-value="dots"] .qr-style-mini span {
  border-radius: 50%;
}

.qr-style-tile[data-value="classy"] .qr-style-mini span {
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  border-radius: 0;
}

.qr-style-tile[data-value="classy-rounded"] .qr-style-mini span {
  border-radius: 50%;
  transform: scale(0.85);
}

.qr-style-tile.active,
.qr-color-mode-btn.active,
.qr-preset.active {
  border-color: var(--tblr-primary, #6366f1) !important;
  background: rgba(99, 102, 241, 0.12);
  color: inherit;
}

.qr-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.qr-preset {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  border: 2px solid rgba(148, 163, 184, 0.45);
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.qr-preset span {
  display: block;
  width: 100%;
  height: 100%;
}

.qr-accordion .accordion-button {
  font-weight: 600;
}

.qr-accordion .accordion-button:not(.collapsed) {
  background: rgba(99, 102, 241, 0.08);
  color: inherit;
  box-shadow: none;
}

.qr-export-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.qr-export-bar .btn {
  flex: 1 1 auto;
  min-width: 5.5rem;
}

.qr-type-chip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 0.75rem;
  background: rgba(30, 41, 59, 0.35);
}

.qr-mobile-cta {
  display: none;
  position: sticky;
  bottom: 0;
  z-index: 20;
  padding: 0.75rem 0;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.92) 28%);
}

@media (max-width: 991.98px) {
  .qr-mobile-cta {
    display: block;
  }

  .qr-desktop-cta {
    display: none !important;
  }
}

/* Landing teaser styles */
.landing-style-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1rem;
}

.landing-style-strip .form-control-color {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.15rem;
}

.landing-style-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.landing-style-btns .btn.active {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.15);
}
