html:has(#buyer-access[open]) { overflow: hidden; }

#buyer-access {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #fff;
  color: var(--approved-ink);
  font-family: var(--approved-font);
  overscroll-behavior: contain;
}

.buyer-access-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px clamp(24px, 5vw, 74px);
  border-bottom: 1px solid #e8e9ef;
  background: #fff;
}

.buyer-access-brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.buyer-access-brand img {
  display: block;
  width: clamp(126px, 14vw, 160px);
  height: auto;
}

.buyer-access-back, .buyer-access-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 4px 0;
  background: transparent;
  color: #2536cb;
  font-size: .875rem;
  font-weight: 650;
}

.buyer-access-back { color: var(--approved-ink); text-align: right; }
.buyer-access-back:hover, .buyer-access-link:hover { text-decoration: underline; }

.buyer-access-layout {
  display: grid;
  grid-template-columns: minmax(365px, .9fr) minmax(0, 1.1fr);
  min-height: calc(100dvh - 72px);
}

.buyer-access-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  justify-items: center;
  padding: clamp(28px, 4vh, 48px) clamp(30px, 5vw, 80px);
}

.buyer-access-inner { width: min(100%, 448px); }

.buyer-access-visual {
  position: relative;
  overflow: hidden;
  border: 16px solid var(--approved-ink);
  border-radius: 22px;
  margin: 12px 12px 12px 0;
  background: var(--approved-ink);
}

.buyer-access-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 9px;
}

.buyer-access-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  gap: 4px;
  padding: 4px;
  margin-bottom: 25px;
  border-radius: 30px;
  background: #eef0f8;
}

.buyer-access-tabs button {
  min-width: 0;
  min-height: 44px;
  border-radius: 24px;
  padding: 7px clamp(16px, 2vw, 22px);
  background: transparent;
  color: #41465f;
  font-weight: 700;
  font-size: .9375rem;
  overflow-wrap: anywhere;
}

.buyer-access-tabs button[aria-selected="true"] {
  background: var(--approved-ink);
  color: #fff;
}

#buyer-access-heading {
  margin: 0 0 8px;
  font-family: var(--approved-font);
  font-size: clamp(1.85rem, 3.2vw, 2.625rem);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -.045em;
}

#buyer-access-panel > p {
  margin: 0 0 22px;
  color: var(--approved-graphite);
  line-height: 1.5;
}

.buyer-plan-summary {
  margin: 16px 0 21px;
  padding: 14px 16px;
  border: 1px solid #dce1ff;
  border-radius: 12px;
  background: #f1f3ff;
}

.buyer-plan-summary p { margin: 0; line-height: 1.4; }
.buyer-plan-summary p + p { margin-top: 5px; color: #3f4561; font-size: .9375rem; }
.buyer-plan-price strong { color: #2536cb; font-size: 1.55rem; font-weight: 800; }
.buyer-plan-price span { margin-left: .35em; font-size: .875rem; font-weight: 650; }

.buyer-access-form { gap: 13px; }
.buyer-access-form label { gap: 5px; font-size: .875rem; font-weight: 650; }

.buyer-terms {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

.buyer-access-form .buyer-terms input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-height: 0;
  margin: 0;
  padding: 0;
  accent-color: var(--approved-blue);
}

.buyer-terms label { line-height: 1.45; cursor: pointer; }
.buyer-terms a { display: inline-block; margin-top: 5px; color: #2536cb; font-size: .875rem; text-decoration: underline; }

.buyer-access-form input {
  min-width: 0;
  min-height: 47px;
  padding: 10px 12px;
  border: 1px solid #c9cede;
  border-radius: 9px;
  color: var(--approved-ink);
  font: 500 1rem var(--approved-font);
}

.buyer-password { position: relative; }
.buyer-password input { padding-inline-end: max(116px, 7.25rem); }
.buyer-password-toggle {
  position: absolute;
  right: 5px;
  bottom: 2px;
  min-height: 43px;
  padding: 7px;
  background: transparent;
  color: #2536cb;
  font-size: .8125rem;
  font-weight: 650;
}

.buyer-access-disclosure, .buyer-visitor-note, .buyer-payment-status {
  margin: 0;
  color: #41465f;
  font-size: .875rem;
  line-height: 1.45;
}

#buyer-access-panel .buyer-visitor-note { margin: 14px 0 0; }
.buyer-payment-status { padding: 10px 12px; border-radius: 8px; background: #f4f4f7; }
#buyer-offer > :is(.buyer-access-disclosure, .buyer-payment-status) { margin-bottom: 12px; }
.buyer-access-submit.btn {
  width: 100%;
  justify-content: center;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 24px;
  color: #fff;
  background: var(--approved-blue);
  font-size: .9375rem;
  font-weight: 750;
}

.buyer-access-submit.btn:enabled:hover { background: #2432cc; }
.buyer-access-submit.btn:disabled { background: #e1e4ef; color: #4f5670; cursor: not-allowed; opacity: 1; }
#buyer-access [data-buyer-error] { margin: 0; color: #a01b33; font-size: .875rem; }
#buyer-access [data-buyer-error]:empty { display: none; }
.buyer-access-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 16px; margin-top: 8px; }
#buyer-access :is(input,button,a):focus-visible, .buyer-password-toggle:focus-visible {
  outline: 2px solid var(--approved-blue);
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .buyer-access-header { min-height: 64px; }
  .buyer-access-layout { grid-template-columns: minmax(0, 1fr); min-height: auto; }
  .buyer-access-main { padding: 28px 24px 35px; }
  .buyer-access-visual { height: clamp(156px, 36vw, 240px); margin: 0 24px 24px; border-width: 9px; border-radius: 15px; }
  .buyer-access-tabs { margin-bottom: 20px; }
}

@media (max-width: 520px) {
  .buyer-password input { padding-inline-end: 12px; }
  .buyer-password-toggle {
    position: static;
    min-height: 44px;
    margin-top: 2px;
    padding-inline: 0;
  }
}
