/* Shared entry-sheet styles for all fortune products */

/* Bottom-sheet popup shell — always fixed so CTA works from cover/top */
.entry-shade{
  position:fixed;inset:0;z-index:55;
  background:rgba(28,16,14,.48);backdrop-filter:blur(3px)
}
.entry-sheet{
  position:fixed;z-index:56;left:50%;bottom:0;
  width:min(100%,720px);max-height:min(92vh,760px);overflow:auto;
  padding:14px 18px max(26px,env(safe-area-inset-bottom));
  transform:translateX(-50%);
  border-radius:28px 28px 0 0;
  /* 상품별 --light 토큰에 흔들리지 않도록 공통 고정 */
  background:#fff9e8 !important;
  box-shadow:0 -24px 60px rgba(38,24,14,.28)
}
.entry-sheet .handle,
.entry-sheet>i{
  display:block;width:42px;height:4px;margin:2px auto 14px;
  border-radius:99px;background:#d2c2b0
}
@media(min-width:721px){
  .entry-sheet{bottom:18px;border-radius:28px;padding:16px 22px 28px}
}

/* Mobile-first readable form controls (overrides product 10~12px labels) */
.entry-sheet h2{
  margin:6px 0 0;font:700 30px/1.3 var(--serif,'Gowun Batang',serif);letter-spacing:-.04em
}
.entry-sheet>p,
.entry-sheet .entry-lead{
  margin:8px 0 14px;color:var(--muted,#77675b);font-size:14px;line-height:1.55;font-weight:600
}
.entry-sheet .kicker{
  margin:4px 0 0;font-size:13px;font-weight:800;letter-spacing:.08em
}
.entry-sheet .entry-grid{
  display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px
}
.entry-sheet .entry-field{
  display:grid;gap:7px;color:var(--muted,#77675b);font-size:14px;font-weight:700
}
.entry-sheet .entry-field.full,
.entry-sheet .entry-check.full,
.entry-sheet .entry-section.full{grid-column:1/-1}
.entry-sheet .entry-section{
  margin:10px 0 0;padding:12px 0 2px;border-top:1px solid var(--line,rgba(83,54,33,.16));
  color:var(--red,#a9382e);font:800 13px var(--sans,'Noto Sans KR',sans-serif);letter-spacing:.06em
}
.entry-sheet .entry-section:first-child{margin-top:0;border-top:0;padding-top:0}
.entry-sheet .entry-field input,
.entry-sheet .entry-field select,
.entry-sheet .entry-field textarea{
  width:100%;min-height:52px;padding:12px 14px;border:1px solid var(--line,rgba(83,54,33,.16));
  border-radius:13px;background:#fffdf7;color:var(--ink,#30251d);
  font:500 16px/1.35 var(--sans,'Noto Sans KR',sans-serif)
}
.entry-sheet .entry-field textarea{min-height:96px;padding-block:12px;resize:vertical;line-height:1.55}
.entry-sheet .entry-field>small{color:var(--muted,#77675b);font-size:12px;font-weight:500;line-height:1.45}
.entry-sheet .birth-date-selects{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px
}
.entry-sheet .birth-date-selects select[name="birthYear"],
.entry-sheet .birth-date-selects select[name="partnerBirthYear"],
.entry-sheet .birth-date-selects select[name$="BirthYear"]{
  grid-column:1/-1
}
.entry-sheet .birth-date-selects select{
  min-width:0;
  padding-inline:12px;
  font-size:16px
}
/* 생년월일 바로 아래 태어난 시간 고정 */
.entry-sheet .entry-field:has(select[name="birthTime"]),
.entry-sheet .entry-field:has(select[name="partnerBirthTime"]),
.entry-sheet .entry-field:has(.birth-date-selects){
  grid-column:1/-1
}
.entry-sheet .entry-check{
  display:flex;align-items:flex-start;gap:10px;margin-top:6px;
  color:var(--ink,#30251d);font-size:15px;line-height:1.5;font-weight:600
}
.entry-sheet .entry-check input{width:18px;height:18px;margin-top:2px;flex:0 0 auto}
.entry-sheet .entry-error{min-height:20px;margin:10px 0 0;color:#b42f26;font-size:14px;font-weight:600}
.entry-sheet .entry-submit{
  width:100%;min-height:56px;margin-top:16px;border:0;border-radius:15px;
  color:#fff;font-size:17px;font-weight:800;cursor:pointer
}
.entry-sheet .sheet-close{
  width:40px;height:40px;font-size:24px
}
.entry-sheet .entry-switch button{font-size:14px}

.saved-profiles{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  margin:14px 0 6px
}
.saved-profile{
  display:flex;flex-direction:row;align-items:center;justify-content:space-between;
  gap:8px;width:100%;min-height:88px;padding:12px;
  border:1.5px solid var(--line,rgba(83,54,33,.16));border-radius:14px;
  background:#fffdf7;color:var(--ink,#30251d);text-align:left;cursor:pointer
}
.saved-profile:only-child{grid-column:1/-1;min-height:0;padding:13px 14px}
.saved-profile.selected{
  border-color:var(--red,#a9382e);
  box-shadow:inset 0 0 0 1px var(--red,#a9382e)
}
.saved-profile span{min-width:0;flex:1}
.saved-profile b,
.saved-profile small{display:block}
.saved-profile b{font-size:16px;font-weight:800;line-height:1.25;letter-spacing:-.02em}
.saved-profile small{
  margin-top:3px;color:var(--muted,#77675b);
  font-size:13px;font-weight:600;line-height:1.4
}
.saved-profile em{
  flex:0 0 auto;color:var(--red,#a9382e);
  font-style:normal;font-size:14px;font-weight:800
}
.saved-profile:only-child b{font-size:17px;line-height:1.3}
.saved-profile:only-child small{margin-top:4px;font-size:14px}
.saved-profile:only-child em{font-size:15px}
.saved-profile-reset{
  width:100%;margin:8px 0 4px;padding:12px 14px;border:1px dashed var(--line,rgba(83,54,33,.28));
  border-radius:12px;background:transparent;color:var(--muted,#77675b);font:700 14px var(--sans,inherit);cursor:pointer
}
@media(max-width:360px){
  .saved-profiles{gap:7px}
  .saved-profile{min-height:88px;padding:12px 10px}
  .saved-profile b{font-size:15px}
  .saved-profile small{font-size:12px}
  .entry-sheet .entry-field{font-size:13px}
  .entry-sheet .birth-date-selects{gap:7px}
}

/* 시간 모름 체크 시 시진 선택 비활성 */
.entry-field.is-disabled,
.entry-field:has(select:disabled){
  opacity:.55;filter:grayscale(.35)
}
.entry-field select:disabled,
.entry-field input:disabled{
  cursor:not-allowed;background:#ebe4d8;color:#9a8f84;pointer-events:none
}
