/* =====================================================================
   PHOTO GIFTS – shared styles for every maker page (calendar, collage,
   cards, tags, e-card). Same look as Gallery Print.
   ===================================================================== */
* { box-sizing: border-box; }
html, body { width: 100%; margin: 0; padding: 0; font-family: 'Open Sans', sans-serif; color: #25383c; -webkit-text-size-adjust: 100%; background: #142023; }
body { display: flex; flex-direction: column; align-items: center; min-height: 100vh; padding-top: 40px; padding-bottom: 60px; }
h1 { font-size: 20px; text-transform: uppercase; letter-spacing: .5px; text-align: center; margin: 0 0 6px; color: #fff; }
.sub { font-size: 13px; text-align: center; color: #cfd8da; margin: 0 0 22px; line-height: 1.5; }
@keyframes pcScreenIn { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:none; } }
.wrap { width: 100%; max-width: 960px; margin: 0 auto; padding: 30px 30px 40px; animation: pcScreenIn .3s ease-out; background: #142023; }
.homeLink { display: block; text-align: center; margin: 0 0 14px; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; color: #9fb0b4; text-decoration: none; text-transform: uppercase; }
.homeLink:hover { color: #fff; }
.newTag { display: inline-block; margin-left: 8px; vertical-align: 3px; background: #e67e22; color: #fff; font-size: 10px; font-weight: 800; letter-spacing: 1px; padding: 2px 8px; border-radius: 999px; }

/* ---------- other makers in this app (small links under the title) ---------- */
.makers { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: -8px 0 22px; }
.makers a { color: #cfd8da; text-decoration: none; font-size: 11.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; padding: 6px 11px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; }
.makers a:hover { color: #fff; border-color: rgba(230,126,34,.7); }
.makers a.on { color: #fff; border-color: #e67e22; background: rgba(230,126,34,.15); }

/* ---------- preview ---------- */
#previewBox { text-align: center; }
#preview { width: auto; height: auto; max-width: 100%; max-height: 72vh; display: block; margin: 0 auto; touch-action: pan-x pan-y pinch-zoom; cursor: pointer; }
#preview.can-drag { cursor: grab; touch-action: none; }
#preview.dragging { cursor: grabbing; }
.pageNav { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 12px; color: #fbf9f4; font-size: 13px; font-weight: 700; }
.pageNav.off { display: none; }
.pageNav button { width: 40px; height: 34px; border-radius: 8px; border: 1px solid rgba(251,249,244,.6); background: transparent; color: #fbf9f4; font-size: 15px; cursor: pointer; }
.pageNav button:disabled { opacity: .3; cursor: default; }
.pageNav span { min-width: 190px; text-align: center; }
.previewNote { color: #9fb0b4; font-size: 11px; text-align: center; margin-top: 8px; line-height: 1.45; }

/* ---------- cards ---------- */
.settings { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 18px; }
.panel { background: #fbf9f4; border-radius: 10px; padding: 18px 22px; }
.panel.off { display: none; }
.panelTitle { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; text-align: center; margin: 0 0 12px; }
.cols { display: grid; gap: 18px; align-items: start; }
.cols-2 { grid-template-columns: 1fr 1fr; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.field { margin-bottom: 12px; }
.field:last-child, .cols .field { margin-bottom: 0; }
.field.off { display: none; }
.field > label { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; text-align: center; margin-bottom: 5px; }
.field input[type=text], .field input[type=number], .field select, .field textarea { width: 100%; font-family: inherit; font-size: 14px; padding: 9px 10px; border: 1px solid #ccc; border-radius: 6px; text-align: center; background: #fff; color: #25383c; }
.field textarea { resize: vertical; min-height: 74px; line-height: 1.45; }
.hint { font-size: 11px; color: #555; text-align: center; line-height: 1.45; margin-top: 6px; }
.center { text-align: center; }
input:focus::placeholder, textarea:focus::placeholder { color: transparent !important; opacity: 0 !important; }

.btn { border: none; border-radius: 8px; padding: 11px 18px; font-size: 13px; font-weight: 700; color: #fff; background: #25383c; cursor: pointer; font-family: inherit; }
.btn:hover { background: #344e53; }
.btn:disabled { background: #95a5a6; cursor: default; }
.btn.go { background: #e67e22; }
.btn.go:hover { background: #d35400; }
.btn.go:disabled { background: #95a5a6; }
.btn.ghost { background: transparent; color: #25383c; border: 1px solid #25383c; }
.btn.ghost:hover { background: #f3f6f6; }
.btn.ghost:disabled { color: #95a5a6; border-color: #c5cdcf; background: transparent; }
.btn.small { padding: 6px 12px; font-size: 12px; }
.btn.block { display: block; width: 100%; }
.seg { display: flex; border: 1px solid #25383c; border-radius: 8px; overflow: hidden; }
.seg.multi { flex-wrap: wrap; }
.seg button { flex: 1; border: none; border-left: 1px solid #25383c; background: #fff; color: #25383c; font-family: inherit; font-size: 12px; font-weight: 700; padding: 8px 4px; cursor: pointer; }
.seg button:first-child { border-left: none; }
.seg button.on { background: #25383c; color: #fff; }
.seg.multi button { flex: 1 1 30%; border-top: 1px solid #25383c; margin-top: -1px; }
.seg button.off { display: none; }
.swatches { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.swatches button { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #c5cdcf; cursor: pointer; padding: 0; }
.swatches button.on { box-shadow: 0 0 0 3px #e67e22; }

/* ---------- your photos ---------- */
.photoBtns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.photoBtns .btn { flex: 1 1 200px; }
#strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; margin-top: 12px; }
#strip:empty { display: none; }
.ph { position: relative; background: #fff; border: 1px solid #dfe6e6; border-radius: 8px; padding: 4px; text-align: center; }
.ph img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
.ph .n { position: absolute; top: 6px; left: 6px; background: rgba(20,32,35,.85); color: #fff; font-size: 10px; font-weight: 800; border-radius: 999px; padding: 1px 6px; }
.ph .acts { display: flex; justify-content: center; gap: 2px; margin-top: 4px; }
.ph .acts button { flex: 1; border: 1px solid #c5cdcf; background: #fff; color: #25383c; border-radius: 5px; font-size: 11px; padding: 3px 0; cursor: pointer; }
.ph .acts button:hover { background: #f3f6f6; }
.ph .acts button:disabled { opacity: .3; cursor: default; }
#photoCount { color: #6b7c80; }
#fitBox { margin-top: 14px; background: #fff; border: 1px solid #dfe6e6; border-radius: 10px; padding: 10px 12px; }
#fitBox.off { opacity: .45; pointer-events: none; }
#fitBox .fitHead { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; text-align: center; margin-bottom: 8px; }
.zoomRow { display: flex; align-items: center; gap: 10px; }
.zoomRow label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; white-space: nowrap; min-width: 92px; }
#zoom { flex: 1; accent-color: #25383c; }
.fitBtns { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
#quality { display: none; margin-top: 10px; font-size: 12px; font-weight: 600; text-align: center; border-radius: 8px; padding: 8px 10px; line-height: 1.4; }
#quality.good { background: #e8f6ee; color: #1e7a46; }
#quality.ok { background: #fff5e6; color: #9a5a00; }
#quality.poor { background: #fdecea; color: #b03a2e; }

/* ---------- save + my designs ---------- */
#tickRow { display: block; font-size: 12px; margin: 0 0 10px; cursor: pointer; text-align: center; }
#tickRow input { vertical-align: -2px; }
#buyBtn, #saveBtn { display: block; width: 100%; font-size: 15px; padding: 14px 18px; border-radius: 12px; box-shadow: 0 4px 12px rgba(37,56,60,.2); }
#buyBtn:disabled, #saveBtn:disabled { box-shadow: none; }
#editNote { color: #b05a00; font-weight: 600; }
#sampleBtn { display: block; width: 100%; }
#restartRow { text-align: center; margin-top: 10px; }
#mineCount { color: #6b7c80; }
#gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 14px; margin-bottom: 18px; }
#gallery:empty { display: none; }
.gItem { background: #fff; border: 1px solid #dfe6e6; border-radius: 10px; padding: 10px 8px; text-align: center; min-width: 0; }
.gItem.editing { border-color: #e67e22; box-shadow: 0 0 0 2px rgba(230,126,34,.35); }
.gThumb { display: flex; align-items: center; justify-content: center; height: 132px; cursor: pointer; }
.gThumb img { max-width: 100%; max-height: 132px; display: block; box-shadow: 0 2px 8px rgba(0,0,0,.2); background: #fff; }
.gCap { font-size: 11px; font-weight: 700; margin-top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gMeta { font-size: 10px; color: #6b7c80; margin-top: 2px; }
.gBtns { display: flex; gap: 6px; justify-content: center; margin-top: 8px; }
.gBtns .btn { padding: 4px 10px; font-size: 11px; border-radius: 6px; }
#galleryEmpty { margin: 0 0 16px; font-size: 12px; }
#totalLine { text-align: center; font-size: 13px; font-weight: 700; margin-bottom: 8px; min-height: 18px; }
#statusMsg { font-size: 12px; font-weight: 600; min-height: 18px; margin-top: 10px; text-align: center; }
details.howto { margin-top: 10px; font-size: 12px; line-height: 1.5; }
details.howto summary { cursor: pointer; font-weight: 700; text-align: center; }
details.howto ul { margin: 8px 0 0; padding-left: 18px; }
.useNote { font-size: 11.5px; line-height: 1.45; color: #5b6f74; margin: 8px 0 0; text-align: center; }
.useNote a { color: inherit; }

/* ---------- how would you like it? (download now; printed & posted later) ---------- */
.deliver { display: grid; gap: 8px; margin-bottom: 12px; }
.deliver label { display: flex; align-items: flex-start; gap: 9px; padding: 9px 11px; border: 1px solid #dfe6e6; border-radius: 9px; background: #fff; font-size: 12.5px; line-height: 1.4; cursor: pointer; text-align: left; }
.deliver label.on { border-color: #e67e22; box-shadow: 0 0 0 1px #e67e22; }
.deliver label.soon { opacity: .6; cursor: default; }
.deliver input { margin-top: 2px; accent-color: #e67e22; }
.deliver b { display: block; }
.deliver .soonTag { display: inline-block; margin-left: 6px; background: #25383c; color: #fff; font-size: 9.5px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; padding: 1px 7px; border-radius: 999px; vertical-align: 1px; }

#topBtn { position: fixed; left: 50%; bottom: 18px; z-index: 20; border: none; border-radius: 22px; padding: 10px 16px; font: 700 12px 'Open Sans', sans-serif; background: #e67e22; color: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.35); cursor: pointer; opacity: 0; pointer-events: none; transform: translate(-50%, 8px); transition: opacity .2s, transform .2s; }
#topBtn.show { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
#topBtn:hover { background: #d35400; }
.pcCopy { width: 100%; margin: 22px 0 0; padding-bottom: 64px; text-align: center; font: 400 12px 'Open Sans', sans-serif; color: #9fb0b4; letter-spacing: .3px; }
.pcCopy a { color: inherit; text-decoration: none; }

@media (max-width: 760px) {
  body { padding-top: 12px; padding-bottom: 24px; }
  .wrap { padding: 20px 12px 28px; }
  h1 { font-size: 16px; }
  .cols { grid-template-columns: 1fr; gap: 12px; }
  #preview { max-height: 65vh; }
  .panel { padding: 14px; }
  .pageNav span { min-width: 150px; font-size: 12px; }
}
