/**
 * Sign-in popup — ported from login-lightbox.html (Changes 20-10-2026, #59).
 * Scoped under .ts-lb; markup in template-parts/login-lightbox.php.
 */
.ts-lb { --lb-hover: var(--mascot, #B48970); position: fixed; inset: 0; z-index: 100000; font-family: var(--ff-body, 'Inter', sans-serif); color: var(--ink, #1C1A18); }
.ts-lb[hidden] { display: none; }
body.ts-lb-lock { overflow: hidden; }

.ts-lb .lb-scrim { position: fixed; inset: 0; background: rgba(28, 26, 24, 0.62); opacity: 0; transition: opacity .25s var(--ease-out, ease); }
.ts-lb.is-open .lb-scrim { opacity: 1; }

.ts-lb .lb { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px 16px; pointer-events: none; }
.ts-lb .lb-box { pointer-events: auto; position: relative; width: 100%; max-width: 440px; max-height: calc(100vh - 40px); overflow: auto; background: var(--white, #fff); border-top: 3px solid var(--ink, #1C1A18); border-radius: 14px; box-shadow: 0 24px 64px rgba(28,26,24,.28); opacity: 0; transform: translateY(12px) scale(.98); transition: opacity .25s var(--ease-out, ease), transform .25s var(--ease-out, ease), max-width .25s var(--ease-out, ease); }
.ts-lb.is-open .lb-box { opacity: 1; transform: none; }
.ts-lb .lb-box.is-wide { max-width: 860px; }

.ts-lb .lb-top { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px 0; }
.ts-lb .lb-logo { height: 34px; width: auto; display: block; }
.ts-lb .lb-close { width: 36px; height: 36px; border: 0; background: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--ink, #1C1A18); cursor: pointer; }
.ts-lb .lb-close:hover { background: var(--bg, #FAFAF6); }

.ts-lb .lb-view[hidden] { display: none; }
.ts-lb .lb-body { padding: 26px 40px 32px; margin: 0; }
.ts-lb .lb-title { font-family: var(--ff-body, 'Inter', sans-serif); font-size: 26px; font-weight: 700; letter-spacing: -0.035em; line-height: 1.15; text-align: center; margin: 0 0 8px; color: var(--ink, #1C1A18); }
.ts-lb .lb-sub { font-size: 14px; text-align: center; color: var(--ink, #1C1A18); margin: 0 0 26px; line-height: 1.5; }
.ts-lb .lb-sub button { border: 0; background: none; padding: 0; font: inherit; color: var(--fri-yay, #C25F4E); font-weight: 600; cursor: pointer; }
.ts-lb .lb-sub button:hover { text-decoration: underline; text-underline-offset: 3px; }

.ts-lb .lb-field { margin-bottom: 16px; }
.ts-lb .lb-field label { display: block; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 7px; color: var(--ink, #1C1A18); }
.ts-lb .lb-input { position: relative; }
.ts-lb .lb-input input { width: 100%; height: 44px; border: 1px solid var(--border, #D8D4CE); border-radius: 6px; padding: 0 14px; font-family: inherit; font-size: 14px; color: var(--ink, #1C1A18); background: #fff; outline: none; box-shadow: none; transition: border-color .2s; }
.ts-lb .lb-input input:focus { border-color: var(--ink, #1C1A18); }
.ts-lb .lb-input input.is-invalid { border-color: var(--fri-yay, #C25F4E); }
.ts-lb .lb-eye { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--stone, #8C8278); padding: 4px; display: flex; cursor: pointer; }
.ts-lb .lb-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ts-lb .lb-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 0 22px; font-size: 12.5px; }
.ts-lb .lb-check { display: inline-flex; align-items: flex-start; gap: 8px; cursor: pointer; line-height: 1.45; font-size: 12.5px; text-transform: none; letter-spacing: 0; font-weight: 400; margin: 0; }
.ts-lb .lb-check input { width: 15px; height: 15px; margin: 1px 0 0; accent-color: var(--ink, #1C1A18); flex-shrink: 0; }

.ts-lb .lb-btn { width: 100%; height: 46px; border: 1px solid var(--ink, #1C1A18); border-radius: 4px; background: var(--ink, #1C1A18); color: #fff; font-family: inherit; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; transition: background .2s var(--ease-out, ease), border-color .2s var(--ease-out, ease); }
.ts-lb .lb-btn:hover { background: var(--lb-hover); border-color: var(--lb-hover); }
.ts-lb .lb-btn--gap { margin-top: 6px; }
.ts-lb .lb-btn[disabled] { opacity: .65; cursor: wait; }

.ts-lb .lb-links { display: flex; justify-content: center; gap: 22px; margin-top: 16px; font-size: 12.5px; }
.ts-lb .lb-links button { border: 0; background: none; padding: 0; font: inherit; color: var(--ink, #1C1A18); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ts-lb .lb-links button:hover { color: var(--lb-hover); }
.ts-lb .lb-terms { font-size: 11.5px; color: var(--stone, #8C8278); text-align: center; margin: 14px 0 0; line-height: 1.5; }
.ts-lb .lb-terms a { color: var(--stone, #8C8278); text-decoration: underline; text-underline-offset: 2px; }

/* Inline result line (errors / "check your inbox"). */
.ts-lb .lb-msg { margin: -8px 0 16px; padding: 10px 12px; border-radius: 6px; font-size: 13px; line-height: 1.45; }
.ts-lb .lb-msg.is-error { background: #FBEDEA; color: #8A2E1F; }
.ts-lb .lb-msg.is-success { background: #EEF4EC; color: #2F5A2A; }

.ts-lb .lb-seller { border-top: 1px solid var(--border, #D8D4CE); padding: 16px 24px 18px; text-align: center; font-size: 13px; color: var(--stone, #8C8278); margin: 0; }
.ts-lb .lb-seller a { color: var(--ink, #1C1A18); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ts-lb .lb-seller a:hover { color: var(--lb-hover); }
.ts-lb .lb-back { border-top: 1px solid var(--border, #D8D4CE); padding: 16px 24px 18px; }
.ts-lb .lb-back button { border: 0; background: none; padding: 0; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink, #1C1A18); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.ts-lb .lb-back button:hover { color: var(--lb-hover); }

/* Sign in + Create account: wide, photo panel on the left. */
.ts-lb .lb-split { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.ts-lb .lb-photo { position: relative; margin: 20px 0 24px 24px; border-radius: 10px; overflow: hidden; min-height: 460px; background-color: #EFE7DF; background-size: cover; background-repeat: no-repeat; }
.ts-lb .lb-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28,26,24,0) 45%, rgba(28,26,24,.62) 100%); }
.ts-lb .lb-photo-text { position: absolute; left: 24px; right: 24px; bottom: 22px; z-index: 1; color: #fff; }
.ts-lb .lb-photo-text strong { display: block; font-size: 24px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 6px; }
.ts-lb .lb-photo-text span { font-size: 13.5px; opacity: .92; }
.ts-lb .lb-split .lb-body { padding: 22px 36px 28px; }
.ts-lb .lb-body--center { display: flex; flex-direction: column; justify-content: center; }

@media (max-width: 760px) {
	.ts-lb .lb { padding: 0; align-items: stretch; }
	.ts-lb .lb-box, .ts-lb .lb-box.is-wide { max-width: none; max-height: none; height: 100%; border-radius: 0; }
	.ts-lb .lb-body, .ts-lb .lb-split .lb-body { padding: 22px 22px 28px; }
	.ts-lb .lb-split { grid-template-columns: 1fr; }
	.ts-lb .lb-photo { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.ts-lb .lb-box, .ts-lb .lb-scrim { transition: none; }
}
