/* =========================================================
   Protected price access UI
   ========================================================= */
.auth-top-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #c8cccd;
}
.auth-top-status .icon { width: 11px; height: 11px; color: #ff4a5b; }
body.price-authed .auth-top-status { color: #b9d8a7; }
body.price-authed .auth-top-status .icon { color: #99c66f; }

.auth-button {
  height: 44px;
  min-width: 44px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--red);
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 650;
  border-radius: 2px;
  white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.auth-button:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-1px); }
.auth-button .icon { width: 16px; height: 16px; }
.auth-button.is-authenticated {
  background: #f6faef;
  border-color: #bed6a3;
  color: #4f642c;
}
.auth-button.is-authenticated:hover { background: #eef7e2; border-color: #a9c888; color: #3f5620; }
body.price-offline .auth-button { background: #3d4244; border-color: #3d4244; color: #b5bbbc; }
body.price-offline .auth-button:hover { background: #4a5052; border-color: #4a5052; }

/* Login CTA bar between hero and catalogue */
.price-access-shell { padding-top: 25px; }
.price-access-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 15px 19px;
  background:
    linear-gradient(90deg, rgba(228,0,27,.055), transparent 38%),
    #fff;
  border: 1px solid #e1ddd5;
  border-left: 3px solid var(--red);
  box-shadow: 0 8px 24px rgba(20,22,24,.045);
}
.price-access-copy { display: flex; align-items: center; gap: 12px; min-width: 0; }
.price-access-icon {
  width: 38px;
  height: 38px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1d1f;
  color: #ff4051;
}
.price-access-icon .icon { width: 18px; height: 18px; }
.price-access-copy strong { display: block; font-size: 12.5px; color: #343938; }
.price-access-copy span:not(.price-access-icon) { display: block; margin-top: 2px; color: #8c9089; font-size: 9.5px; }
.price-access-actions { display: flex; align-items: center; gap: 14px; flex: none; }
.price-access-actions .btn { min-height: 38px; font-size: 10.5px; }
.price-access-badge {
  font-family: var(--font-display);
  font-size: 8px;
  letter-spacing: .1em;
  color: #b0505b;
}
body.price-offline .price-access-badge { color: #9b9f9c; }

body.price-authed [data-open-price-login] { display: none !important; }

/* Locked price text */
.price-locked {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #a26d13;
  font-size: 8.5px;
  font-weight: 600;
  white-space: nowrap;
}
.price-locked .icon { width: 10px; height: 10px; }
.part-price.is-locked { color: #a26d13; }
.pm-price.is-locked, .sel-price .is-locked { color: #a26d13; font-size: 10px; }
.pm-price.is-locked { font-family: var(--font-body); font-weight: 600; }
.sel-price .is-locked { font-family: var(--font-display); font-size: 13px; }
.add-part-locked { color: #8a6a23 !important; border-color: #e7d9b4 !important; background: #fffaf0 !important; }
.add-part-locked:hover { color: #fff !important; background: var(--red) !important; border-color: var(--red) !important; }

.inline-login {
  margin-left: 5px;
  color: var(--red);
  font-size: 9.5px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.inline-login:hover { color: var(--red-dark); }
.data-login-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--red);
  font-weight: 600;
}
.data-login-button .icon { width: 12px; height: 12px; }
.data-login-button:hover { text-decoration: underline; }

/* Login modal */
.modal.login-modal-shell {
  width: min(500px, 100%);
  overflow: hidden;
  background: #fff;
}
.login-modal { position: relative; background: #fff; }
.login-close {
  position: absolute;
  right: 15px;
  top: 15px;
  z-index: 3;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.26);
  color: #fff;
}
.login-close:hover { background: var(--red); border-color: var(--red); color: #fff; }
.login-visual {
  position: relative;
  overflow: hidden;
  padding: 29px 31px 26px;
  background:
    radial-gradient(circle at 88% 15%, rgba(228,0,27,.26), transparent 36%),
    linear-gradient(115deg, #111416, #1c2022);
  color: #fff;
}
.login-visual::after {
  content: "PRICE";
  position: absolute;
  right: -12px;
  bottom: -28px;
  font-family: var(--font-display);
  font-size: 90px;
  font-weight: 900;
  letter-spacing: -.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.065);
  pointer-events: none;
}
.login-lock {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: #fff;
  margin-bottom: 17px;
}
.login-lock .icon { width: 20px; height: 20px; }
.login-visual .card-kicker { color: #ff5363; }
.login-visual h2 {
  margin: 4px 0 6px;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.1;
}
.login-visual p { position: relative; z-index: 1; margin: 0; max-width: 365px; color: #a6acae; font-size: 10.5px; line-height: 1.7; }
.login-form { padding: 22px 31px 19px; }
.login-form > label { display: block; margin-bottom: 7px; color: #555b57; font-size: 10px; font-weight: 650; letter-spacing: .04em; }
.password-wrap { position: relative; }
.password-wrap input {
  width: 100%;
  height: 47px;
  padding: 0 45px 0 13px;
  border: 1px solid #dcd8cf;
  background: #f8f6f1;
  font-size: 14px;
  letter-spacing: .08em;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.password-wrap input:focus { outline: none; background: #fff; border-color: var(--red); box-shadow: 0 0 0 3px rgba(228,0,27,.08); }
.password-toggle {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  width: 33px;
  height: 33px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999c95;
}
.password-toggle:hover { color: var(--red); }
.password-toggle .icon { width: 16px; height: 16px; }
.login-error {
  margin: 8px 0 0;
  padding: 7px 9px;
  background: #fff4f5;
  border-left: 2px solid var(--red);
  color: #a52f3b;
  font-size: 9.5px;
}
.login-submit { width: 100%; height: 45px; margin-top: 12px; }
.login-skip {
  display: block;
  margin: 10px auto 0;
  color: #979b94;
  font-size: 9.5px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.login-skip:hover { color: var(--red); }
.login-footnote {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 12px 31px 14px;
  background: #f5f3ee;
  border-top: 1px solid #e6e2da;
  color: #969a93;
  font-size: 8.5px;
  line-height: 1.6;
}
.login-footnote .icon { width: 13px; height: 13px; flex: none; color: #7c817b; margin-top: 1px; }

.lock-summary { display: flex; align-items: center; gap: 13px; padding: 13px 15px; background: #f4f8ed; border: 1px solid #dbe9c9; }
.lock-summary .login-lock { margin-bottom: 0; width: 38px; height: 38px; background: #5f7f35; }
.lock-summary strong { display: block; font-size: 11px; color: #3f4d2b; }
.lock-summary span:not(.login-lock) { display: block; margin-top: 2px; color: #7a856c; font-size: 9px; }
.lock-help { margin: 15px 0 0; color: #8b8f88; font-size: 10px; line-height: 1.7; }

@media (max-width: 1020px) {
  .price-access-bar { align-items: flex-start; }
  .price-access-actions { flex-direction: column; align-items: flex-end; gap: 7px; }
}
@media (max-width: 760px) {
  .price-access-shell { padding-top: 18px; }
  .price-access-bar { flex-direction: column; align-items: stretch; gap: 13px; padding: 14px 15px; }
  .price-access-copy { align-items: flex-start; }
  .price-access-icon { width: 33px; height: 33px; }
  .price-access-copy strong { font-size: 11.5px; }
  .price-access-copy span:not(.price-access-icon) { font-size: 9px; }
  .price-access-actions { flex-direction: row; align-items: center; justify-content: space-between; }
  .price-access-actions .btn { min-height: 36px; }
  .auth-button { width: 40px; padding: 0; }
  .auth-button span { display: none; }
  .auth-button .icon { width: 17px; height: 17px; }
  .modal-layer:has(.login-modal-shell) { align-items: center; padding: 8px; }
  .modal.login-modal-shell { width: 100%; max-height: calc(100vh - 16px); }
  .login-visual { padding: 24px 22px 21px; }
  .login-visual h2 { font-size: 25px; }
  .login-form { padding: 18px 22px 16px; }
  .login-footnote { padding: 11px 22px 13px; }
  .login-close { right: 11px; top: 11px; }
  .pm-price.is-locked { font-size: 8px; }
}
@media print {
  .auth-button, .auth-top-status, .price-access-shell { display: none !important; }
}
