/* Scoped native dialog; per-competition banners and ticker are untouched. */
dialog.tmc-site-popup {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(720px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid #dce3eb;
  border-radius: 16px;
  background: #fff;
  color: #102033;
  box-shadow: 0 24px 80px #06142640;
  overflow: auto;
  overscroll-behavior: contain;
  font-family: inherit;
  text-align: left;
}
dialog.tmc-site-popup:not([open]) { display: none; }
dialog.tmc-site-popup::backdrop { background: #091728a6; }
dialog.tmc-site-popup *, dialog.tmc-site-popup *::before, dialog.tmc-site-popup *::after { box-sizing: border-box; }
.tmc-site-popup .tmc-site-popup__dialog { position: relative; padding: 12px 24px 20px; }
.tmc-site-popup .tmc-site-popup__close {
  position: sticky;
  top: 8px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  float: right;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  margin: 0 -12px 0 0;
  border: 1px solid #dce3eb;
  border-radius: 50%;
  background: #fff;
  color: #102033;
  box-shadow: 0 2px 8px #10203310;
  font: 400 28px/1 Arial, sans-serif;
  cursor: pointer;
}
.tmc-site-popup .tmc-site-popup__title {
  margin: 10px 44px 22px;
  padding: 0;
  color: #102033;
  font-size: 24px;
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: -.02em;
  text-align: center;
  text-transform: none;
  overflow-wrap: anywhere;
}
.tmc-site-popup .tmc-site-popup__media { margin: 0 0 20px; clear: both; }
.tmc-site-popup .tmc-site-popup__media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(42vh, 340px);
  margin: 0;
  border-radius: 10px;
  object-fit: contain;
}
.tmc-site-popup .tmc-site-popup__body {
  clear: both;
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.tmc-site-popup .tmc-site-popup__body img { max-width: 100%; height: auto; }
.tmc-site-popup .tmc-site-popup__body p { margin: 0 0 12px; }
.tmc-site-popup .tmc-site-popup__list { clear: both; list-style: none; padding: 0; margin: 0; }
.tmc-site-popup .tmc-site-popup__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  margin: 0;
  border: 0;
  border-top: 1px solid #e5eaf0;
  background: none;
}
.tmc-site-popup .tmc-site-popup__thumbnail-link { flex: 0 0 88px; width: 88px; margin: 0; }
.tmc-site-popup .tmc-site-popup__thumbnail {
  display: block;
  width: 88px;
  height: 88px;
  margin: 0;
  border: 0;
  border-radius: 9px;
  object-fit: cover;
}
.tmc-site-popup .tmc-site-popup__content { flex: 1 1 auto; min-width: 0; }
.tmc-site-popup .tmc-site-popup__item-title {
  margin: 0 0 6px;
  padding: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
  overflow-wrap: anywhere;
}
.tmc-site-popup .tmc-site-popup__item-title a { color: #102033; text-decoration: none; }
.tmc-site-popup .tmc-site-popup__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 0 0 8px;
  padding: 0;
  color: #48586c;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.tmc-site-popup .tmc-site-popup__price { font-weight: 600; color: #102033; }
.tmc-site-popup .tmc-site-popup__enter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 16px;
  border: 1px solid #ccd9ee;
  border-radius: 8px;
  background: #f2f6ff;
  color: #174ca1;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}
.tmc-site-popup .tmc-site-popup__actions {
  clear: both;
  display: grid;
  gap: 4px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e5eaf0;
}
.tmc-site-popup .tmc-site-popup__actions .tmc-card-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  width: 100%;
  margin: 0;
  padding: 12px 16px;
  border: 0;
  border-radius: 8px;
  background: #102033;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  text-align: center;
}
.tmc-site-popup .tmc-site-popup__no {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px;
  color: #48586c;
  font-size: 14px;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.tmc-site-popup :is(a, button):focus-visible { outline: 3px solid #2463ce; outline-offset: 3px; }
.tmc-site-popup .tmc-site-popup__enter:hover { background: #e7efff; }
.tmc-site-popup .tmc-site-popup__actions .tmc-card-cta:hover { background: #233b56; }
@media (max-width: 480px) {
  .tmc-site-popup .tmc-site-popup__dialog { padding: 10px 16px 14px; }
  .tmc-site-popup .tmc-site-popup__close { margin-right: -8px; }
  .tmc-site-popup .tmc-site-popup__title { font-size: 21px; margin-bottom: 18px; }
  .tmc-site-popup .tmc-site-popup__item { gap: 12px; padding: 14px 0; }
  .tmc-site-popup .tmc-site-popup__thumbnail-link { flex-basis: 64px; width: 64px; }
  .tmc-site-popup .tmc-site-popup__thumbnail { width: 64px; height: 64px; }
  .tmc-site-popup .tmc-site-popup__item-title { font-size: 15px; }
}

/* Individual competition offers stay compact; the Ending Soon list keeps its layout. */
dialog.tmc-site-popup[data-mode="custom"]{
  width:min(480px, calc(100% - 32px));
}
dialog.tmc-site-popup[data-mode="custom"] .tmc-site-popup__title{
  margin-bottom:14px;
  font-size:22px;
}
dialog.tmc-site-popup[data-mode="custom"] .tmc-site-popup__body{
  text-align:center;
  margin-bottom:12px;
}
dialog.tmc-site-popup[data-mode="custom"] .tmc-site-popup__media img,
dialog.tmc-site-popup[data-mode="custom"] .tmc-site-popup__body img{
  display:block;
  float:none !important;
  width:auto;
  max-width:100%;
  height:auto;
  max-height:min(32vh, 260px);
  max-height:min(32dvh, 260px);
  margin-inline:auto !important;
  object-fit:contain;
}
dialog.tmc-site-popup[data-mode="custom"] .tmc-site-popup__body :is(.alignleft, .alignright, .wp-caption){
  float:none !important;
  max-width:100%;
  margin-inline:auto !important;
}
dialog.tmc-site-popup[data-mode="custom"] .tmc-site-popup__actions a.tmc-card-cta,
dialog.tmc-site-popup[data-mode="custom"] .tmc-site-popup__actions a.tmc-card-cta:visited{
  background:#087a3f !important;
  color:#fff !important;
  border:1px solid #087a3f !important;
  box-shadow:none !important;
}
dialog.tmc-site-popup[data-mode="custom"] .tmc-site-popup__actions a.tmc-card-cta:hover{
  background:#066332 !important;
  border-color:#066332 !important;
}
dialog.tmc-site-popup[data-mode="custom"] .tmc-site-popup__actions a.tmc-card-cta:focus-visible{
  outline:3px solid #102033 !important;
  outline-offset:3px;
}
