.shins-customizer-entry {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 18px 0 24px;
}

.shins-customizer-open {
  border-radius: 6px;
  font-weight: 600;
  padding: 12px 18px;
}

.shins-customizer-status {
  color: #666;
  font-size: 14px;
}

.shins-design-confirmation {
  border: 1px solid #e4e4e4;
  border-radius: 8px;
  margin: 12px 0 24px;
  max-width: 260px;
  padding: 12px;
}

.shins-design-confirmation__label {
  color: #555;
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 8px;
}

.shins-design-confirmation__image {
  display: block;
  height: auto;
  width: 100%;
}

.shins-cart-edit-design {
  font-size: 13px;
  margin: 6px 0 0;
}

.shins-cart-design-thumbnail {
  display: inline-block;
}

.shins-customizer {
  bottom: 0;
  left: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  right: 0;
  top: 0;
  transition: opacity 180ms ease;
  visibility: hidden;
  z-index: 999999;
}

.shins-customizer.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

body.shins-customizer-opened {
  overflow: hidden;
}

.shins-customizer__backdrop {
  background: rgba(15, 15, 15, 0.58);
  bottom: 0;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.shins-customizer__dialog {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
  box-sizing: border-box;
  left: 50%;
  max-height: calc(100vh - 40px);
  max-width: 980px;
  overflow: auto;
  padding: 24px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100vw - 40px);
}

.shins-customizer__header {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 20px;
}

.shins-customizer__eyebrow {
  color: #777;
  font-size: 12px;
  letter-spacing: 0.08em;
  margin: 0 0 4px;
  text-transform: uppercase;
}

.shins-customizer h3 {
  margin: 0;
}

.shins-customizer__close {
  align-items: center;
  background: #f4f4f4;
  border: 1px solid #ddd;
  border-radius: 999px;
  color: #222;
  cursor: pointer;
  display: inline-flex;
  font-size: 30px;
  height: 42px;
  justify-content: center;
  line-height: 1;
  padding: 0 0 3px;
  width: 42px;
}

.shins-customizer__body {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(280px, 430px) minmax(260px, 1fr);
}

.shins-customizer__stage {
  min-width: 0;
}

.shins-customizer__preview {
  align-items: center;
  aspect-ratio: 3 / 4;
  background:
    linear-gradient(45deg, #f1f1f1 25%, transparent 25%),
    linear-gradient(-45deg, #f1f1f1 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #f1f1f1 75%),
    linear-gradient(-45deg, transparent 75%, #f1f1f1 75%);
  background-color: #ffffff;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  background-size: 20px 20px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  cursor: grab;
  display: flex;
  justify-content: center;
  max-width: 430px;
  overflow: hidden;
  position: relative;
  touch-action: none;
  width: 100%;
}

.shins-customizer__preview.is-dragging {
  cursor: grabbing;
}

.shins-customizer__photo-wrap {
  inset: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  transition: opacity 160ms ease;
  z-index: 2;
}

.shins-customizer--has-photo .shins-customizer__photo-wrap {
  opacity: 1;
}

.shins-customizer__projection {
  height: 100%;
  inset: 0;
  object-fit: contain;
  pointer-events: none;
  position: absolute;
  width: 100%;
}

.shins-customizer__photo {
  display: none;
  height: 100%;
  left: 50%;
  object-fit: cover;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%) translate(var(--shins-x, 0%), var(--shins-y, 0%)) scale(var(--shins-zoom, 1));
  transform-origin: center;
  width: 100%;
}

.shins-customizer__template {
  inset: 0;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  position: absolute;
  width: 100%;
}

.shins-customizer__template--base {
  opacity: 0.92;
  z-index: 1;
}

.shins-customizer--has-photo .shins-customizer__template--base {
  opacity: 0;
}

.shins-customizer__template--overlay {
  mix-blend-mode: multiply;
  opacity: 0.82;
  z-index: 3;
}

.shins-customizer--has-photo .shins-customizer__template--overlay {
  opacity: 0;
}

.shins-customizer__focus-dot {
  border: 2px solid #fff;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.28);
  height: 18px;
  left: 50%;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%) translate(var(--shins-x, 0%), var(--shins-y, 0%));
  transition: opacity 160ms ease;
  width: 18px;
  z-index: 4;
}

.shins-customizer--has-photo .shins-customizer__focus-dot {
  opacity: 1;
}

.shins-customizer__empty {
  background: rgba(255, 255, 255, 0.86);
  border-radius: 6px;
  color: #333;
  font-size: 14px;
  left: 50%;
  padding: 8px 10px;
  position: absolute;
  text-align: center;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(230px, 78%);
  z-index: 5;
}

.shins-customizer--has-photo .shins-customizer__empty {
  display: none;
}

.shins-customizer__hint {
  color: #666;
  font-size: 14px;
  margin: 10px 0 0;
}

.shins-customizer__controls {
  align-content: start;
  display: grid;
  gap: 16px;
}

.shins-customizer input[type='file'],
.shins-customizer select {
  width: 100%;
}

.shins-customizer small {
  display: block;
  margin-top: 4px;
}

.shins-customizer__control label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.shins-customizer__control input[type='range'] {
  width: 100%;
}

.shins-customizer__actions {
  background: #fff;
  border-top: 1px solid #e7e7e7;
  bottom: -24px;
  box-shadow: 0 -10px 18px rgba(255, 255, 255, 0.92);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin: 4px -24px -24px;
  padding: 16px 24px;
  position: sticky;
  z-index: 20;
}

.shins-customizer__actions .button {
  align-items: center;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex !important;
  font-weight: 600;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  text-decoration: none;
  visibility: visible !important;
}

.shins-customizer__actions .shins-customizer__apply {
  background: #d95b2b !important;
  border-color: #d95b2b !important;
  color: #fff !important;
  opacity: 1 !important;
}

.shins-customizer__actions .button:disabled,
.shins-customizer__actions .button[aria-disabled='true'] {
  cursor: not-allowed;
  opacity: 0.42 !important;
}

@media (max-width: 760px) {
  .shins-customizer__dialog {
    border-radius: 0;
    max-height: 100vh;
    min-height: 100vh;
    padding: 18px;
    width: 100vw;
  }

  .shins-customizer__body {
    grid-template-columns: 1fr;
  }

  .shins-customizer__preview {
    max-width: 100%;
  }

  .shins-customizer__actions {
    bottom: -18px;
    margin: 0 -18px -18px;
    padding: 14px 18px;
  }

  .shins-customizer__actions .button {
    flex: 1 1 160px;
  }
}
