/**
 * Cialda Studio Pro — front office UI
 * Scoped, dependency-free and safe for Bootstrap 3/4/5 themes.
 */
.cs-studio,
.cs-order-card {
  --cs-ink: #201a2b;
  --cs-muted: #6d6679;
  --cs-border: #e7e1ee;
  --cs-surface: #ffffff;
  --cs-surface-soft: #fbf8fd;
  --cs-primary: #6d3de8;
  --cs-primary-dark: #4d24bd;
  --cs-accent: #ff7a3d;
  --cs-success: #14845d;
  --cs-warning: #a8640d;
  --cs-danger: #c83e4d;
  --cs-cart-button: #d59a2f;
  --cs-cart-button-text: #16120b;
  --cs-cart-button-shadow: 0 8px 18px rgba(94, 64, 9, .24);
  --cs-shadow: 0 24px 70px rgba(42, 25, 73, .14);
  box-sizing: border-box;
  color: #201a2b;
  color: var(--cs-ink);
  font-family: inherit;
}

.cs-studio *,
.cs-studio *::before,
.cs-studio *::after,
.cs-order-card *,
.cs-order-card *::before,
.cs-order-card *::after {
  box-sizing: border-box;
}

.cs-studio [hidden],
.cs-order-card [hidden] {
  display: none !important;
}

.cs-studio {
  position: relative;
  z-index: 1;
  width: 100%;
  scroll-margin-top: 120px;
  margin: 28px 0;
  padding: 26px;
  overflow: hidden;
  border: 1px solid #e7e1ee;
  border: 1px solid var(--cs-border);
  border-radius: 24px;
  background: #fff;
  background: var(--cs-surface);
  box-shadow: 0 24px 70px rgba(42, 25, 73, .14);
  box-shadow: var(--cs-shadow);
  isolation: isolate;
}

.cs-product-intro {
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid #e7e1ee;
  border-left: 4px solid #6d3de8;
  border-radius: 12px;
  background: #fbf8fd;
  color: #40384b;
  font-size: 15px;
  line-height: 1.55;
}

.cs-product-intro strong {
  color: #201a2b;
}

.cs-product-callout {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 14px 0 4px;
  padding: 14px;
  border: 1px solid rgba(189, 53, 125, .22);
  border-radius: 16px;
  background: linear-gradient(135deg, #fff8fb, #fff);
  box-shadow: 0 10px 28px rgba(113, 31, 76, .08);
}

.cs-product-callout__icon {
  display: inline-flex;
  flex: 0 0 40px;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #bd357d;
  color: #fff;
  font-size: 20px;
}

.cs-product-callout__copy {
  min-width: 0;
  flex: 1 1 auto;
}

.cs-product-callout__copy strong,
.cs-product-callout__copy span {
  display: block;
}

.cs-product-callout__copy strong {
  margin-bottom: 3px;
  color: #2c1723;
  font-size: 14px;
}

.cs-product-callout__copy span {
  color: #66545e;
  font-size: 12px;
  line-height: 1.4;
}

.cs-product-callout__copy .cs-product-callout__legal {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(189, 53, 125, .16);
  color: #57424e;
  font-size: 11px;
}

.cs-product-callout__legal strong {
  display: inline;
  margin: 0;
  color: #7b214f;
  font-size: inherit;
}

.cs-product-callout__legal a {
  display: inline-block;
  margin-left: 4px;
  color: #7b214f;
  font-weight: 800;
  text-decoration: underline;
}

.cs-product-callout__button {
  flex: 0 0 auto;
  padding: 10px 13px;
  border-radius: 10px;
  background: #bd357d;
  color: #fff !important;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none !important;
}

.cs-product-callout__button:hover,
.cs-product-callout__button:focus {
  background: #92265e;
}

.cs-studio__halo {
  position: absolute;
  z-index: -1;
  top: -180px;
  right: -160px;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(109, 61, 232, .19) 0, rgba(255, 122, 61, .08) 45%, rgba(255, 255, 255, 0) 72%);
  pointer-events: none;
}

.cs-studio__header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.cs-studio__header h2 {
  margin: 4px 0 7px;
  color: #201a2b;
  color: var(--cs-ink);
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.cs-studio__header p {
  max-width: 680px;
  margin: 0;
  color: #6d6679;
  color: var(--cs-muted);
  font-size: 15px;
  line-height: 1.55;
}

.cs-studio__eyebrow,
.cs-order-card__eyebrow {
  display: inline-block;
  color: #6d3de8;
  color: var(--cs-primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
}

.cs-studio__format {
  min-width: 205px;
  padding: 13px 15px;
  border: 1px solid rgba(109, 61, 232, .2);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(109, 61, 232, .08), rgba(255, 122, 61, .08));
  text-align: right;
}

.cs-studio__format span,
.cs-studio__format small {
  display: block;
}

.cs-studio__format span {
  margin-bottom: 3px;
  font-size: 15px;
  font-weight: 800;
}

.cs-studio__format small {
  color: #6d6679;
  color: var(--cs-muted);
  font-size: 11px;
}

.cs-steps {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  border: 1px solid #e7e1ee;
  border: 1px solid var(--cs-border);
  border-radius: 16px;
  background: #fbf8fd;
  background: var(--cs-surface-soft);
}

.cs-steps li {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  gap: 8px;
  width: 33.333%;
  min-height: 52px;
  padding: 8px 12px;
  color: #8a8294;
  font-size: 13px;
}

.cs-steps li + li::before {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 0;
  width: 1px;
  background: #e7e1ee;
  background: var(--cs-border);
  content: '';
}

.cs-steps li > span {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  border: 1px solid #d7d0df;
  border-radius: 50%;
  background: #fff;
  font-size: 11px;
  font-weight: 800;
}

.cs-steps li.is-active,
.cs-steps li.is-complete {
  color: #201a2b;
  color: var(--cs-ink);
}

.cs-steps li.is-active > span {
  border-color: #6d3de8;
  border-color: var(--cs-primary);
  background: #6d3de8;
  background: var(--cs-primary);
  color: #fff;
  box-shadow: 0 7px 18px rgba(109, 61, 232, .28);
}

.cs-steps li.is-complete > span {
  border-color: rgba(20, 132, 93, .25);
  background: rgba(20, 132, 93, .11);
  color: #14845d;
  color: var(--cs-success);
}

.cs-studio__instructions {
  margin-bottom: 20px;
  padding: 13px 16px;
  border-left: 4px solid #ff7a3d;
  border-left-color: var(--cs-accent);
  border-radius: 9px 14px 14px 9px;
  background: #fff8f3;
}

.cs-studio__instructions strong,
.cs-studio__instructions p {
  display: block;
}

.cs-studio__instructions strong {
  margin-bottom: 3px;
  font-size: 13px;
}

.cs-studio__instructions p {
  margin: 0;
  color: #655c68;
  font-size: 13px;
  line-height: 1.5;
}

.cs-studio__workspace {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: minmax(290px, .88fr) 22px minmax(360px, 1.12fr);
  grid-template-columns: minmax(290px, .88fr) minmax(360px, 1.12fr);
  gap: 22px;
}

.cs-text-only-help,
.cs-text-only-preview-help,
.cs-text-only-note {
  display: none;
}

.cs-studio--text-only .cs-text-only-help,
.cs-studio--text-only .cs-text-only-preview-help,
.cs-studio--text-only .cs-text-only-note {
  display: block;
}

.cs-studio--text-only .cs-control-card--compose .cs-control-card__heading p:not(.cs-text-only-help),
.cs-studio--text-only .cs-preview-toolbar span:not(.cs-text-only-preview-help):not(.cs-live-badge),
.cs-studio--text-only .cs-preview-note:not(.cs-text-only-note) {
  display: none;
}

.cs-studio--text-only .cs-control-card--compose {
  min-height: 100%;
  border-color: rgba(109, 61, 232, .24);
  background: linear-gradient(180deg, #fff, #fbf8fd);
}

.cs-studio--text-only .cs-canvas-shell {
  background-color: #f4f0f6;
  background-image:
    linear-gradient(45deg, rgba(109, 61, 232, .035) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(109, 61, 232, .035) 25%, transparent 25%);
  background-size: 22px 22px;
}

.cs-text-count {
  display: block;
  margin-top: 6px;
  color: #6d6679;
  color: var(--cs-muted);
  font-size: 11px;
  text-align: right;
}

.cs-controls {
  min-width: 0;
}

.cs-control-card {
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid #e7e1ee;
  border: 1px solid var(--cs-border);
  border-radius: 18px;
  background: #fff;
}

.cs-control-card:last-child {
  margin-bottom: 0;
}

.cs-control-card__heading {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 11px;
  margin-bottom: 15px;
}

.cs-control-card__number {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-flex: 0;
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: #f0eaff;
  color: #6d3de8;
  color: var(--cs-primary);
  font-size: 13px;
  font-weight: 800;
}

.cs-control-card__heading h3 {
  margin: 0 0 2px;
  color: #201a2b;
  color: var(--cs-ink);
  font-size: 16px;
  line-height: 1.25;
}

.cs-control-card__heading p {
  margin: 0;
  color: #6d6679;
  color: var(--cs-muted);
  font-size: 12px;
}

.cs-dropzone {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  min-height: 154px;
  padding: 22px 16px;
  cursor: pointer;
  border: 1.5px dashed #c9bce8;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(109, 61, 232, .045), rgba(255, 255, 255, .7));
  text-align: center;
  -webkit-transition: border-color .2s ease, background .2s ease, transform .2s ease;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.cs-dropzone:hover,
.cs-dropzone:focus,
.cs-dropzone.is-dragging {
  border-color: #6d3de8;
  border-color: var(--cs-primary);
  outline: 0;
  background: rgba(109, 61, 232, .075);
  -webkit-transform: translateY(-1px);
  transform: translateY(-1px);
}

.cs-dropzone:focus {
  box-shadow: 0 0 0 4px rgba(109, 61, 232, .16);
}

.cs-file-input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.cs-dropzone__icon {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 9px;
  border-radius: 14px;
  background: #6d3de8;
  background: var(--cs-primary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(109, 61, 232, .24);
}

.cs-dropzone__icon svg {
  width: 24px;
  height: 24px;
}

.cs-dropzone strong {
  margin-bottom: 3px;
  font-size: 14px;
}

.cs-dropzone > span:last-child {
  color: #6d6679;
  color: var(--cs-muted);
  font-size: 12px;
}

.cs-file-summary {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 9px;
  border: 1px solid #e7e1ee;
  border: 1px solid var(--cs-border);
  border-radius: 13px;
  background: #fbf8fd;
  background: var(--cs-surface-soft);
}

.cs-file-summary__thumb {
  -webkit-box-flex: 0;
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border-radius: 10px;
  background: #ece8f1;
}

.cs-file-summary__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cs-file-summary__copy {
  min-width: 0;
  -webkit-box-flex: 1;
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
}

.cs-file-summary__copy strong,
.cs-file-summary__copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cs-file-summary__copy strong {
  font-size: 12px;
}

.cs-file-summary__copy span {
  color: #6d6679;
  color: var(--cs-muted);
  font-size: 11px;
}

.cs-icon-button {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  cursor: pointer;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #6d6679;
  color: var(--cs-muted);
  font-size: 22px;
  line-height: 1;
}

.cs-icon-button:hover,
.cs-icon-button:focus {
  background: rgba(200, 62, 77, .1);
  color: #c83e4d;
  color: var(--cs-danger);
  outline: 0;
}

.cs-quality {
  margin-top: 12px;
  padding: 12px;
  border-radius: 13px;
  background: #f7f4fa;
}

.cs-quality__row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 12px;
}

.cs-quality__label {
  font-weight: 800;
}

.cs-quality__track,
.cs-upload-progress {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5dfee;
}

.cs-quality__track span,
.cs-upload-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff7a3d, #6d3de8, #14845d);
  -webkit-transition: width .25s ease;
  transition: width .25s ease;
}

.cs-quality__hint {
  display: block;
  margin-top: 7px;
  color: #6d6679;
  color: var(--cs-muted);
  font-size: 11px;
  line-height: 1.4;
}

.cs-shape-choice {
  margin: 0 0 16px;
  padding: 13px;
  border: 1px solid rgba(109, 61, 232, .18);
  border-radius: 14px;
  background: #f8f5ff;
}

.cs-shape-choice label,
.cs-shape-choice label > span,
.cs-shape-choice small {
  display: block;
}

.cs-shape-choice label > span {
  margin-bottom: 7px;
  color: #514a59;
  font-size: 12px;
  font-weight: 800;
}

.cs-shape-choice small {
  margin-top: 7px;
  color: #6d6679;
  font-size: 11px;
  line-height: 1.45;
}

.cs-range-row {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 80px minmax(110px, 1fr) 52px;
  grid-template-columns: 80px minmax(110px, 1fr) 52px;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
}

.cs-range-row label,
.cs-text-editor label > span,
.cs-field-grid label > span {
  color: #514a59;
  font-size: 12px;
  font-weight: 700;
}

.cs-range-row output {
  color: #6d3de8;
  color: var(--cs-primary);
  font-size: 11px;
  font-weight: 800;
  text-align: right;
}

.cs-studio input[type='range'] {
  width: 100%;
  min-width: 0;
  accent-color: #6d3de8;
  accent-color: var(--cs-primary);
}

.cs-studio input[type='range']:focus {
  outline: 3px solid rgba(109, 61, 232, .22);
  outline-offset: 3px;
}

.cs-secondary-button,
.cs-primary-button {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  border-radius: 12px;
  font-family: inherit;
  font-weight: 800;
  -webkit-transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease, background .15s ease;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease, background .15s ease;
}

.cs-secondary-button {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd5e7;
  background: #fff;
  color: #514a59;
  font-size: 12px;
}

.cs-secondary-button:hover,
.cs-secondary-button:focus {
  border-color: #6d3de8;
  border-color: var(--cs-primary);
  color: #6d3de8;
  color: var(--cs-primary);
  outline: 0;
}

.cs-secondary-button:focus {
  box-shadow: 0 0 0 3px rgba(109, 61, 232, .14);
}

.cs-text-editor {
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid #e7e1ee;
  border-top-color: var(--cs-border);
}

.cs-text-editor__title {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.cs-text-editor__title strong {
  font-size: 13px;
}

.cs-text-editor__title > span {
  padding: 3px 7px;
  border-radius: 999px;
  background: #f0eaff;
  color: #6d3de8;
  color: var(--cs-primary);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.cs-text-editor label {
  display: block;
  margin: 0 0 10px;
}

.cs-text-editor label > span,
.cs-field-grid label > span {
  display: block;
  margin-bottom: 5px;
}

.cs-text-presets {
  margin: 0 0 12px;
}

.cs-text-preset-label,
.cs-align-label {
  display: block;
  margin-bottom: 6px;
  color: #514a59;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.cs-message-presets {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 6px;
}

.cs-message-chip {
  -webkit-appearance: none;
  appearance: none;
  min-height: 31px;
  padding: 6px 10px;
  cursor: pointer;
  border: 1px solid #ddd5e7;
  border-radius: 999px;
  background: #fff;
  color: #514a59;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  -webkit-transition: border-color .15s ease, background .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
  transition: border-color .15s ease, background .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.cs-message-chip:hover,
.cs-message-chip:focus {
  border-color: #6d3de8;
  border-color: var(--cs-primary);
  outline: 0;
  background: #f6f1ff;
  color: #4d24bd;
  color: var(--cs-primary-dark);
  box-shadow: 0 0 0 3px rgba(109, 61, 232, .1);
}

.cs-message-chip:active {
  -webkit-transform: translateY(1px);
  transform: translateY(1px);
}

.cs-align-group {
  margin: 1px 0 12px;
}

.cs-align-buttons {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  gap: 5px;
}

.cs-align-button {
  -webkit-appearance: none;
  appearance: none;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  width: 42px;
  min-width: 42px;
  height: 40px;
  padding: 0 8px;
  cursor: pointer;
  border: 1px solid #ddd5e7;
  border-radius: 9px;
  background: #fff;
  color: #6d6679;
  font-family: Arial, sans-serif;
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -4px;
  overflow: hidden;
  -webkit-transition: border-color .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
  transition: border-color .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
}

.cs-align-button:hover,
.cs-align-button:focus {
  border-color: #6d3de8;
  border-color: var(--cs-primary);
  outline: 0;
  color: #6d3de8;
  color: var(--cs-primary);
  box-shadow: 0 0 0 3px rgba(109, 61, 232, .1);
}

.cs-align-button.is-active,
.cs-align-button[aria-pressed='true'] {
  border-color: #6d3de8;
  border-color: var(--cs-primary);
  background: #f0eaff;
  color: #4d24bd;
  color: var(--cs-primary-dark);
}

.cs-studio textarea,
.cs-studio select,
.cs-studio input[type='color'] {
  width: 100%;
  border: 1px solid #ddd5e7;
  border-radius: 10px;
  background: #fff;
  color: #201a2b;
  color: var(--cs-ink);
  font-family: inherit;
  font-size: 13px;
}

.cs-studio textarea,
.cs-studio select {
  padding: 9px 10px;
}

.cs-studio textarea {
  min-height: 70px;
  resize: vertical;
}

.cs-studio input[type='color'] {
  height: 42px;
  min-height: 42px;
  padding: 4px;
  cursor: pointer;
  overflow: hidden;
}

.cs-studio input[type='color']::-webkit-color-swatch-wrapper {
  padding: 0;
}

.cs-studio input[type='color']::-webkit-color-swatch {
  border: 1px solid #d2c9db;
  border-radius: 7px;
}

.cs-studio input[type='color']::-moz-color-swatch {
  border: 1px solid #d2c9db;
  border-radius: 7px;
}

.cs-studio textarea:focus,
.cs-studio select:focus,
.cs-studio input[type='color']:focus {
  border-color: #6d3de8;
  border-color: var(--cs-primary);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(109, 61, 232, .12);
}

.cs-field-grid {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 10px 1fr;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.cs-preview-column {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(109, 61, 232, .18);
  border-radius: 20px;
  background: linear-gradient(145deg, #f7f2ff, #fff8f4);
}

.cs-preview-toolbar {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.cs-preview-toolbar strong,
.cs-preview-toolbar span {
  display: block;
}

.cs-preview-toolbar strong {
  font-size: 14px;
}

.cs-preview-toolbar > div > span {
  color: #6d6679;
  color: var(--cs-muted);
  font-size: 11px;
}

.cs-live-badge {
  display: -webkit-inline-box !important;
  display: -ms-inline-flexbox !important;
  display: inline-flex !important;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(20, 132, 93, .1);
  color: #14845d;
  color: var(--cs-success);
  font-size: 9px !important;
  font-weight: 900;
  letter-spacing: .08em;
}

.cs-live-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(20, 132, 93, .11);
}

.cs-canvas-shell {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 9px solid #fff;
  border-radius: 18px;
  background-color: #eeeaf3;
  background-image:
    linear-gradient(45deg, #e5dfea 25%, transparent 25%),
    linear-gradient(-45deg, #e5dfea 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e5dfea 75%),
    linear-gradient(-45deg, transparent 75%, #e5dfea 75%);
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-size: 16px 16px;
  box-shadow: 0 18px 45px rgba(48, 30, 76, .16);
}

.cs-canvas-shell.cs-shape--circle {
  max-width: 620px;
  margin-right: auto;
  margin-left: auto;
  border-radius: 50%;
}

.cs-canvas-shell.cs-shape--square {
  max-width: 660px;
  margin-right: auto;
  margin-left: auto;
}

.cs-canvas {
  display: block;
  width: 100%;
  height: auto;
  cursor: move;
  touch-action: none;
}

.cs-canvas:focus {
  outline: 4px solid rgba(109, 61, 232, .25);
  outline-offset: -4px;
}

.cs-canvas-empty {
  position: absolute;
  top: 50%;
  left: 50%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  width: 80%;
  color: #746b7f;
  text-align: center;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cs-canvas-empty > span {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .72);
  color: #6d3de8;
  color: var(--cs-primary);
  font-size: 25px;
  box-shadow: 0 10px 26px rgba(43, 27, 69, .1);
}

.cs-canvas-empty strong,
.cs-canvas-empty small {
  display: block;
}

.cs-canvas-empty strong {
  margin-bottom: 2px;
  font-size: 15px;
}

.cs-canvas-empty small {
  font-size: 12px;
}

.cs-preview-note {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 9px;
  margin-top: 14px;
  color: #655c68;
  font-size: 11px;
  line-height: 1.45;
}

.cs-preview-note > span {
  color: #6d3de8;
  color: var(--cs-primary);
  font-weight: 900;
}

.cs-preview-note p {
  margin: 0;
}

.cs-studio__footer {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  gap: 20px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid #e7e1ee;
  border-top-color: var(--cs-border);
  flex-wrap: wrap;
}

.cs-withdrawal-notice {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  width: 100%;
  margin: 0;
  padding: 13px 14px;
  border: 1px solid #ead3df;
  border-radius: 13px;
  background: #fff8fb;
  color: #493840;
  font-size: 12px;
  line-height: 1.5;
}

.cs-withdrawal-notice__icon {
  display: inline-flex;
  flex: 0 0 26px;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #bd357d;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.cs-withdrawal-notice > div {
  min-width: 0;
}

.cs-withdrawal-notice strong {
  display: block;
  margin-bottom: 2px;
  color: #2c1723;
  font-size: 13px;
}

.cs-withdrawal-notice p {
  margin: 0;
}

.cs-withdrawal-notice a {
  display: inline-block;
  margin-top: 4px;
  color: #92265e;
  font-weight: 800;
  text-decoration: underline;
}

.cs-withdrawal-notice--cart {
  margin: 14px 0;
}

.cs-withdrawal-notice--product {
  margin: 22px 0 0;
}

.cs-withdrawal-notice--checkout {
  margin: 0 0 14px;
}

.cs-confirmation {
  min-width: 0;
  -webkit-box-flex: 1;
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
}

.cs-check {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
  gap: 9px;
  margin: 0;
  cursor: pointer;
  color: #514a59;
  font-size: 11px;
  line-height: 1.45;
}

.cs-check input {
  width: 17px;
  height: 17px;
  margin: 1px 0 0;
  -webkit-box-flex: 0;
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
  accent-color: #6d3de8;
  accent-color: var(--cs-primary);
}

.cs-check input:focus {
  outline: 3px solid rgba(109, 61, 232, .25);
  outline-offset: 2px;
}

.cs-save-status {
  min-height: 18px;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
}

.cs-save-status.is-success { color: #14845d; color: var(--cs-success); }
.cs-save-status.is-error { color: #c83e4d; color: var(--cs-danger); }
.cs-save-status.is-info { color: #6d3de8; color: var(--cs-primary); }

html.cs-consent-modal-open,
body.cs-consent-modal-open {
  overflow: hidden !important;
}

.cs-consent-modal[hidden],
.cs-consent-modal:not([aria-hidden='false']) {
  display: none !important;
}

.cs-consent-modal[aria-hidden='false'] {
  display: flex !important;
}

.cs-consent-modal {
  position: fixed;
  inset: 0;
  z-index: 100060;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 20px;
}

.cs-consent-modal *,
.cs-consent-modal *::before,
.cs-consent-modal *::after {
  box-sizing: border-box;
}

.cs-consent-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 20, 34, .78);
  backdrop-filter: blur(3px);
}

.cs-consent-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  padding: 34px;
  border: 1px solid #ead7e3;
  border-radius: 20px;
  background: #fff;
  color: #2d2230;
  text-align: center;
  box-shadow: 0 26px 80px rgba(22, 12, 24, .35);
}

.cs-consent-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 42px;
  height: 42px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #4f4251;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.cs-consent-modal__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: #bd357d;
  color: #fff;
  font-size: 25px;
  font-weight: 900;
  box-shadow: 0 10px 25px rgba(189, 53, 125, .25);
}

.cs-consent-modal__dialog h3 {
  margin: 18px 0 10px;
  color: #2d2230;
  font-size: 22px;
  line-height: 1.25;
}

.cs-consent-modal__dialog p {
  margin: 0;
  color: #5f5261;
  font-size: 15px;
  line-height: 1.55;
}

.cs-consent-modal__actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.cs-consent-modal__actions button {
  min-height: 46px;
  margin: 0;
  padding: 11px 18px;
  border-radius: 10px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.cs-consent-modal__cancel {
  border: 1px solid #d9c9d5;
  background: #fff;
  color: #4f4251;
}

.cs-consent-modal__confirm {
  border: 1px solid #bd357d;
  background: #bd357d;
  color: #fff;
}

.cs-consent-modal__actions button:focus,
.cs-consent-modal__close:focus {
  outline: 3px solid rgba(189, 53, 125, .3);
  outline-offset: 2px;
}

.cs-canvas,
.cs-file-summary__thumb img,
img.cs-cart-design-thumb[data-cs-personalized-preview],
.cs-lightbox__image {
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}

@media (max-width: 640px) {
  .cs-consent-modal {
    align-items: flex-end;
    padding: 10px;
  }

  .cs-consent-modal__dialog {
    max-width: none;
    padding: 30px 20px 20px;
    border-radius: 18px;
  }

  .cs-consent-modal__actions {
    flex-direction: column-reverse;
  }

  .cs-consent-modal__actions button {
    width: 100%;
  }
}

.cs-upload-progress {
  max-width: 430px;
  margin-top: 7px;
}

.cs-primary-button {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  gap: 9px;
  min-width: 240px;
  min-height: 50px;
  padding: 12px 18px;
  border: 0;
  background: #d59a2f;
  background: var(--cs-cart-button);
  color: #16120b;
  color: var(--cs-cart-button-text);
  font-size: 13px;
  box-shadow: 0 8px 18px rgba(94, 64, 9, .24);
  box-shadow: var(--cs-cart-button-shadow);
}

.cs-primary-button__icon {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .16);
}

.cs-primary-button:hover:not(:disabled),
.cs-primary-button:focus:not(:disabled) {
  color: var(--cs-cart-button-text);
  outline: 0;
  filter: brightness(.96);
  box-shadow: var(--cs-cart-button-shadow);
  -webkit-transform: translateY(-1px);
  transform: translateY(-1px);
}

.cs-primary-button:disabled {
  cursor: not-allowed;
  background: #c9c1d3;
  opacity: .72;
  box-shadow: none;
}

.cs-studio.is-saving .cs-primary-button__icon {
  -webkit-animation: cs-pulse 1s ease-in-out infinite;
  animation: cs-pulse 1s ease-in-out infinite;
}

.cs-studio.is-saved {
  border-color: rgba(20, 132, 93, .35);
}

.cs-studio.has-error {
  -webkit-animation: cs-shake .35s ease both;
  animation: cs-shake .35s ease both;
}

.cs-studio--unsupported .cs-control-card--compose,
.cs-studio--unsupported .cs-preview-column {
  opacity: .52;
  pointer-events: none;
}

@-webkit-keyframes cs-pulse {
  0%, 100% { opacity: 1; -webkit-transform: scale(1); transform: scale(1); }
  50% { opacity: .55; -webkit-transform: scale(.88); transform: scale(.88); }
}
@keyframes cs-pulse {
  0%, 100% { opacity: 1; -webkit-transform: scale(1); transform: scale(1); }
  50% { opacity: .55; -webkit-transform: scale(.88); transform: scale(.88); }
}

@-webkit-keyframes cs-shake {
  0%, 100% { -webkit-transform: translateX(0); transform: translateX(0); }
  25% { -webkit-transform: translateX(-5px); transform: translateX(-5px); }
  75% { -webkit-transform: translateX(5px); transform: translateX(5px); }
}
@keyframes cs-shake {
  0%, 100% { -webkit-transform: translateX(0); transform: translateX(0); }
  25% { -webkit-transform: translateX(-5px); transform: translateX(-5px); }
  75% { -webkit-transform: translateX(5px); transform: translateX(5px); }
}

/* Cart and customer order summaries. */
.cs-order-card {
  width: 100%;
  margin: 20px 0;
  padding: 20px;
  border: 1px solid #e7e1ee;
  border: 1px solid var(--cs-border);
  border-radius: 18px;
  background: #fff;
  background: var(--cs-surface);
  box-shadow: 0 12px 34px rgba(42, 25, 73, .08);
}

.cs-order-card__header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 14px;
}

.cs-order-card__header h3 {
  margin: 3px 0 0;
  color: #201a2b;
  color: var(--cs-ink);
  font-size: 18px;
}

.cs-order-card__count {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: #6d3de8;
  background: var(--cs-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.cs-order-card__grid {
  display: -ms-grid;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.cs-design-mini {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 10px;
  border: 1px solid #eee9f2;
  border-radius: 13px;
  background: #fbf8fd;
  background: var(--cs-surface-soft);
}

.cs-design-mini img {
  display: block;
  -webkit-box-flex: 0;
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
  width: 68px;
  height: 54px;
  object-fit: cover;
  border-radius: 9px;
  background: #e9e4ee;
}

.cs-design-mini > div {
  min-width: 0;
}

.cs-design-mini strong,
.cs-design-mini span,
.cs-design-mini small,
.cs-design-mini a {
  display: block;
}

.cs-design-mini strong {
  overflow: hidden;
  margin-bottom: 3px;
  color: #201a2b;
  color: var(--cs-ink);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cs-design-mini span,
.cs-design-mini small {
  color: #6d6679;
  color: var(--cs-muted);
  font-size: 10px;
}

.cs-design-mini a {
  margin-top: 5px;
  color: #6d3de8;
  color: var(--cs-primary);
  font-size: 11px;
  font-weight: 800;
}

.cs-design-mini .cs-warning {
  margin-top: 4px;
  color: #a8640d;
  color: var(--cs-warning);
}

@media (max-width: 980px) {
  .cs-studio__workspace {
    display: block;
  }
  .cs-preview-column {
    margin-top: 18px;
  }
}

@media (max-width: 720px) {
  .cs-studio {
    margin: 18px 0;
    padding: 17px;
    border-radius: 18px;
  }
  .cs-studio__header,
  .cs-studio__footer {
    display: block;
  }
  .cs-studio__format {
    min-width: 0;
    margin-top: 13px;
    text-align: left;
  }
  .cs-steps li {
    gap: 5px;
    min-height: 46px;
    padding: 7px 4px;
  }
  .cs-steps li strong {
    font-size: 10px;
  }
  .cs-control-card,
  .cs-preview-column {
    padding: 14px;
    border-radius: 15px;
  }
  .cs-field-grid {
    display: block;
  }
  .cs-range-row {
    -ms-grid-columns: 84px minmax(88px, 1fr) 42px;
    grid-template-columns: 84px minmax(88px, 1fr) 42px;
    gap: 7px;
  }
  .cs-range-row label {
    line-height: 1.2;
  }
  .cs-message-chip {
    min-height: 34px;
    padding: 7px 10px;
  }
  .cs-primary-button {
    width: 100%;
    min-width: 0;
    margin-top: 15px;
  }
}

@media (max-width: 420px) {
  .cs-product-callout {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .cs-product-callout__button {
    width: 100%;
    text-align: center;
  }
  .cs-studio {
    padding: 13px;
  }
  .cs-preview-column {
    padding: 10px;
  }
  .cs-canvas-shell {
    border-width: 5px;
    border-radius: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cs-studio *,
  .cs-studio *::before,
  .cs-studio *::after {
    scroll-behavior: auto !important;
    -webkit-animation-duration: .01ms !important;
    animation-duration: .01ms !important;
    -webkit-animation-iteration-count: 1 !important;
    animation-iteration-count: 1 !important;
    -webkit-transition-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

@media (forced-colors: active) {
  .cs-dropzone,
  .cs-control-card,
  .cs-preview-column,
  .cs-studio,
  .cs-order-card {
    border: 1px solid CanvasText;
  }
}

.cs-align-button[data-align="left"] {
  -webkit-box-pack: start;
  -ms-flex-pack: start;
  justify-content: flex-start;
}

.cs-align-button[data-align="center"] {
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.cs-align-button[data-align="right"] {
  -webkit-box-pack: end;
  -ms-flex-pack: end;
  justify-content: flex-end;
}

/* Product-page integration: active only when Cialda Studio is present. */
.cs-product-callout--before-quantity {
  margin: 0 0 16px;
}

.cs-has-studio #quantity_wanted[data-cs-quantity-visible='1'],
.cs-has-studio input[name='qty'][data-cs-quantity-visible='1'] {
  color: #201a2b !important;
  -webkit-text-fill-color: #201a2b !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  opacity: 1 !important;
  visibility: visible !important;
  text-align: center !important;
  min-width: 40px;
}

.cs-studio.is-adding-to-cart .cs-primary-button {
  pointer-events: none;
}

.cs-studio[data-shape='circle'] .cs-canvas-shell {
  background-color: #e8e2ee;
}

.cs-font option[value='Segoe Print'],
.cs-font option[value='Bradley Hand ITC'] {
  font-family: 'Segoe Print', 'Comic Sans MS', cursive;
}

.cs-font option[value='Gabriola'] {
  font-family: Gabriola, Georgia, serif;
}

.cs-font option[value='Marker Felt'] {
  font-family: 'Marker Felt', 'Comic Sans MS', cursive;
}

.cs-image-framing-title {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 14px 0 8px;
  color: var(--cs-ink);
}

.cs-image-framing-title strong { font-size: 12px; }
.cs-image-framing-title small { color: var(--cs-muted); font-size: 10px; line-height: 1.4; }

.cs-personalized-badge {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 2;
  display: inline-flex;
  max-width: calc(100% - 16px);
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(189, 53, 125, .94);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
}

#blockcart-modal .product-image,
.blockcart-modal .product-image,
[data-cs-cart-modal] .product-image {
  position: relative;
}

img[data-cs-personalized-preview] {
  object-fit: contain !important;
  background: #f4eef4;
}

.cs-design-mini[data-cs-customization-id] img {
  object-fit: contain;
  background: #f4eef4;
}

.cs-has-studio #quantity_wanted[data-cs-quantity-visible='1'],
.cs-has-studio input[name='qty'][data-cs-quantity-visible='1'] {
  width: 40px !important;
  height: 40px !important;
  padding: 0 !important;
  line-height: 40px !important;
  text-indent: 0 !important;
  background: #fff !important;
  position: relative !important;
  z-index: 1 !important;
}
/* Cart inline preview and accessible lightbox - 0.2.28 */
.cs-cart-design-data,
.cs-order-card--cart {
  display: none !important;
}

.cs-cart-personalization-help {
  display: block;
  clear: both;
  flex-basis: 100%;
  max-width: 32rem;
  margin: .5rem 0 0;
  color: #51434b;
  font-size: .8rem;
  line-height: 1.45;
  text-align: left;
  overflow-wrap: anywhere;
}

img.cs-cart-design-thumb[data-cs-personalized-preview] {
  display: block;
  max-width: 100%;
  object-fit: contain !important;
  overflow: hidden;
  border-radius: 8px;
  background: #f4eef4;
  cursor: zoom-in;
  touch-action: manipulation;
}

img.cs-cart-design-thumb[data-cs-personalized-preview]:focus {
  outline: 3px solid #bd357d;
  outline-offset: 3px;
}

body.cs-lightbox-open {
  overflow: hidden !important;
}

.cs-lightbox[hidden] {
  display: none !important;
}

.cs-lightbox:not([aria-hidden='false']) {
  display: none !important;
}

.cs-lightbox[aria-hidden='false'] {
  display: flex !important;
}

.cs-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100050;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: 20px;
  overflow: hidden;
}

.cs-lightbox *,
.cs-lightbox *::before,
.cs-lightbox *::after {
  box-sizing: border-box;
}

.cs-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 17, 27, .82);
  backdrop-filter: blur(3px);
}

.cs-lightbox__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 960px;
  height: calc(100vh - 40px);
  max-height: 780px;
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .35);
}

.cs-lightbox__header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  padding: 12px 14px 12px 18px;
  border-bottom: 1px solid #eadfea;
}

.cs-lightbox__header h2 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #201a2b;
  font-size: 17px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cs-lightbox__close,
.cs-lightbox__controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 42px;
  min-height: 42px;
  margin: 0;
  border: 1px solid #dfd2df;
  border-radius: 11px;
  background: #fff;
  color: #2d2230;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.cs-lightbox__close {
  border: 0;
  font-size: 29px;
  line-height: 1;
}

.cs-lightbox__close:hover,
.cs-lightbox__controls button:hover {
  border-color: #bd357d;
  color: #bd357d;
}

.cs-lightbox__close:focus,
.cs-lightbox__controls button:focus {
  outline: 3px solid rgba(189, 53, 125, .32);
  outline-offset: 2px;
}

.cs-lightbox__controls button:disabled {
  opacity: .42;
  cursor: not-allowed;
}

.cs-lightbox__viewport {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #f5f1f5;
  touch-action: none;
  overscroll-behavior: contain;
  user-select: none;
}

.cs-lightbox__viewport[data-cs-pannable='1'] {
  cursor: grab;
}

.cs-lightbox__viewport[data-cs-pannable='1']:active {
  cursor: grabbing;
}

.cs-lightbox__image {
  display: block;
  max-width: 100%;
  max-height: 100%;
  margin: auto;
  object-fit: contain;
  transform-origin: center center;
  will-change: transform;
  pointer-events: none;
  user-select: none;
}

.cs-lightbox__controls {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  padding: 11px 14px;
  border-top: 1px solid #eadfea;
  background: #fff;
}

.cs-lightbox__controls [data-cs-zoom-reset] {
  min-width: 72px;
}

.cs-lightbox__hint {
  min-width: 0;
  margin-left: 8px;
  color: #6d6679;
  font-size: 12px;
}

@media (max-width: 640px) {
  .cs-lightbox {
    padding: 0;
  }

  .cs-lightbox__panel {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    border-radius: 0;
  }

  .cs-lightbox__header {
    padding-top: max(10px, env(safe-area-inset-top));
  }

  .cs-lightbox__controls {
    flex-wrap: wrap;
    padding-bottom: max(11px, env(safe-area-inset-bottom));
  }

  .cs-lightbox__hint {
    flex-basis: 100%;
    margin: 2px 0 0;
    text-align: center;
  }
}

.cs-output-mode-choice {
  margin: 0 0 16px;
}

.cs-output-mode-choice fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.cs-output-mode-choice legend {
  margin-bottom: 9px;
  color: #30233a;
  font-size: 14px;
  font-weight: 800;
}

.cs-output-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.cs-output-mode-grid label {
  position: relative;
  min-width: 0;
  margin: 0;
  cursor: pointer;
}

.cs-output-mode-grid input {
  position: absolute;
  opacity: 0;
}

.cs-output-mode-grid label > span {
  display: flex;
  min-height: 76px;
  flex-direction: column;
  justify-content: center;
  padding: 11px 12px;
  border: 1px solid #e6dae4;
  border-radius: 13px;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.cs-output-mode-grid strong {
  color: #34283a;
  font-size: 14px;
}

.cs-output-mode-grid small {
  margin-top: 3px;
  color: #746b78;
  font-size: 12px;
  line-height: 1.35;
}

.cs-output-mode-grid input:checked + span {
  border-color: #bd357d;
  background: #fff7fb;
  box-shadow: 0 0 0 2px rgba(189, 53, 125, .13);
}

.cs-output-mode-grid input:focus + span {
  outline: 3px solid rgba(189, 53, 125, .25);
  outline-offset: 2px;
}

.cs-repeat-options {
  margin: 0 0 16px;
  padding: 13px;
  border: 1px solid #ead4df;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff9fc, #fff);
}

.cs-repeat-options[hidden],
.cs-repeat-note[hidden],
.cs-text-editor[hidden],
.cs-repeat-options [hidden] {
  display: none !important;
}

.cs-repeat-summary {
  margin: 10px 0 0;
  color: #8f245e;
  font-weight: 800;
}

.cs-repeat-warning {
  margin: 5px 0 0;
  color: #695f6b;
  font-size: 12px;
  line-height: 1.45;
}

.cs-studio--repeat .cs-canvas-shell {
  max-width: 560px;
  margin-right: auto;
  margin-left: auto;
  background: #ece8ee;
}

.cs-studio--repeat .cs-canvas {
  aspect-ratio: 210 / 297;
  object-fit: contain;
}

@media (max-width: 640px) {
  .cs-output-mode-grid {
    grid-template-columns: 1fr;
  }

  .cs-output-mode-grid label > span {
    min-height: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cs-lightbox__image {
    transition: none !important;
  }
}

/*
 * Product configurator layout 0.2.31.
 * Technical presentation only: no product, SEO, render, Deco or cart rules.
 */
.cs-studio--upload-required {
  --cs-primary: #b93678;
  --cs-primary-dark: #8f245e;
  --cs-accent: #d59a2f;
  --cs-border: #eadce4;
  --cs-surface-soft: #fff9fc;
  --cs-shadow: 0 22px 64px rgba(73, 35, 55, .13);
  border-color: #eadce4;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, rgba(185, 54, 120, .4), rgba(213, 154, 47, .42)) border-box;
}

.cs-studio--upload-required .cs-studio__halo {
  background: radial-gradient(circle, rgba(185, 54, 120, .17) 0, rgba(213, 154, 47, .09) 46%, transparent 72%);
}

.cs-studio--upload-required .cs-studio__header {
  margin: -4px -4px 20px;
  padding: 22px;
  border: 1px solid #f0dce7;
  border-radius: 19px;
  background:
    radial-gradient(circle at 90% 0, rgba(213, 154, 47, .15), transparent 36%),
    linear-gradient(135deg, #fff8fc, #fffdf8);
}

.cs-studio--upload-required .cs-studio__eyebrow,
.cs-studio--upload-required .cs-preview-note > span,
.cs-studio--upload-required .cs-range-row output {
  color: #a82d6c;
}

.cs-studio--upload-required .cs-studio__header h2 {
  color: #2c1723;
}

.cs-studio--upload-required .cs-studio__format {
  border-color: rgba(185, 54, 120, .2);
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 8px 22px rgba(81, 35, 59, .07);
}

.cs-studio--upload-required .cs-steps {
  overflow: hidden;
  border-color: #eadce4;
  background: #fffafc;
}

.cs-studio--upload-required .cs-steps li.is-active > span {
  border-color: #b93678;
  background: #b93678;
  box-shadow: 0 7px 18px rgba(185, 54, 120, .25);
}

.cs-studio--upload-required .cs-control-card {
  border-color: #eadce4;
  box-shadow: 0 7px 22px rgba(68, 38, 54, .045);
}

.cs-studio--upload-required .cs-control-card__number {
  background: #fff0f7;
  color: #a82d6c;
}

.cs-studio--upload-required .cs-dropzone {
  border-color: #dca9c4;
  background: linear-gradient(180deg, #fff8fc, #fff);
}

.cs-studio--upload-required .cs-dropzone__icon {
  background: linear-gradient(135deg, #b93678, #8f245e);
  box-shadow: 0 10px 24px rgba(185, 54, 120, .24);
}

.cs-studio--upload-required .cs-dropzone:hover,
.cs-studio--upload-required .cs-dropzone:focus,
.cs-studio--upload-required .cs-dropzone.is-dragging {
  border-color: #b93678;
  background: #fff4f9;
}

.cs-studio--upload-required .cs-output-mode-choice legend {
  color: #2c1723;
  font-size: 15px;
}

.cs-studio--upload-required .cs-output-mode-grid label > span {
  position: relative;
  min-height: 96px;
  padding: 13px 12px 13px 62px;
  border-color: #e8d8e1;
}

.cs-studio--upload-required .cs-output-mode-grid label > span::before {
  position: absolute;
  top: 50%;
  left: 13px;
  width: 36px;
  height: 36px;
  border: 2px solid #c27b9f;
  background-color: #fff8fb;
  content: '';
  transform: translateY(-50%);
}

.cs-studio--upload-required .cs-output-mode-grid label[data-cs-mode='rectangle'] > span::before {
  height: 25px;
  border-radius: 5px;
}

.cs-studio--upload-required .cs-output-mode-grid label[data-cs-mode='circle'] > span::before {
  border-radius: 50%;
}

.cs-studio--upload-required .cs-output-mode-grid label[data-cs-mode='cialdine'] > span::before {
  border: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle, #b93678 0 4px, transparent 5px) 0 0 / 18px 18px,
    #fff5fa;
  box-shadow: inset 0 0 0 1px #dfb5ca;
}

.cs-studio--upload-required .cs-output-mode-grid label[data-cs-mode='deco_shape'] > span::before {
  border: 0;
  background: linear-gradient(180deg, #fff5fa 0 68%, #d9a23a 68%);
  clip-path: polygon(8% 0, 92% 0, 92% 68%, 62% 68%, 50% 100%, 38% 68%, 8% 68%);
}

.cs-studio--upload-required .cs-output-mode-grid input:checked + span {
  border-color: #b93678;
  background: linear-gradient(135deg, #fff5fa, #fffdf8);
  box-shadow: 0 0 0 2px rgba(185, 54, 120, .12), 0 8px 20px rgba(100, 39, 70, .08);
}

.cs-studio--upload-required .cs-output-mode-grid input:checked + span::after {
  position: absolute;
  top: 8px;
  right: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #b93678;
  color: #fff;
  content: '✓';
  font-size: 11px;
  font-weight: 900;
}

.cs-studio--upload-required .cs-repeat-options {
  border-color: #e7c6d7;
  background: linear-gradient(135deg, #fff7fb, #fffdf8);
}

.cs-studio--upload-required .cs-preview-column {
  border-color: rgba(185, 54, 120, .2);
  background:
    radial-gradient(circle at 100% 0, rgba(213, 154, 47, .13), transparent 34%),
    linear-gradient(145deg, #fff5fa, #fffaf2);
  box-shadow: 0 16px 40px rgba(70, 38, 55, .09);
}

.cs-studio--upload-required input[type='range'],
.cs-studio--upload-required .cs-check input {
  accent-color: #b93678;
}

.cs-studio--upload-required .cs-primary-button {
  min-height: 54px;
  padding-right: 22px;
  padding-left: 22px;
}

.cs-studio--upload-required :focus-visible {
  outline: 3px solid rgba(185, 54, 120, .38);
  outline-offset: 3px;
}

@media (min-width: 981px) and (min-height: 760px) {
  .cs-studio--upload-required .cs-preview-column {
    position: sticky;
    top: 96px;
    align-self: start;
  }
}

@media (max-width: 980px) {
  .cs-studio--upload-required .cs-studio__workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .cs-studio--upload-required .cs-controls {
    display: contents;
  }

  .cs-studio--upload-required .cs-control-card--upload {
    order: 1;
    margin-bottom: 0;
  }

  .cs-studio--upload-required .cs-preview-column {
    order: 2;
    margin-top: 0;
  }

  .cs-studio--upload-required .cs-control-card--compose {
    order: 3;
    margin-bottom: 0;
  }
}

@media (max-width: 720px) {
  .cs-studio--upload-required {
    overflow: visible;
  }

  /* The sticky footer needs visible overflow; keep decoration inside the page. */
  .cs-studio--upload-required .cs-studio__halo {
    display: none;
  }

  .cs-studio--upload-required .cs-studio__header {
    margin: 0 0 16px;
    padding: 17px;
  }

  .cs-studio--upload-required .cs-studio__header h2 {
    font-size: 28px;
  }

  .cs-studio--upload-required .cs-studio__footer {
    position: sticky;
    z-index: 8;
    bottom: 0;
    margin-right: -13px;
    margin-bottom: -13px;
    margin-left: -13px;
    padding: 13px;
    border: 1px solid #eadce4;
    border-radius: 16px 16px 0 0;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 -10px 28px rgba(60, 32, 47, .12);
    backdrop-filter: blur(10px);
  }
}

@media (max-width: 640px) {
  .cs-studio--upload-required .cs-output-mode-grid label > span {
    min-height: 74px;
  }
}

@media (forced-colors: active) {
  .cs-studio--upload-required .cs-output-mode-grid label > span::before,
  .cs-studio--upload-required .cs-output-mode-grid input:checked + span::after {
    border: 1px solid CanvasText;
  }
}

/* Clarify the informational size badge; shape controls retain their native radio behavior. */
.cs-studio--upload-required .cs-studio__format-caption {
  display: block;
  margin-bottom: 6px;
  color: #2c1723;
  font-size: 12px;
  font-weight: 600;
}

.cs-studio--upload-required .cs-studio__format-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 0;
  color: #872052;
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cs-studio--upload-required .cs-output-mode-choice fieldset {
  scroll-margin-top: 8rem;
}

.cs-studio--upload-required .cs-studio__format-link:focus {
  outline: 2px solid #872052;
  outline-offset: 4px;
}

/* Override the theme tabindex=-1 focus reset only for the upload shape fieldset. */
.cs-studio--upload-required .cs-output-mode-choice fieldset:focus {
  outline: 2px solid #872052 !important;
  outline-offset: 4px;
}

.cs-studio--upload-required .cs-output-mode-hint {
  margin: 10px 0 0;
  color: #3e3340;
  font-size: 13px;
  line-height: 1.5;
}
