/* Shirt controls: independent artwork for each print area and precise adjustments. */
/* Marker selection changes colour, never position or size. */
#pd-body-tshirt .pd-hotspots { z-index: 4; }
#pd-body-tshirt .pd-hotspot-dot,
#pd-body-tshirt .pd-hotspot.has-logo.is-active .pd-hotspot-dot {
  width: 28px;
  height: 28px;
  transform: none;
  transition: background .15s ease, border-color .15s ease;
}
#pd-body-tshirt .pd-hotspot.is-active .pd-hotspot-dot::after {
  animation: none;
  transform: none;
  opacity: .45;
  inset: -4px;
}
@media (max-width: 480px) {
  #pd-body-tshirt .pd-hotspot-dot,
  #pd-body-tshirt .pd-hotspot.has-logo.is-active .pd-hotspot-dot {
    width: 32px;
    height: 32px;
  }
}
#pd-body-tshirt .pd-slider {
  display: flex !important;
  flex-direction: column;
  align-items: stretch !important;
  gap: 9px !important;
  min-width: 0;
  margin: 16px 0;
}
#pd-body-tshirt .pd-slider-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}
#pd-body-tshirt .pd-slider-head > label {
  font-size: 12px;
  line-height: 1.4;
  margin: 0;
  color: var(--cl-ink-soft);
}
#pd-body-tshirt .pd-adjust-stepper {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  border: 1px solid #c6cbd0;
  border-radius: 3px;
  background: #fff;
  overflow: hidden;
}
#pd-body-tshirt .pd-adjust-stepper button {
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0;
  min-width: 36px;
  width: 36px;
  height: 38px;
  background: var(--cl-bg-soft);
  color: var(--cl-accent);
  font-size: 20px;
  padding: 0;
  box-shadow: none;
}
#pd-body-tshirt .pd-adjust-stepper button:disabled {
  opacity: .35;
  cursor: default;
}
#pd-body-tshirt .pd-adjust-stepper input[type=number] {
  appearance: textfield;
  -moz-appearance: textfield;
  border: 0;
  border-radius: 0;
  width: 44px !important;
  min-width: 0 !important;
  height: 38px;
  min-height: 0 !important;
  text-align: center;
  padding: 4px 0;
  background: #fff;
  font-size: 14px;
  color: var(--cl-ink);
  box-shadow: none;
}
#pd-body-tshirt .pd-adjust-stepper input::-webkit-inner-spin-button,
#pd-body-tshirt .pd-adjust-stepper input::-webkit-outer-spin-button {
  appearance: none;
  margin: 0;
}
#pd-body-tshirt .pd-adjust-stepper > span {
  font-size: 11px;
  min-width: 10px;
  color: var(--cl-ink-soft);
  padding-right: 5px;
}
#pd-body-tshirt .pd-slider > input[type=range] {
  width: 100%;
  min-width: 0;
  margin: 0;
  min-height: 30px;
  accent-color: var(--cl-accent);
  touch-action: pan-y;
}
#pd-body-tshirt .pd-position-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 16px 0;
}
#pd-body-tshirt .pd-position-actions button {
  min-height: 40px;
  font-size: 12px;
  line-height: 1.35;
  background: var(--cl-bg-soft);
  color: var(--cl-accent);
  border: 1px solid var(--cl-line);
  padding: 8px;
  border-radius: 3px;
}
#pd-body-tshirt .pd-position-actions button:disabled {
  opacity: .4;
  cursor: default;
}

/* Permanent upload entry points keep each print area clearly separate. */
#pd-body-tshirt .pd-shirt-zones-help {
  font-size: 13px;
  line-height: 1.6;
  color: var(--cl-ink-soft);
  margin: 0 0 16px;
}
.pd-designer-page #pd-zone-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}
#pd-body-tshirt .pd-shirt-zone {
  min-width: 0;
  border: 1px solid var(--cl-line);
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
}
#pd-body-tshirt .pd-shirt-zone.is-active {
  border-color: var(--cl-accent);
  box-shadow: inset 0 0 0 1px var(--cl-accent);
}
.pd-designer-page #pd-zone-tabs .pd-tab {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 94px;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 0;
  margin: 0;
  padding: 12px 10px;
  color: var(--cl-ink);
  white-space: normal;
}
.pd-designer-page #pd-zone-tabs .pd-tab::after { display: none; }
#pd-body-tshirt .pd-shirt-zone.is-active .pd-tab { background: var(--pd-sel-bg, #edf0ff) !important; }
#pd-body-tshirt .pd-shirt-zone-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 44px;
  flex-shrink: 0;
}
#pd-body-tshirt .pd-shirt-zone-preview svg { width: 40px; height: 40px; }
#pd-body-tshirt .pd-shirt-zone-preview svg [fill="#01696e"] { fill: var(--cl-accent); }
#pd-body-tshirt .pd-shirt-zone-preview img {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--cl-bg-soft);
}
#pd-body-tshirt .pd-shirt-zone-copy { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
#pd-body-tshirt .pd-shirt-zone-copy strong { font-size: 13px; line-height: 1.3; font-weight: 700; }
#pd-body-tshirt .pd-shirt-zone-state { font-size: 11px; line-height: 1.35; color: var(--cl-ink-soft); }
#pd-body-tshirt .pd-shirt-zone.has-logo .pd-shirt-zone-state { color: var(--cl-accent); }
#pd-body-tshirt .pd-shirt-zone-upload .pd-shirt-upload-button {
  border: 0;
  border-top: 1px solid var(--cl-line);
  border-radius: 0;
  background: #fff;
  width: 100%;
  min-height: 44px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--cl-accent);
  font-weight: 600;
  padding: 9px 5px;
}
#pd-body-tshirt .pd-shirt-upload-button:disabled { color: var(--cl-ink-soft); opacity: .6; cursor: wait; }
#pd-body-tshirt .pd-shirt-upload-button:focus-visible,
#pd-body-tshirt .pd-shirt-zone .pd-tab:focus-visible { outline: 3px solid var(--cl-accent); outline-offset: -4px; }
#pd-body-tshirt .pd-shirt-zone-heading {
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0;
  margin: 18px 0 10px;
  color: var(--cl-ink);
}
#pd-body-tshirt .pd-shirt-upload > .pd-shirt-upload-button {
  width: 100%;
  min-height: 46px;
  padding: 12px;
  font-size: 13px;
  border: 1px solid var(--cl-accent);
  border-radius: 3px;
  color: #fff;
  background: var(--cl-accent);
  font-weight: 600;
  line-height: 1.4;
}
#pd-body-tshirt .pd-logo-card > .pd-shirt-upload { margin: 12px 0; }
#pd-body-tshirt .pd-logo-card > .pd-shirt-upload > .pd-shirt-upload-button { background: #fff; color: var(--cl-accent); }
#pd-body-tshirt .pd-shirt-upload-help { font-size: 11px; line-height: 1.6; color: var(--cl-ink-soft); margin: 10px 0 18px; }
#pd-body-tshirt .pd-shirt-upload-status { padding: 12px; background: var(--pd-sel-bg, #edf0ff); font-size: 13px; color: var(--cl-accent); border-left: 3px solid var(--cl-accent); }
#pd-body-tshirt .pd-shirt-zone-announcement { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pd-designer-page #pd-zone-body .pd-remove { width: 40px; height: 40px; display: grid; place-items: center; padding: 8px; flex-shrink: 0; }

#pd-body-tshirt .pd-swatch:focus-visible { outline: 3px solid var(--cl-accent); outline-offset: 4px; }
#pd-body-tshirt .pd-swatch.is-active { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--cl-accent); }
.cl-selected-colour { font-size: 12px; color: var(--cl-ink-soft); line-height: 1.5; margin: 12px 0 0; }
.cl-editor-shortcuts { display: none; }

@media (max-width: 860px) {
  /* CamisetaLab's header scrolls with the page, so shortcuts stick at the viewport edge. */
  .cl-editor-shortcuts {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 9;
    background: #fff;
    border-block: 1px solid var(--cl-line);
    gap: 0;
    padding-inline: 8px;
  }
  .cl-editor-shortcuts button {
    flex: 1;
    min-width: 0;
    min-height: 46px;
    border: 0;
    background: #fff;
    color: var(--cl-accent);
    font-size: 12px;
    padding: 10px 5px;
    font-weight: 600;
    border-radius: 0;
  }
  .cl-editor-shortcuts button:hover,
  .cl-editor-shortcuts button:focus-visible { background: var(--pd-sel-bg, #edf0ff); }
  #pd-body-tshirt .pd-section { scroll-margin-top: 60px; }
  #pd-body-tshirt #pd-canvas-wrap { scroll-margin-top: 0; }
  #pd-body-tshirt .pd-adjust-stepper button { width: 44px; min-width: 44px; height: 44px; }
  #pd-body-tshirt .pd-adjust-stepper input[type=number] { height: 44px; font-size: 16px; }
  #pd-body-tshirt .pd-slider > input[type=range] { min-height: 44px; }
  #pd-body-tshirt .pd-position-actions button { min-height: 44px; }
  #pd-body-tshirt .pd-slider-head > label { max-width: calc(100% - 145px); }
  .pd-designer-page #pd-zone-tabs .pd-tab { min-height: 86px; }
  #pd-body-tshirt .pd-shirt-zone-copy strong { font-size: 14px; }
  .pd-designer-page #pd-zone-body .pd-remove { width: 44px; height: 44px; }
  #pd-body-tshirt .pd-swatch,
  #pd-body-tshirt .pd-swatch-mas { width: 44px; height: 44px; min-width: 44px; flex-shrink: 0; border-radius: 3px; }
  #pd-body-tshirt .pd-colors,
  #pd-body-tshirt .pd-swatches { gap: 8px; }
  #pd-body-tshirt .pd-swatch:hover { transform: none; }
  #pd-body-tshirt .pd-step,
  #pd-body-tshirt .pd-hotspot,
  .pd-designer-page .pd-back,
  .pd-designer-page .pd-cart-btn { width: 44px; height: 44px; min-width: 44px; min-height: 44px; }
  #pd-body-tshirt .pd-stepper input { min-height: 44px; }
  #pd-body-tshirt .pd-hotspot { display: flex; align-items: center; justify-content: center; }
  #pd-body-tshirt .pd-hotspot[hidden] { display: none; }
  #pd-body-tshirt .pd-chip,
  #pd-body-tshirt .pd-btn { min-height: 44px; }
  .pd-designer-page .pd-overlay:not(.pd-en-chooser) .pd-topbar-actions {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr) 44px;
  }
  .pd-designer-page .pd-topbar-actions .pd-btn {
    min-width: 0;
    min-height: 46px;
    padding-inline: 8px;
    white-space: normal;
    line-height: 1.3;
  }
  .pd-designer-page .pd-topbar-actions .pd-cart-btn { width: 44px; min-width: 44px; }
  .pd-designer-page .pd-overlay.pd-static { padding-bottom: calc(116px + env(safe-area-inset-bottom, 0px)); }
  .pd-designer-page .pd-overlay.pd-static.pd-en-chooser { padding-bottom: 0; }
  /* Keep native page zoom while preventing automatic form zoom on iPhones. */
  #pd-body-tshirt .pd-panel input:not([type=range]):not([type=color]):not([type=checkbox]):not([type=file]),
  #pd-body-tshirt .pd-panel select,
  #pd-body-tshirt .pd-panel textarea,
  .pd-designer-page .pd-proy-campo input { font-size: 16px; min-height: 44px; }
  .pd-pr-modal-overlay:has(.pd-tpl-modal) .pd-pr-modal-close,
  .pd-pr-modal-overlay:has(.pd-tpl-edit-modal) .pd-pr-modal-close,
  .pd-designer-page .pd-proy-box .pd-close { width: 44px; height: 44px; min-width: 44px; min-height: 44px; }
  .pd-tpl-modal .pd-tpl-upload-link,
  .pd-tpl-modal .pd-tpl-chips .pd-chip { min-height: 44px; }
}

@media (max-width: 360px) {
  .pd-designer-page #pd-zone-tabs .pd-tab { padding: 10px 7px; gap: 6px; }
  #pd-body-tshirt .pd-shirt-zone-preview { width: 32px; }
  #pd-body-tshirt .pd-shirt-zone-copy strong { font-size: 12px; }
  #pd-body-tshirt .pd-shirt-zone-state { font-size: 10px; }
}
