@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&family=Patrick+Hand&display=swap");

:root {
  --cream: #fff8ec;
  --paper: #fffdf8;
  --ink: #302f38;
  --soft-ink: #67616a;
  --blue: #245f78;
  --coral: #bd5552;
  --line: #e5d3ba;
  --body: "Nunito", ui-rounded, system-ui, sans-serif;
  --hand: "Patrick Hand", "Comic Sans MS", cursive;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: var(--body);
  line-height: 1.45;
}

.my-order-page {
  width: min(100%, 620px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 clamp(18px, 5vw, 38px) 54px;
  background: #fff;
}

.topbar { position: relative; min-height:58px; margin:0 calc(-1 * clamp(18px, 5vw, 38px)); padding:0 clamp(18px, 5vw, 38px); border-bottom:1px solid rgba(36,95,120,.12); background:#fff; box-shadow:0 3px 13px rgba(62,47,36,.055); }

.lc-logo {
  position: absolute;
  top: 17px;
  left: clamp(18px, 5vw, 38px);
  color: var(--coral);
  background: linear-gradient(90deg, #ef756b 0 18%, #efb742 18% 35%, #7da76f 35% 52%, #7caec1 52% 70%, #9b83a7 70% 86%, #ef756b 86%);
  -webkit-background-clip: text;
  background-clip: text;
  font-family: var(--hand);
  font-size: clamp(17px, 4.5vw, 23px);
  font-weight: 400;
  letter-spacing: .025em;
  line-height: 1;
  text-decoration: none;
  -webkit-text-fill-color: transparent;
}

.lc-logo::after {
  content: "";
  display: inline-block;
  width: 1.28em;
  height: 1.28em;
  margin-left: .16em;
  vertical-align: -.34em;
  background: url("../little-chapter/images/little-chapter-star.png") center / contain no-repeat;
}

.create-link {
  position: absolute;
  top: 14px;
  right: clamp(18px, 5vw, 38px);
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 9px;
  border: 1px solid rgba(36,95,120,.22);
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
}

.order-intro { margin: clamp(58px, 13vw, 86px) auto 28px; text-align: center; }
.eyebrow { margin: 0 0 7px; color: var(--coral); font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.order-intro h1 { margin: 0; color: var(--blue); font-size: clamp(30px, 8vw, 44px); letter-spacing: -.04em; line-height: 1.05; }
.order-intro > p:last-child { max-width: 430px; margin: 14px auto 0; color: var(--soft-ink); font-size: clamp(14px, 3.8vw, 17px); }

.lookup-card {
  padding: clamp(20px, 5vw, 30px);
  border: 1px solid rgba(36,95,120,.2);
  border-radius: 20px;
  background: rgba(255,255,255,.64);
  box-shadow: 0 16px 36px rgba(75,54,39,.08);
}

.access-intro { max-width: 400px; margin: 0 auto 17px; color: var(--soft-ink); font-size: 13px; text-align: center; }
.email-access-form { display: grid; gap: 7px; }
.email-access-form label { margin-top: 2px; font-size: 12px; font-weight: 800; }
.email-access-form input { width: 100%; height: 52px; padding: 0 14px; border: 1px solid #cec5bc; border-radius: 11px; outline: none; background: rgba(255,255,255,.88); color: var(--ink); font: inherit; font-size: 15px; }
.email-access-form input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(36,95,120,.1); }
.email-access-form button { min-height: 54px; margin-top: 10px; border: 0; border-radius: 12px; background:linear-gradient(90deg,#bd5552,#b94e50); color: white; font: inherit; font-weight: 850; cursor: pointer; }
.email-access-form button span { margin-left: 7px; font-size: 1.2em; }
.email-access-form button:disabled { cursor: wait; opacity: .68; }
.access-status { margin: 8px 0 0; color: var(--blue); font-size: 12px; font-weight: 700; text-align: center; }
.access-status.is-error { color: #8f3432; }

.order-dashboard { text-align: center; }
.status-kicker { margin: 0 0 7px; color: var(--coral); font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.order-dashboard h2 { margin: 0; color: var(--blue); font-size: clamp(25px, 7vw, 36px); letter-spacing: -.035em; line-height: 1.08; }
.status-copy { max-width: 420px; margin: 13px auto 0; color: var(--soft-ink); font-size: 14px; }
.delivery-card { display:grid; gap:4px; margin:18px auto 0; padding:13px 15px; border:1px solid rgba(36,95,120,.18); border-radius:12px; background:rgba(237,246,245,.65); text-align:left; }
.delivery-card span { color:var(--soft-ink); font-size:10px; font-weight:850; letter-spacing:.08em; text-transform:uppercase; }
.delivery-card strong { color:var(--blue); font-size:13px; }
.delivery-card a { width:max-content; margin-top:4px; color:var(--coral); font-size:12px; font-weight:850; text-decoration:none; }
.delivery-card small { color:var(--soft-ink); font-size:11px; }
.preview-card { margin: 24px 0 20px; overflow: hidden; border: 1px solid rgba(185,157,124,.3); border-radius: 15px; background: #f5ead9; }
.preview-card img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: contain; }
.review-form { display: grid; gap: 10px; margin-top: 20px; padding-top: 19px; border-top: 1px solid rgba(36,95,120,.16); text-align: left; }
.revision-heading { display: flex; align-items: center; gap: 7px; }
.review-form label { color: var(--ink); font-size: 12px; font-weight: 850; }
.revision-info { position: relative; }
.revision-info summary {
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border: 1.5px solid var(--blue);
  border-radius: 50%;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  list-style: none;
  cursor: pointer;
}
.revision-info summary::-webkit-details-marker { display: none; }
.revision-info > div {
  position: absolute;
  z-index: 5;
  top: 27px;
  left: -70px;
  width: min(245px, 70vw);
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 10px 26px rgba(70,48,34,.16);
}
.revision-info strong { display: block; color: var(--blue); font-size: 12px; }
.revision-info p { margin: 3px 0 9px; color: var(--soft-ink); font-size: 11px; line-height: 1.35; }
.revision-info p:last-child { margin-bottom: 0; }
.review-form textarea { width: 100%; min-height: 88px; padding: 12px 14px; resize: vertical; border: 1px solid #cec5bc; border-radius: 11px; outline: none; background: rgba(255,255,255,.88); color: var(--ink); font: inherit; font-size: 13px; }
.review-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(36,95,120,.1); }
.review-form button { min-height: 50px; border-radius: 11px; font: inherit; font-size: 13px; font-weight: 850; cursor: pointer; }
.review-form button:disabled { cursor: wait; opacity: .65; }
.revision-button { border: 0; background: var(--coral); color: white; }
.approve-button { border: 1px solid rgba(36,95,120,.32); background: rgba(255,255,255,.7); color: var(--blue); }
.resume-order-link { display: flex; align-items: center; justify-content: center; min-height: 52px; margin-top: 22px; border-radius: 12px; background: var(--coral); color: white; font-size: 14px; font-weight: 850; text-decoration: none; }
.action-status { margin: 13px 0 0; color: var(--blue); font-size: 12px; font-weight: 750; }
.action-status.is-error { color: #8f3432; }

.help-note { display: flex; align-items: flex-start; gap: 10px; margin: 20px 4px 0; color: var(--soft-ink); }
.help-note > span { color: #efb742; }
.help-note p { margin: 0; font-size: 12px; }
.help-note strong { color: var(--ink); }

@media (max-width: 380px) {
  .lookup-card { padding-inline: 17px; }
}
