.tsds-home-popup[hidden] { display: none !important; }
.site-premium .tsds-home-popup { padding: 20px; }
.tsds-home-popup {
  position: fixed;
  z-index: 100050;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.tsds-home-popup-backdrop {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(8, 18, 17, .72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: default;
}
.tsds-home-popup-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: min(100%, 600px);
  max-height: calc(100dvh - 40px);
  overflow: auto;
  border: 1px solid rgba(48, 159, 119, .2);
  border-radius: 18px;
  background: #fff;
  color: #24312c;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .32);
  animation: tsds-popup-enter .2s ease-out both;
}
.tsds-home-popup-close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 50%;
  background: rgba(12, 26, 24, .72);
  color: #fff;
  font: 30px/1 Arial, sans-serif;
  cursor: pointer;
}
.tsds-home-popup-close:hover { background: #172a26; }
.tsds-home-popup-media {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: min(58vh, 440px);
  object-fit: contain;
  background: #edf3f0;
}
.tsds-home-popup-copy { padding: 28px 32px 32px; }
.tsds-home-popup-copy h2 {
  margin: 0 42px 12px 0;
  color: #1d3129;
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 750;
  line-height: 1.25;
}
.tsds-home-popup-body { color: #52625a; font-size: 1rem; line-height: 1.7; white-space: normal; overflow-wrap: anywhere; }
.tsds-home-popup-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 20px;
  padding: 11px 22px;
  border-radius: 999px;
  background: #309f77;
  color: #fff !important;
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
}
.tsds-home-popup-cta:hover { background: #247b5b; }
body.tsds-popup-open { overflow: hidden; }
@keyframes tsds-popup-enter { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (max-width: 560px) {
  .site-premium .tsds-home-popup { padding: 12px; }
  .tsds-home-popup { padding: 12px; }
  .tsds-home-popup-dialog { max-height: calc(100dvh - 24px); border-radius: 15px; }
  .tsds-home-popup-copy { padding: 22px 20px 24px; }
  .tsds-home-popup-media { max-height: 38vh; }
}
@media (prefers-reduced-motion: reduce) { .tsds-home-popup-dialog { animation: none; } }
