.ox-order-design {
  margin: 10px 0 4px;
  max-width: 360px;
}

.ox-order-design__label {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 6px;
}

.ox-order-design__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ox-order-design__thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: #334155;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}

.ox-order-design__thumb img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  display: block;
}

.ox-order-design__thumb:hover img {
  border-color: #e11d48;
}

.ox-order-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 100100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.ox-order-preview-modal[hidden] {
  display: none !important;
}

.ox-order-preview-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.ox-order-preview-modal__panel {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 12px;
  width: min(640px, 96vw);
  max-height: 92vh;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
}

.ox-order-preview-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
}

.ox-order-preview-modal__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.ox-order-preview-modal__close {
  border: 0;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: #64748b;
  padding: 4px 8px;
}

.ox-order-preview-modal__body {
  padding: 16px;
  overflow: auto;
  text-align: center;
  background: #f8fafc;
}

.ox-order-preview-modal__body img {
  max-width: 100%;
  height: auto;
  display: inline-block;
}

body.ox-order-preview-open {
  overflow: hidden;
}
