/* Shared order flow UI: preview, meta, buttons, totals */

.order-preview {
  position: relative;
}

.order-preview__frame {
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  width: 100%;
  max-width: 100%;
}

.order-preview__frame--hero {
  aspect-ratio: 205 / 75;
}

.order-preview__frame--large {
  aspect-ratio: 205 / 75;
}

.order-preview__frame--medium {
  aspect-ratio: 205 / 75;
}

.order-preview__frame--compact {
  aspect-ratio: 205 / 75;
  max-width: 420px;
}

.order-preview__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
  border: 1px solid #d0d5dd;
  border-radius: 0;
}

.order-preview__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: inherit;
  color: #98a2b3;
  background: #f2f4f7;
  font-size: 0.95rem;
}

.order-preview--zoomable .order-preview__frame {
  overflow: hidden;
}

.order-preview__zoom-btn {
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid #d0d5dd;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #006eb7;
  box-shadow: 0 4px 14px rgba(0, 62, 142, 0.12);
  cursor: pointer;
}

.order-preview__zoom-btn:hover {
  background: #fff;
}

.order-preview__lens {
  position: absolute;
  z-index: 3;
  border: 2px solid #006eb7;
  border-radius: 50%;
  background-repeat: no-repeat;
  background-color: #fff;
  box-shadow: 0 8px 24px rgba(0, 62, 142, 0.2);
  pointer-events: none;
}

.preview-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.preview-lightbox[hidden] {
  display: none;
}

.preview-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 24, 40, 0.72);
}

.preview-lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(1100px, 96vw);
  max-height: 90vh;
  padding: 1rem;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.preview-lightbox__image {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(90vh - 4rem);
  object-fit: contain;
  border: 1px solid #d0d5dd;
}

.preview-lightbox__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: #eef3f7;
  color: #101828;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.order-preview__badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: #73c539;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.order-item-meta__eyebrow {
  margin: 0 0 0.35rem;
  color: #006eb7;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.order-item-meta__title {
  margin: 0 0 0.35rem;
  color: #101828;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  line-height: 1.25;
}

.order-item-meta__title a {
  color: inherit;
  text-decoration: none;
}

.order-item-meta__title a:hover {
  color: #006eb7;
}

.order-item-meta__variation {
  margin: 0 0 0.75rem;
  color: #475467;
  font-size: 1rem;
}

.order-item-meta__price {
  margin: 0;
  color: #003d8e;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.order-item-meta__qty {
  margin: 0.5rem 0 0;
  color: #667085;
  font-size: 0.92rem;
}

.order-totals {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #eef2f6;
}

.order-totals__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.4rem 0;
  color: #475467;
}

.order-totals__row--emphasis {
  margin-top: 0.75rem;
  color: #101828;
  font-size: 1.2rem;
  font-weight: 700;
}

.order-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.25rem;
  border-radius: 10px;
  border: 0;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.order-button--primary {
  background: #006eb7;
  color: #fff;
}

.order-button--primary:hover {
  background: #005a96;
}

.order-button--success {
  background: #039855;
  color: #fff;
}

.order-button--success:hover {
  background: #027a48;
}

.order-button--secondary {
  background: #eef3f7;
  color: #006eb7;
}

.order-button--secondary:hover {
  background: #e3edf5;
}

.order-button--ghost {
  background: transparent;
  color: #b42318;
  padding-inline: 0.25rem;
}

.order-button--ghost:hover {
  text-decoration: underline;
}

.order-button--danger {
  background: #fef3f2;
  color: #b42318;
  border: 1px solid #fecdca;
}

.order-button--danger:hover {
  background: #fee4e2;
}

.order-button--link {
  background: transparent;
  color: #006eb7;
  padding-inline: 0;
}

.order-button--link:hover {
  text-decoration: underline;
}

.order-button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.order-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.order-steps__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #98a2b3;
  font-size: 0.92rem;
  font-weight: 600;
}

.order-steps__item.is-current {
  color: #006eb7;
}

.order-steps__item.is-complete {
  color: #475467;
}

.order-steps__item a {
  color: inherit;
  text-decoration: none;
}

.order-steps__item a:hover {
  text-decoration: underline;
}

.order-steps__dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: #eef2f6;
  color: #667085;
  font-size: 0.78rem;
}

.order-steps__item.is-current .order-steps__dot,
.order-steps__item.is-complete .order-steps__dot {
  background: #006eb7;
  color: #fff;
}
