.abcd-app,
.abcd-app * {
  box-sizing: border-box;
}

.abcd-app {
  --abcd-radius: 18px;
  --abcd-border: #e5e7eb;
  --abcd-muted: #6b7280;
  --abcd-ink: #111827;
  --abcd-soft: #f8fafc;
  --abcd-brand: #0f172a;
  font-family: Arial, Tahoma, sans-serif;
  color: var(--abcd-ink);
  max-width: 1520px;
  margin: 0 auto;
  container-name: abcd-studio;
  container-type: inline-size;
  text-align: start;
}

.abcd-app[dir="rtl"] {
  direction: rtl;
}

.abcd-app[dir="ltr"] {
  direction: ltr;
}

.abcd-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  border: 1px solid var(--abcd-border);
  border-radius: var(--abcd-radius);
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  box-shadow: 0 18px 50px rgba(15, 23, 42, .07);
  margin-bottom: 22px;
}

.abcd-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #2563eb;
  margin-bottom: 8px;
}

.abcd-hero h2,
.abcd-studio-title h3,
.abcd-editor-panel h4,
.abcd-right-panel h4 {
  margin: 0;
  line-height: 1.2;
}

.abcd-hero h2 {
  font-size: clamp(24px, 3vw, 38px);
  max-width: 720px;
}

.abcd-hero p {
  margin: 10px 0 0;
  color: var(--abcd-muted);
  max-width: 680px;
}

.abcd-size-note {
  min-width: 210px;
  padding: 18px;
  border-radius: 18px;
  background: #0f172a;
  color: #fff;
  text-align: center;
}

.abcd-size-note strong {
  display: block;
  font-size: 24px;
}

.abcd-size-note span {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: rgba(255,255,255,.72);
}

.abcd-notice {
  padding: 14px 16px;
  margin: 0 0 18px;
  border-radius: 12px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.abcd-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 20px;
}

.abcd-filters label,
.abcd-field-grid label,
.abcd-upload-label,
.abcd-top-option,
.abcd-guide-toggle,
.abcd-zoom-control,
.abcd-selected-element label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: #374151;
}

.abcd-filters select,
.abcd-field-grid input,
.abcd-field-grid select,
.abcd-upload-label input,
.abcd-upload-label textarea,
.abcd-top-option select,
.abcd-selected-element input,
.abcd-mini-grid input {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--abcd-border);
  border-radius: 12px;
  background: #fff;
  color: #111827;
  outline: none;
  box-shadow: none;
}

.abcd-field-grid input[type="color"],
.abcd-selected-element input[type="color"] {
  padding: 4px;
}

.abcd-filters select:focus,
.abcd-field-grid input:focus,
.abcd-field-grid select:focus,
.abcd-upload-label textarea:focus,
.abcd-top-option select:focus,
.abcd-selected-element input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .13);
}

.abcd-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.abcd-template-card[hidden] {
  display: none !important;
}

.abcd-template-button {
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--abcd-border);
  border-radius: var(--abcd-radius);
  cursor: pointer;
  text-align: start;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
}

.abcd-template-button:hover {
  transform: translateY(-3px);
  border-color: #c7d2fe;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .12);
}

.abcd-mini-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 85 / 55;
  overflow: hidden;
  border-radius: 16px;
  background: var(--abcd-bg);
  border: 1px solid rgba(15, 23, 42, .08);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.45);
  direction: ltr;
}

.abcd-mini-card.is-vertical {
  aspect-ratio: 55 / 85;
  max-width: 62%;
  margin: 0 auto;
}

.abcd-mini-band {
  position: absolute;
  inset: 0 auto 0 0;
  width: 31%;
  background: var(--abcd-primary);
}

.abcd-mini-band::after {
  content: "";
  position: absolute;
  top: 0;
  right: -8px;
  width: 8px;
  height: 100%;
  background: var(--abcd-accent);
}

.abcd-mini-logo {
  position: absolute;
  left: 8%;
  top: 22%;
  width: 15%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--abcd-accent);
}

.abcd-mini-line {
  position: absolute;
  left: 39%;
  height: 8px;
  border-radius: 99px;
  background: var(--abcd-text);
  opacity: .88;
}

.abcd-mini-line-1 { top: 31%; width: 42%; height: 12px; }
.abcd-mini-line-2 { top: 46%; width: 28%; background: var(--abcd-accent); }
.abcd-mini-line-3 { top: 67%; width: 48%; opacity: .4; }

.abcd-card-title {
  font-size: 16px;
  font-weight: 800;
  color: #111827;
}

.abcd-card-meta {
  color: var(--abcd-muted);
  font-size: 13px;
}

.abcd-card-cta {
  align-self: flex-start;
  display: inline-flex;
  padding: 9px 14px;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
}

.abcd-designer[hidden] {
  display: none !important;
}

.abcd-designer {
  position: relative;
  margin-top: 28px;
  border: 1px solid #dbe3ef;
  border-radius: 24px;
  background: #eef2f7;
  overflow: visible;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .13);
}

.abcd-studio-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 74px 14px 18px;
  padding-inline: 18px 74px;
  background: rgba(255,255,255,.95);
  border-bottom: 1px solid #dbe3ef;
  border-radius: 23px 23px 0 0;
  backdrop-filter: blur(12px);
}

.abcd-studio-title {
  flex: 1 1 210px;
  min-width: 0;
}

.abcd-studio-title h3 {
  font-size: 19px;
}

.abcd-studio-actions {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex: 1 1 760px;
  min-width: 0;
}

.abcd-top-option {
  flex: 1 1 135px;
  min-width: min(135px, 100%);
  font-size: 11px;
}

.abcd-top-option select {
  min-height: 36px;
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 13px;
}

.abcd-close-designer {
  position: absolute;
  inset-block-start: 14px;
  inset-inline-end: 18px;
  width: 38px;
  height: 38px;
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  background: #fff;
  color: #0f172a;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.abcd-studio-layout {
  display: grid;
  grid-template-columns: 78px minmax(270px, 310px) minmax(0, 1fr);
  min-height: 640px;
}

.abcd-studio-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 10px;
  background: #ffffff;
  border-inline-end: 1px solid #dbe3ef;
}

.abcd-tool-tab {
  min-height: 58px;
  padding: 8px 6px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: #fff;
  color: #334155;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.abcd-tool-tab:hover,
.abcd-tool-tab.is-active {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.abcd-editor-panel {
  padding: 18px;
  background: #ffffff;
  border-inline-end: 1px solid #dbe3ef;
  overflow: visible;
  max-height: none;
}

.abcd-tool-panel {
  display: none;
}

.abcd-tool-panel.is-active {
  display: grid;
  gap: 16px;
}

.abcd-field-grid {
  display: grid;
  gap: 12px;
}

.abcd-style-grid {
  grid-template-columns: 1fr 1fr;
}

.abcd-upload-label textarea {
  min-height: 92px;
  resize: vertical;
}

.abcd-add-text,
.abcd-add-qr,
.abcd-remove-logo,
.abcd-delete-element,
.abcd-add-to-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 14px;
  border: 0;
  border-radius: 13px;
  background: #0f172a;
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
}

.abcd-remove-logo,
.abcd-delete-element {
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #cbd5e1;
}

.abcd-add-to-cart {
  width: 100%;
  min-height: 52px;
  background: #2563eb;
}

.abcd-add-to-cart:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.abcd-guide-toggle {
  display: flex;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  background: #f8fafc;
}

.abcd-panel-note,
.abcd-print-note,
.abcd-helper-card p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

.abcd-selected-element {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #dbe3ef;
  border-radius: 16px;
  background: #f8fafc;
}

.abcd-selected-element[hidden] {
  display: none !important;
}

.abcd-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.abcd-preview-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #e8edf5;
}

.abcd-canvas-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: #f8fafc;
  border-bottom: 1px solid #dbe3ef;
}

.abcd-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid #dbe3ef;
  border-radius: 999px;
  background: #fff;
}

.abcd-tabs button {
  border: 0;
  border-radius: 999px;
  padding: 8px 16px;
  background: transparent;
  cursor: pointer;
  color: #475569;
  font-weight: 800;
}

.abcd-tabs button.is-active {
  background: #0f172a;
  color: #fff;
}

.abcd-zoom-control {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.abcd-canvas-stage {
  flex: 1;
  min-height: clamp(380px, 55dvh, 560px);
  display: grid;
  place-items: center;
  padding: clamp(14px, 2.5vw, 34px);
  overflow: auto;
  background:
    radial-gradient(circle at center, rgba(148,163,184,.22), transparent 35%),
    linear-gradient(45deg, rgba(255,255,255,.32) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.32) 75%, rgba(255,255,255,.32)),
    linear-gradient(45deg, rgba(255,255,255,.32) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.32) 75%, rgba(255,255,255,.32));
  background-position: 0 0, 0 0, 12px 12px;
  background-size: auto, 24px 24px, 24px 24px;
}

.abcd-canvas-wrap {
  width: min(100%, 760px);
  max-width: 100%;
  transform-origin: center center;
  transition: transform .12s ease;
}

.abcd-canvas {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 26px 70px rgba(15, 23, 42, .28), 0 0 0 1px rgba(15,23,42,.06);
  cursor: grab;
  direction: ltr;
}

.abcd-canvas:active {
  cursor: grabbing;
}

.abcd-canvas[hidden] {
  display: none !important;
}

.abcd-print-note {
  padding: 12px 18px 18px;
  background: #f8fafc;
  border-top: 1px solid #dbe3ef;
}

.abcd-right-panel {
  display: grid;
  align-content: start;
  gap: 14px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 18px;
  background: #ffffff;
  border-inline-start: 0;
  border-top: 1px solid #dbe3ef;
  overflow: visible;
  max-height: none;
}

.abcd-right-panel > h4,
.abcd-add-to-cart,
.abcd-message {
  grid-column: 1 / -1;
}

.abcd-side-thumb {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #dbe3ef;
  border-radius: 16px;
  background: #fff;
  text-align: start;
  cursor: pointer;
  font-weight: 800;
  color: #334155;
}

.abcd-side-thumb.is-active,
.abcd-side-thumb:hover {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.abcd-side-thumb canvas {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  direction: ltr;
}

.abcd-helper-card,
.abcd-review-box {
  padding: 14px;
  border: 1px solid #dbe3ef;
  border-radius: 16px;
  background: #f8fafc;
}

.abcd-review-box p {
  margin: 0 0 8px;
  font-size: 13px;
  color: #475569;
}

.abcd-review-box p:last-child {
  margin-bottom: 0;
}

.abcd-message {
  min-height: 22px;
  font-size: 13px;
  font-weight: 700;
}

.abcd-message.is-error { color: #b91c1c; }
.abcd-message.is-success { color: #15803d; }
.abcd-message.is-info { color: #1d4ed8; }

/* The studio normally lives inside the 1,240px Design Studio gateway. Keep
   the safe three-column layout as the default and add the fourth rail only
   when the component itself (not merely the viewport) is wide enough. */
@container abcd-studio (min-width: 1480px) {
  .abcd-studio-layout {
    grid-template-columns: 86px 320px minmax(0, 1fr) 240px;
    min-height: 720px;
  }

  .abcd-editor-panel,
  .abcd-right-panel {
    overflow: auto;
    max-height: calc(100vh - 140px);
    max-height: calc(100dvh - 140px);
  }

  .abcd-right-panel {
    grid-column: auto;
    grid-template-columns: 1fr;
    border-top: 0;
    border-inline-start: 1px solid #dbe3ef;
  }

  .abcd-right-panel > h4,
  .abcd-add-to-cart,
  .abcd-message {
    grid-column: auto;
  }
}

@container abcd-studio (max-width: 920px) {
  .abcd-hero,
  .abcd-studio-topbar {
    align-items: stretch;
    flex-direction: column;
  }
  .abcd-filters,
  .abcd-grid {
    grid-template-columns: 1fr;
  }
  .abcd-studio-layout {
    grid-template-columns: 1fr;
  }
  .abcd-studio-sidebar {
    flex-direction: row;
    overflow-x: auto;
    border-inline-end: 0;
    border-bottom: 1px solid #dbe3ef;
  }
  .abcd-tool-tab {
    min-width: 92px;
  }
  .abcd-editor-panel,
  .abcd-right-panel {
    max-height: none;
    border-inline-end: 0;
  }
  .abcd-right-panel {
    grid-template-columns: 1fr;
  }
  .abcd-add-to-cart,
  .abcd-message {
    grid-column: auto;
  }
  .abcd-canvas-stage {
    min-height: clamp(320px, 50dvh, 420px);
    padding: 18px;
  }

  .abcd-studio-actions {
    justify-content: flex-start;
  }
}

/* Viewport fallback for browsers without container-query support. */
@media (max-width: 920px) {
  .abcd-hero,
  .abcd-studio-topbar {
    align-items: stretch;
    flex-direction: column;
  }
  .abcd-filters,
  .abcd-grid,
  .abcd-studio-layout {
    grid-template-columns: 1fr;
  }
  .abcd-studio-sidebar {
    flex-direction: row;
    overflow-x: auto;
    border-inline-end: 0;
    border-bottom: 1px solid #dbe3ef;
  }
  .abcd-tool-tab {
    min-width: 92px;
  }
  .abcd-editor-panel,
  .abcd-right-panel {
    max-height: none;
    border-inline-end: 0;
  }
  .abcd-right-panel {
    grid-template-columns: 1fr;
  }
  .abcd-right-panel > h4,
  .abcd-add-to-cart,
  .abcd-message {
    grid-column: auto;
  }
  .abcd-canvas-stage {
    min-height: clamp(320px, 50dvh, 420px);
    padding: 18px;
  }
  .abcd-studio-actions {
    justify-content: flex-start;
  }
}

@container abcd-studio (max-width: 560px) {
  .abcd-top-option {
    flex-basis: 100%;
  }

  .abcd-hero,
  .abcd-editor-panel,
  .abcd-right-panel {
    padding-inline: 14px;
  }
}

@media (max-width: 560px) {
  .abcd-top-option {
    flex-basis: 100%;
  }
}

/* v1.2.0 + v1.3.0 production upgrades */
.abcd-divider{height:1px;background:#e5e7eb;margin:16px 0}.abcd-element-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:8px 0 14px}.abcd-element-buttons button,.abcd-download-pdf{border:1px solid #d1d5db;background:#fff;border-radius:10px;padding:10px 12px;cursor:pointer;font-weight:700}.abcd-element-buttons button:hover,.abcd-download-pdf:hover{border-color:#2563eb;color:#2563eb}.abcd-price-box{border:1px solid #dbeafe;background:#eff6ff;border-radius:14px;padding:12px 14px;margin:14px 0;display:flex;justify-content:space-between;align-items:center;gap:12px}.abcd-price-box span{font-size:12px;color:#475569}.abcd-price-box strong{font-size:20px;color:#0f172a}.abcd-download-pdf{width:100%;margin-bottom:10px}.abcd-cart-edit-wrap{margin-top:8px}.abcd-cart-edit-link{font-size:12px!important;padding:4px 10px!important;border-radius:999px!important}.abcd-tool-panel[data-panel="elements"] h4{margin:12px 0 8px}.abcd-upload-label input[type="file"]{margin-top:6px}.abcd-review-box p:last-child{border-top:1px dashed #cbd5e1;margin-top:10px;padding-top:10px;font-size:15px}.abcd-review-price{font-weight:800;color:#0f172a}

/* v1.3.0 print-production upgrades */
.abcd-validate-design,
.abcd-download-front-png,
.abcd-download-back-png,
.abcd-download-json {
  width: 100%;
  border: 1px solid #d1d5db;
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 700;
}
.abcd-validate-design:hover,
.abcd-download-front-png:hover,
.abcd-download-back-png:hover,
.abcd-download-json:hover {
  border-color: #2563eb;
  color: #2563eb;
}
.abcd-print-downloads {
  display: grid;
  gap: 8px;
}
.abcd-validation-summary {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
}
.abcd-validation-summary strong {
  color: #0f172a;
}
.abcd-validation-status {
  display: inline-flex;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
}
.abcd-validation-status.is-print_ready {
  background: #dcfce7;
  color: #166534;
}
.abcd-validation-status.is-warnings {
  background: #fef3c7;
  color: #92400e;
}
.abcd-validation-status.is-needs_fix {
  background: #fee2e2;
  color: #991b1b;
}
.abcd-validation-list {
  margin: 0;
  padding-inline-start: 18px;
  color: #475569;
  font-size: 12px;
  line-height: 1.45;
}
.abcd-validation-list li + li {
  margin-top: 4px;
}

/* v1.4.0 professional workflow upgrades */
.abcd-history-actions,
.abcd-side-actions,
.abcd-align-toolbar,
.abcd-layer-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}
.abcd-history-actions button,
.abcd-side-actions button,
.abcd-align-toolbar button,
.abcd-layer-toolbar button {
  border: 1px solid #d1d5db;
  background: #fff;
  color: #0f172a;
  border-radius: 999px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}
.abcd-history-actions button:hover,
.abcd-side-actions button:hover,
.abcd-align-toolbar button:hover,
.abcd-layer-toolbar button:hover {
  border-color: #2563eb;
  color: #1d4ed8;
  box-shadow: 0 0 0 3px rgba(37,99,235,.09);
}
.abcd-history-actions button:disabled {
  opacity: .45;
  cursor: not-allowed;
  box-shadow: none;
}
.abcd-save-draft {
  background: #0f172a !important;
  border-color: #0f172a !important;
  color: #fff !important;
}
.abcd-load-draft {
  background: #eff6ff !important;
  border-color: #bfdbfe !important;
}
.abcd-clear-draft {
  color: #b91c1c !important;
}
.abcd-align-toolbar,
.abcd-layer-toolbar {
  padding: 10px;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  background: #fff;
}
.abcd-layer-toolbar .abcd-duplicate-element {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}
.abcd-layers-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid #dbe3ef;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15,23,42,.05);
}
.abcd-layers-card p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}
.abcd-layers-list {
  display: grid;
  gap: 6px;
  max-height: 190px;
  overflow: auto;
}
.abcd-layer-item {
  width: 100%;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 11px;
  padding: 9px 10px;
  cursor: pointer;
  text-align: start;
  color: #334155;
  font-weight: 800;
  font-size: 12px;
}
.abcd-layer-item:hover,
.abcd-layer-item.is-active {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}
.abcd-layers-empty {
  display: block;
  padding: 10px;
  color: #64748b;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
  font-size: 12px;
}
.abcd-canvas-toolbar {
  align-items: center;
  flex-wrap: wrap;
}
.abcd-side-actions button {
  border-radius: 12px;
}
.abcd-selected-element h4 {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.abcd-studio-topbar {
  gap: 12px;
}
.abcd-studio-actions {
  align-items: center;
}

.abcd-history-actions {
  flex: 1 1 100%;
  width: 100%;
  justify-content: flex-end;
}

@container abcd-studio (max-width: 920px) {
  .abcd-history-actions,
  .abcd-side-actions {
    justify-content: flex-start;
  }
  .abcd-canvas-toolbar {
    align-items: stretch;
  }
}

@media (max-width: 920px) {
  .abcd-history-actions,
  .abcd-side-actions {
    justify-content: flex-start;
  }
  .abcd-canvas-toolbar {
    align-items: stretch;
  }
}

.abcd-app[dir="rtl"] .abcd-template-button,
.abcd-app[dir="rtl"] .abcd-side-thumb,
.abcd-app[dir="rtl"] .abcd-layer-item {
  text-align: right;
}

.abcd-app[dir="rtl"] input[type="email"],
.abcd-app[dir="rtl"] [data-field="phone"],
.abcd-app[dir="rtl"] [data-field="website"],
.abcd-app[dir="rtl"] [data-field="qr_text"] {
  direction: ltr;
  text-align: left;
}
