/* International paywall — split layout, no blur, no scroll */
html:has(body.intl-paywall-active) {
  overflow: hidden;
  height: 100%;
}

body.intl-paywall-active {
  overflow: hidden;
  height: 100%;
  width: 100%;
  position: fixed;
  inset: 0;
  margin: 0;
  background: #eef2f6;
}

body.intl-paywall-active .site-shell,
body.intl-paywall-active .main-content,
body.intl-paywall-active .site-footer,
body.intl-paywall-active .app-tab-bar,
body.intl-paywall-active .intl-paywall-stub {
  display: none !important;
}

.intl-paywall {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483646 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 100dvh !important;
  max-height: 100dvh !important;
  width: 100% !important;
  overflow: hidden;
  padding: 1rem;
  background: #eef2f6 !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.intl-paywall[hidden] {
  display: none !important;
}

body.intl-paywall-active .intl-paywall:not([hidden]) {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

body.intl-paywall-active:has(.intl-paywall__preview-bar) .intl-paywall {
  padding-top: 2.5rem;
}

.intl-paywall__preview-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10060;
  background: #1e293b;
  color: #f8fafc;
  text-align: center;
  padding: 0.45rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.intl-paywall__preview-bar a {
  color: #cbd5e1;
  margin-left: 0.5rem;
  text-decoration: underline;
}

.intl-paywall__layout {
  display: grid;
  grid-template-columns: 1fr;
  width: min(100%, 400px);
  max-height: calc(100dvh - 2rem);
  overflow: hidden;
}

/* Checkout panel (mobile: full width card only) */
.intl-paywall__checkout {
  min-width: 0;
}

.intl-paywall__card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
  padding: 1.25rem 1.25rem 1rem;
  color: #0f172a;
}

.intl-paywall__brand {
  display: block;
  margin: 0 auto 0.75rem;
  width: 120px;
  height: auto;
}

.intl-paywall__title {
  margin: 0 0 0.3rem;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  color: #0f172a;
}

.intl-paywall__lead {
  margin: 0 0 0.85rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #64748b;
  text-align: center;
}

.intl-paywall__price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin-bottom: 0.85rem;
  padding: 0.6rem 0.75rem;
  background: #f0fdfa;
  border: 1px solid #ccfbf1;
  border-radius: 8px;
}

.intl-paywall__price-amount {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f766e;
  line-height: 1;
}

.intl-paywall__price-note {
  font-size: 0.75rem;
  color: #64748b;
}

.intl-paywall__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.3rem;
}

.intl-paywall__input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0.5rem 0.65rem;
  font-size: 0.875rem;
  background: #fff;
  color: #0f172a;
}

.intl-paywall__input:focus {
  outline: none;
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

.intl-paywall__paypal {
  min-height: 45px;
  margin: 0.65rem 0 0.25rem;
}

.intl-paywall__btn {
  width: 100%;
  border: none;
  border-radius: 6px;
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  background: #0f766e;
  color: #fff;
  margin-top: 0.5rem;
}

.intl-paywall__btn:hover {
  background: #0d6b64;
}

.intl-paywall__link {
  display: block;
  width: 100%;
  background: none;
  border: none;
  color: #64748b;
  font-size: 0.75rem;
  cursor: pointer;
  text-align: center;
  padding: 0.55rem 0 0;
}

.intl-paywall__link:hover {
  color: #0f766e;
  text-decoration: underline;
}

.intl-paywall__msg {
  min-height: 0;
  font-size: 0.75rem;
  margin: 0.3rem 0 0;
}

.intl-paywall__msg--error {
  color: #b91c1c;
}

.intl-paywall__footer {
  margin-top: 0.55rem;
  font-size: 0.6875rem;
  color: #94a3b8;
  text-align: center;
}

.intl-paywall__panel[hidden] {
  display: none !important;
}

/* Promo panel — hidden on small screens */
.intl-paywall__promo {
  display: none;
}

/* Desktop split layout */
@media (min-width: 860px) {
  .intl-paywall__layout {
    grid-template-columns: minmax(0, 1fr) 380px;
    width: min(100%, 900px);
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.1);
    max-height: calc(100dvh - 2.5rem);
  }

  .intl-paywall__promo {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1.5rem 1.35rem;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    border-radius: 14px 0 0 14px;
    overflow: hidden;
  }

  .intl-paywall__checkout {
    display: flex;
    align-items: center;
    padding: 1.25rem;
  }

  .intl-paywall__card {
    width: 100%;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
  }
}

.intl-paywall__eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #0f766e;
}

.intl-paywall__promo-title {
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.25;
  color: #0f172a;
}

.intl-paywall__promo-sub {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #475569;
}

.intl-paywall__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.intl-paywall__stat {
  text-align: center;
  padding: 0.55rem 0.35rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.intl-paywall__stat-value {
  display: block;
  font-size: 0.9rem;
  font-weight: 800;
  color: #0f766e;
  line-height: 1.1;
}

.intl-paywall__stat-label {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.625rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.intl-paywall__jobs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.intl-paywall__job {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.55rem 0.65rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.intl-paywall__job:nth-child(n+5) {
  display: none;
}

.intl-paywall__job-main {
  min-width: 0;
  flex: 1;
}

.intl-paywall__job-title {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.intl-paywall__job-meta {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.6875rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.intl-paywall__job-badge {
  flex-shrink: 0;
  font-size: 0.625rem;
  font-weight: 600;
  color: #64748b;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 0.18rem 0.45rem;
  white-space: nowrap;
}

.intl-paywall__job-badge--urgent {
  color: #b45309;
  background: #fff7ed;
  border-color: #fed7aa;
}

.intl-paywall__benefits {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.intl-paywall__benefits li {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #334155;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
}

@media (max-width: 859px) {
  .intl-paywall {
    padding: 0.85rem;
  }

  .intl-paywall__card {
    padding: 1.1rem 1.1rem 0.95rem;
  }

  .intl-paywall__brand {
    width: 108px;
  }
}

@media (max-height: 720px) and (min-width: 860px) {
  .intl-paywall__promo {
    padding: 1.1rem 1.15rem;
  }

  .intl-paywall__promo-title {
    font-size: 1.1rem;
  }

  .intl-paywall__job:nth-child(n+4) {
    display: none;
  }

  .intl-paywall__benefits {
    display: none;
  }
}
