/* Bestellprozess QA 2026-08-28 */
.image-mode-card {
  grid-template-rows: auto auto 1fr;
  min-height: 174px;
}

.image-mode-number {
  order: 1;
}

.image-mode-card strong {
  order: 2;
  min-width: 0;
  overflow-wrap: anywhere;
}

.image-mode-card small {
  order: 4;
}

.image-mode-card .price-sticker {
  position: static !important;
  order: 3;
  grid-column: 2;
  justify-self: start;
  align-self: start;
  min-width: 0;
  margin: -2px 0 2px;
  padding: 5px 9px;
  border: 1px solid rgba(242, 111, 111, .24);
  background: #fff2df;
  color: #8d3c2d !important;
  font-size: 11px !important;
  box-shadow: none;
  transform: none !important;
}

.image-mode-card:has(input:checked) .price-sticker {
  background: #ffe3cb;
  box-shadow: none;
  transform: none !important;
}

.frame-card .price-sticker {
  transform: none !important;
  box-shadow: 0 8px 18px rgba(242, 111, 111, .16);
}

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

.output-type-card {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 172px;
  padding: 19px;
  border: 1px solid rgba(72, 39, 31, .14);
  border-radius: 20px;
  background: rgba(255, 255, 255, .58);
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(78, 42, 31, .08);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.output-type-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(78, 42, 31, .11);
}

.output-type-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.output-type-card span {
  width: max-content;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(50, 29, 24, .10);
  color: #6e4d44;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.output-type-card strong {
  max-width: 440px;
  color: #321d18;
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.12;
}

.output-type-card small {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.output-type-card em {
  justify-self: start;
  padding: 7px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffc360, #f26f6f);
  color: #321d18;
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
  box-shadow: 0 12px 24px rgba(242, 111, 111, .18);
}

.output-type-card:has(input:checked) {
  border-color: #ed8066;
  background: #fffaf3;
  box-shadow: 0 0 0 3px rgba(242, 111, 111, .12), 0 18px 36px rgba(78, 42, 31, .12);
}

.output-type-card:has(input:checked) span {
  background: #321d18;
  color: #fff9ee;
}

.checkout-digital-note {
  display: none;
  margin: 0 0 10px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 195, 96, .26);
  border-radius: 16px;
  background: rgba(255, 249, 238, .68);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.checkout-shipping-block.is-digital-delivery .checkout-digital-note {
  display: block;
}

.checkout-shipping-block.is-digital-delivery .checkout-option-card {
  display: none;
}

.image-editor-modal.is-background-mode.is-landscape-image .image-composer-photo {
  background-size: auto var(--upload-zoom, 118%);
}

.image-editor-modal.is-background-mode.is-portrait-image .image-composer-photo,
.image-editor-modal.is-background-mode.is-square-image .image-composer-photo {
  background-size: var(--upload-zoom, 118%) auto;
}

.approval-preview-image {
  display: block;
  width: min(100%, 980px);
  max-height: min(72vh, 900px);
  margin: 0 auto;
  border: 1px solid rgba(72, 39, 31, .18);
  border-radius: 18px;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 18px 46px rgba(50, 29, 24, .16);
}

.approval-actions .button:disabled {
  opacity: .62;
  cursor: default;
  filter: saturate(.75);
}

.sudoku-config-grid .output-type-card {
  min-height: 150px;
}

.sudoku-frame-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.sudoku-frame-grid .frame-card span {
  min-height: 130px;
  background-size: cover;
  background-position: center;
}

.sudoku-frame-grid .frame-card:not(.frame-none) span {
  background-image: var(--frame-preview);
}

.sudoku-order-ready {
  display: grid;
  gap: 14px;
}

.sudoku-order-placeholder {
  display: grid;
  grid-template-columns: minmax(132px, 190px) 1fr;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(72, 39, 31, .14);
  border-radius: 18px;
  background: rgba(255, 255, 255, .62);
}

.sudoku-order-placeholder strong,
.sudoku-order-placeholder small {
  display: block;
}

.sudoku-order-grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  aspect-ratio: 1;
  border: 2px solid #321d18;
  background: #fffaf3;
}

.sudoku-order-grid span {
  display: grid;
  place-items: center;
  min-width: 0;
  border: 1px solid rgba(50, 29, 24, .24);
  color: #704435;
  font: 700 16px/1 Georgia, "Times New Roman", serif;
}

.sudoku-order-grid span:nth-child(3n) {
  border-right-color: #321d18;
}

.sudoku-order-grid span:nth-child(n+19):nth-child(-n+27),
.sudoku-order-grid span:nth-child(n+46):nth-child(-n+54) {
  border-bottom-color: #321d18;
}

.image-editor-window .image-composer {
  background: #261714;
  cursor: default;
}

.image-editor-window .image-composer:active {
  cursor: default;
}

.image-editor-window .image-modal-grid {
  opacity: 0;
  pointer-events: none;
}

.image-editor-window .image-crop-stage {
  position: absolute;
  z-index: 6;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 195, 96, .14), transparent 48%),
    #2f1c18;
  touch-action: none;
  user-select: none;
}

.image-editor-window .image-crop-photo {
  position: absolute;
  background-image: var(--upload-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  box-shadow: 0 18px 42px rgba(31, 17, 13, .32);
}

.image-editor-window .image-crop-box {
  position: absolute;
  z-index: 2;
  min-width: 72px;
  min-height: 72px;
  border: 2px solid #fff9ee;
  border-radius: 10px;
  box-shadow:
    0 0 0 9999px rgba(37, 21, 17, .58),
    0 14px 36px rgba(37, 21, 17, .36),
    inset 0 0 0 1px rgba(50, 29, 24, .20);
  cursor: move;
  touch-action: none;
}

.image-editor-window .image-crop-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 33.1%, rgba(255, 249, 238, .62) 33.3%, rgba(255, 249, 238, .62) 33.8%, transparent 34%),
    linear-gradient(90deg, transparent 66.1%, rgba(255, 249, 238, .62) 66.3%, rgba(255, 249, 238, .62) 66.8%, transparent 67%),
    linear-gradient(0deg, transparent 33.1%, rgba(255, 249, 238, .62) 33.3%, rgba(255, 249, 238, .62) 33.8%, transparent 34%),
    linear-gradient(0deg, transparent 66.1%, rgba(255, 249, 238, .62) 66.3%, rgba(255, 249, 238, .62) 66.8%, transparent 67%);
}

.image-editor-window .image-crop-handle {
  position: absolute;
  z-index: 3;
  width: 28px;
  height: 28px;
  border: 3px solid #321d18;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffc360, #f26f6f);
  box-shadow: 0 8px 18px rgba(37, 21, 17, .32);
  touch-action: none;
}

.image-editor-window .image-crop-handle-nw {
  top: -15px;
  left: -15px;
  cursor: nwse-resize;
}

.image-editor-window .image-crop-handle-ne {
  top: -15px;
  right: -15px;
  cursor: nesw-resize;
}

.image-editor-window .image-crop-handle-se {
  right: -15px;
  bottom: -15px;
  cursor: nwse-resize;
}

.image-editor-window .image-crop-handle-sw {
  bottom: -15px;
  left: -15px;
  cursor: nesw-resize;
}

.image-editor-window .image-composer-help {
  z-index: 8;
  left: 18px;
  right: 18px;
  bottom: 18px;
  background: rgba(50, 29, 24, .82);
}

.image-editor-tools .image-position-control {
  display: none;
}

@media (max-width: 760px) {
  .output-type-grid {
    grid-template-columns: 1fr;
  }

  .image-editor-window .image-crop-handle {
    width: 34px;
    height: 34px;
  }

  .image-editor-window .image-crop-handle-nw {
    top: -18px;
    left: -18px;
  }

  .image-editor-window .image-crop-handle-ne {
    top: -18px;
    right: -18px;
  }

  .image-editor-window .image-crop-handle-se {
    right: -18px;
    bottom: -18px;
  }

  .image-editor-window .image-crop-handle-sw {
    bottom: -18px;
    left: -18px;
  }
}

.checkout-total-card {
  display: grid;
  gap: 14px;
  padding: 20px 22px;
  border-radius: 24px;
}

.checkout-total-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
}

.checkout-total-head span {
  color: rgba(255, 249, 238, .78);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.checkout-total-head strong {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 38px;
  line-height: 1;
  white-space: nowrap;
}

.checkout-line-items {
  display: grid;
  gap: 0;
  margin: 0;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 249, 238, .18);
}

.checkout-line-items [hidden] {
  display: none !important;
}

.checkout-line-items div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 249, 238, .12);
}

.checkout-line-items div:last-child {
  border-bottom: 0;
}

.checkout-line-items dt,
.checkout-line-items dd {
  margin: 0;
}

.checkout-line-items dt {
  color: rgba(255, 249, 238, .78);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.checkout-line-items dd {
  color: #fff9ee;
  font-size: 15px;
  font-weight: 950;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .checkout-total-head {
    display: grid;
  }

  .checkout-total-head strong {
    font-size: 34px;
  }

  .checkout-line-items div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
