.emtd-wrap{
  --em-yellow:#FBBB00;
  --em-dark:#1f2933;
  --em-muted:#68717b;
  --em-border:#e4e7eb;
  --em-bg:#f7f8fa;
  font-family:inherit;
  color:var(--em-dark);
  width:100%;
}
.emtd-designer{
  display:grid;
  grid-template-columns:minmax(280px,380px) minmax(0,1fr);
  gap:28px;
  align-items:start;
}
.emtd-controls,
.emtd-preview,
.emtd-quote{
  border:1px solid var(--em-border);
  border-radius:16px;
  background:#fff;
  box-shadow:0 8px 28px rgba(31,41,51,.06);
}
.emtd-controls{padding:24px}
.emtd-preview{padding:20px}
.emtd-quote{padding:26px;margin-top:28px}
.emtd-wrap h3{margin:0 0 18px;font-size:22px;line-height:1.2}
.emtd-control-group{margin-bottom:20px}
.emtd-control-group>label,
.emtd-form-grid label{
  display:block;
  font-weight:700;
  font-size:14px;
  margin-bottom:8px;
}
.emtd-control-group small{display:block;color:var(--em-muted);margin-top:7px}
.emtd-swatches{display:flex;gap:9px;flex-wrap:wrap;align-items:center}
.emtd-swatch,
.emtd-custom-color{
  width:34px;height:34px;border-radius:50%;
  border:2px solid #d8dde3;
  cursor:pointer;
  box-shadow:inset 0 0 0 2px rgba(255,255,255,.55);
  box-sizing:border-box;
}
.emtd-swatch{background:var(--swatch)}
.emtd-swatch.is-active{
  outline:3px solid var(--em-yellow);
  outline-offset:2px;
}
.emtd-custom-color{
  position:relative;
  display:grid;
  place-items:center;
  overflow:hidden;
  background:conic-gradient(#f33,#ff0,#0f6,#09f,#72f,#f3a,#f33);
  font-weight:900;
  color:#fff;
  text-shadow:0 1px 2px #000;
}
.emtd-custom-color span{position:relative;z-index:2;pointer-events:none}
.emtd-shirt-color{
  position:absolute!important;
  inset:-8px;
  width:52px!important;
  height:52px!important;
  opacity:0;
  cursor:pointer;
}
.emtd-wrap input[type="text"],
.emtd-wrap input[type="email"],
.emtd-wrap input[type="tel"],
.emtd-wrap input[type="number"],
.emtd-wrap textarea,
.emtd-wrap input[type="file"]{
  width:100%;
  box-sizing:border-box;
  border:1px solid #cfd5dc;
  border-radius:9px;
  padding:11px 12px;
  background:#fff;
  font:inherit;
}
.emtd-inline{display:grid;grid-template-columns:1fr 50px;gap:8px;margin-bottom:9px}
.emtd-btn{
  appearance:none;
  border:0;
  border-radius:9px;
  padding:12px 16px;
  font:inherit;
  font-weight:800;
  cursor:pointer;
  background:var(--em-yellow);
  color:#161616;
  transition:transform .12s ease,opacity .12s ease;
}
.emtd-btn:hover{transform:translateY(-1px)}
.emtd-btn:disabled{opacity:.6;cursor:wait;transform:none}
.emtd-btn-light{background:#eef1f4;font-weight:700}
.emtd-actions{display:flex;gap:8px;flex-wrap:wrap}
.emtd-tip{
  margin:5px 0 0;
  padding:12px;
  border-radius:9px;
  background:#fff8d8;
  font-size:13px;
  color:#554b1b;
}
.emtd-preview-title{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:15px;
}
.emtd-preview-title span{
  font-size:12px;color:var(--em-muted);
  background:var(--em-bg);
  padding:6px 9px;border-radius:999px;
}
.emtd-side-switch{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  max-width:360px;
  margin:0 auto 12px;
}
.emtd-side-btn{
  border:1px solid #d8dde3;
  background:#fff;
  border-radius:999px;
  padding:9px 14px;
  font:inherit;
  font-weight:800;
  cursor:pointer;
}
.emtd-side-btn.is-active{
  background:var(--em-dark);
  color:#fff;
  border-color:var(--em-dark);
}
.emtd-canvas-shell{
  width:100%;
  max-width:560px;
  margin:0 auto;
  overflow:hidden;
  border-radius:12px;
  background:linear-gradient(135deg,#f5f6f7,#fff);
  border:1px solid #edf0f2;
  display:flex;
  align-items:flex-start;
  justify-content:center;
}
.emtd-canvas-shell canvas{display:block;max-width:100%}
.emtd-mobile-hint{display:none}
.emtd-form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}
.emtd-form-grid label{margin:0}
.emtd-form-grid label input,
.emtd-form-grid label textarea{margin-top:7px}
.emtd-full{grid-column:1/-1}
.emtd-check{
  display:flex;
  align-items:flex-start;
  gap:9px;
  margin:18px 0;
  font-weight:600;
}
.emtd-check input{margin-top:4px}
.emtd-status{
  min-height:24px;
  margin-top:12px;
  font-weight:700;
}
@media (max-width:900px){
  .emtd-designer{grid-template-columns:1fr;gap:16px}
  .emtd-preview{
    order:1;
    position:sticky;
    top:8px;
    z-index:20;
    padding:12px;
    box-shadow:0 10px 28px rgba(31,41,51,.14);
  }
  .emtd-controls{order:2}
  .emtd-preview-title h3{font-size:18px;margin-bottom:8px}
  .emtd-preview-title span{font-size:10px;padding:4px 7px}
  .emtd-side-switch{margin-bottom:8px}
  .emtd-side-btn{padding:7px 10px;font-size:13px}
  .emtd-mobile-hint{display:block;text-align:center;color:var(--em-muted);font-size:11px;margin-top:5px}
}
@media (max-width:600px){
  .emtd-controls,.emtd-preview,.emtd-quote{padding:14px;border-radius:12px}
  .emtd-form-grid{grid-template-columns:1fr}
  .emtd-full{grid-column:auto}
  .emtd-preview-title{display:flex;align-items:center}
  .emtd-preview-title span{max-width:140px;text-align:center}
  .emtd-actions{display:grid;grid-template-columns:1fr}
  .emtd-actions .emtd-btn{width:100%}
  .emtd-wrap h3{font-size:20px}
}

.emtd-selected-color{display:block;margin-top:10px;color:var(--em-muted);font-size:13px}.emtd-selected-color strong{color:var(--em-dark)}




/* Entrega */
.emtd-field-title{
  font-weight:700;
  font-size:14px;
  margin-bottom:8px;
}
.emtd-delivery-options{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.emtd-delivery-card{
  display:flex!important;
  align-items:flex-start;
  gap:10px;
  margin:0!important;
  padding:14px;
  border:1px solid #cfd5dc;
  border-radius:11px;
  background:#fff;
  cursor:pointer;
  transition:border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.emtd-delivery-card:hover{
  border-color:#9da7b1;
}
.emtd-delivery-card.is-active{
  border-color:var(--em-yellow);
  box-shadow:0 0 0 2px rgba(251,187,0,.18);
  background:#fffdf5;
}
.emtd-delivery-card input{
  margin-top:3px;
  accent-color:#FBBB00;
}
.emtd-delivery-card span{
  display:block;
}
.emtd-delivery-card strong{
  display:block;
  margin-bottom:3px;
}
.emtd-delivery-card small{
  display:block;
  color:var(--em-muted);
  font-weight:400;
  line-height:1.35;
}
.emtd-shipping-fields{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-top:12px;
}
.emtd-shipping-fields[hidden]{
  display:none!important;
}

/* Botón y mensaje final */
.emtd-send{
  margin-top:18px;
}
.emtd-btn.is-success{
  background:#1f9d55!important;
  color:#fff!important;
}
.emtd-btn.is-error{
  background:#b42318!important;
  color:#fff!important;
}
.emtd-status.is-success{
  color:#177245;
}
.emtd-status.is-error{
  color:#b42318;
}

@media (max-width:600px){
  .emtd-delivery-options,
  .emtd-shipping-fields{
    grid-template-columns:1fr;
  }
}


.emtd-text-color-block{
  margin:12px 0 12px;
  padding:12px;
  border:1px solid var(--em-border);
  border-radius:10px;
  background:#fafbfc;
}
.emtd-mini-label{
  display:block;
  font-size:13px;
  font-weight:700;
  margin-bottom:8px;
}
.emtd-text-swatches{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom:8px;
}
.emtd-text-swatch{
  width:30px;
  height:30px;
  border-radius:50%;
  background:var(--swatch);
  border:2px solid #d8dde3;
  cursor:pointer;
  box-shadow:inset 0 0 0 2px rgba(255,255,255,.45);
}
.emtd-text-swatch.is-active{
  outline:3px solid var(--em-yellow);
  outline-offset:2px;
}
.emtd-selected-text-color{
  display:block;
  color:var(--em-muted);
  margin-top:4px;
}
.emtd-print-note{
  display:block;
  margin-top:6px;
  color:#6c6552;
  line-height:1.4;
}
