.cpod-preview-wrap {
  position: relative;
  margin: 0 auto;
  display: block;
  width: 100%;
  aspect-ratio: var(--cpod-preview-aspect-ratio, 1 / 1);
  line-height: 0;
  touch-action: none;
  transform-origin: center center;
  transition: transform 180ms ease;
}
/* The orientation control changes the presentation of the whole design,
 * including the product mockup and its overlay layers. */
.cpod-editor__preview[data-orientation="v"][data-orientation-direction="ccw"] .cpod-preview-wrap {
  transform: rotate(-90deg);
}
.cpod-editor__preview[data-orientation="v"][data-orientation-direction="cw"] .cpod-preview-wrap {
  transform: rotate(90deg);
}
.cpod-preview-toolbar {
  width: 100%;
  display: flex;
  justify-content: flex-end;
}
.cpod-preview-toolbar[hidden] {
  display: none !important;
}
.cpod-preview-skeleton {
  position: relative;
  display: block;
  width: 100%;
  max-width: 980px;
  aspect-ratio: var(--cpod-preview-aspect-ratio, 1 / 1);
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid #d5dbe2;
  background: #eef1f4;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.7);
}
.cpod-preview-skeleton::before {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid #cbd2da;
  border-radius: 5px;
  background: #dce2e8;
  box-shadow: 0 2px 8px rgba(50,60,70,.08);
}
.cpod-preview-skeleton__shine {
  position: absolute;
  inset: 0;
  display: block;
  transform: translateX(-100%);
  z-index: 1;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.72), transparent);
  animation: cpod-preview-skeleton-shimmer 1.25s ease-in-out infinite;
}
.cpod-editor__preview.is-ready .cpod-preview-skeleton {
  display: none;
}
.cpod-preview-wrap > .cpod-preview-skeleton {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  aspect-ratio: auto;
  z-index: 50;
}
@keyframes cpod-preview-skeleton-shimmer {
  to { transform: translateX(100%); }
}
@media (prefers-reduced-motion: reduce) {
  .cpod-preview-skeleton__shine { animation: none; }
}
.cpod-pos-overlay-backdrop{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.35);
  z-index:9999;
  align-items:stretch;
  justify-content:flex-start;
  padding-right:60px;
}
.cpod-pos-overlay-backdrop.is-open{
  display:flex;
}
.cpod-pos-overlay{
  background:#fff;
  border-right:1px solid #ccc;
  padding:12px;
  width:min(420px, calc(100vw - 60px));
  height:100%;
  height:100dvh;
  max-height:100%;
  max-height:100dvh;
  overflow:hidden;
  box-shadow:10px 0 30px rgba(0,0,0,.3);
  transform:translateX(-100%);
  opacity:0;
  transition:transform .25s ease, opacity .25s ease;
  box-sizing:border-box;
  padding-top:calc(12px + env(safe-area-inset-top));
  display:flex;
  flex-direction:column;
}

.cpod-pos-overlay-backdrop.is-open .cpod-pos-overlay{
  transform:translateX(0);
  opacity:1;
}

/* ===== CPOD Controls & Panels (frontend editor) ===== */
.cpod-editor__preview {
  height:100%;
  box-sizing: border-box;
  margin: 14px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.cpod-preview-orientation {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 0 0 auto;
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid #a3a3a3;
  border-radius: 6px;
  background: #fff;
  color: #000;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}
.cpod-preview-orientation:hover,
.cpod-preview-orientation:focus-visible {
  border-color: #0846A9;
  background: #f0f0f0;
}
.cpod-preview-orientation:focus-visible {
  outline: 2px solid #2271b1;
  outline-offset: 2px;
}
.cpod-preview-orientation__icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  background: currentColor;
  -webkit-mask: url('../icons/orientation.svg') center / contain no-repeat;
  mask: url('../icons/orientation.svg') center / contain no-repeat;
}
.cpod-preview-orientation[aria-pressed="true"] {
  background: #0846A9;
  border-color: #0846A9;
  color: #fff;
}

.cpod-editor__controls,
.cpod-preview-block,
.cpod-controls-block {
  box-sizing: border-box;
  margin: 14px 0;
  padding: 0;
  border: 1px solid #000;
  background: #fff;
  color: #000;
}
.cpod-admin-design-save-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
  padding: 12px;
  box-sizing: border-box;
  border-bottom: 1px solid #a3a3a3;
  background: #fff;
}
.cpod-admin-design-save-row .cpod-btn {
  width: auto;
  min-height: 36px;
  padding: 8px 12px;
}
.cpod-admin-design-save-row .cpod-btn.is-saving,
.cpod-header__actions .cpod-btn.is-saving { opacity: .7; }
.cpod-admin-design-save-row .cpod-btn.is-saved,
.cpod-header__actions .cpod-btn.is-saved { background: #16803c; border-color: #16803c; }
.cpod-admin-design-save-row .cpod-btn.is-error,
.cpod-header__actions .cpod-btn.is-error { background: #b32d2e; border-color: #b32d2e; }

.cpod-designer { position: relative; max-width: 100%; }
.cpod-mockup {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}
.cpod-canvas-area { position: absolute; box-sizing: border-box; overflow: hidden; }
.cpod-overlay { position: absolute; inset: 0; border: 2px dashed #000; pointer-events: none; overflow: hidden; }
.cpod-overlay-svg { pointer-events: none; }
.cpod-overlay-image { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 100%; height: 100%; }
.cpod-overlay-image img { display: block; max-width: none; max-height: none; width: 100%; height: 100%; object-fit: contain; }
.cpod-overlay-text { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 80%; text-align: center; white-space: pre-wrap; word-break: break-word; pointer-events: none; }

/* SVG kontūra */
.cpod-canvas-outline path { vector-effect: non-scaling-stroke; }

/* Controls */
.cpod-controls { display: grid; grid-template-columns: 1fr; gap: 16px; }
.cpod-accordion .cpod-step { border: 1px solid #000; }
.cpod-step-head {
  width: 100%;
  display: flex; align-items: center; gap: 10px;
  background: #fff; color: #000; border: 0; padding: 10px 12px; cursor: pointer; text-align: left;
}
.cpod-step-num { width: 28px; height: 28px; border-radius: 50%; border: 1px solid #000; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.cpod-step-title { font-weight: 600; }
.cpod-step-body { display: none; padding: 12px; border-top: 1px solid #a3a3a3; }
.cpod-step.is-open .cpod-step-body { display: grid; gap: 10px; }

.cpod-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 0; }
.cpod-editor__controls .cpod-row { padding: 0; }
.cpod-notice-area {
  display: flex;
  justify-content: flex-end;
  min-height: 48px;
  align-items: center;
  padding: 6px 0;
  gap: 8px;
}
.cpod-notice-body {
  display: none;
  align-items: center;
  gap: 8px;
}
.cpod-notice-area.is-open .cpod-notice-body { display: flex; }
.cpod-inline { display: flex; align-items: center; gap: 8px; }
.cpod-inline-title { font-size: 12px; }
.cpod-layer-lists { display:flex; flex-direction:column; gap:8px; }
.cpod-layer-list { display:flex; flex-direction:column; gap:8px; }
.cpod-layer-item {
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  border:1px solid #000;
  background:#fff;
  padding:6px 8px;
  border-radius:6px;
  cursor:pointer;
}
.cpod-layer-item.is-active { background:#000; color:#fff; }
.cpod-layer-item.is-image { border-left:4px solid #1e88e5; }
.cpod-layer-item.is-text { border-left:4px solid #43a047; }
.cpod-layer-item.is-shape { border-left:4px solid #fb8c00; }
.cpod-layer-meta { display:flex; align-items:center; gap:8px; min-width:0; }
.cpod-layer-index {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:22px;
  height:22px;
  border:1px solid #000;
  border-radius:50%;
  font-weight:700;
  font-size:11px;
  line-height:1;
  flex:0 0 auto;
}
.cpod-layer-item.is-active .cpod-layer-index { border-color:#fff; color:#fff; }
.cpod-layer-label {
  font-weight:600;
  font-size:12px;
  line-height:1.1;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.cpod-layer-actions { display:flex; align-items:center; gap:6px; flex:0 0 auto; }
.cpod-layer-action-btn {
  border:1px solid #000;
  background:transparent center center no-repeat;
  background-size:14px 14px;
  width:26px;
  height:26px;
  padding:0;
  font-size:0;
  line-height:1;
  cursor:pointer;
}
.cpod-layer-item.is-active .cpod-layer-action-btn { background-color:#fff; }
.cpod-layer-action-btn[data-layer-action="edit"] { background-image: url('../icons/editing.svg'); }
.cpod-layer-action-btn[data-layer-action="duplicate"] { background-image: url('../icons/copy.svg'); }
.cpod-layer-action-btn[data-layer-action="delete"] { background-image: url('../icons/trash.svg'); }
.cpod-layer-action-btn--move { font-size:18px; background-image:none; }
.cpod-layer-item.is-active .cpod-layer-action-btn--move { color:#0846A9; }

.cpod-toggle-row { gap: 8px; }
.cpod-editor-color-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  z-index: 20;
}
.cpod-editor-color-picker__options {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  width: 180px;
  max-width: calc(100vw - 16px);
  max-height: min(60vh, 320px);
  overflow-y: auto;
  padding: 8px;
  border: 1px solid #000;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(0,0,0,.2);
}
.cpod-editor-color-picker__options[hidden] { display: none; }
.cpod-editor-color-picker__trigger {
  width: 28px;
  height: 28px;
  padding: 2px;
  border: 1px solid #000;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}
.cpod-editor-color-picker__trigger:hover,
.cpod-editor-color-picker__trigger:focus-visible,
.cpod-editor-color-picker__trigger[aria-expanded="true"] {
  box-shadow: 0 0 0 2px #2271b1;
  outline: none;
}
.cpod-editor-color-picker__trigger-swatch {
  display: block;
  width: 22px;
  height: 22px;
  border: 1px solid #8c8f94;
  border-radius: 50%;
  box-sizing: border-box;
}
.cpod-editor-color-picker__option {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  max-width: 100%;
  padding: 4px 7px 4px 4px;
  border: 1px solid #a3a3a3;
  border-radius: 999px;
  background: #fff;
  color: #000;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
}
.cpod-editor-color-picker__option:hover,
.cpod-editor-color-picker__option:focus-visible,
.cpod-editor-color-picker__option.is-active {
  border-color: #000;
  box-shadow: 0 0 0 1px #000;
}
.cpod-editor-color-picker__option:focus-visible { outline: 2px solid #2271b1; outline-offset: 2px; }
.cpod-editor-color-picker__swatch {
  display: inline-block;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border: 1px solid #8c8f94;
  border-radius: 50%;
  box-sizing: border-box;
}
.cpod-editor-color-picker__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cpod-checkbox { display:flex; align-items:center; gap:8px; font-size:12px; cursor:pointer; }
.cpod-checkbox-row { display:flex; align-items:center; gap:8px; cursor:pointer; font-weight:600; }
.cpod-checkbox-row input { width:16px; height:16px; margin:0; }
.cpod-toggle-compact {
  position: relative;
  width: 100%;
}
.cpod-toggle-compact input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}
.cpod-toggle-label { font-size: 11px; font-weight: 600; text-align: center; }
.cpod-checkbox input { width:16px; height:16px; }
.cpod-curved-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 42px;
  cursor: pointer;
}
.cpod-curved-toggle__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1.2;
}
.cpod-curved-toggle__text strong { font-size: 12px; }
.cpod-curved-toggle__text small { color: #6b6b6b; font-size: 11px; }
.cpod-curved-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.cpod-curved-toggle__track {
  display: block;
  position: relative;
  flex: 0 0 42px;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #d2d2d2;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.16);
  transition: background .18s ease, box-shadow .18s ease;
}
.cpod-curved-toggle__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.28);
  transition: transform .18s ease;
}
.cpod-curved-toggle input:checked + .cpod-curved-toggle__track {
  background: #111;
  box-shadow: inset 0 0 0 1px #111;
}
.cpod-curved-toggle input:checked + .cpod-curved-toggle__track .cpod-curved-toggle__thumb {
  transform: translateX(18px);
}
.cpod-curved-toggle input:focus-visible + .cpod-curved-toggle__track {
  outline: 2px solid #2271b1;
  outline-offset: 2px;
}

.cpod-side-tabs { gap: 6px; }
.cpod-side-tab {
  flex: 1;
  border: 1px solid #000;
  background: #fff;
  padding: 8px 10px;
  cursor: pointer;
  font-weight: 600;
}
.cpod-side-tab.is-active { background: #000; color: #fff; }
.cpod-side-tab.is-disabled { opacity:0.4; cursor:not-allowed; }

.cpod-layer-toolbar { gap: 8px; }
.cpod-control-action {
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  padding: 8px 6px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}
.cpod-control-action:hover { background: #f0f0f0; }
.cpod-control-icon {
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: center center / contain no-repeat;
  mask: center center / contain no-repeat;
}
.cpod-control-icons{
  display:inline-flex;
  align-items:center;
  gap:4px;
}
.cpod-control-icon--mirror { -webkit-mask-image: url('../icons/mirror.svg'); mask-image: url('../icons/mirror.svg'); }
.cpod-control-icon--layers { -webkit-mask-image: url('../icons/layers.svg'); mask-image: url('../icons/layers.svg'); }
.cpod-control-icon--add { -webkit-mask-image: url('../icons/add.svg'); mask-image: url('../icons/add.svg'); }
.cpod-control-icon--image { -webkit-mask-image: url('../icons/image.svg'); mask-image: url('../icons/image.svg'); }
.cpod-control-icon--text { -webkit-mask-image: url('../icons/text.svg'); mask-image: url('../icons/text.svg'); }
.cpod-control-icon--shape { -webkit-mask-image: url('../icons/shape.svg'); mask-image: url('../icons/shape.svg'); }
.cpod-control-icon--delete { -webkit-mask-image: url('../icons/trash.svg'); mask-image: url('../icons/trash.svg'); }
.cpod-control-icon--duplicate { -webkit-mask-image: url('../icons/duplicate_icon.svg'); mask-image: url('../icons/duplicate_icon.svg'); }
.cpod-control-icon--filter { -webkit-mask-image: url('../icons/filter_icon.svg'); mask-image: url('../icons/filter_icon.svg'); }
.cpod-control-icon--move {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  -webkit-mask: none;
  mask: none;
  font-size: 20px;
  line-height: 1;
}
.cpod-control-icon--move::before {
  content: '↔';
  display: block;
  transform: rotate(90deg);
}
.cpod-control-label { white-space: nowrap; font-size: 11px; font-weight: 600; text-align: center; }
.cpod-toggle-compact.is-active {
  background: #0846A9;
  color: #fff;
}
.cpod-control-action--mirror .cpod-control-icon--mirror {
  position: relative;
}
.cpod-control-action--mirror .cpod-control-icon--mirror  + .cpod-control-badge::before {
  content: "x";
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #e6e6e6;
  color: #333;
  font-size: 9px;
  font-weight: 700;
  line-height: 12px;
  text-align: center;

  margin-top:-25px;
  margin-right:20px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.cpod-control-action--mirror input:checked ~ .cpod-control-icon--mirror + .cpod-control-badge::before {
  content: "✓";
  color: #fff;
  background: #0846A9;
}
.cpod-side-tabs--controls .cpod-side-tab {
  border: 0;
  border-radius: 0;
  font-size: 11px;
  font-weight: 600;
  padding: 8px 2px;
}
.cpod-side-tabs--controls .cpod-side-tab.is-active {
  background: #0846A9;
  color: #fff;
}
.cpod-side-tabs--controls {
  border: 0;
  border-radius: 0;
  background: #f0f0f0;
  padding: 8px 6px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cpod-side-switch {
  display: grid;
  grid-template-rows: 1fr 1fr;
  border: 1px solid #a3a3a3;
  border-left:0;
  border-right:0;
  width: 100%;
  height:100%;
}
.cpod-side-switch .cpod-side-tab {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
.cpod-side-tabs--controls .cpod-side-switch .cpod-side-tab {
  pointer-events: none;
}

.cpod-btn--circle { width:48px; height:48px; border-radius:50%; padding:0; font-size:24px; line-height:1; margin-left:8px; display:flex; align-items:center; justify-content:center; }

.cpod-panel { display:none; }
.cpod-panel.is-active {
  display:block;
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior:contain;
  touch-action:pan-y;
}
.cpod-pos-overlay > .cpod-panel {
  flex: 1 1 auto;
  min-height: 0;
}
.cpod-layer-panel__head { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:10px; flex-wrap:wrap; }
.cpod-side-tabs--panel { flex:1 1 auto; }
.cpod-panel--layers.is-active {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
  overflow:hidden;
  touch-action:auto;
}
.cpod-panel--move.is-active { max-width: 420px; margin: 0 auto; }
.cpod-move-panel__intro { display:grid; gap:4px; margin: 4px 0 14px; }
.cpod-move-panel__intro strong { font-size: 16px; }
.cpod-move-panel__intro span { color:#666; font-size:12px; line-height:1.35; }
.cpod-move-grid { display:grid; grid-template-columns:repeat(3, 1fr); gap:8px; }
.cpod-move-grid--order { grid-template-columns:repeat(2, minmax(0, 1fr)); }
.cpod-move-side { display:grid; gap:8px; margin-top:20px; }
.cpod-move-side > label { font-size:11px; font-weight:600; letter-spacing:.02em; text-transform:uppercase; }
.cpod-move-side .cpod-side-switch { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.cpod-move-side .cpod-side-tab { border:1px solid #a3a3a3; border-radius:8px; background:#fff; padding:9px 8px; font-size:11px; font-weight:600; cursor:pointer; }
.cpod-move-side .cpod-side-tab.is-active { background:#0846A9; border-color:#0846A9; color:#fff; }
.cpod-move-side .cpod-side-tab:disabled { opacity:.4; cursor:not-allowed; }
.cpod-move-position { min-height:42px; padding:8px 4px !important; border:1px solid #a3a3a3 !important; border-radius:8px !important; justify-content:center !important; font-size:11px; }
.cpod-move-position:hover { border-color:#0846A9 !important; background:#eef4ff !important; color:#0846A9 !important; }
.cpod-layer-panel__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cpod-layer-panel__footer {
  flex: 0 0 auto;
  margin-top: 10px;
  display: grid;
  gap: 8px;
}
.cpod-side-tabs--panel-controls {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}
.cpod-side-tabs--panel-controls .cpod-side-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  border: 0;
  width: 100%;
}
.cpod-side-tabs--panel-controls .cpod-side-tab {
  border: 1px solid #a3a3a3;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  padding: 8px 10px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #000;
}
.cpod-side-tabs--panel-controls .cpod-side-tab.is-active {
  background: #0846A9;
  border-color: #0846A9;
  color: #fff;
}
.cpod-btn--panel-add {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #a3a3a3;
  height: 32px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #fff;
  color: #000;
}
.cpod-btn--panel-add:hover {
  background: #f0f0f0;
  color: #000;
}
.cpod-panel__head { display:flex; align-items:center; justify-content:flex-start; margin-bottom:10px; }
.cpod-panel-back-btn {
  width:36px;
  height:36px;
  border:0;
  border-radius:8px;
  background:center center no-repeat;
  background-size:18px 18px;
  background-image: url('../icons/back.svg');
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.cpod-panel-back-btn:hover { background-color:#e6e6e6; }
.cpod-add-list { display:grid; gap:8px; }
.cpod-add-list .cpod-btn { width:100%; text-align:left; display:flex; align-items:center; gap:8px; }
.cpod-panel__footer { margin-top:12px; display:grid; gap:8px; }

.cpod-shape-picker-shell { display:flex; align-items:center; gap:6px; width:100%; }
.cpod-shape-picker-viewport { flex:1 1 auto; min-width:0; overflow:hidden; touch-action:pan-y; }
.cpod-shape-picker { display:flex; gap:8px; transform:translateX(0); transition:transform .22s ease; will-change:transform; }
.cpod-shape-picker .cpod-shape-btn { flex:0 0 calc((100% - 24px) / 4); }
.cpod-shape-nav {
  flex:0 0 28px;
  width:28px;
  height:36px;
  padding:0;
  border:1px solid #000;
  border-radius:5px;
  background:#fff;
  color:#000;
  font-size:24px;
  line-height:1;
  cursor:pointer;
}
.cpod-shape-nav:disabled { opacity:.3; cursor:default; }
.cpod-shape-nav:not(:disabled):active { background:#000; color:#fff; }
.cpod-shape-btn {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid #000;
  background: #fff;
  padding: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.cpod-shape-btn.is-active { background: #000; }
.cpod-shape-btn:hover { transform: translateY(-1px); box-shadow: 0 2px 0 #000; }
.cpod-shape-btn:active { transform: translateY(0); box-shadow: none; }
.cpod-shape-icon { display: block; width: 70%; height: 70%; }
.cpod-shape-icon * { fill: #000; }
.cpod-shape-btn.is-active .cpod-shape-icon * { fill: #fff; }
.cpod-pos-overlay { position:relative; }
.cpod-modal-close { position:absolute; top:6px; right:8px; border:none; background:transparent; font-size:20px; cursor:pointer; }
.cpod-type-picker-actions { display:flex; gap:10px; margin-top:10px; }

.cpod-add-menu { position:relative; display:inline-block; }
.cpod-add-menu__items {
  position:absolute;
  top:32px;
  right:0;
  background:#fff;
  border:1px solid #000;
  border-radius:4px;
  padding:4px;
  display:none;
  z-index:10;
}
.cpod-add-menu__items button {
  background:none;
  border:none;
  padding:6px 10px;
  width:100%;
  text-align:left;
  cursor:pointer;
}
.cpod-add-menu.is-open .cpod-add-menu__items { display:block; }

.cpod-editor__controls[data-current-side="front"] [data-layer-list="back"],
.cpod-editor__controls[data-current-side="back"] [data-layer-list="front"] {
  display:none;
}

.cpod-dropzone {
  position: relative;
  border: 2px dashed #000;
  background: #fff;
  padding: 28px;
  text-align: center;
  cursor: pointer;
}
.cpod-dropzone.is-hover { background: #f6f6f6; }
.cpod-dropzone-msg { pointer-events: none; line-height: 1.3; }
.cpod-file-hidden { display: none; }

.cpod-progress { position: relative; height: 8px; background: #eee; border: 1px solid #000; }
.cpod-progress-bar { height: 100%; background: #000; transition: width .15s linear; }
.cpod-progress-text { position: absolute; top: -22px; right: 0; font-size: 11px; }
.cpod-toast { border: 1px solid #000; padding: 6px 8px; background: #fff; font-size: 12px; }
.cpod-toast .cpod-btn { margin-top: 6px; }
.cpod-toast.is-error { background: #000; color: #fff; }

.cpod-textarea {
  width: 100%;
  min-height: 110px;
  resize: vertical;
  border: 1px solid #000;
  padding: 10px 12px;
  background: #fff;
  color: #000;
  font: 400 22px/1.5 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  box-sizing: border-box;
}

.cpod-modal-block { display: grid; gap: 8px; padding: 10px 0; }
.cpod-modal-block label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #111;
  margin: 0;
}
.cpod-modal-block label + textarea,
.cpod-modal-block label + input,
.cpod-modal-block label + select,
.cpod-modal-block label + .cpod-color-field {
  margin-top: 2px;
}

.cpod-color-field {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.cpod-color-swatch {
  width: 32px;
  height: 32px;
  border: 1px solid #000;
  background: #000;
  border-radius: 6px;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.4);
}
.cpod-color-input {
  position: absolute;
  inset: 0;
  width: 32px;
  height: 32px;
  opacity: 0;
  cursor: pointer;
}

.cpod-color { width: 36px; height: 36px; border: 1px solid #000; padding: 0; }
.cpod-select-field {
  position: relative;
  display: inline-block;
  min-width: 96px;
  height: 34px;
  box-sizing: border-box;
  vertical-align: top;
}
.cpod-select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
}
.cpod-select-field.has-virtual-select .cpod-select-virtual-trigger {
  width: 100%;
  height: 34px;
  min-height: 0;
  box-sizing: border-box;
  border: 1px solid #000;
  background: #fff;
  color: #000;
  padding: 8px 30px 8px 10px;
  text-align: left;
  cursor: pointer;
  line-height: 1.2;
  font: inherit;
}
.cpod-select-field.has-virtual-select.is-open .cpod-select-virtual-trigger,
.cpod-select-field.has-virtual-select .cpod-select-virtual-trigger:focus-visible {
  outline: 2px solid #000;
  outline-offset: 1px;
}
.cpod-select-field.has-virtual-select::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  margin-top: -7px;
  width: 10px;
  height: 10px;
  pointer-events: none;
  border-right: 2px solid #000;
  border-bottom: 2px solid #000;
  transform: rotate(45deg);
}
.cpod-select-field.has-virtual-select .cpod-select-virtual-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  border: 1px solid #000;
  background: #fff;
  z-index: 30;
  max-height: 220px;
  overflow: auto;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.cpod-select-field.has-virtual-select .cpod-select-virtual-option {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #e5e5e5;
  background: #fff;
  color: #000;
  text-align: left;
  padding: 8px 10px;
  cursor: pointer;
  font: inherit;
}
.cpod-select-field.has-virtual-select .cpod-select-virtual-option:last-child {
  border-bottom: 0;
}
.cpod-select-field.has-virtual-select .cpod-select-virtual-option:hover {
  background: #f0f0f0;
}
.cpod-select-field.has-virtual-select .cpod-select-virtual-option.is-selected {
  background: #0846A9;
  color: #fff;
}
.cpod-font-select-field {
  position: relative; display: block; width: 100%; min-width: 96px; height: 34px;
}
.cpod-font-select-field .cpod-select { display: none; }
.cpod-font-select-field .cpod-font-select-trigger {
  position: relative; display: block; width: 100%; height: 34px; min-height: 0;
  box-sizing: border-box; border: 1px solid #000; border-radius: 0;
  background: #fff; color: #000; padding: 8px 38px 8px 10px;
  text-align: left; cursor: pointer; line-height: 1.2;
  font: inherit; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cpod-font-select-field::after {
  content: ""; position: absolute; right: 12px; top: 50%; z-index: 2;
  width: 9px; height: 9px; margin-top: -6px; pointer-events: none;
  border-right: 2px solid #000; border-bottom: 2px solid #000;
  transform: rotate(45deg);
}
.cpod-font-select-field.is-open .cpod-font-select-trigger,
.cpod-font-select-field .cpod-font-select-trigger:focus-visible {
  outline: 2px solid #000; outline-offset: 1px;
}
.cpod-font-select-panel {
  position: absolute;
  left: 0; right: 0; top: calc(100% + 4px);
  z-index: 31; display: flex; flex-direction: column; min-height: 0;
  max-height: min(320px, calc(100dvh - 24px)); overflow: hidden;
  box-sizing: border-box; padding: 8px; border: 1px solid #000;
  background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.cpod-font-select-panel[hidden] { display: none !important; }
.cpod-font-select-field.is-open .cpod-font-select-panel { display: block; }
.cpod-font-select-search {
  display: block; width: 100%; box-sizing: border-box; margin-bottom: 8px;
  border: 1px solid #777; padding: 7px 8px; background: #fff; color: #000;
}
.cpod-font-select-count {
  margin: 0 2px 6px; color: #666; font-size: 11px; line-height: 1.2;
}
.cpod-font-select-list {
  position: relative; flex: 1 1 auto; min-height: 90px; height: 220px;
  max-height: calc(100dvh - 100px); overflow: auto; contain: strict;
  touch-action: pan-y; -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.cpod-font-select-option {
  position: absolute; left: 0; right: 0; height: 40px; box-sizing: border-box;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border: 0; border-bottom: 1px solid #e5e5e5; background: #fff; color: #777;
  padding: 8px 10px; text-align: left; cursor: pointer; font-size: 16px;
}
.cpod-font-select-option[data-font-status="loaded"] { color: #000; }
.cpod-font-select-option-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cpod-font-select-option-status { flex: 0 0 16px; width: 16px; height: 16px; text-align: center; color: #000; font-size: 13px; line-height: 16px; }
.cpod-font-select-option[data-font-status="loading"] .cpod-font-select-option-status {
  border: 2px solid #aaa; border-top-color: #000; border-radius: 50%;
  box-sizing: border-box; animation: cpod-font-spin .7s linear infinite;
}
@keyframes cpod-font-spin { to { transform: rotate(360deg); } }
.cpod-font-select-option:hover,
.cpod-font-select-option:focus-visible { background: #f0f0f0; outline: 0; }
.cpod-font-select-option.is-active { outline: 2px solid #000; outline-offset: -2px; }
.cpod-font-select-option[aria-selected="true"] { background: #0846A9; color: #fff; }

.cpod-stepper { display: grid; grid-template-columns: 1fr; gap: 6px; }
.cpod-stepper-label { font-size: 12px; }
.cpod-stepper-controls { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.cpod-number-input { width: 72px; border: 1px solid #000; padding: 6px 8px; background: #fff; color: #000; text-align: right; box-sizing: border-box; }
.cpod-number-input--narrow { width: 64px; }
.cpod-unit-label { color:#666; font-size:12px; }
.cpod-border-width-control { grid-template-columns:32px 1fr 32px auto; gap:6px; }
.cpod-stepper-btn { width:32px; height:32px; border:1px solid #000; border-radius:6px; background:#fff; color:#000; font-size:18px; line-height:1; cursor:pointer; }
.cpod-stepper-btn:hover { background:#0846A9; border-color:#0846A9; color:#fff; }

.cpod-range-input {
  appearance: none;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, #000 0%, #000 50%, #e5e5e5 50%, #e5e5e5 100%);
  outline: none;
  border-radius: 999px;
  margin-top: 1em;
}
.cpod-range-value { float:right; color:#666; font-size:12px; font-weight:600; }
.cpod-letter-case-buttons { display:flex; gap:4px; width:100%; margin-top:6px; }
.cpod-letter-case-buttons button {
  flex:1 1 0;
  min-width:0;
  min-height:32px;
  padding:4px 5px;
  border:1px solid #000;
  border-radius:5px;
  background:#fff;
  color:#000;
  font-size:10px;
  line-height:1.1;
  cursor:pointer;
}
.cpod-letter-case-buttons button[aria-pressed="true"] { background:#0846A9; border-color:#0846A9; color:#fff; }
.cpod-range-input::-webkit-slider-thumb {
  appearance: none;
  width: 22px;
  height: 22px;
  background: #000;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #000;
  cursor: pointer;
}
.cpod-range-input::-moz-range-thumb {
  width: 22px;
  height: 22px;
  background: #000;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #000;
  cursor: pointer;
}

.cpod-editor__controls .cpod-btn {
  background: #fff;
  color: #000;
  border: 0;
  padding: 16px 12px;
  line-height: 1;
  cursor: pointer;
  width: 100%;
  justify-content: flex-start;
  gap: 6px;
}
.cpod-editor__controls .cpod-btn:hover { background: #f0f0f0; color: #000; }
.cpod-editor__controls .cpod-btn:active,
.cpod-editor__controls .cpod-btn-active { background: #0846A9; color: #fff; }
.cpod-editor__controls .cpod-btn--panel-add {
  border: 1px solid #a3a3a3;
  border-radius: 8px;
  height: 32px;
  padding: 0 12px;
  background: #fff;
  color: #000;
}
.cpod-editor__controls .cpod-btn--panel-add:hover {
  background: #f0f0f0;
  color: #000;
}
.cpod-editor__controls .cpod-btn--panel-delete {
  border: 1px solid #b42318;
  border-radius: 8px;
  height: 32px;
  padding: 0 12px;
  background: #fff1f0;
  color: #b42318;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.cpod-editor__controls .cpod-btn--panel-delete:hover {
  background: #b42318;
  color: #fff;
}
.cpod-editor__controls .cpod-panel__footer .cpod-btn {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #a3a3a3;
  min-height: 42px;
  padding: 0 12px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #fff;
  color: #000;
}
.cpod-editor__controls .cpod-panel__footer .cpod-primary { background:#0846A9; border-color:#0846A9; color:#fff; font-weight:700; }
.cpod-editor__controls .cpod-panel__footer .cpod-primary:hover { background:#063a8a; color:#fff; }
.cpod-editor__controls .cpod-panel__footer .cpod-btn:hover {
  background: #f0f0f0;
  color: #000;
}
.cpod-editor__controls .cpod-control-action {
  border: 0;
  border-radius: 0;
  padding: 8px 6px;
  background: #fff;
  color: #000;
}
.cpod-editor__controls .cpod-control-action:hover {
  background: #f0f0f0;
  color: #000;
}
.cpod-editor__controls .cpod-control-action:active {
  background: #f0f0f0;
  color: #000;
}
.cpod-editor .cpod-header__actions .cpod-btn {
  background: #fff;
  color: #000;
  border: 1px solid #000;
  padding: 8px 12px;
  line-height: 1;
  cursor: pointer;
}
.cpod-editor .cpod-header__actions .cpod-btn:hover { background: #494949; }
.cpod-editor .cpod-btn-active { background: #0846A9; color: #fff; }
.cpod-editor .cpod-btn-toggle.is-active { background: #000; color: #fff; }
.cpod-editor .cpod-btn--ghost { padding:4px 8px; font-size:12px; border:1px solid #000; background:transparent; }
.cpod-editor .cpod-btn--ghost:hover { background:#000; color:#fff; }
.cpod-editor .cpod-primary { background: #000; color: #fff; }
.cpod-editor .cpod-save-cart {
  background: #0846A9;
  border-color: #0846A9;
  color: #fff;
}
.cpod-editor .cpod-save-cart:hover {
  background: #063a8a;
  color: #fff;
}
.cpod-editor .cpod-save-cart:disabled {
  opacity: 0.65;
  cursor: wait;
}
.cpod-editor .cpod-danger { border-style: dashed; }


@media (max-width: 767px) {
  .cpod-editor-color-picker__options {
    width: 180px;
    max-height: min(55vh, 300px);
  }
  .cpod-editor-color-picker__option { min-height: 40px; }
  .cpod-editor-color-picker__swatch { width: 28px; height: 28px; flex-basis: 28px; }
  .cpod-layer-lists { flex-direction:row; gap:6px; flex-wrap:wrap; }
  .cpod-layer-list { flex-direction:column; gap:6px; }
  .cpod-layer-item { padding:6px; }
  .cpod-layer-label { font-size:11px; }
  .cpod-range-input::-webkit-slider-thumb { width: 28px; height: 28px; }
  .cpod-range-input::-moz-range-thumb { width: 28px; height: 28px; }
  .cpod-modal-block input,
  .cpod-modal-block textarea,
  .cpod-modal-block select {
    font-size: 16px;
  }
  .cpod-editor .cpod-qty-input { font-size: 16px; }
  .cpod-editor .cpod-header__actions .cpod-qty-label {
    display: none;
  }
  .cpod-editor .cpod-header__actions .cpod-qty-stepper {
    grid-template-columns: 24px 50px 24px;
    height: 32px;
  }
  .cpod-editor .cpod-header__actions .cpod-qty-btn {
    width: 24px;
    height: 32px;
    font-size: 14px;
  }
  .cpod-editor .cpod-header__actions .cpod-qty-input {
    min-width: 40px;
    max-width: 50px;
    font-size: 14px;
  }
  .cpod-editor .cpod-header__actions [data-action="cpod-order"] {
    padding: 0 8px;
    font-size: 12px;
  }
  .cpod-layer-toolbar--add .cpod-btn {
    background: #0846A9;
    color: #fff;
    border: 1px solid #0846A9;
  }
  .cpod-layer-toolbar--add .cpod-btn:hover {
    background: #063a8a;
    color: #fff;
  }
}

.cpod-editor {
  display: none;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 0;
  align-items: start;
  background: #f0f0f0;
}
.cpod-editor.is-admin {
  display: grid;
  position: relative;
  width: 100%;
  min-height: 640px;
  margin-top: 18px;
  border: 1px solid #ccd0d4;
}
.cpod-admin-design-toolbar {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 12px;
  padding: 12px;
  border: 1px solid #ccd0d4;
  background: #fff;
}
.cpod-admin-design-toolbar label { display: grid; gap: 4px; font-weight: 600; }
.cpod-admin-design-toolbar input,
.cpod-admin-design-toolbar select { min-width: 220px; }
/* WordPress admin applies broad form/button rules which must not change the
 * shared editor's geometry or drag targets. Keep this reset scoped so the
 * storefront keeps its existing theme integration. */
.cpod-editor.is-admin button,
.cpod-editor.is-admin input,
.cpod-editor.is-admin select,
.cpod-editor.is-admin textarea {
  box-sizing: border-box;
  font-family: inherit;
}
.cpod-editor.is-admin button {
  line-height: normal;
}
.cpod-editor.is-admin svg,
.cpod-editor.is-admin img {
  max-width: none;
}
.cpod-editor.is-admin .cpod-topbar {
  display: block;
  grid-column: 1 / -1;
}
.cpod-editor.is-admin .cpod-editor__preview {
  min-height: 560px;
}
.cpod-editor.is-admin .cpod-editor__controls {
  min-height: 560px;
}
.cpod-editor.is-fullscreen {
  display: grid;
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: auto;
  box-sizing: border-box;
  height: 100%;
  height: 100dvh;
}

.cpod-editor.is-fullscreen label {
  margin-bottom:0;
}
body.cpod-fullscreen {
  overflow: hidden;
}
.cpod-topbar { display:none; }
.cpod-header {
  display:flex;
  align-items:center;
  gap:8px;
  width:100%;
  box-sizing:border-box;
  flex-wrap: nowrap;
  background:#c4d536;
  border-bottom:1px solid #a3a3a3;
}
.cpod-header > * { flex: 0 0 auto; }
.cpod-site-logo {
  display:flex;
  align-items:center;
  height: 100%;
  padding:0;
  border:0;
  background-color:transparent;
  cursor:pointer;
}
.cpod-site-logo img {
  display:block;
  height:64px !important;
  width:auto;
  max-height: 100%;
  aspect-ration: auto;
}
.cpod-header__actions {
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:8px;
}
.cpod-header .cpod-notice-area {
  margin-left:12px;
  margin-right:12px;
}
.cpod-header__actions [data-action="cpod-order"],
.cpod-header__actions [data-action="cpod-save-cart-item"] {
  border-radius: 8px;
  border: 1px solid #a3a3a3;
  height: 32px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
}

.cpod-modal-block[data-modal-font] .cpod-select-field {
  display: inline-block;
  min-width: 0;
}
.cpod-text-font-row { display: flex; align-items: stretch; gap: 8px; width: 100%; }
.cpod-text-font-family-field { flex: 1 1 auto; min-width: 0; }
.cpod-text-font-weight-field { flex: 0 0 132px; }
.cpod-text-font-weight-field .cpod-select-virtual-trigger { white-space: nowrap; }
.cpod-fullscreen-back {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent center center no-repeat;
  background-size: 18px 18px;
  background-image: url('../icons/back.svg');
  cursor: pointer;
}
@media (min-width: 768px) {
  .cpod-editor.is-fullscreen .cpod-fullscreen-back--mobile { display:none; }
  .cpod-editor.is-fullscreen .cpod-fullscreen-back--desktop { display:inline-flex; }
  .cpod-editor.is-fullscreen .cpod-topbar {
    display:block;
    grid-column: 2 / -1;
    grid-row: 1;
    position: relative;
  }
  .cpod-editor.is-fullscreen .cpod-topbar .cpod-notice-area {
    position: absolute;
    right: 10px;
    top: 100%;
    height: 50px;
    padding: 0;
    margin: 0;
  }
}
@media (max-width: 767px) {
  .cpod-editor.is-fullscreen .cpod-fullscreen-back--desktop { display:none; }
  .cpod-editor.is-fullscreen .cpod-topbar {
    display:block;
    grid-column: 1 / -1;
    grid-row: 1;
    box-sizing:border-box;
    position: relative;
  }
  .cpod-editor.is-fullscreen .cpod-fullscreen-back--mobile { display:inline-flex; }
  .cpod-editor.is-fullscreen .cpod-header {
    display:flex;
    align-items:center;
    justify-content:flex-start;
    padding:0 10px;
    height:50px;
    background:#c4d536;
    border-bottom:1px solid #a3a3a3;
  }

  .cpod-editor.is-fullscreen .cpod-header__actions .cpod-qty-hint {
    right: 0;
    max-width: calc(100vw - 20px);
  }

  .cpod-editor.is-fullscreen .cpod-topbar .cpod-notice-area {
    position: absolute;
    right: 10px;
    top: 100%;
    height: 50px;
    padding: 0;
    margin: 0;
  }
}

@media (min-width: 768px) {
  .cpod-editor.is-fullscreen {
    grid-template-columns: 76px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    padding-left: 0;
  }
  .cpod-editor.is-fullscreen .cpod-editor__controls {
    margin: 0;
    height: 100%;
    min-height: 0;
    border: 0;
    border-right: 1px solid #a3a3a3;
    border-radius: 0;
    background: #fff;
    grid-column: 1 / 2;
    grid-row: 1 / span 2;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .cpod-editor.is-fullscreen .cpod-editor__controls .cpod-toggle-row {
    order: 3;
    margin-top: auto;
  }
  .cpod-editor.is-fullscreen .cpod-editor__controls .cpod-layer-toolbar {
    order: 2;
    margin-top: 2em;
  }
  .cpod-layer-toolbar--add { display:none; }
  .cpod-layer-toolbar--quick { display:flex; }
  .cpod-editor.is-fullscreen .cpod-editor__controls .cpod-side-tabs--controls {
    order: 4;
    display: flex;
    flex-direction: column;
    border: 1px solid #a3a3a3;
    border-left:0;
    border-right:0;
    padding: 8px 0;
    
  }
  .cpod-editor.is-fullscreen .cpod-editor__preview {
    grid-column: 2 / -1;
    grid-row: 2;
    margin: 0;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .cpod-editor.is-fullscreen .cpod-fullscreen-back--desktop {
    width: 100%;
    height: 48px;
  }
  .cpod-editor.is-fullscreen .cpod-fullscreen-back--desktop:hover,
  .cpod-editor.is-fullscreen .cpod-editor__controls .cpod-btn:hover {
    background-color: #f0f0f0;
    color: #000;
  }
}
.cpod-editor > .cpod-notice-area {
  grid-column: 1 / -1;
}
.cpod-editor .cpod-editor__preview {
  box-sizing: border-box;
  order: 2;
  justify-self: start;
  width: 100%;
  max-width: 700px;
}
.cpod-editor .cpod-editor__controls {
  box-sizing: border-box;
  order: 1;
  min-width: 60px;
  width: 100%;
}

@media (max-width: 767px) {
  .cpod-editor.is-fullscreen {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
  }
  .cpod-editor.is-fullscreen .cpod-editor__preview {
    order: 1;
    padding-bottom: 0;
    grid-row: 2;
    margin: 0;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .cpod-editor.is-fullscreen .cpod-editor__controls {
    order: 2;
    height:100%;
    min-width: 0;
    max-width: none;
    width: 100%;
    margin: 0;
    border: 0;
    border-top: 1px solid #a3a3a3;
    border-radius: 0;
    background: #fff;
    grid-row: 3;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 8px;
    overflow-x: auto;
  }
  .cpod-editor.is-fullscreen .cpod-editor__controls .cpod-row {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
  }
  .cpod-editor.is-fullscreen .cpod-editor__controls .cpod-toggle-row {
    order: 3;
  }
  .cpod-editor.is-fullscreen .cpod-editor__controls .cpod-side-tabs--controls {
    order: 4;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border: 0;
    padding: 0;
    background: transparent;
  }
  .cpod-editor.is-fullscreen .cpod-editor__controls .cpod-side-switch {
    border: 0;
  }
  .cpod-editor.is-fullscreen .cpod-editor__controls .cpod-side-tabs--controls .cpod-side-tab {
    border: 0;
    padding: 4px 6px;
  }
  .cpod-editor.is-fullscreen .cpod-editor__controls .cpod-control-action,
  .cpod-editor.is-fullscreen .cpod-editor__controls .cpod-side-tabs--controls .cpod-side-tab {
    min-height: 0;
  }
  .cpod-layer-actions-bar {
    flex-direction: row;
  }
}
@media (max-width: 767px) {
  .cpod-layer-toolbar--quick { display:none; }
  .cpod-layer-toolbar--add .cpod-control-icon--add { display:none; }
  .cpod-layer-toolbar--add .cpod-control-icons { display:inline-flex; }
}

.cpod-preview-wrap * {
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
          touch-action: none;
}
.cpod-layer-actions-bar .cpod-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cpod-layer-actions-bar .cpod-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.cpod-overlay-container {
  position: absolute;
  inset: 0;
  pointer-events: auto;
}

.cpod-snap-guides {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  overflow: visible;
}
.cpod-snap-guide {
  position: absolute;
  display: block;
  border-color: #0846a9;
  border-style: dashed;
  border-width: 0;
  opacity: .9;
}
.cpod-snap-guide--x {
  top: 0;
  width: 0;
  border-left-width: 1px;
}
.cpod-snap-guide--y {
  left: 0;
  height: 0;
  border-top-width: 1px;
}
.cpod-snap-guide[hidden],
.cpod-snap-guides[hidden] {
  display: none !important;
}

.cpod-overlay-wrap {
  position: absolute;
  box-sizing: border-box;
  pointer-events: auto;
  touch-action: none;
}

.cpod-overlay-loading {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.55);
  pointer-events: none;
}

.cpod-overlay-wrap.is-cpod-loading .cpod-overlay-loading {
  display: flex;
}

.cpod-overlay-loading__spinner {
  display: block;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  aspect-ratio: 1;
  box-sizing: border-box;
  border: 3px solid rgba(0, 0, 0, 0.18);
  border-top-color: #111;
  border-radius: 50%;
  animation: cpod-overlay-spin .8s linear infinite;
}

@keyframes cpod-overlay-spin {
  to { transform: rotate(360deg); }
}

.cpod-overlay-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: auto;
  touch-action: none;
}

.cpod-handle-layer {
  position: absolute;
  width: 0;
  height: 0;
  left: 0;
  top: 0;
  pointer-events: none;
  border: 0;
  border-radius: 4px;
  box-sizing: border-box;
  touch-action: auto;
  overflow: visible;
}

.cpod-selection-box {
  position: absolute;
  box-sizing: border-box;
  border-radius: 2px;
  pointer-events: none;
}

.cpod-handle {
  position: absolute;
  pointer-events: auto;
  border-radius: 50%;
  border: 1px solid #1e1e1e;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  touch-action: none;
}

.cpod-handle--corner {
  width: 1em;
  height: 1em;
}

.cpod-handle--rot {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.28);
  background: #fff url('../icons/rotate.svg') center center no-repeat;
  background-size: 16px 16px; /* 16px at base 14px */
}


.cpod-handle-nw {
  cursor: nwse-resize;
}

.cpod-handle-se {
  cursor: nwse-resize;
}

.cpod-handle-ne {
  cursor: nesw-resize;
}

.cpod-handle-sw {
  cursor: nesw-resize;
}

.cpod-handle-rot {
  cursor: crosshair;
}
/* Keep text entry comfortable to read at every viewport size. */
.cpod-modal-block textarea {
  width: 100%;
  font-size: 22px !important;
}
/*# sourceMappingURL=preview.css.map */
