/* Order print page + lightbox “Order print” */

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

body.order-print-page {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 209, 168, 0.54), transparent 30%),
    radial-gradient(circle at 100% 4%, rgba(188, 221, 243, 0.42), transparent 22%),
    radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.78), transparent 36%),
    linear-gradient(180deg, #fcfaf7 0%, #f8f2ea 46%, #f3ede4 100%);
  color: var(--text, #171412);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* —— Hero —— */
.order-print-hero {
  width: min(1180px, calc(100vw - 40px));
  margin: 18px auto 0;
  text-align: center;
  padding: clamp(30px, 5vw, 54px) clamp(22px, 5vw, 64px) clamp(24px, 4vw, 36px);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--radius-lg, 40px);
  background:
    radial-gradient(circle at top right, rgba(245, 196, 148, 0.34), transparent 28%),
    radial-gradient(circle at bottom left, rgba(174, 205, 226, 0.24), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.52)),
    rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow-soft, 0 24px 60px rgba(126, 100, 73, 0.14));
  backdrop-filter: blur(24px) saturate(140%);
}

.order-print-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.34), transparent 38%, transparent 60%, rgba(191, 127, 79, 0.1));
  pointer-events: none;
}

.order-print-hero__accent {
  width: min(120px, 28vw);
  height: 1px;
  margin: 0 auto 20px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(191, 127, 79, 0.22) 20%,
    rgba(191, 127, 79, 0.9) 50%,
    rgba(191, 127, 79, 0.22) 80%,
    transparent
  );
  box-shadow: 0 0 24px rgba(191, 127, 79, 0.22);
}

.order-print-hero__eyebrow {
  margin: 0 0 10px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent, #bf7f4f);
  opacity: 0.92;
}

.order-print-hero__title {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(2.1rem, 5.5vw, 4rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 0.98;
  text-transform: uppercase;
  color: var(--text, #171412);
}

.order-print-hero__lede {
  margin: 14px auto 0;
  max-width: 42rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--muted-strong, #433b36);
  font-weight: 400;
}

.order-print-main {
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px clamp(18px, 4vw, 36px) clamp(48px, 8vw, 72px);
}

.order-print-layout {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

@media (min-width: 900px) {
  .order-print-layout {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    gap: clamp(36px, 5vw, 56px);
  }
}

.order-print-visual {
  min-width: 0;
}

.order-print-flash {
  padding: 14px 18px;
  border-radius: var(--radius-sm, 14px);
  margin: 0 0 22px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.order-print-flash--ok {
  background: rgba(77, 124, 90, 0.08);
  border: 1px solid rgba(77, 124, 90, 0.18);
  box-shadow: 0 12px 34px rgba(126, 100, 73, 0.08);
}

.order-print-flash--err {
  background: rgba(162, 89, 104, 0.08);
  border: 1px solid rgba(162, 89, 104, 0.18);
  box-shadow: 0 12px 34px rgba(126, 100, 73, 0.08);
}

.order-print-error {
  padding: 48px 24px;
  text-align: center;
  max-width: 40ch;
  margin: 0 auto;
}

/* —— Framed preview —— */
.order-print-frame {
  margin: 0 auto;
  max-width: 100%;
}

.order-print-frame__outer {
  padding: clamp(12px, 2.2vw, 18px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.62)),
    rgba(255, 255, 255, 0.74);
  box-shadow:
    0 24px 68px rgba(126, 100, 73, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px) saturate(140%);
}

.order-print-frame__matte {
  padding: clamp(16px, 3.2vw, 26px);
  background: linear-gradient(165deg, #fffdf9 0%, #f4eee6 48%, #ece4db 100%);
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(95, 74, 51, 0.08);
}

.order-print-frame__inner {
  box-shadow:
    0 0 0 1px rgba(191, 127, 79, 0.18),
    0 20px 56px rgba(126, 100, 73, 0.16);
  border-radius: 10px;
  overflow: hidden;
  line-height: 0;
  background: rgba(255, 255, 255, 0.92);
}

.order-print-frame__img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.order-print-credit {
  text-align: center;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 22px 0 0;
  color: var(--muted, #695e57);
}

.order-print-credit strong {
  color: var(--text, #171412);
  font-weight: 600;
  letter-spacing: 0.14em;
}

/* —— Form —— */
.order-print-aside {
  min-width: 0;
}

.order-print-form-card {
  background:
    radial-gradient(circle at top right, rgba(245, 196, 148, 0.2), transparent 34%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.58) 100%);
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: var(--radius-md, 30px);
  padding: clamp(22px, 4vw, 32px);
  box-shadow:
    0 18px 52px rgba(126, 100, 73, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px) saturate(140%);
}

.order-print-form-kicker {
  margin: 0 0 6px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent, #bf7f4f);
  opacity: 0.9;
}

.order-print-form-title {
  margin: 0 0 10px;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.08;
}

.order-print-form-lede {
  margin: 0 0 22px;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--muted, #695e57);
}

.order-print-form-card label {
  display: block;
  margin: 16px 0 7px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-strong, #433b36);
}

.order-print-form-card label:first-of-type {
  margin-top: 0;
}

.order-print-form-card input,
.order-print-form-card textarea {
  width: 100%;
  max-width: 100%;
  display: block;
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: var(--radius-sm, 12px);
  border: 1px solid rgba(95, 74, 51, 0.1);
  background: rgba(255, 255, 255, 0.78);
  color: var(--text, #171412);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.5;
  text-transform: none;
  box-sizing: border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.order-print-form-card input::placeholder,
.order-print-form-card textarea::placeholder {
  color: rgba(105, 94, 87, 0.6);
}

.order-print-form-card input:hover,
.order-print-form-card textarea:hover {
  border-color: rgba(191, 127, 79, 0.18);
  background: rgba(255, 255, 255, 0.92);
}

.order-print-form-card input:focus,
.order-print-form-card textarea:focus {
  outline: none;
  border-color: rgba(191, 127, 79, 0.28);
  box-shadow: 0 0 0 3px rgba(191, 127, 79, 0.1);
  background: rgba(255, 255, 255, 0.98);
}

.order-print-form-card textarea {
  resize: vertical;
  min-height: 88px;
  line-height: 1.5;
}

.order-print-actions {
  margin: 26px 0 0;
}

.order-print-submit {
  cursor: pointer;
  font: inherit;
  padding: 15px 28px;
  border-radius: 999px;
  border: 1px solid rgba(191, 127, 79, 0.2);
  background: linear-gradient(135deg, rgba(191, 127, 79, 0.96), rgba(219, 166, 122, 0.96));
  color: #fff;
  letter-spacing: 0.16em;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  width: 100%;
  box-shadow:
    0 18px 36px rgba(191, 127, 79, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.order-print-submit:hover {
  transform: translateY(-1px);
  border-color: rgba(191, 127, 79, 0.34);
  box-shadow:
    0 22px 42px rgba(191, 127, 79, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.order-print-submit:active {
  transform: translateY(0);
}

.order-print-footer-note {
  text-align: center;
  margin-top: clamp(36px, 6vw, 52px);
  padding-top: 28px;
  border-top: 1px solid rgba(70, 52, 38, 0.08);
  font-size: 0.8rem;
  color: var(--muted, #695e57);
}

.order-print-footer-note a {
  color: var(--accent, #bf7f4f);
  text-decoration: none;
  border-bottom: 1px solid rgba(191, 127, 79, 0.28);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.order-print-footer-note a:hover {
  color: var(--text, #171412);
  border-bottom-color: rgba(23, 20, 18, 0.26);
}

.req {
  color: var(--accent, #bf7f4f);
}

/* —— Lightbox —— */
.lightbox {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.lightbox-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 2vw, 14px);
  max-width: min(92vw, 1500px);
  max-height: none;
  min-height: min-content;
  position: relative;
  z-index: 1;
  padding-bottom: 10px;
  box-sizing: border-box;
}

.lightbox .lightbox-img-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 auto;
}

.lightbox .lightbox-img-wrap img#lightbox-img {
  max-height: calc(100vh - var(--lightbox-nav-offset) - clamp(64px, 12vw, 96px));
}

.lightbox-order-actions {
  flex-shrink: 0;
  z-index: 2;
}

.lightbox-order-actions[hidden] {
  display: none !important;
}

.lightbox-order-print-btn {
  cursor: pointer;
  font: inherit;
  padding: 11px 26px;
  border-radius: 999px;
  border: 1px solid rgba(191, 127, 79, 0.18);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text, #171412);
  letter-spacing: 0.18em;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow:
    0 12px 28px rgba(126, 100, 73, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.lightbox-order-print-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(191, 127, 79, 0.26);
  box-shadow:
    0 16px 34px rgba(126, 100, 73, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
