.ds-shell,
.ds-light-base-shell {
  --ds-ink: #1f3441;
  --ds-muted: #5e717b;
  --ds-line: #d8dddf;
  --ds-surface: #fffdfa;
  --ds-accent: #8c6a44;
  color: var(--ds-ink);
}

.ds-design-landing {
  --ds-design-green: #6f8854;
  --ds-design-gold: #efb244;
  --ds-design-ink: #203444;
  color: var(--ds-design-ink);
}

.ds-design-landing-heading {
  max-width: 42rem;
  margin: 0 auto 1.4rem;
  text-align: center;
}

.ds-design-landing-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: 1;
}

.ds-design-landing-heading p {
  margin: 0.75rem 0 0;
  color: var(--ds-muted);
  font-size: 1.05rem;
  line-height: 1.5;
}

.ds-design-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.8rem, 3vw, 1.4rem);
}

.ds-design-product-card {
  position: relative;
  display: grid;
  gap: 0.55rem;
  padding: 0.6rem 0.6rem 0.85rem;
  border-radius: 22px;
  background: #fffdfa;
  color: var(--ds-design-ink);
  text-align: center;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(31, 52, 65, 0.12);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ds-design-product-card::before {
  content: "1";
  position: absolute;
  top: 0.78rem;
  left: 0.78rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--ds-design-gold);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(190, 131, 36, 0.24);
}

.ds-design-product-card:hover,
.ds-design-product-card:focus-visible {
  color: var(--ds-design-ink);
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(31, 52, 65, 0.18);
}

.ds-design-product-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1.2 / 1;
  object-fit: cover;
  border-radius: 18px;
  background: #f5efe7;
}

.ds-design-card-title {
  display: block;
  padding: 0 0.3rem;
  font-size: clamp(1rem, 3.8vw, 1.3rem);
  font-weight: 700;
  line-height: 1.1;
}

.ds-design-card-price {
  display: block;
  color: var(--ds-design-ink);
  font-size: clamp(0.75rem, 2.8vw, 0.9rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ds-design-card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.45rem;
  margin: 0.15rem 0.5rem 0;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #7f9861 0%, var(--ds-design-green) 100%);
  color: #fff;
  font-size: clamp(0.78rem, 2.9vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ds-checkout-notice {
  margin: 0 0 1rem;
  padding: 0.95rem 1.1rem;
  border-radius: 18px;
  border: 1px solid var(--ds-line);
  background: #fffdfa;
}

.ds-checkout-notice p {
  margin: 0;
  color: var(--ds-ink);
}

.ds-checkout-success {
  border-color: rgba(52, 104, 75, 0.24);
  background: #f4faf5;
}

.ds-checkout-cancel {
  border-color: rgba(140, 106, 68, 0.22);
  background: #fdf8f1;
}

.ds-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 2rem;
  align-items: start;
  margin: 1rem 0 3rem;
}

.ds-left-column {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

.ds-product-stage,
.ds-summary,
.ds-gallery-panel,
.ds-size-card,
.ds-step,
.ds-copy-panel,
.ds-faq-item,
.ds-snapshot-card,
.ds-support-card {
  background: var(--ds-surface);
  border: 1px solid var(--ds-line);
  border-radius: 24px;
}

.ds-product-stage {
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(27, 42, 54, 0.08);
}

.ds-design-studio-shell.ds-template-active .ds-product-stage {
  background: #000;
}

.ds-product-image,
.ds-product-video {
  display: block;
  width: 100%;
  height: auto;
}

.ds-product-video {
  background: #000;
}

.ds-product-video[hidden] {
  display: none;
}

.ds-stage-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 0.9rem;
}

.ds-open-editor,
.ds-primary,
.ds-save-button {
  border: 0;
  border-radius: 999px;
  padding: 0.95rem 1.35rem;
  color: #fff;
  cursor: pointer;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
}

.ds-open-editor,
.ds-open-editor:visited,
.ds-open-editor:hover,
.ds-open-editor:focus-visible,
.ds-open-editor:active,
.ds-primary,
.ds-primary:visited,
.ds-primary:hover,
.ds-primary:focus-visible,
.ds-primary:active,
.ds-link-button.ds-primary,
.ds-link-button.ds-primary:visited,
.ds-link-button.ds-primary:hover,
.ds-link-button.ds-primary:focus-visible,
.ds-link-button.ds-primary:active,
.ds-save-button,
.ds-save-button:visited,
.ds-save-button:hover,
.ds-save-button:focus-visible,
.ds-save-button:active,
.ds-floating-cart,
.ds-floating-cart:visited,
.ds-floating-cart:hover,
.ds-floating-cart:focus-visible,
.ds-floating-cart:active {
  color: #f8fbff !important;
}

.ds-primary,
.ds-save-button {
  background: linear-gradient(135deg, #35556d 0%, #203444 100%);
}

.ds-secondary[data-ds-payment-button] {
  background: linear-gradient(135deg, #d63b74 0%, #c92b63 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 12px 24px rgba(201, 43, 99, 0.2);
}

.ds-secondary[data-ds-payment-button]:hover,
.ds-secondary[data-ds-payment-button]:focus-visible {
  background: linear-gradient(135deg, #bf245b 0%, #ad194f 100%);
  border-color: transparent;
  color: #fff;
}

.ds-primary:hover,
.ds-primary:focus-visible,
.ds-link-button.ds-primary:hover,
.ds-link-button.ds-primary:focus-visible,
.ds-open-editor:hover,
.ds-open-editor:focus-visible,
.ds-save-button:hover,
.ds-save-button:focus-visible {
  background: linear-gradient(135deg, #d63b74 0%, #c92b63 100%);
  color: #fff;
  text-decoration: none;
}

.ds-link-button {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.ds-utility-button {
  min-height: 3.4rem;
  padding: 0.95rem 1.2rem;
  box-shadow: 0 10px 22px rgba(23, 39, 50, 0.12);
}

.ds-cart-link-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.55rem;
  height: 1.55rem;
  padding: 0 0.42rem;
  border-radius: 999px;
  background: #203444;
  color: #fff;
  font-size: 0.78rem;
  line-height: 1;
}

.ds-cart-link-badge[hidden] {
  display: none !important;
}

.ds-open-editor {
  padding: 0.72rem 1.1rem;
  font-size: 0.92rem;
  line-height: 1.1;
  background: linear-gradient(135deg, #35556d 0%, #203444 100%);
  box-shadow: 0 10px 22px rgba(23, 39, 50, 0.14);
}

.ds-design-studio-shell .ds-left-column {
  gap: 1rem;
}

.ds-design-studio-shell .ds-stage-actions {
  margin-top: 0.75rem;
}

.ds-floating-cart {
  position: fixed;
  top: calc(0.75rem + env(safe-area-inset-top));
  right: calc(0.75rem + env(safe-area-inset-right));
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.55rem;
  padding: 0.48rem 0.72rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #35556d 0%, #203444 100%);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(23, 39, 50, 0.22);
}

.ds-floating-cart:hover,
.ds-floating-cart:focus-visible {
  background: linear-gradient(135deg, #d63b74 0%, #c92b63 100%);
  color: #fff;
  text-decoration: none;
}

.ds-floating-cart[hidden] {
  display: none !important;
}

.ds-floating-cart strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #203444;
  font-size: 0.76rem;
}

.ds-floating-cart strong[hidden] {
  display: none !important;
}

.ds-secondary,
.ds-editor-toolbar button,
.ds-choice {
  border: 1px solid var(--ds-line);
  border-radius: 16px;
  background: #fff;
  color: var(--ds-ink);
  cursor: pointer;
}

.ds-secondary:disabled,
.ds-primary:disabled,
.ds-save-button:disabled {
  opacity: 0.7;
  cursor: wait;
}

.ds-stage-caption,
.ds-note {
  color: var(--ds-muted);
  margin-top: 0.75rem;
}

.ds-design-studio-shell .ds-stage-caption {
  display: none;
}

.ds-tax-note {
  font-size: 0.95rem;
  line-height: 1.5;
}

.ds-summary {
  padding: 2rem;
  background: linear-gradient(180deg, #fffdfa 0%, #f6f1e8 100%);
}

.ds-design-studio-shell .ds-summary {
  padding: clamp(1.25rem, 4vw, 1.65rem);
}

.ds-gallery-panel {
  padding: 1.5rem;
  background: linear-gradient(180deg, #fffdfa 0%, #fbf6ef 100%);
}

.ds-eyebrow,
.ds-size-orientation,
.ds-step-index {
  color: var(--ds-muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ds-title {
  font-size: clamp(1.1rem, 1.5vw, 1.45rem);
  line-height: 1.2;
  margin: 0.75rem 0 0.35rem;
  font-weight: 600;
}

.ds-selection-label {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 3vw, 2.9rem);
  line-height: 1.1;
  font-weight: 700;
}

.ds-light-base-style {
  margin: -0.4rem 0 1rem;
  color: var(--ds-muted);
  font-size: 1rem;
  line-height: 1.5;
}

.ds-light-base-specs {
  margin: 1.2rem 0 1rem;
}

.ds-description,
.ds-reassurance,
.ds-help,
.ds-copy-panel p,
.ds-step p,
.ds-faq-item p {
  color: var(--ds-muted);
  line-height: 1.7;
}

.ds-description p {
  margin: 0 0 0.9rem;
}

.ds-description p:last-child {
  margin-bottom: 0;
}

.ds-reassurance {
  margin-top: 1.35rem;
}

.ds-summary-size-field {
  margin: 1.35rem 0 1.25rem;
}

.ds-price-block {
  margin: 1.5rem 0;
  padding: 1rem 0 1.25rem;
  border-top: 1px solid var(--ds-line);
  border-bottom: 1px solid var(--ds-line);
}

.ds-design-studio-shell .ds-price-block {
  margin: 0.85rem 0 1rem;
  padding: 0.85rem 0 1rem;
}

.ds-price-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 255px);
  gap: 1rem;
  align-items: start;
}

.ds-design-studio-shell .ds-price-layout {
  grid-template-columns: minmax(0, 1fr) minmax(160px, 210px);
}

.ds-design-studio-shell .ds-base-card {
  grid-column: 1 / -1;
}

.ds-design-purchase {
  display: grid;
  gap: 0.45rem;
  align-self: stretch;
  margin: 0.6rem 0 0;
}

.ds-design-studio-shell:not(.ds-has-placement) .ds-design-purchase {
  display: none;
}

.ds-design-purchase .ds-secondary[data-ds-payment-button] {
  width: 100%;
  min-height: 2.55rem;
  border: 0;
  border-radius: 999px;
  padding: 0.58rem 0.9rem;
  cursor: pointer;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 10px 20px rgba(201, 43, 99, 0.16);
}

.ds-quantity-control {
  display: grid;
  gap: 0.35rem;
}

.ds-quantity-label {
  color: var(--ds-muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.ds-quantity-stepper {
  display: grid;
  grid-template-columns: 2.05rem minmax(2.25rem, 1fr) 2.05rem;
  align-items: center;
  border: 1px solid var(--ds-line);
  border-radius: 999px;
  background: #fffdfa;
  overflow: hidden;
}

.ds-quantity-stepper button {
  min-height: 2.15rem;
  border: 0;
  background: transparent;
  color: var(--ds-ink);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.ds-quantity-stepper button:hover,
.ds-quantity-stepper button:focus-visible {
  background: rgba(214, 59, 116, 0.1);
}

.ds-quantity-stepper input {
  width: 100%;
  min-width: 0;
  min-height: 2.15rem;
  border: 0;
  border-left: 1px solid var(--ds-line);
  border-right: 1px solid var(--ds-line);
  background: transparent;
  color: var(--ds-ink);
  text-align: center;
  font: inherit;
  font-weight: 700;
  appearance: textfield;
}

.ds-design-studio-shell .ds-fieldset {
  margin-bottom: 1rem;
}

.ds-design-studio-shell .ds-form-footer > * {
  min-height: 2.75rem;
  padding: 0.68rem 0.9rem;
}

.ds-quantity-stepper input::-webkit-outer-spin-button,
.ds-quantity-stepper input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.ds-price-label {
  display: block;
  color: var(--ds-muted);
}

.ds-price {
  font-size: clamp(1.85rem, 2.6vw, 2.65rem);
  font-weight: 600;
  margin: 0.25rem 0 0.35rem;
}

.ds-price-compare {
  margin: 0;
  color: var(--ds-muted);
  font-size: 0.95rem;
}

.ds-base-price-breakdown {
  display: grid;
  gap: 0.5rem;
  margin-top: 1rem;
}

.ds-base-price-breakdown[hidden] {
  display: none;
}

.ds-base-price-row strong {
  color: var(--ds-ink);
}

.ds-msrp {
  text-decoration: line-through;
}

.ds-base-card {
  margin: 1.5rem 0;
  padding: 1rem;
  border: 1px solid var(--ds-line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
}

.ds-base-card-title,
.ds-base-card-name {
  margin: 0;
  font-weight: 600;
}

.ds-base-card-media {
  margin-top: 0.85rem;
}

.ds-base-card-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--ds-line);
  background: #fff;
}

.ds-base-card-copy {
  display: grid;
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.ds-base-card-retail,
.ds-base-card-warning {
  margin: 0;
  color: var(--ds-muted);
  font-size: 0.95rem;
}

.ds-base-card-retail strong {
  color: var(--ds-ink);
}

.ds-base-card-details {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--ds-line);
}

.ds-base-checkbox {
  align-items: flex-start;
  margin-top: 0.95rem;
}

.ds-base-checkbox span {
  font-weight: 600;
}

.ds-base-card-confirm-title {
  margin: 0;
  font-weight: 600;
}

.ds-base-card-warning {
  white-space: pre-line;
}

.ds-base-confirm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.1rem;
}

.ds-base-action {
  min-height: 2.05rem;
  padding: 0.42rem 0.78rem;
  border-radius: 999px;
  border: 1px solid var(--ds-line);
  background: #fff;
  color: var(--ds-ink);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}

.ds-base-remove-confirm {
  background: linear-gradient(135deg, #35556d 0%, #203444 100%);
  color: #fff;
  border-color: transparent;
}

.ds-base-action:hover,
.ds-base-action:focus-visible {
  background: linear-gradient(135deg, #d63b74 0%, #c92b63 100%);
  color: #fff;
  border-color: transparent;
}

.ds-fieldset {
  margin-bottom: 1.25rem;
}

.ds-fieldset[hidden],
.ds-section[hidden],
.ds-editor-toolbar button[hidden],
.ds-support-card[hidden],
.ds-base-card[hidden],
.ds-base-card-details[hidden],
.ds-base-card-media[hidden] {
  display: none !important;
}

.ds-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.ds-segmented,
.ds-form-footer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.ds-form-footer > * {
  min-height: 3.4rem;
}

.ds-choice,
.ds-select,
.ds-file,
.ds-input,
.ds-textarea,
.ds-editor-toolbar button {
  padding: 0.95rem 1rem;
}

.ds-choice.is-active,
.ds-size-card.is-active {
  border-color: var(--ds-accent);
  background: rgba(140, 106, 68, 0.09);
}

.ds-select,
.ds-file,
.ds-input,
.ds-textarea {
  width: 100%;
  border: 1px solid var(--ds-line);
  border-radius: 16px;
  background: #fff;
}

.ds-address-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.ds-span-2 {
  grid-column: 1 / -1;
}

.ds-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
}

.ds-checkbox input {
  margin: 0;
}

.ds-snapshot-card {
  min-height: 180px;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ds-snapshot-card img {
  max-width: 100%;
  max-height: 240px;
  border-radius: 16px;
}

.ds-mini-cart {
  margin-top: 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--ds-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.ds-mini-cart-title {
  margin: 0 0 0.35rem;
  font-weight: 600;
}

.ds-mini-cart-summary {
  margin: 0;
  color: var(--ds-muted);
}

.ds-sections {
  margin-top: 3rem;
}

.ds-section {
  margin: 3rem 0;
}

.ds-section-heading {
  margin-bottom: 1.25rem;
  max-width: 720px;
}

.ds-size-grid,
.ds-steps,
.ds-gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.ds-size-card,
.ds-step,
.ds-copy-panel {
  padding: 1.4rem;
}

.ds-size-card h4 {
  margin: 0.35rem 0 0.4rem;
}

.ds-size-price-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: baseline;
  margin-top: 0.9rem;
}

.ds-size-price {
  font-weight: 600;
}

.ds-size-msrp {
  color: var(--ds-muted);
  font-size: 0.95rem;
  text-decoration: line-through;
}

.ds-support-card {
  padding: 1rem;
}

.ds-gallery-card {
  appearance: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  background: #fff;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.ds-gallery-card:hover,
.ds-gallery-card.is-active {
  transform: translateY(-1px);
  border-color: var(--ds-accent);
  box-shadow: 0 12px 24px rgba(33, 49, 61, 0.08);
}

.ds-support-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.ds-video-card video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  background: #000;
}

.ds-gallery-card span {
  display: block;
  margin-top: 0.85rem;
  color: var(--ds-muted);
  font-size: 0.95rem;
  line-height: 1.4;
}

.ds-faq {
  display: grid;
  gap: 0.85rem;
}

.ds-faq-item {
  padding: 1rem 1.25rem;
}

.ds-faq-item summary {
  cursor: pointer;
  font-weight: 600;
}

.ds-cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 2rem;
  align-items: start;
}

.ds-cart-items {
  display: grid;
  gap: 1rem;
}

.ds-cart-item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--ds-line);
  border-radius: 20px;
  background: #fff;
}

.ds-cart-item-copy {
  min-width: 0;
}

.ds-cart-item-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.ds-cart-item-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.ds-cart-item-copy h3,
.ds-cart-item-copy p {
  margin: 0 0 0.4rem;
}

.ds-cart-item-copy p:last-child {
  margin-bottom: 0;
  color: var(--ds-muted);
}

.ds-promo-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
}

.ds-promo-applied {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.75rem;
}

.ds-promo-applied .ds-note {
  margin: 0;
  flex: 1 1 220px;
}

.ds-confirmation-shell {
  display: grid;
  gap: 2rem;
}

.ds-confirmation-hero {
  padding: 2rem;
}

.ds-confirmation-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem 1.25rem;
  margin: 1.25rem 0 0;
}

.ds-confirmation-meta p {
  margin: 0;
}

.ds-confirmation-actions {
  margin-top: 1.25rem;
}

.ds-confirmation-items {
  display: grid;
  gap: 1rem;
}

.ds-confirmation-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.ds-confirmation-addresses {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem 1.5rem;
  margin-top: 1.25rem;
}

.ds-confirmation-addresses h4,
.ds-confirmation-addresses p {
  margin: 0 0 0.45rem;
}

.ds-editor-modal {
  position: fixed;
  inset: 0;
  background: rgba(12, 34, 49, 0.88);
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1.25rem;
  overflow-y: auto;
}

.ds-editor-modal[hidden] {
  display: none !important;
}

.ds-editor-dialog {
  width: min(1080px, 100%);
  max-height: calc(100vh - 2.5rem);
  overflow-y: auto;
  background: #17364b;
  color: #fff;
  border-radius: 28px;
  padding: 1rem;
  position: relative;
}

.ds-editor-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 44px;
  margin-bottom: 0.35rem;
}

.ds-editor-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 360px);
  gap: 1rem;
  align-items: start;
}

.ds-editor-close {
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
}

.ds-editor-visual {
  display: grid;
  gap: 0.65rem;
}

.ds-editor-processing-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  line-height: 1.35;
  text-align: center;
}

.ds-editor-stage {
  padding: 0.25rem 0 0.5rem;
  display: flex;
  justify-content: center;
}

.ds-editor-crop {
  --ds-ratio: 1;
  position: relative;
  width: min(58vw, 660px);
  aspect-ratio: var(--ds-ratio);
  overflow: hidden;
  cursor: grab;
  background: #000;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

.ds-editor-crop:active {
  cursor: grabbing;
}

.ds-editor-crop > img {
  position: absolute;
}

.ds-editor-photo-clip {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  overflow: hidden;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  contain: paint;
}

[data-ds-editor-user-image] {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  filter: grayscale(1);
  transform: translate(-50%, -50%) scale(1) rotate(0deg);
  will-change: left, top, transform;
  touch-action: none;
  cursor: inherit;
  transform-origin: center center;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  pointer-events: none;
  z-index: 1;
}

[data-ds-editor-user-image]:not([src]),
[data-ds-editor-user-image][src=""] {
  display: none;
}

[data-ds-editor-frame] {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  z-index: 2;
}

.ds-editor-helper {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
  line-height: 1.35;
  text-align: center;
}

.ds-editor-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.15rem;
}

.ds-editor-button {
  min-height: 48px;
  border-radius: 18px;
  font-size: 1rem;
  line-height: 1.2;
  padding: 0.85rem 1rem;
  width: 100%;
  touch-action: manipulation;
}

.ds-editor-button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.ds-editor-button-secondary:hover,
.ds-editor-button-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.14);
}

.ds-editor-button-primary {
  min-height: 54px;
  font-weight: 600;
}

.ds-editor-button-change {
  min-height: 52px;
  background: #fff;
  color: var(--ds-ink);
}

.ds-editor-button-change:hover,
.ds-editor-button-change:focus-visible {
  background: #fff;
  color: var(--ds-ink);
}

.ds-editor-toolbar .ds-save-button,
.ds-editor-toolbar .ds-save-button:visited,
.ds-editor-toolbar .ds-save-button:hover,
.ds-editor-toolbar .ds-save-button:focus-visible,
.ds-editor-toolbar .ds-save-button:active {
  color: var(--ds-ink) !important;
}

.ds-editor-row {
  display: block;
}

.ds-editor-row-label {
  display: none;
}

.ds-editor-row-buttons {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  min-width: 0;
}

.ds-editor-row-buttons .ds-editor-button {
  flex: 1 1 0;
  min-width: 0;
}

.ds-modal-open {
  overflow: hidden;
}

@media (max-width: 980px) {
  .ds-hero,
  .ds-cart-layout,
  .ds-size-grid,
  .ds-steps,
  .ds-gallery-grid,
  .ds-form-footer,
  .ds-price-layout {
    grid-template-columns: 1fr;
  }

  .ds-address-grid {
    grid-template-columns: 1fr;
  }

  .ds-promo-row {
    grid-template-columns: 1fr;
  }

  .ds-span-2 {
    grid-column: auto;
  }

  .ds-summary {
    padding: 1.5rem;
  }

  .ds-editor-stage {
    padding: 1rem 0;
  }
}

@media (min-width: 900px) {
  .ds-design-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .ds-design-studio-shell .ds-price-layout {
    grid-template-columns: minmax(0, 1fr) minmax(140px, 0.72fr);
    align-items: stretch;
  }

  .ds-design-studio-shell .ds-base-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .ds-design-studio-shell .ds-price-layout {
    grid-template-columns: minmax(0, 1fr) minmax(112px, 0.58fr);
    gap: 0.55rem;
  }

  .ds-design-studio-shell .ds-price {
    font-size: clamp(1.75rem, 10vw, 2.35rem);
  }

  .ds-design-purchase {
    gap: 0.35rem;
  }

  .ds-design-purchase .ds-secondary[data-ds-payment-button] {
    min-height: 2.35rem;
    padding: 0.46rem 0.7rem;
    font-size: 0.82rem;
  }

  .ds-quantity-label {
    font-size: 0.74rem;
  }

  .ds-quantity-stepper {
    grid-template-columns: 1.85rem minmax(2rem, 1fr) 1.85rem;
  }

  .ds-quantity-stepper button,
  .ds-quantity-stepper input {
    min-height: 2.05rem;
  }
}

@media (max-width: 360px) {
  .ds-design-product-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .ds-editor-modal {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    padding: 0;
    overflow: hidden;
    align-items: stretch;
  }

  .ds-editor-dialog {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    padding: 10px 8px calc(10px + env(safe-area-inset-bottom));
    border-radius: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .ds-editor-header {
    min-height: 36px;
    flex: 0 0 auto;
    margin-bottom: 0.1rem;
    padding-right: max(0px, env(safe-area-inset-right));
  }

  .ds-editor-close {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    font-size: 1.55rem;
  }

  .ds-editor-body {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .ds-editor-visual {
    width: 100%;
    min-height: 0;
    max-height: 62dvh;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 8px;
  }

  .ds-editor-processing-note {
    font-size: 12px;
    line-height: 1.25;
  }

  .ds-editor-stage {
    width: 100%;
    min-height: 48dvh;
    max-height: 62dvh;
    padding: 0;
    align-items: center;
    overflow: hidden;
  }

  .ds-editor-crop {
    width: 100%;
    max-width: 100%;
    max-height: 100%;
  }

  .ds-editor-helper {
    font-size: 14px;
    line-height: 1.3;
    margin: 0 0 2px;
  }

  .ds-editor-toolbar {
    width: 100%;
    flex: 0 0 auto;
    gap: 6px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
  }

  .ds-editor-button {
    height: 44px;
    min-height: 44px;
    max-height: 44px;
    border-radius: 16px;
    font-size: 0.92rem;
    line-height: 1.15;
  }

  .ds-editor-button-change {
    height: 46px;
    min-height: 46px;
    max-height: 46px;
  }

  .ds-editor-button-primary {
    height: 48px;
    min-height: 48px;
    max-height: 48px;
  }

  .ds-editor-row {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 6px;
  }

  .ds-editor-row-label {
    display: block;
    width: auto;
    flex: 0 0 auto;
    font-size: 13px;
    line-height: 1.2;
  }

  .ds-editor-row-buttons {
    display: flex;
    grid-template-columns: none;
    gap: 6px;
    min-width: 0;
  }

  .ds-editor-row-buttons .ds-editor-button,
  .ds-editor-button {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

@media (max-width: 640px) {
  .ds-cart-item {
    grid-template-columns: 110px minmax(0, 1fr);
    align-items: start;
  }

  .ds-cart-item-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    margin-top: 0.25rem;
  }

  .ds-editor-row {
    align-items: center;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .ds-editor-dialog {
    width: min(920px, calc(100vw - 1.5rem));
    padding: 1rem;
  }

  .ds-editor-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .ds-editor-visual {
    gap: 0.75rem;
  }

  .ds-editor-stage {
    min-height: min(56vh, 620px);
    padding: 0.25rem 0 0.35rem;
  }

  .ds-editor-crop {
    width: min(100%, 720px);
  }

  .ds-editor-toolbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .ds-editor-row {
    display: block;
  }

  .ds-editor-row-label {
    display: none !important;
  }

  .ds-editor-row-buttons {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .ds-editor-button {
    min-height: 52px;
  }
}

@media (min-width: 1200px) {
  .ds-editor-dialog {
    width: min(1120px, calc(100vw - 2rem));
    padding: 1.25rem;
  }

  .ds-editor-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 340px);
    gap: 1.25rem;
    align-items: start;
  }

  .ds-editor-visual {
    gap: 0.75rem;
  }

  .ds-editor-stage {
    min-height: min(60vh, 680px);
    padding: 0.25rem 0 0.5rem;
  }

  .ds-editor-crop {
    width: min(100%, 680px);
  }

  .ds-editor-toolbar {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .ds-editor-row {
    display: block;
  }

  .ds-editor-row-label {
    display: none !important;
  }

  .ds-editor-row-buttons {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .ds-editor-row-buttons .ds-editor-button {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .ds-editor-modal {
    height: 100svh !important;
    height: 100dvh !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  .ds-editor-dialog {
    box-sizing: border-box !important;
    height: 100svh !important;
    height: 100dvh !important;
    max-height: 100svh !important;
    max-height: 100dvh !important;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom)) !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .ds-editor-header {
    height: 32px !important;
    min-height: 32px !important;
    margin: 0 !important;
  }

  .ds-editor-close {
    width: 32px !important;
    height: 32px !important;
    flex: 0 0 32px !important;
    font-size: 1.35rem !important;
  }

  .ds-editor-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
  }

  .ds-editor-visual {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
  }

  .ds-editor-processing-note {
    margin: 0 !important;
    padding: 0 34px 0 6px !important;
    font-size: 11px !important;
    line-height: 1.18 !important;
  }

  .ds-editor-stage {
    flex: 1 1 auto !important;
    display: flex !important;
    justify-content: center !important;
    min-height: 180px !important;
    max-height: calc(100svh - 292px) !important;
    max-height: calc(100dvh - 292px) !important;
    height: auto !important;
    padding: 0 !important;
    overflow: hidden !important;
    align-items: center !important;
  }

  .ds-editor-crop {
    display: block !important;
    width: min(100%, 620px) !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    aspect-ratio: var(--ds-ratio) !important;
    flex: 0 1 auto !important;
  }

  .ds-editor-helper {
    margin: 0 !important;
    font-size: 12px !important;
    line-height: 1.15 !important;
  }

  .ds-editor-toolbar {
    flex: 0 0 auto !important;
    gap: 4px !important;
    padding-bottom: calc(6px + env(safe-area-inset-bottom)) !important;
  }

  .ds-editor-row {
    display: grid !important;
    grid-template-columns: 48px minmax(0, 1fr) !important;
    gap: 4px !important;
    align-items: center !important;
  }

  .ds-editor-row-label {
    display: block !important;
    width: auto !important;
    font-size: 12px !important;
    line-height: 1 !important;
  }

  .ds-editor-row-buttons {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 4px !important;
  }

  .ds-editor-button,
  .ds-editor-row-buttons .ds-editor-button,
  .ds-editor-button-change,
  .ds-editor-button-primary {
    box-sizing: border-box !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    padding: 0 8px !important;
    border-radius: 13px !important;
    font-size: 14px !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
  }

  .ds-editor-button-primary {
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    font-weight: 600 !important;
  }
}

@media (max-width: 767px) and (max-height: 720px) {
  .ds-editor-processing-note {
    display: none !important;
  }

  .ds-editor-button,
  .ds-editor-row-buttons .ds-editor-button,
  .ds-editor-button-change {
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    font-size: 13px !important;
  }

  .ds-editor-button-primary {
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    font-size: 13px !important;
  }
}
