.yc-coque-customizer {
  margin: 20px 0;
  padding: 18px;
  border: 1px solid #d6e2e6;
  border-radius: 14px;
  background: #f7fbfc;
}

.yc-coque-title {
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.2;
  color: #123850;
}

.yc-coque-subtitle {
  margin: 0 0 16px;
  color: #355a68;
  font-size: 14px;
}

.yc-coque-layout {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(220px, 320px);
  gap: 16px;
  align-items: start;
}

.yc-coque-controls label {
  display: block;
  margin: 10px 0 6px;
  color: #1a3e56;
}

.yc-coque-controls input[type="file"],
.yc-coque-controls input[type="text"],
.yc-coque-controls input[type="color"],
.yc-coque-controls input[type="range"] {
  width: 100%;
}

.yc-coque-controls input[type="file"],
.yc-coque-controls input[type="text"] {
  padding: 10px;
  border: 1px solid #c5d7df;
  border-radius: 10px;
  background: #fff;
}

.yc-coque-controls input[type="color"] {
  height: 46px;
  border: 1px solid #c5d7df;
  border-radius: 10px;
  padding: 4px;
  background: #fff;
}

.yc-coque-inline-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.yc-coque-controls input#yc-coque-text-size {
  height: 30px;
  padding: 0;
}

.yc-coque-text-size-value {
  min-width: 52px;
  text-align: right;
  font-size: 12px;
  font-weight: 700;
  color: #355a68;
}

.yc-coque-save {
  margin-top: 14px;
  width: 100%;
}

.yc-coque-status {
  min-height: 22px;
  margin: 10px 0 0;
  font-size: 13px;
}

.yc-coque-status.is-success {
  color: #0b6d2f;
}

.yc-coque-status.is-error {
  color: #b42318;
}

.yc-coque-status.is-warn {
  color: #a15d00;
}

.yc-coque-status.is-loading {
  color: #0b5aa4;
}

.yc-coque-hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: #5c7380;
}

.yc-coque-preview {
  text-align: center;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

#yc-coque-canvas {
  display: block;
  width: 100%;
  height: auto;
  max-width: 248px;
  margin: 0 auto;
  border: none;
  border-radius: 12px;
  background: transparent;
  filter: drop-shadow(0 10px 18px rgba(8, 9, 12, 0.52));
  touch-action: none;
  cursor: grab;
}

#yc-coque-canvas.is-dragging {
  cursor: grabbing;
}

.yc-coque-zoom-controls {
  margin: 12px auto 0;
  max-width: 276px;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: 34px 1fr 34px auto;
  gap: 8px;
  align-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(190, 208, 218, 0.8);
}

.yc-coque-zoom-controls button {
  height: 34px;
  border: 1px solid rgba(163, 188, 201, 0.72);
  border-radius: 999px;
  background: #f8fbfd;
  color: #1d4156;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.12s ease, background-color 0.12s ease, border-color 0.12s ease;
}

.yc-coque-zoom-controls button:hover:not(:disabled) {
  background: #ffffff;
  border-color: #8eb5ca;
  transform: translateY(-1px);
}

.yc-coque-zoom-controls button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.yc-coque-zoom-controls .yc-coque-zoom-reset {
  padding: 0 12px;
  font-size: 12px;
  font-weight: 700;
}

.yc-coque-zoom-range {
  width: 100%;
  appearance: none;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(139, 188, 211, 0.85), rgba(103, 150, 172, 0.65));
}

.yc-coque-zoom-range::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(138, 177, 195, 0.95);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(124, 175, 199, 0.28);
}

.yc-coque-zoom-range::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(139, 188, 211, 0.85), rgba(103, 150, 172, 0.65));
}

.yc-coque-zoom-range::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 1px solid rgba(138, 177, 195, 0.95);
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(124, 175, 199, 0.28);
}

.yc-coque-zoom-hint {
  margin: 9px auto 0;
  max-width: 290px;
  font-size: 12px;
  line-height: 1.35;
  color: #3d6072;
}

.yc-coque-preview-label {
  margin: 8px 0 0;
  font-size: 12px;
  color: #2f566a;
  letter-spacing: 0.01em;
}

@media (max-width: 767px) {
  .yc-coque-layout {
    grid-template-columns: 1fr;
  }

  #yc-coque-canvas {
    max-width: 280px;
  }
}
