.etx-configurator {
  --cream: #f5f0e8;
  --warm-white: #fdfaf5;
  --dark: #1a1410;
  --brown: #3d2b1f;
  --gold: #c9952a;
  --gold-light: #e8c96a;
  --muted: #7a6a5a;
  --border: #d4c5b0;
  --card: #fffdf9;
  --shadow: rgba(61, 43, 31, 0.12);
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--cream);
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(196, 177, 155, 0.12) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(196, 177, 155, 0.12) 40px);
  color: var(--dark);
  font-family: "DM Sans", Arial, sans-serif;
  box-shadow: 0 12px 36px rgba(61, 43, 31, 0.14);
}

.etx-configurator *,
.etx-configurator *::before,
.etx-configurator *::after {
  box-sizing: border-box;
}

.etx-configurator__hero {
  border-top: 3px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  background: var(--brown);
  color: var(--cream);
  padding: 36px 20px 30px;
  text-align: center;
}

.etx-hero-title {
  display: block;
  margin-bottom: 8px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 400;
}

.etx-hero-title em {
  color: var(--gold-light);
}

.etx-hero-sub {
  display: block;
  max-width: 560px;
  margin: 0 auto;
  color: rgba(245, 240, 232, 0.72);
  font-size: 14px;
  font-weight: 300;
}

.etx-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 14px;
  align-items: start;
}

.preview-col {
  position: sticky;
  top: 92px;
}

.card,
.summary-card,
.price-card,
.price-na,
.notice-list {
  margin-bottom: 16px;
  border-radius: 8px;
}

.card {
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: 0 2px 10px var(--shadow);
  padding: 22px;
}

.card.is-disabled {
  opacity: 0.68;
}

.section-head {
  display: flex;
  align-items: center;
  margin: 0 0 16px;
  color: var(--brown);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 17px;
  font-weight: 400;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--dark);
  flex-shrink: 0;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
}

.type-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.type-btn {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  min-width: 0;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--warm-white);
  color: var(--brown);
  cursor: pointer;
  padding: 8px;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s, transform 0.2s;
}

.type-btn:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
}

.type-btn.active {
  border-color: var(--gold);
  background: #fffbf0;
  box-shadow: 0 0 0 3px rgba(201, 149, 42, 0.18);
}

.type-img {
  position: relative;
  display: block;
  width: 100%;
  height: 112px;
  overflow: hidden;
  border-radius: 5px;
  background: #fffdf0;
}

.type-img::before,
.type-img::after {
  position: absolute;
  content: "";
}

.type-img::before {
  left: 14%;
  right: 14%;
  top: 38%;
  height: 28%;
  border: 1px solid rgba(61, 43, 31, 0.18);
  background:
    repeating-linear-gradient(45deg, rgba(201, 149, 42, 0.24) 0 2px, transparent 2px 8px),
    linear-gradient(90deg, #1a1410, #3d2b1f);
  box-shadow: 0 8px 20px rgba(61, 43, 31, 0.18);
}

.type-img--ends::after {
  top: 36%;
  left: 14%;
  right: 14%;
  height: 30%;
  background: rgba(245, 240, 232, 0.52);
  background: linear-gradient(
    90deg,
    rgba(245, 240, 232, 0.52) 0 14%,
    transparent 14% 86%,
    rgba(245, 240, 232, 0.52) 86% 100%
  );
}

.type-img--middle::before {
  left: 34%;
  right: 34%;
  top: 18%;
  height: 64%;
}

.type-img--middle::after {
  left: 50%;
  top: 18%;
  height: 64%;
  border-left: 1px dashed rgba(232, 201, 106, 0.9);
}

.type-label {
  display: block;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.5px;
  line-height: 1.25;
  text-transform: uppercase;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.form-group {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
}

.field-label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.etx-configurator select,
.etx-configurator input[type="text"],
.etx-configurator input[type="email"],
.etx-configurator input[type="tel"],
.etx-configurator input:not([type]) {
  width: 100%;
  min-height: 42px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  background: var(--warm-white);
  color: var(--dark);
  font: inherit;
  font-size: 14px;
  padding: 9px 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.etx-configurator select:focus,
.etx-configurator input:focus {
  border-color: var(--gold);
  outline: none;
  box-shadow: 0 0 0 3px rgba(201, 149, 42, 0.14);
}

.etx-configurator select:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.dim-note,
.graphic-copy {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.notice {
  margin: 10px 0 0;
  border: 1px solid #e8d890;
  border-radius: 6px;
  background: #fffbf0;
  color: #7a6020;
  font-size: 12px;
  line-height: 1.5;
  padding: 10px 12px;
}

.notice-info {
  border-color: #eadfcf;
  background: #fff;
  color: var(--brown);
}

.num-colors-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.num-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 2px solid var(--border);
  border-radius: 6px;
  background: var(--warm-white);
  color: var(--brown);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.num-btn:hover {
  border-color: var(--gold);
}

.num-btn.active {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--dark);
}

.upload-formats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
}

.upload-formats span {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff7e8;
  color: var(--brown);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 5px 9px;
}

.upload-box {
  display: grid;
  gap: 6px;
  margin: 12px 0;
  border: 1.5px dashed var(--border);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.upload-title {
  color: var(--brown);
  font-weight: 700;
}

.upload-desc {
  color: var(--muted);
  font-size: 12px;
}

.etx-configurator input[type="file"] {
  display: block;
  width: 100%;
  max-width: 100%;
  color: var(--muted);
}

.graphic-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.graphic-action-btn {
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 8px 11px;
  min-height: 74px;
  min-width: 0;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(61, 43, 31, 0.08);
  cursor: pointer;
  padding: 13px 14px;
  text-align: left;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.graphic-action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(61, 43, 31, 0.13);
}

.graphic-action-btn span {
  grid-row: span 2;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
}

.graphic-action-btn strong,
.graphic-action-btn small {
  overflow-wrap: anywhere;
}

.graphic-action-btn strong {
  color: inherit;
  font-size: 14px;
}

.graphic-action-btn small {
  color: inherit;
  opacity: 0.76;
}

.graphic-mail-btn {
  background: #fff;
  color: var(--brown);
}

.graphic-mail-btn:hover {
  border-color: var(--gold);
}

.graphic-mail-btn span {
  background: #2f6f9f;
  color: white;
}

.graphic-whatsapp-btn {
  border-color: rgba(37, 211, 102, 0.35);
  background: #25d366;
  color: white;
}

.graphic-whatsapp-btn:hover {
  border-color: #1fa855;
}

.graphic-whatsapp-btn span {
  background: rgba(0, 0, 0, 0.18);
}

.etx-consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 12px;
}

.etx-consent input {
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
}

.summary-card {
  background: var(--dark);
  color: var(--cream);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
  padding: 20px 18px;
}

.summary-title {
  margin: 0 0 12px;
  color: var(--gold-light);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 18px;
  font-weight: 400;
}

.summary-list {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
}

.summary-list div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 7px;
}

.summary-list dt {
  color: rgba(245, 240, 232, 0.54);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.summary-list dd {
  margin: 0;
  color: var(--cream);
  font-size: 13px;
  font-weight: 700;
  text-align: right;
}

.summary-card p {
  margin: 0;
  color: rgba(245, 240, 232, 0.68);
  font-size: 12px;
  line-height: 1.5;
}

.price-card {
  background: linear-gradient(135deg, #d4a030 0%, #8a5c10 100%);
  color: var(--dark);
  padding: 20px 22px;
}

.price-card .label {
  margin: 0 0 3px;
  font-size: 10px;
  letter-spacing: 2px;
  opacity: 0.65;
  text-transform: uppercase;
}

.price-main {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 14px;
}

.price-main .big {
  color: #fff;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
}

.price-main .unit {
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 500;
}

.price-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.price-item {
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.15);
  padding: 7px 10px;
}

.pi-label {
  display: block;
  color: rgba(255, 255, 255, 0.65);
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.price-item strong {
  display: block;
  margin-top: 2px;
  color: #fff;
  font-size: 13px;
}

.qty-price-table {
  margin-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 12px;
}

.qty-price-table-title {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.qty-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 5px;
  margin-bottom: 3px;
  padding: 5px 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
}

.qty-price-row strong {
  color: #fff;
  font-size: 13px;
}

.price-na {
  border: 2px solid var(--gold);
  background: #f5f0e8;
  padding: 18px 20px;
  text-align: center;
}

.price-na-title {
  display: block;
  margin-bottom: 6px;
  color: var(--brown);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 17px;
  font-weight: 400;
}

.price-na p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.notice-list {
  display: grid;
  gap: 8px;
  border: 1px solid #e8d890;
  background: #fffbf0;
  color: #7a6020;
  padding: 12px;
}

.notice-list p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  background: var(--brown);
  color: var(--cream);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 14px;
  transition: background 0.2s, transform 0.2s;
}

.btn-primary:hover {
  background: var(--dark);
  transform: translateY(-1px);
}

.etx-configurator__status {
  min-height: 1.5em;
  color: var(--brown);
  font-weight: 700;
  margin: 10px 0 0;
}

@media (max-width: 920px) {
  .etx-main {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px 12px;
  }

  .preview-col {
    position: static;
  }
}

@media (max-width: 620px) {
  .card {
    padding: 16px;
  }

  .type-grid,
  .form-row,
  .graphic-actions,
  .price-breakdown {
    grid-template-columns: 1fr;
  }

  .type-img {
    height: 96px;
  }

  .summary-list div {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .summary-list dd {
    text-align: left;
  }
}
