.rnec-customizer {
  --rnec-accent: #5954d6;
  --rnec-accent-dark: #4338ca;
  --rnec-ink: #111827;
  --rnec-muted: #64748b;
  --rnec-line: #dfe3ea;
  --rnec-panel: #f4f5f7;
  clear: both;
  color: var(--rnec-ink);
  font-family: inherit;
  margin: 18px 0;
  width: 100%;
}

.rnec-customizer *,
.rnec-customizer *::before,
.rnec-customizer *::after { box-sizing: border-box; }

.rnec-customizer button,
.rnec-customizer input,
.rnec-customizer select { font: inherit; }

.rnec-customizer [hidden] { display: none !important; }

.rnec-launch-card {
  align-items: center;
  background: linear-gradient(135deg, #f5f6f8 0%, #eceef2 100%);
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: var(--rnec-ink);
  cursor: pointer;
  display: flex;
  gap: 13px;
  min-height: 88px;
  padding: 15px 18px;
  text-align: left;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
  width: 100%;
}

.rnec-launch-card:hover {
  border-color: #c7c9f8;
  box-shadow: 0 12px 30px rgba(31, 41, 55, .11);
  transform: translateY(-1px);
}

.rnec-launch-icon,
.rnec-mini-shirt,
.rnec-summary-shirt {
  align-items: center;
  background: #fff;
  border-radius: 10px;
  color: #4f46e5;
  display: inline-flex;
  flex: 0 0 auto;
  justify-content: center;
}

.rnec-launch-icon { height: 56px; width: 56px; }
.rnec-launch-icon svg { height: 40px; width: 40px; }

.rnec-launch-copy { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.rnec-launch-copy strong { color: var(--rnec-ink); font-size: 15px; font-weight: 700; line-height: 1.35; }
.rnec-launch-copy small { color: #4b5563; font-size: 13px; margin-top: 3px; }
.rnec-launch-copy em { color: var(--rnec-accent-dark); font-size: 12px; font-style: normal; font-weight: 600; margin-top: 4px; }

.rnec-launch-action {
  align-items: center;
  color: var(--rnec-ink);
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  gap: 9px;
  white-space: nowrap;
}

.rnec-launch-action i {
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  height: 8px;
  transform: rotate(45deg);
  width: 8px;
}

.rnec-editor,
.rnec-summary {
  background: var(--rnec-panel);
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 16px 42px rgba(15, 23, 42, .08);
  overflow: hidden;
  padding: 22px;
}

.rnec-editor-head,
.rnec-summary-head {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  margin-bottom: 23px;
}

.rnec-editor-head > div,
.rnec-summary-head > div { display: flex; flex-direction: column; }
.rnec-editor-head span,
.rnec-summary-head strong { font-size: 16px; font-weight: 700; }
.rnec-editor-head strong,
.rnec-summary-head span { color: var(--rnec-accent-dark); font-size: 14px; margin-top: 2px; }

.rnec-close {
  align-items: center;
  background: #fff;
  border: 1px solid var(--rnec-line);
  border-radius: 50%;
  color: #475569;
  cursor: pointer;
  display: flex;
  font-size: 22px;
  height: 34px;
  justify-content: center;
  line-height: 1;
  padding: 0 0 3px;
  width: 34px;
}

.rnec-field-group { margin-bottom: 22px; }
.rnec-field-group > label,
.rnec-field-title { color: #1f2937; display: block; font-size: 14px; margin-bottom: 9px; }
.rnec-field-title { display: flex; gap: 8px; }
.rnec-field-title strong { font-weight: 600; }

.rnec-design-tabs {
  background: #e8e9ee;
  border-radius: 9px;
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: -6px 0 22px;
  padding: 4px;
}
.rnec-design-tabs button {
  background: transparent;
  border: 0;
  border-radius: 7px;
  color: #475569;
  cursor: pointer;
  font-weight: 600;
  min-height: 42px;
}
.rnec-design-tabs button.is-selected { background: #fff; box-shadow: 0 2px 8px rgba(15, 23, 42, .09); color: var(--rnec-ink); }

.rnec-position-grid,
.rnec-summary-positions { display: grid; gap: 9px; grid-template-columns: repeat(2, minmax(0, 1fr)); }

.rnec-position,
.rnec-summary-position {
  align-items: center;
  background: #fff;
  border: 1px solid var(--rnec-line);
  border-radius: 7px;
  color: var(--rnec-ink);
  cursor: pointer;
  display: flex;
  gap: 10px;
  min-height: 58px;
  padding: 8px 11px;
  text-align: left;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.rnec-position:hover,
.rnec-summary-position:hover { border-color: #a8a5f0; }
.rnec-position.is-selected,
.rnec-summary-position.is-applied { border-color: var(--rnec-ink); box-shadow: inset 0 0 0 1px var(--rnec-ink); }
.rnec-summary-position.is-disabled { cursor: not-allowed; opacity: .48; }
.rnec-position > span,
.rnec-mini-shirt { align-items: center; background: #f6f7fb; border-radius: 7px; display: flex; height: 42px; justify-content: center; width: 42px; }
.rnec-position svg,
.rnec-position img,
.rnec-mini-shirt svg,
.rnec-mini-shirt img { height: 35px; object-fit: contain; width: 35px; }
.rnec-position strong { font-size: 14px; font-weight: 600; }
.rnec-summary-position > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.rnec-summary-position strong { font-size: 14px; font-weight: 600; }
.rnec-summary-position small { color: var(--rnec-accent-dark); font-size: 12px; margin-top: 2px; }

.rnec-line-options { display: flex; flex-wrap: wrap; gap: 8px; }
.rnec-line-options button {
  background: #fff;
  border: 1px solid var(--rnec-line);
  border-radius: 5px;
  color: var(--rnec-ink);
  cursor: pointer;
  min-height: 48px;
  padding: 9px 17px;
}
.rnec-line-options button.is-selected { border-color: var(--rnec-ink); box-shadow: inset 0 0 0 1px var(--rnec-ink); }

.rnec-two-cols { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rnec-select-wrap { position: relative; }
.rnec-select-wrap::after {
  border-bottom: 1.5px solid var(--rnec-ink);
  border-right: 1.5px solid var(--rnec-ink);
  content: '';
  height: 7px;
  pointer-events: none;
  position: absolute;
  right: 16px;
  top: 19px;
  transform: rotate(45deg);
  width: 7px;
}
.rnec-select-wrap select {
  appearance: none;
  background: #fff;
  border: 1px solid var(--rnec-line);
  border-radius: 6px;
  color: var(--rnec-ink);
  height: 50px;
  margin: 0;
  padding: 0 42px 0 16px;
  width: 100%;
}
.rnec-select-wrap:has(.rnec-color-dot) select { padding-left: 42px; }
.rnec-color-dot {
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  height: 16px;
  left: 16px;
  pointer-events: none;
  position: absolute;
  top: 17px;
  width: 16px;
  z-index: 1;
}

.rnec-line-field { margin-top: 16px; }
.rnec-line-field > label { display: block; font-size: 14px; margin-bottom: 7px; }
.rnec-line-field > label span { color: var(--rnec-muted); }
.rnec-line-input { position: relative; }
.rnec-line-input input {
  background: #fff;
  border: 1px solid var(--rnec-line);
  border-radius: 5px;
  color: var(--rnec-ink);
  height: 52px;
  margin: 0;
  padding: 0 65px 0 14px;
  width: 100%;
}
.rnec-line-input input:focus,
.rnec-select-wrap select:focus { border-color: var(--rnec-accent); box-shadow: 0 0 0 3px rgba(89, 84, 214, .13); outline: none; }
.rnec-line-input small { color: var(--rnec-muted); font-size: 12px; position: absolute; right: 13px; top: 17px; }

.rnec-inline-error {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 6px;
  color: #be123c;
  font-size: 13px;
  margin-top: 16px;
  padding: 10px 12px;
}

.rnec-upload-drop {
  align-items: center;
  background: #fff;
  border: 1.5px dashed #a9aed0;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 150px;
  padding: 20px;
  text-align: center;
  transition: border-color .18s ease, background .18s ease;
}
.rnec-upload-drop:hover { background: #fafaff; border-color: var(--rnec-accent); }
.rnec-upload-drop input { height: 1px; opacity: 0; overflow: hidden; position: absolute; width: 1px; }
.rnec-upload-icon { align-items: center; background: #ede9fe; border-radius: 50%; color: var(--rnec-accent-dark); display: flex; font-size: 24px; height: 46px; justify-content: center; margin-bottom: 10px; width: 46px; }
.rnec-upload-drop strong { font-size: 14px; }
.rnec-upload-drop small { color: var(--rnec-muted); font-size: 12px; margin-top: 5px; }
.rnec-upload-preview { align-items: center; background: #fff; border: 1px solid var(--rnec-line); border-radius: 10px; display: flex; gap: 12px; padding: 12px; }
.rnec-upload-preview > span,
.rnec-summary-artwork > span { align-items: center; background: #f1f3f7; border-radius: 8px; color: var(--rnec-accent-dark); display: flex; flex: 0 0 auto; height: 58px; justify-content: center; overflow: hidden; width: 58px; }
.rnec-upload-preview img,
.rnec-summary-artwork img { height: 100%; object-fit: contain; width: 100%; }
.rnec-upload-preview > div { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.rnec-upload-preview > div strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rnec-upload-preview > div small { color: var(--rnec-muted); margin-top: 3px; }
.rnec-clear-artwork { align-items: center; background: #fff1f2; border: 0; border-radius: 50%; color: #be123c; cursor: pointer; display: flex; font-size: 20px; height: 32px; justify-content: center; width: 32px; }
.rnec-artwork-rules { color: #475569; font-size: 12px; line-height: 1.55; margin: 13px 0; }
.rnec-rights { align-items: flex-start; color: #334155; display: flex; font-size: 12px; gap: 8px; line-height: 1.45; }
.rnec-rights input { flex: 0 0 auto; margin-top: 2px; }

.rnec-editor-actions {
  align-items: center;
  border-top: 1px solid var(--rnec-line);
  display: flex;
  justify-content: space-between;
  margin-top: 22px;
  padding-top: 18px;
}
.rnec-cancel,
.rnec-remove-all,
.rnec-summary-links button {
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
  color: var(--rnec-ink);
  cursor: pointer;
  padding: 4px 0;
}
.rnec-apply {
  align-items: center;
  background: linear-gradient(135deg, #827dde, #5954d6);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 9px 22px rgba(89, 84, 214, .25);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-weight: 700;
  gap: 8px;
  min-height: 46px;
  padding: 0 21px;
}
.rnec-apply strong { font-size: 11px; font-weight: 500; opacity: .82; }

.rnec-summary-head { border-bottom: 1px solid var(--rnec-line); padding-bottom: 16px; }
.rnec-remove-all { color: #334155; font-size: 13px; }
.rnec-summary-details { display: grid; gap: 10px; margin-top: 16px; }
.rnec-summary-card {
  background: #fff;
  border: 1px solid #e6e8ed;
  border-radius: 8px;
  display: flex;
  gap: 12px;
  padding: 14px;
}
.rnec-summary-shirt { background: #f6f7fb; height: 60px; width: 60px; }
.rnec-summary-shirt svg,
.rnec-summary-shirt img { height: 48px; object-fit: contain; width: 48px; }
.rnec-summary-copy { flex: 1; min-width: 0; }
.rnec-summary-row { align-items: center; display: flex; justify-content: space-between; margin-bottom: 7px; }
.rnec-summary-row strong { font-size: 14px; }
.rnec-summary-row span { color: var(--rnec-accent-dark); font-size: 13px; font-weight: 600; }
.rnec-summary-copy p { color: #475569; font-size: 13px; line-height: 1.45; margin: 3px 0; }
.rnec-summary-artwork { align-items: center; display: flex; gap: 10px; margin: 8px 0; }
.rnec-summary-artwork p { display: flex; flex-direction: column; min-width: 0; }
.rnec-summary-artwork p strong { color: var(--rnec-ink); }
.rnec-summary-artwork p small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rnec-inline-swatch { border: 1px solid #cbd5e1; border-radius: 50%; display: inline-block; height: 12px; margin-right: 6px; vertical-align: -1px; width: 12px; }
.rnec-summary-links { display: flex; gap: 15px; margin-top: 8px; }
.rnec-summary-links button { color: var(--rnec-accent-dark); font-size: 12px; }
.rnec-summary-links button:last-child { color: #b42318; }
.rnec-processing-note { color: #374151; font-size: 12px; margin: 17px 0 0; }
.rnec-terms { border-top: 1px solid var(--rnec-line); font-size: 12px; margin-top: 16px; padding-top: 13px; }
.rnec-terms summary { color: var(--rnec-accent-dark); cursor: pointer; font-weight: 600; }
.rnec-terms p { color: #4b5563; line-height: 1.55; margin: 9px 0 0; }
.rnec-price-includes { color: var(--rnec-muted); display: block; font-size: 11px; font-weight: 500; margin-top: 3px; }
.rnec-price-hint { background: #fffbeb; border: 1px solid #fde68a; border-radius: 6px; color: #92400e; font-size: 12px; padding: 9px 11px; }

@media (max-width: 575px) {
  .rnec-editor,
  .rnec-summary { border-radius: 8px; padding: 17px; }
  .rnec-two-cols { grid-template-columns: 1fr; gap: 0; }
  .rnec-position-grid,
  .rnec-summary-positions { grid-template-columns: 1fr 1fr; }
  .rnec-position,
  .rnec-summary-position { gap: 7px; padding: 7px; }
  .rnec-position > span,
  .rnec-mini-shirt { height: 36px; width: 36px; }
  .rnec-position svg,
  .rnec-position img,
  .rnec-mini-shirt svg,
  .rnec-mini-shirt img { height: 30px; width: 30px; }
  .rnec-summary-position strong { font-size: 12px; }
  .rnec-launch-action span { display: none; }
}

