/* EASYONMAIL | /shop/detail responsive V1.1 — isolated presentation refinements. */
body#mail {
  --eom-detail-blue: #1161eb;
  --eom-detail-navy: #102b68;
  --eom-detail-border: #e1e9f4;
  --eom-detail-muted: #6b7d97;
  margin: 0;
  color: #243956;
  background: #fff;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  -webkit-text-size-adjust: 100%;
}
body#mail #wrap.eom-detail-wrap, body#mail #wrap.eom-detail-wrap * { box-sizing: border-box; }
body#mail #wrap.eom-detail-wrap { width: 100%; min-width: 0; max-width: none; margin: 0; padding: 0; background: #fff; overflow: visible; }
body#mail .eom-detail { display: block; width: 100%; min-width: 0; padding: 0 0 75px; background: #fff; }
body#mail .eom-detail a { color: inherit; text-decoration: none; }
body#mail .eom-detail button { font-family: inherit; cursor: pointer; }
body#mail .eom-detail button:disabled { cursor: default; }
body#mail .eom-detail a:focus-visible, body#mail .eom-detail button:focus-visible,
body#mail .eom-detail summary:focus-visible { outline: 3px solid #92b9fa; outline-offset: 3px; }
.eom-detail [hidden], .eom-detail-toast[hidden] { display: none !important; }
.eom-detail-container { width: 100%; max-width: 1228px; margin: 0 auto; padding: 0 24px; }
.eom-detail-breadcrumb { display: flex; align-items: center; gap: 9px; padding: 24px 0; color: #8a99ac; font-size: 12px; }
body#mail .eom-detail-breadcrumb a { font-weight: 800; color: #42618b; }
body#mail .eom-detail-breadcrumb a:hover { color: #1161eb; }
.eom-detail-breadcrumb a span { padding-right: 3px; font-size: 20px; vertical-align: -2px; }
.eom-detail-breadcrumb > span:last-child { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* Product image and purchase information */
.eom-detail-top { display: grid; grid-template-columns: minmax(0, 1.10fr) minmax(0, .9fr); gap: 36px; align-items: start; }
.eom-detail-visual { min-width: 0; }
.eom-detail-image-frame { position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--eom-detail-border); border-radius: 15px; background: #f6f8fc; }
.eom-detail-image-frame > img { display: block; width: 100%; height: 100%; object-fit: contain; }
.eom-detail-image-empty { display: grid; place-items: center; width: 100%; height: 100%; font-size: 13px; color: #8090a5; }
.eom-detail-image-badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.eom-detail-badge { display: inline-block; padding: 5px 9px; border-radius: 6px; color: #fff; background: #1161eb; font-size: 11px; font-weight: 850; line-height: 1.25; }
.eom-detail-badge.is-best { background: #ef7963; }
.eom-detail-badge.is-new { background: #198c66; }
.eom-detail-badge.is-soldout { background: #6f7886; }
body#mail .eom-detail-heart { position: absolute; z-index: 2; top: 12px; right: 12px; width: 43px; height: 43px; display: grid; place-items: center; padding: 10px; background: rgba(255,255,255,.97); color: #74849c; border: 1px solid rgba(220,229,242,.92); border-radius: 50%; box-shadow: 0 3px 11px rgba(20,42,75,.1); }
.eom-detail-heart svg { display: block; width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; }
body#mail .eom-detail-heart.is-active { color: #e84769; }
body#mail .eom-detail-heart.is-active svg { fill: currentColor; stroke: currentColor; }
body#mail .eom-detail-heart:hover:not(:disabled) { color: #e84769; }
body#mail .eom-detail-heart:disabled { opacity: .65; }
.eom-detail-image-tip { margin: 9px 0 0; text-align: center; font-size: 11px; color: #93a0b0; }
.eom-detail-buy { min-width: 0; }
.eom-detail-buy-head { padding: 5px 0 22px; }
.eom-detail-eyebrow { margin: 0 0 9px; color: #5474a8; font-size: 10px; font-weight: 850; letter-spacing: .12em; }
.eom-detail-buy h1 { margin: 0; color: var(--eom-detail-navy); font-size: 28px; line-height: 1.35; font-weight: 900; letter-spacing: -.045em; overflow-wrap: anywhere; }
.eom-detail-subtitle { margin: 10px 0 0; font-size: 14px; color: #71839d; line-height: 1.65; }
.eom-detail-price-block { padding: 20px 0; border-top: 1px solid #e8edf4; border-bottom: 1px solid #e8edf4; }
.eom-detail-price-label { display: block; margin-bottom: 5px; color: #71839d; font-size: 12px; font-weight: 700; }
.eom-detail-prices { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px 12px; }
.eom-detail-prices del { color: #a8b3c0; font-size: 13px; }
.eom-detail-prices strong { color: var(--eom-detail-blue); font-size: 30px; font-weight: 900; line-height: 1.35; letter-spacing: -.045em; }
.eom-detail-prices strong span { margin-left: 2px; font-size: 13px; font-weight: 750; letter-spacing: 0; }
.eom-detail-event { margin: 9px 0 0; color: #9773a8; font-size: 12px; line-height: 1.55; }
.eom-detail-event b { padding-right: 6px; color: #c45e9d; font-size: 10px; }

/* Clear and complete pricing/allowance details; keep legacy values. */
.eom-detail-plan { padding: 22px 0 0; }
.eom-detail-plan h2 { margin: 0 0 14px; font-size: 16px; font-weight: 850; color: #163663; letter-spacing: -.03em; }
.eom-detail-limits { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-bottom: 12px; }
.eom-detail-limits > div { display: flex; align-items: baseline; justify-content: space-between; gap: 5px; min-width: 0; padding: 13px 14px; background: #f1f6ff; border: 1px solid #e1ebfa; border-radius: 10px; }
.eom-detail-limits span { color: #557097; font-size: 12px; font-weight: 700; }
.eom-detail-limits strong { color: #1457bb; font-size: 18px; white-space: nowrap; font-weight: 900; }
.eom-detail-plan-list { margin: 0; }
.eom-detail-plan-list > div { display: grid; grid-template-columns: 86px minmax(0,1fr); gap: 10px; padding: 11px 0; border-bottom: 1px solid #edf1f7; }
.eom-detail-plan-list dt { color: #75879c; font-size: 12px; font-weight: 700; }
.eom-detail-plan-list dd { margin: 0; color: #304665; font-size: 12px; line-height: 1.6; font-weight: 650; overflow-wrap: anywhere; }
.eom-detail-specs { margin-top: 13px; border: 1px solid #e5eaf2; border-radius: 9px; background: #fbfcff; }
.eom-detail-specs summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 13px; color: #4a6487; font-size: 12px; font-weight: 800; cursor: pointer; list-style: none; }
.eom-detail-specs summary::-webkit-details-marker { display: none; }
.eom-detail-specs summary span { color: #6b83a5; font-size: 18px; line-height: 1; transition: transform .15s; }
.eom-detail-specs[open] summary span { transform: rotate(180deg); }
.eom-detail-specs dl { margin: 0; padding: 0 14px 8px; }
.eom-detail-specs dl > div { display: grid; grid-template-columns: 73px minmax(0,1fr); gap: 10px; padding: 9px 0; border-top: 1px solid #edf1f6; }
.eom-detail-specs dt { color: #7b8ba0; font-size: 12px; }
.eom-detail-specs dd { margin: 0; color: #344c6c; font-size: 12px; overflow-wrap: anywhere; }

/* PC purchase button + dispatch schedule / mobile fixed summary */
/* PC: direct action after price; dispatch below it. Mobile reverses this order. */
.eom-detail-purchase { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.eom-detail-purchase .eom-detail-write { order: -1; }
.eom-detail-dispatch { display: block; padding: 13px 15px; border: 1px solid #d5e5fe; border-radius: 10px; background: #edf5ff; }
.eom-detail-dispatch-note { display: flex; flex-direction: column; gap: 5px; }
.eom-detail-dispatch-title { display: flex; align-items: center; gap: 8px; }
.eom-detail-dispatch-title::before { content: ''; width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #21a675; }
.eom-detail-dispatch-title strong { color: #178257; font-size: 13px; line-height: 1.45; font-weight: 850; }
.eom-detail-dispatch-detail { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.eom-detail-dispatch-detail span { color: #72819a; font-size: 12px; line-height: 1.45; }
.eom-detail-dispatch-detail strong { color: #ed2458; font-size: 13px; font-variant-numeric: tabular-nums; }
.eom-detail-dispatch-note.is-urgent .eom-detail-dispatch-title::before { background: #ed2458; }
.eom-detail-dispatch-note.is-urgent .eom-detail-dispatch-title strong { color: #ed2458; }
.eom-detail-dispatch-note.is-next .eom-detail-dispatch-title::before { background: #1161eb; }
.eom-detail-dispatch-note.is-next .eom-detail-dispatch-title strong { color: #1161eb; }
body#mail .eom-detail-write { display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 53px; width: 100%; padding: 12px 16px; border: 1px solid #1161eb; border-radius: 10px; background: #1161eb; color: #fff; text-align: center; font-size: 15px; font-weight: 850; line-height: 1.45; box-shadow: 0 4px 14px rgba(17,97,235,.12); }
body#mail .eom-detail a.eom-detail-write, body#mail .eom-detail a.eom-detail-write:visited { color: #fff; }
body#mail .eom-detail-write:hover:not(.is-soldout) { background: #0953d2; border-color: #0953d2; color: #fff; }
body#mail .eom-detail-write.is-soldout { background: #aeb8c8; border-color: #aeb8c8; box-shadow: none; }

/* Detail HTML kept as-is for compatibility with the admin's existing product description. */
.eom-detail-content { margin-top: 55px; padding-top: 29px; border-top: 1px solid #e7edf6; }
.eom-detail-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 22px; }
.eom-detail-section-heading h2 { margin: 0; color: var(--eom-detail-navy); font-size: 22px; line-height: 1.4; letter-spacing: -.04em; font-weight: 900; }
.eom-detail-section-heading p { margin: 6px 0 0; color: #7b8ba2; font-size: 12px; line-height: 1.6; }
/* Visible HTML introduction — preserves the approved product-detail preview. */
.eom-detail-intro { margin: 0 0 22px; padding: 25px 28px; background: #f7faff; border: 1px solid #e1e9f5; border-radius: 12px; }
.eom-detail-intro h3 { margin: 0; color: var(--eom-detail-navy); font-size: 20px; line-height: 1.5; letter-spacing: -.035em; font-weight: 850; overflow-wrap: anywhere; }
.eom-detail-intro p { margin: 7px 0 0; font-size: 13px; line-height: 1.8; color: #526783; word-break: keep-all; overflow-wrap: anywhere; }
.eom-detail-intro-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; margin-top: 18px; padding-top: 18px; border-top: 1px solid #e1e9f5; }
.eom-detail-intro-steps > div { display: flex; align-items: flex-start; gap: 11px; min-width: 0; }
.eom-detail-intro-steps > div > div { min-width: 0; }
.eom-detail-intro .eom-intro-num { display: grid; place-items: center; flex: 0 0 30px; height: 30px; border-radius: 8px; background: #eaf1ff; color: #1161eb; font-size: 12px; font-weight: 800; }
.eom-detail-intro-steps h4 { margin: 2px 0 0; color: #263f68; font-size: 14px; line-height: 1.5; font-weight: 800; }
.eom-detail-intro-steps p { margin: 4px 0 0; font-size: 12px; line-height: 1.7; }
.eom-detail-content-body { max-width: 100%; min-width: 0; line-height: 1.65; overflow-wrap: anywhere; text-align: center; }
.eom-detail-content-body img, .eom-detail-content-body video,
.eom-detail-content-body iframe, .eom-detail-content-body object { max-width: 100%; height: auto; }
.eom-detail-content-body iframe { min-height: 270px; }
.eom-detail-content-body table { max-width: 100%; }

/* Reviews: existing API, with escaped DOM text and manual load-more. */
.eom-detail-reviews { margin-top: 56px; padding-top: 28px; border-top: 1px solid #e7edf6; }
.eom-detail-review-count { display: inline-flex; flex: none; padding: 6px 10px; border-radius: 99px; background: #eff5ff; color: #2764bb; font-size: 12px; font-weight: 800; }
.eom-detail-review-status { padding: 22px 0; color: #8795a9; font-size: 13px; }
.eom-detail-review-list { border-top: 1px solid #edf1f6; }
.eom-detail-review-item { padding: 21px 4px; border-bottom: 1px solid #edf1f6; }
.eom-detail-review-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 14px; }
.eom-detail-review-stars { color: #edab36; font-size: 17px; line-height: 1; letter-spacing: 2px; }
.eom-detail-review-byline { display: flex; align-items: center; gap: 9px; color: #7e8ca0; font-size: 12px; }
.eom-detail-review-byline strong { color: #3c5270; font-weight: 800; }
.eom-detail-review-text { margin: 12px 0 0; color: #30445f; font-size: 13px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.eom-detail-review-comment { margin: 13px 0 0; padding: 12px 14px; color: #4f708c; background: #f5f8fd; border-radius: 8px; font-size: 12px; line-height: 1.65; white-space: pre-wrap; }
.eom-detail-review-comment strong { margin-right: 7px; color: #315b8f; }
.eom-detail-review-new { padding: 3px 6px; background: #e8f7f0; border-radius: 5px; color: #218b65; font-size: 10px; font-weight: 850; }
.eom-detail-review-more { margin-top: 27px; text-align: center; }
body#mail .eom-detail-review-more button { min-width: 230px; padding: 12px 20px; border: 1px solid #c7d9f2; border-radius: 9px; background: #fff; color: #255b9f; font-size: 13px; font-weight: 800; }
body#mail .eom-detail-review-more button:hover:not(:disabled) { background: #f2f7ff; }
body#mail .eom-detail-review-more button:disabled { opacity: .55; }

.eom-detail-toast { position: fixed; z-index: 350; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); max-width: calc(100% - 32px); padding: 11px 16px; color: #fff; background: rgba(24,44,75,.96); border-radius: 9px; font-size: 12px; text-align: center; box-shadow: 0 8px 24px rgba(19,31,54,.18); }

@media (max-width: 899px) {
  body#mail .eom-detail { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
  .eom-detail-container { padding: 0 15px; }
  .eom-detail-breadcrumb { padding: 15px 0 17px; font-size: 11px; }
  .eom-detail-top { display: block; }
  .eom-detail-image-frame { border-radius: 12px; }
  .eom-detail-image-badges { top: 9px; left: 9px; }
  body#mail .eom-detail-heart { top: 9px; right: 9px; width: 39px; height: 39px; padding: 8px; }
  .eom-detail-image-tip { margin-top: 8px; font-size: 10px; }
  .eom-detail-buy-head { padding: 25px 0 20px; }
  .eom-detail-buy h1 { font-size: 24px; }
  .eom-detail-subtitle { font-size: 13px; }
  .eom-detail-price-block { padding: 16px 0; }
  .eom-detail-prices strong { font-size: 28px; }
  .eom-detail-plan { padding-top: 20px; }
  .eom-detail-limits > div { padding: 13px 12px; }
  .eom-detail-plan-list > div { grid-template-columns: 79px minmax(0,1fr); gap: 9px; }
  .eom-detail-purchase { position: fixed; z-index: 250; bottom: 0; left: 0; right: 0; display: grid;
grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 9px; margin: 0; padding: 11px 15px calc(12px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.98); backdrop-filter: blur(7px); border-top: 1px solid #e4eaf4; box-shadow: 0 -7px 24px rgba(25,45,78,.055); }
  .eom-detail-purchase .eom-detail-write { order: 1; }
  .eom-detail-dispatch { padding: 0; border: 0; border-radius: 0; background: none; }
  .eom-detail-dispatch-note { align-items: center; gap: 3px; }
  .eom-detail-dispatch-title { justify-content: center; gap: 7px; }
  .eom-detail-dispatch-title strong { font-size: 12px; text-align: center; }
  .eom-detail-dispatch-detail { justify-content: center; gap: 5px 7px; }
  .eom-detail-dispatch-detail span { font-size: 11px; }
  .eom-detail-dispatch-detail strong { font-size: 12px; }
  body#mail .eom-detail-write { min-height: 48px; padding: 10px 12px; font-size: 15px; border-radius: 9px; }
  body.eom-shared-menu-open .eom-detail-purchase, body.eom-continue-open .eom-detail-purchase { display: none; }
  .eom-detail-content { margin-top: 39px; padding-top: 25px; }
  .eom-detail-intro { padding: 18px 15px; margin-bottom: 17px; }
  .eom-detail-intro h3 { font-size: 17px; }
  .eom-detail-intro p { font-size: 12px; }
  .eom-detail-intro-steps { grid-template-columns: 1fr; gap: 13px; margin-top: 15px; padding-top: 15px; }
  .eom-detail-intro-steps h4 { font-size: 13px; }
  .eom-detail-intro-steps p { font-size: 12px; margin-top: 2px; }
  .eom-detail-intro .eom-intro-num { flex-basis: 28px; height: 28px; }
  .eom-detail-reviews { margin-top: 36px; padding-top: 24px; }
  .eom-detail-section-heading h2 { font-size: 19px; }
  .eom-detail-section-heading p { font-size: 11px; }
  .eom-detail-review-item { padding: 18px 1px; }
  .eom-detail-toast { bottom: calc(158px + env(safe-area-inset-bottom)); }

  /* 접수 안내는 전체 너비 */
.eom-detail-purchase .eom-detail-dispatch {
    grid-column: 1 / -1;
}

/* 편지지 목록 버튼 */
body#mail .eom-detail a.eom-detail-list-back {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 10px 8px;
    border: 1px solid #d6e1ef;
    border-radius: 9px;
    background: #fff;
    color: #315b92;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

/* 기존 편지쓰기 버튼 모바일 크기 조정 */
body#mail .eom-detail-purchase .eom-detail-write {
    padding: 10px 8px;
    gap: 6px;
    font-size: 13px;
}

}
/* PC에서는 목록 버튼 숨김 */
.eom-detail-list-back {
    display: none;
}
@media (max-width: 360px) {
  .eom-detail-container { padding: 0 12px; }
  .eom-detail-limits strong { font-size: 16px; }
  .eom-detail-limits span { font-size: 11px; }
  .eom-detail-plan-list dd { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .eom-detail-specs summary span { transition: none; }
}