:root {
  --bg-dark: #050914;
  --primary: #7c3aed;
  --primary-strong: #5b21b6;
  --grid-handle: #111827;
  --neon-blue: #38bdf8;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f5f6fb;
  color: #0f172a;
  min-height: 100vh;
}

.hero-section {
  background: radial-gradient(circle at top, rgba(124, 58, 237, 0.35), rgba(14, 165, 233, 0.25)), var(--bg-dark);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero-section .container {
  position: relative;
  padding-left: clamp(1rem, 5vw, 3rem);
  padding-right: clamp(1rem, 5vw, 3rem);
}

.hero-stamp[hidden] {
  display: none !important;
}

.hero-stamp {
  position: absolute;
  left: clamp(0.25rem, 1vw, 1.5rem);
  top: 50%;
  transform: translateY(-50%) rotate(-8deg);
  background: rgba(15, 23, 42, 0.65);
  border: 3px dashed rgba(248, 250, 252, 0.9);
  border-radius: 50%;
  width: 190px;
  height: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  font-weight: 600;
  color: #f8fafc;
  box-shadow: 0 25px 40px rgba(5, 9, 20, 0.45);
  overflow: visible;
}

.hero-stamp::before,
.hero-stamp::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
}

.hero-stamp::before {
  border: 3px dotted rgba(56, 189, 248, 0.85);
  box-shadow:
    0 0 10px rgba(56, 189, 248, 0.65),
    0 0 20px rgba(56, 189, 248, 0.45),
    0 0 30px rgba(56, 189, 248, 0.35);
  animation: heroNeonBlink 1.6s ease-in-out infinite;
}

.hero-stamp::after {
  border: 2px solid rgba(56, 189, 248, 0.2);
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.35);
  animation: heroNeonGlow 2.6s ease-in-out infinite;
}

.hero-stamp__label {
  font-size: 0.85rem;
  opacity: 0.7;
  text-decoration: line-through;
}

.hero-stamp__price {
  font-size: 1.35rem;
  letter-spacing: 1px;
  text-transform: none;
}

.hero-stamp__note {
  font-size: 0.78rem;
  opacity: 0.8;
}

@keyframes heroNeonBlink {
  0%, 100% {
    opacity: 1;
    box-shadow:
      0 0 12px rgba(56, 189, 248, 0.7),
      0 0 24px rgba(56, 189, 248, 0.5),
      0 0 32px rgba(56, 189, 248, 0.35);
  }
  45% {
    opacity: 0.35;
    box-shadow:
      0 0 16px rgba(56, 189, 248, 0.4),
      0 0 28px rgba(56, 189, 248, 0.25),
      0 0 38px rgba(56, 189, 248, 0.2);
  }
}

@keyframes heroNeonGlow {
  0%, 100% {
    opacity: 0.7;
    box-shadow: 0 0 22px rgba(56, 189, 248, 0.35);
  }
  40% {
    opacity: 0.18;
    box-shadow: 0 0 26px rgba(56, 189, 248, 0.25);
  }
  70% {
    opacity: 0.95;
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.3);
  }
}

@media (max-width: 991.98px) {
  .hero-section .container {
    padding-left: 1rem;
  }
  .hero-stamp {
    position: relative;
    transform: translate(0, 0) rotate(-6deg);
    margin: 0 auto 1.5rem;
    left: 0;
    top: 0;
  }
}

.order-code-stamp-preview {
  position: absolute;
  bottom: 0.6rem;
  left: 0.6rem;
  max-width: 33%;
  min-width: 30%;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.16rem 0.28rem;
  font-size: min(2.2vw, 0.55rem);
  letter-spacing: 0.035rem;
  color: rgba(15, 23, 42, 0.85);
  background: rgba(255, 255, 255, 0.95);
  border-radius: 0.5rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  z-index: 3;
  pointer-events: none;
  flex-wrap: wrap;
  row-gap: 0.1rem;
  white-space: nowrap;
  overflow: hidden;
  justify-content: center;
  text-align: center;
  word-break: break-word;
  line-height: 1.05;
}

.order-code-stamp-preview[hidden] {
  display: none !important;
}

.order-code-stamp-preview span {
  text-transform: uppercase;
  opacity: 0.7;
}

.order-code-stamp-preview strong {
  font-weight: 700;
  color: rgba(244, 63, 94, 0.9);
  letter-spacing: 0.14rem;
}

.card-number-stamp {
  position: absolute;
  right: 0.6rem;
  bottom: 0.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.16rem 0.28rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.5rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  font-weight: 700;
  color: rgba(244, 63, 94, 0.9);
  font-size: min(2.2vw, 0.55rem);
  letter-spacing: 0.12rem;
  z-index: 3;
  pointer-events: none;
}

.card-number-stamp[hidden] {
  display: none !important;
}

.btn-gradient {
  background: linear-gradient(120deg, #7c3aed, #c026d3);
  border: none;
  color: #fff;
  box-shadow: 0 12px 30px rgba(124, 58, 237, 0.35);
}

.btn-gradient:hover {
  color: #fff;
  transform: translateY(-1px);
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
}

.btn-hero-secondary:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

.template-card {
  border-radius: 1.05rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: none;
  text-align: left;
  width: 100%;
  padding: 0;
}

.template-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.template-card__body {
  padding: 1rem;
}

.template-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.12);
}

.template-card.is-active {
  outline: 2px solid var(--primary);
  outline-offset: 0;
}

.template-card__figure {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.template-card__thumb {
  position: relative;
  padding: 0.75rem;
  background: linear-gradient(145deg, #f8fafc, #eef2ff);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.template-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.85rem;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
  background: #fff;
}

.template-card__thumb--upload {
  background: linear-gradient(135deg, #eef2ff, #f8fafc 45%, #ffffff);
  border: 1px dashed rgba(15, 23, 42, 0.16);
  justify-content: center;
  align-items: center;
}

.template-card__thumb--upload .upload-icon {
  position: relative;
  width: 90px;
  height: 90px;
  border-radius: 1rem;
  background: linear-gradient(145deg, rgba(124, 58, 237, 0.12), rgba(96, 165, 250, 0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08), 0 10px 24px rgba(15, 23, 42, 0.12);
}

.template-card__thumb--upload .upload-arrow {
  font-size: 2rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
  position: relative;
  top: -6px;
}

.template-card__thumb--upload .upload-tray {
  position: absolute;
  bottom: 18px;
  left: 50%;
  width: 46px;
  height: 10px;
  transform: translateX(-50%);
  border: 3px solid #0f172a;
  border-top: 0;
  border-radius: 0 0 10px 10px;
}

.template-card__meta {
  padding: 0.75rem 1rem 1rem;
}

.template-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1), rgba(124, 58, 237, 0.55));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 0.02em;
  opacity: 0;
  transition: opacity 0.2s ease;
  border-radius: 1rem;
}

.template-card.template-card--hover:hover .template-card__overlay,
.template-card.template-card--hover.is-active .template-card__overlay {
  opacity: 1;
}

#templatePagination {
  gap: 0.75rem;
}

@media (max-width: 575.98px) {
  #templatePagination {
    flex-direction: column;
    align-items: stretch;
  }
  #templatePagination > * {
    width: 100%;
  }
}

.builder-section {
  background: #fff;
}

@media (min-width: 992px) {
  .preview-column {
    position: sticky;
    top: 1rem;
    transform: none;
    align-self: flex-start;
  }
}

.control-panel .form-control-color {
  width: 3rem;
  height: 3rem;
  padding: 0;
}

.preview-wrapper {
  position: relative;
  width: 100%;
  min-height: 420px;
  background: #f8fafc;
  border-radius: 1rem;
  border: 1px dashed rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-canvas {
  position: relative;
  max-width: 100%;
  overflow: hidden;
}

.preview-canvas img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 25px 45px rgba(15, 23, 42, 0.18);
}

.grid-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  grid-template-columns: repeat(var(--grid-cols, 5), 1fr);
  grid-template-rows: repeat(var(--grid-rows, 4), 1fr);
  width: 45%;
  height: 35%;
  pointer-events: auto;
  font-weight: 600;
  font-size: clamp(1.4rem, 1.8vw, 2rem);
  color: #0f172a;
  background: transparent;
  user-select: none;
  touch-action: none;
}

.grid-overlay span {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 0;
  border-style: solid;
  border-color: transparent;
  background-color: transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, border-width 0.2s ease, border-radius 0.2s ease;
  overflow: hidden;
  filter: blur(0px); /* ajuste aqui se quiser reativar o desfoque */
}

.grid-overlay span img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Form helpers */
.form-check-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-right: 0.35rem;
  margin-bottom: 0.25rem;
}

#gridContentOptions {
  gap: 0.65rem;
}

.grid-overlay .resize-handle {
  position: absolute;
  width: 36px;
  height: 36px;
  right: -18px;
  bottom: -18px;
  border: none;
  background: rgba(15, 23, 42, 0.08);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
  cursor: se-resize;
  display: block;
  border-radius: 12px;
  touch-action: none;
}

.grid-overlay .resize-handle::before,
.grid-overlay .resize-handle::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.grid-overlay .resize-handle::before {
  right: 4px;
  bottom: 4px;
  border: 2px solid #0f172a;
  border-left: none;
  border-top: none;
  box-sizing: border-box;
}

.grid-overlay .resize-handle::after {
  display: none;
}

.draggable-text {
  position: absolute;
  padding: 0.25rem 0.5rem;
  background: transparent;
  border-radius: 0.5rem;
  font-weight: 600;
  border: 1px dashed transparent;
  min-width: 90px;
  text-align: center;
  user-select: none;
  touch-action: none;
  cursor: grab;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  z-index: 2;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.draggable-text.is-selected {
  border-color: var(--primary);
  box-shadow: 0 10px 22px rgba(124, 58, 237, 0.2);
}

.draggable-text .text-remove-btn {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: none;
  background: #111827;
  color: #fff;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  touch-action: none;
}

.draggable-text.is-selected .text-remove-btn {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.is-loading {
  opacity: 0.6;
  pointer-events: none;
}

.builder-section[hidden] {
  display: none !important;
}

.checkout-section[hidden] {
  display: none !important;
}

.checkout-card {
  background: #fff;
  border-radius: 1.2rem;
  padding: 2rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.order-item {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(241, 245, 249, 0.6);
  flex-wrap: nowrap;
}

.order-item__thumb {
  border-radius: 0.85rem;
  overflow: hidden;
  flex: 0 0 120px;
  width: 120px;
  aspect-ratio: 3 / 4;
  position: relative;
  background: #f8fafc;
}

.order-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.order-item__body {
  flex: 1;
}

.order-item__price {
  font-size: 1rem;
  color: #111827;
  flex-shrink: 0;
  white-space: nowrap;
}

.order-summary {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(15, 23, 42, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.order-summary div,
.order-summary__total {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.order-summary dt {
  margin: 0;
  font-weight: 600;
  color: #475569;
}

.order-summary dd {
  margin: 0;
  font-weight: 600;
  color: #0f172a;
}

.order-summary__total {
  padding-top: 0.75rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  font-size: 1.1rem;
}

#checkoutThumb[hidden] {
  display: none;
}

.payment-provider {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 1.1rem;
  padding: 1.5rem;
  background: #f8fafc;
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.payment-brick {
  min-height: 320px;
  border: 1px dashed rgba(15, 23, 42, 0.2);
  border-radius: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
  overflow-y: visible;
  min-height: 0;
}

.payment-brick > div {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 280px;
}

#paymentBrickPlaceholder {
  text-align: center;
  padding: 0.5rem;
}

#paymentBrick {
  width: 100%;
}

.pix-result {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 0.9rem;
  padding: 1rem;
  background: #f8fafc;
  width: 100%;
  box-sizing: border-box;
}

.pix-result__qr {
  width: 100%;
  max-width: 280px;
  border-radius: 0.5rem;
  display: block;
  margin: 0 auto;
}

.processing-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 2000;
}

.processing-overlay[hidden] {
  display: none !important;
}

.processing-overlay__dialog {
  background: rgba(15, 23, 42, 0.92);
  border-radius: 1.25rem;
  padding: 2rem;
  width: 100%;
  max-width: 360px;
  text-align: center;
  color: #f8fafc;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.45);
}

.processing-overlay__spinner {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
}

.processing-overlay__progress {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 0.75rem;
  padding: 0.75rem;
  margin: 0 auto 1rem;
  text-align: left;
}

.processing-overlay__progress .progress {
  height: 0.9rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.processing-overlay__progress .progress-bar {
  background: linear-gradient(90deg, #22c55e, #22d3ee);
  color: #0f172a;
  font-weight: 700;
  font-size: 0.75rem;
  transition: width 0.2s ease;
}

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  width: min(960px, calc(100% - 2rem));
  background: #0f172a;
  color: #f8fafc;
  border-radius: 1rem;
  padding: 1.1rem 1.25rem;
  box-shadow: 0 22px 45px rgba(5, 9, 20, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem 1.25rem;
  align-items: center;
  z-index: 3100;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner.is-hidden {
  opacity: 0;
  transform: translate(-50%, 10px);
  pointer-events: none;
}

.cookie-banner__title {
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.cookie-banner__description {
  margin: 0;
  color: #cbd5e1;
  font-size: 0.95rem;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.cookie-banner .btn {
  font-weight: 700;
  box-shadow: none;
}

.cookie-banner .btn-light {
  color: #0f172a;
}

.floating-whatsapp {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  text-decoration: none;
  z-index: 3000;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.25));
  transition: filter 0.2s ease;
}

.floating-whatsapp__label {
  background: #ffffff;
  color: #111827;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0;
  border-radius: 0.85rem;
  border: 2px solid #25D366;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  max-width: 0;
  text-align: right;
  opacity: 0;
  transform: translateX(12px);
  pointer-events: none;
  overflow: hidden;
  transition: all 0.2s ease;
}

.floating-whatsapp__label strong {
  color: #16a34a;
}

.floating-whatsapp__icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: #25D366;
  border-radius: 50%;
  color: #fff;
  flex-shrink: 0;
  position: relative;
}

.floating-whatsapp__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: inherit;
  text-decoration: none;
}

.floating-whatsapp:hover .floating-whatsapp__label,
.floating-whatsapp:focus-within .floating-whatsapp__label {
  opacity: 1;
  transform: translateX(0);
  padding: 0.5rem 0.75rem;
  max-width: 320px;
  pointer-events: auto;
}

.floating-whatsapp__close {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  font-size: 0.95rem;
  line-height: 1;
  transition: background 0.15s ease, transform 0.15s ease;
  margin-bottom: 0.2rem;
  align-self: flex-end;
}

.floating-whatsapp__close:hover {
  background: rgba(0, 0, 0, 0.4);
  transform: translateY(-1px);
}

.table-blur tbody td {
  filter: blur(3px);
}

.floating-whatsapp__icon svg {
  display: block;
}

.site-footer .footer-bar {
  background: radial-gradient(circle at top, rgba(124, 58, 237, 0.35), rgba(14, 165, 233, 0.25)), var(--bg-dark);
  color: #fff;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -12px 30px rgba(5, 9, 20, 0.35);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.section-header__titles {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.section-kicker {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 0.8rem;
  color: #6366f1;
  margin-bottom: 0;
}

.section-header__cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#pageContent {
  display: block;
}

.floating-whatsapp__bubble {
  background: #fff;
  color: #111827;
  font-weight: 700;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 4px solid #25D366;
  border-left: none;
  margin-left: -8px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
}

.floating-whatsapp__bubble strong {
  color: #16a34a;
}

@media (max-width: 575.98px) {
  .cookie-banner {
    grid-template-columns: 1fr;
    padding: 1rem;
    bottom: 0.75rem;
    width: calc(100% - 1.5rem);
  }

  .cookie-banner__actions {
    justify-content: flex-start;
  }

  .floating-whatsapp {
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .floating-whatsapp__label {
    font-size: 0.85rem;
    padding: 0.45rem 0.7rem;
    max-width: 240px;
  }

  .floating-whatsapp__icon {
    width: 52px;
    height: 52px;
  }

}

@media (max-width: 991.98px) {
  .preview-wrapper {
    min-height: 320px;
  }

  .grid-overlay {
    width: 65%;
    height: 40%;
  }

  .checkout-card {
    padding: 1.5rem;
  }

  .payment-provider {
    padding: 1.25rem;
  }
}

@media (max-width: 767.98px) {
  .grid-overlay {
    font-size: clamp(1.2rem, 5vw, 1.6rem);
  }

  .grid-overlay .resize-handle {
    width: 44px;
    height: 44px;
    right: -22px;
    bottom: -22px;
  }
}

@media (max-width: 575.98px) {
  .template-card__body {
    padding: 0.75rem;
  }

  .control-panel .form-control-color {
    width: 2.5rem;
    height: 2.5rem;
  }

  .checkout-card {
    padding: 1.25rem;
  }

  .order-item {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .order-item__thumb {
    flex: 0 0 96px;
    width: 96px;
    aspect-ratio: 3 / 4;
    max-width: 30%;
  }

  .order-item__body {
    flex: 1 1 calc(100% - 120px);
    min-width: 180px;
  }

  .order-item__price {
    align-self: center;
    font-size: 0.95rem;
    margin-left: auto;
  }

  .payment-provider {
    padding: 1rem;
    overflow: visible;
    gap: 0.5rem;
    align-items: stretch;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
  }

  .payment-brick {
    min-height: 0;
    padding: 0.5rem;
    overflow-x: auto;
    overflow-y: visible;
    align-items: flex-start;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
  }

  .pix-result {
    padding: 0.75rem;
  }

  .order-code-stamp-preview {
    max-width: 33%;
    min-width: 30%;
    font-size: min(3vw, 0.52rem);
    letter-spacing: 0.03rem;
    padding: 0.14rem 0.24rem;
  }

  .order-code-stamp-preview strong {
    letter-spacing: 0.06rem;
  }
}
