
/* v40.1 – Finaltag-Highlighter */
.finalDayPopupOverlay{
  position:fixed;
  inset:0;
  z-index:5000;
  display:grid;
  place-items:center;
  padding:22px;
  background:rgba(4,24,20,.72);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  opacity:0;
  pointer-events:none;
  transition:opacity .18s ease;
}

.finalDayPopupOverlay.visible{
  opacity:1;
  pointer-events:auto;
}

body.finalDayPopupOpen{
  overflow:hidden;
}

.finalDayPopup{
  position:relative;
  width:min(620px,92vw);
  max-height:92vh;
  overflow:auto;
  border:1px solid rgba(255,255,255,.28);
  border-radius:26px;
  background:#f8faf8;
  box-shadow:0 32px 90px rgba(0,0,0,.42);
  transform:translateY(16px) scale(.985);
  transition:transform .2s ease;
}

.finalDayPopupOverlay.visible .finalDayPopup{
  transform:translateY(0) scale(1);
}

.finalDayPopupTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:13px 54px 12px 16px;
  color:#fff;
  background:linear-gradient(110deg,#063c32,#0b6b50);
  font-size:12px;
}

.finalDayPopupTop span{
  font-weight:950;
  letter-spacing:.06em;
}

.finalDayPopupTop b{
  color:#f7c848;
  font-size:13px;
}

.finalDayPopupClose{
  position:absolute;
  top:8px;
  right:9px;
  z-index:2;
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  padding:0;
  border:1px solid rgba(255,255,255,.28);
  border-radius:999px;
  background:rgba(255,255,255,.12);
  color:#fff;
  font:inherit;
  font-size:25px;
  line-height:1;
  cursor:pointer;
}

.finalDayPopup img{
  display:block;
  width:100%;
  height:auto;
  max-height:calc(92vh - 118px);
  object-fit:contain;
  background:#f4f5f2;
}


.finalDayPopupNote{
  padding:12px 16px;
  border-top:1px solid #e5ece8;
  background:linear-gradient(180deg,#fff8e8,#fffdf7);
  color:#725100;
  font-size:13px;
  font-weight:700;
}

.finalDayPopupActions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:12px 14px;
  border-top:1px solid #e1e8e4;
  background:#fff;
}

.finalDayPopupActions > div{
  min-width:0;
  display:grid;
  gap:2px;
}

.finalDayPopupActions b{
  color:#103b30;
  font-size:13px;
}

.finalDayPopupActions span{
  color:#708078;
  font-size:11px;
}

.finalDayPopupDismiss{
  flex:0 0 auto;
  min-height:40px;
  padding:9px 15px;
  border:0;
  border-radius:12px;
  background:#0b6b50;
  color:#fff;
  font:inherit;
  font-size:12px;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 7px 16px rgba(11,107,80,.2);
}

@media(max-width:700px){
  .finalDayPopupOverlay{
    align-items:center;
    padding:10px;
  }

  .finalDayPopup{
    width:min(100%,430px);
    max-height:94svh;
    border-radius:22px;
  }

  .finalDayPopupTop{
    padding:11px 48px 10px 13px;
  }

  .finalDayPopupTop span{
    font-size:10.5px;
  }

  .finalDayPopupTop b{
    font-size:11.5px;
  }

  .finalDayPopupClose{
    top:6px;
    right:7px;
    width:34px;
    height:34px;
  }

  .finalDayPopup img{
    max-height:calc(94svh - 108px);
  }

  
.finalDayPopupNote{
  padding:12px 16px;
  border-top:1px solid #e5ece8;
  background:linear-gradient(180deg,#fff8e8,#fffdf7);
  color:#725100;
  font-size:13px;
  font-weight:700;
}

.finalDayPopupActions{
    padding:10px 11px calc(10px + env(safe-area-inset-bottom));
  }

  .finalDayPopupActions b{
    font-size:12px;
  }

  .finalDayPopupActions span{
    font-size:10px;
  }

  .finalDayPopupDismiss{
    min-height:40px;
    padding:8px 13px;
  }
}

@media(prefers-reduced-motion:reduce){
  .finalDayPopupOverlay,
  .finalDayPopup{
    transition:none;
  }
}
