/* Tomadex Black Weeks — all selectors deliberately scoped to this campaign. */
.tmbw-root,
.tmbw-root * {
  box-sizing: border-box;
}

.tmbw-root[hidden] {
  display: none !important;
}

.tmbw-root {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
  overscroll-behavior: contain;
  background: rgba(2, 7, 16, 0.82);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
  text-transform: none;
  letter-spacing: normal;
  direction: ltr;
  isolation: isolate;
}

.tmbw-root .tmbw-dialog {
  position: relative;
  display: grid;
  grid-template-columns: 42% minmax(0, 1fr);
  width: min(940px, 100%);
  height: min(700px, calc(100vh - 48px));
  height: min(700px, calc(100dvh - 48px));
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(185, 209, 233, 0.22);
  border-radius: 22px;
  background: #071321;
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.58);
  animation: tmbw-enter 220ms ease-out both;
}

.tmbw-root .tmbw-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: grid;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  place-items: center;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: #172432;
  color: #ffffff;
  font: inherit;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.tmbw-root .tmbw-close:hover {
  border-color: #ffffff;
  background: #2a3b4b;
}

.tmbw-root .tmbw-close svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  pointer-events: none;
}

.tmbw-root .tmbw-preview-label {
  position: absolute;
  top: 27px;
  left: calc(42% + 42px);
  z-index: 1;
  max-width: calc(58% - 112px);
  padding: 0;
  margin: 0;
  color: #a6b7c7;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.35;
}

.tmbw-root .tmbw-poster {
  display: flex;
  min-width: 0;
  min-height: 0;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  overflow: hidden;
  background: #04090e;
}

.tmbw-root .tmbw-image {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  object-fit: contain;
  object-position: center;
  box-shadow: none;
}

.tmbw-root .tmbw-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  padding: 66px 42px 38px;
  background: radial-gradient(ellipse at 100% 0%, rgba(27, 67, 96, 0.28), transparent 65%), #071321;
}

.tmbw-root .tmbw-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0;
  margin: 0 0 18px;
  color: #c3d1df;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tmbw-root .tmbw-eyebrow::before {
  width: 21px;
  height: 3px;
  flex-shrink: 0;
  background: #f41936;
  content: "";
}

.tmbw-root .tmbw-heading {
  padding: 0;
  margin: 0;
  color: #ffffff;
  font-family: inherit;
  font-size: clamp(48px, 6.2vw, 68px);
  font-weight: 850;
  line-height: 1.01;
  letter-spacing: -0.06em;
  text-transform: none;
  text-shadow: none;
}

.tmbw-root .tmbw-heading > span {
  display: block;
}

.tmbw-root .tmbw-description {
  max-width: 32ch;
  padding: 0;
  margin: 21px 0 0;
  color: #bdcbd9;
  font-size: 16px;
  line-height: 1.6;
}

.tmbw-root .tmbw-offer {
  padding: 0;
  margin: 25px 0 0;
  color: #ffffff;
  font-size: clamp(31px, 3.6vw, 43px);
  font-weight: 850;
  line-height: 1.14;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

.tmbw-root .tmbw-offer-word {
  color: #bdcbd9;
  font-size: 0.48em;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.tmbw-root .tmbw-deadline {
  padding: 0;
  margin: 13px 0 0;
  color: #c2d0dc;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.tmbw-root .tmbw-action {
  display: block;
  padding: 0;
  margin: 26px 0 0;
  border: 0;
}

.tmbw-root .tmbw-form {
  display: block;
  padding: 0;
  margin: 0;
  border: 0;
}

.tmbw-root .tmbw-cta {
  display: flex;
  width: 100%;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  margin: 0;
  border: 1px solid transparent;
  border-radius: 9px;
  background: #e50929;
  box-shadow: 0 8px 25px rgba(229, 9, 41, 0.2);
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.045em;
  text-align: left;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: background-color 150ms ease, box-shadow 150ms ease;
}

.tmbw-root .tmbw-cta:hover {
  background: #c90724;
  box-shadow: 0 10px 28px rgba(229, 9, 41, 0.28);
  color: #ffffff;
  text-decoration: none;
}

.tmbw-root .tmbw-cta:visited {
  color: #ffffff;
}

.tmbw-root .tmbw-arrow {
  font-size: 24px;
  font-weight: 400;
  line-height: 0.7;
  letter-spacing: 0;
}

.tmbw-root .tmbw-destination {
  padding: 0;
  margin: 11px 0 0;
  color: #a6b7c7;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  overflow-wrap: anywhere;
}

.tmbw-root .tmbw-close:focus-visible,
.tmbw-root .tmbw-cta:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 4px;
}

@keyframes tmbw-enter {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (min-width: 701px) and (max-height: 680px) {
  .tmbw-root .tmbw-content { padding: 55px 34px 27px; }
  .tmbw-root .tmbw-heading { font-size: 52px; }
  .tmbw-root .tmbw-eyebrow { margin-bottom: 13px; }
  .tmbw-root .tmbw-description { margin-top: 15px; font-size: 14px; line-height: 1.5; }
  .tmbw-root .tmbw-offer { margin-top: 17px; font-size: 37px; }
  .tmbw-root .tmbw-action { margin-top: 20px; }
}

@media (min-width: 701px) and (max-height: 540px) {
  .tmbw-root .tmbw-content { padding: 50px 30px 20px; }
  .tmbw-root .tmbw-heading { font-size: 42px; }
  .tmbw-root .tmbw-description { display: none; }
  .tmbw-root .tmbw-offer { margin-top: 15px; font-size: 34px; }
  .tmbw-root .tmbw-deadline { margin-top: 9px; font-size: 12px; }
  .tmbw-root .tmbw-action { margin-top: 16px; }
  .tmbw-root .tmbw-cta { min-height: 48px; padding: 12px 16px; font-size: 12px; }
  .tmbw-root .tmbw-destination { margin-top: 8px; }
}

@media (max-width: 700px) {
  .tmbw-root { padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom)); }
  .tmbw-root .tmbw-dialog {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    width: min(420px, 100%);
    height: min(760px, calc(100vh - 24px));
    height: min(760px, calc(100dvh - max(12px, env(safe-area-inset-top)) - max(12px, env(safe-area-inset-bottom))));
    border-radius: 18px;
  }
  .tmbw-root .tmbw-close { top: 10px; right: 10px; width: 40px; height: 40px; min-width: 40px; min-height: 40px; }
  .tmbw-root .tmbw-preview-label { top: 24px; left: 17px; max-width: calc(100% - 78px); font-size: 9px; }
  .tmbw-root .tmbw-poster { padding: 48px 16px 0; background: #050c15; }
  .tmbw-root .tmbw-content { justify-content: flex-start; padding: 17px 23px 20px; }
  .tmbw-root .tmbw-eyebrow { gap: 7px; margin-bottom: 7px; font-size: 10px; letter-spacing: 0.15em; }
  .tmbw-root .tmbw-eyebrow::before { width: 17px; height: 2px; }
  .tmbw-root .tmbw-heading { font-size: 35px; line-height: 1.08; letter-spacing: -0.05em; }
  .tmbw-root .tmbw-heading > span { display: inline; }
  .tmbw-root .tmbw-description { display: none; }
  .tmbw-root .tmbw-offer { margin-top: 10px; font-size: 34px; line-height: 1.1; }
  .tmbw-root .tmbw-deadline { margin-top: 9px; font-size: 12px; }
  .tmbw-root .tmbw-action { margin-top: 16px; }
  .tmbw-root .tmbw-cta { min-height: 52px; padding: 14px 17px; font-size: 13px; }
  .tmbw-root .tmbw-destination { margin-top: 8px; font-size: 10px; }
}

/* A landscape phone keeps the poster beside the CTA, never above it. */
@media (max-height: 470px) and (min-width: 480px) {
  .tmbw-root { padding: 12px; }
  .tmbw-root .tmbw-dialog {
    grid-template-columns: 34% minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    width: min(800px, 100%);
    height: calc(100vh - 24px);
    height: calc(100dvh - 24px);
  }
  .tmbw-root .tmbw-poster { padding: 0; }
  .tmbw-root .tmbw-content { justify-content: center; padding: 43px 24px 17px; }
  .tmbw-root .tmbw-eyebrow { margin-bottom: 8px; font-size: 10px; }
  .tmbw-root .tmbw-heading { font-size: 34px; line-height: 1.05; }
  .tmbw-root .tmbw-heading > span { display: inline; }
  .tmbw-root .tmbw-description { display: none; }
  .tmbw-root .tmbw-offer { margin-top: 10px; font-size: 30px; }
  .tmbw-root .tmbw-deadline { margin-top: 7px; font-size: 11px; }
  .tmbw-root .tmbw-action { margin-top: 12px; }
  .tmbw-root .tmbw-cta { min-height: 46px; padding: 11px 14px; font-size: 12px; }
  .tmbw-root .tmbw-destination { margin-top: 7px; font-size: 10px; }
  .tmbw-root .tmbw-close { top: 8px; right: 8px; width: 36px; height: 36px; min-width: 36px; min-height: 36px; }
  .tmbw-root .tmbw-preview-label { top: 20px; left: calc(34% + 24px); max-width: calc(66% - 82px); font-size: 9px; }
}

@media (max-width: 479px) and (max-height: 580px) {
  .tmbw-root .tmbw-content { padding: 12px 18px 14px; }
  .tmbw-root .tmbw-heading { font-size: 29px; }
  .tmbw-root .tmbw-offer { margin-top: 7px; font-size: 29px; }
  .tmbw-root .tmbw-action { margin-top: 11px; }
  .tmbw-root .tmbw-cta { min-height: 48px; padding: 12px 14px; font-size: 12px; }
  .tmbw-root .tmbw-destination { margin-top: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .tmbw-root .tmbw-dialog { animation: none; }
  .tmbw-root .tmbw-close,
  .tmbw-root .tmbw-cta { transition: none; }
}

@media (forced-colors: active) {
  .tmbw-root .tmbw-dialog,
  .tmbw-root .tmbw-close,
  .tmbw-root .tmbw-cta { border: 2px solid CanvasText; }
}
