/* Moved out of resources/views/buyers/partials/signin-sheet.blade.php (inline block) so browsers cache it. Edit here. */
.ldb-backdrop { position: fixed; inset: 0; z-index: 120; background: rgba(7,19,68,.5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.ldb-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 121; max-width: 520px; margin: 0 auto; padding: 8px 20px calc(22px + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0; background: #fff; box-shadow: 0 -20px 60px -20px rgba(7,19,68,.5); font-family: inherit; color: #0B1F68; }
.ldb-sheet.is-inline { position: relative; z-index: auto; max-width: 440px; margin: 24px auto; padding: 26px 22px; border-radius: 24px; box-shadow: 0 20px 50px -30px rgba(7,19,68,.45); border: 1px solid #E6EAF4; }
@media (min-width: 640px) { .ldb-sheet:not(.is-inline) { bottom: 50%; transform: translateY(50%); border-radius: 26px; } .ldb-grip { display: none; } }
.ldb-grip { display: block; width: 40px; height: 4px; margin: 2px auto 12px; border-radius: 999px; background: #D5DBEE; }
/* Sign in / Create account switch (the /following card) */
/* Create account / Sign in: a segmented control, the white pill slides to the chosen side. */
.ldb-switch { position: relative; isolation: isolate; display: grid; grid-template-columns: 1fr 1fr; margin: 14px 0 4px; padding: 5px; border: 1px solid #E6EAF4; border-radius: 18px;
              background: linear-gradient(180deg, #EEF1F9, #F5F7FC); box-shadow: inset 0 1px 2px rgba(11, 31, 104, .06); }
.ldb-switch::before { content: ''; position: absolute; z-index: -1; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 13px; background: #fff;
                      box-shadow: 0 1px 2px rgba(11, 31, 104, .08), 0 10px 20px -12px rgba(11, 31, 104, .55); transition: transform .28s cubic-bezier(.2, .8, .2, 1); }
.ldb-switch.is-second::before { transform: translateX(100%); }
.ldb-switch button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 8px; border: 0; border-radius: 13px; background: transparent;
                     color: #6B7598; font: inherit; font-size: 14.5px; font-weight: 700; letter-spacing: -.005em; cursor: pointer; transition: color .2s; -webkit-tap-highlight-color: transparent; }
.ldb-switch button i { font-size: 14px; color: #A3ACC6; transition: color .2s, transform .2s; }
.ldb-switch button.is-on { color: #0B1F68; }
.ldb-switch button.is-on i { color: #FF6C36; transform: scale(1.05); }
.ldb-switch button:focus-visible { outline: 3px solid #FF8A5C; outline-offset: -2px; }
@media (prefers-reduced-motion: reduce) { .ldb-switch::before { transition: none; } }
.ldb-notice--new { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin-top: 12px; }
.ldb-brand { display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px 5px 6px; border-radius: 999px; background: #F1F4FB; font-size: 12px; font-weight: 800; color: #2143B8; }
.ldb-brand b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 999px; background: linear-gradient(135deg, #2143B8, #FF6C36); color: #fff; font-size: 11px; }
.ldb-title { margin: 12px 0 4px; font-size: 21px; font-weight: 900; line-height: 1.2; letter-spacing: -.01em; }
.ldb-sub { margin: 0 0 16px; color: #56608A; font-size: 14px; line-height: 1.45; }
.ldb-label { display: block; margin: 0 0 6px; color: #2A3566; font-size: 13px; font-weight: 800; }
/* Create account / Sign in fields sit inside one card, on the sheet and the /following card. */
.ldb-card { margin: 14px 0 0; padding: 14px; border: 1px solid #E6EAF4; border-radius: 18px; background: #F6F8FD; }
.ldb-auth-panel { min-width: 0; padding: 16px; border: 1px solid #E6EAF4; border-radius: 20px; background: linear-gradient(180deg, #fff 0%, #FAFBFF 100%); box-shadow: 0 14px 30px -26px rgba(11,31,104,.42); }
.ldb-auth-panel--phone, .ldb-auth-panel--register, .ldb-auth-panel--signin, .ldb-auth-panel--reset { margin-top: 14px; }
/* The phone field never pushes a panel past the screen (the input's default width did on the reset step). */
.ldb-auth-panel form, .ldb-auth-panel .ldb-card, .ldb-phone, .ldb-phone-input { min-width: 0; }
.ldb-phone-input { width: 100%; }
.ldb-auth-panel .ldb-title { margin-top: 0; }
.ldb-auth-panel .ldb-sub { margin-bottom: 12px; }
.ldb-reset-view { display: grid; gap: 12px; }
.ldb-reset-back { justify-self: start; margin: 4px 0 0; }
.ldb-btn-link { text-decoration: none; }
.ldb-card .ldb-label:first-child { margin-top: 0; }
.ldb-card .ldb-phone, .ldb-card .ldb-input { background: #fff; }
.ldb-input { width: 100%; height: 52px; padding: 0 16px; box-sizing: border-box; border: 1.5px solid #DCE2F0; border-radius: 14px; background: #fff; color: #0B1F68; font-size: 18px; font-weight: 700; outline: none; }
.ldb-input:focus { border-color: #2143B8; box-shadow: 0 0 0 4px rgba(33,67,184,.12); }
.ldb-pw { position: relative; }
.ldb-pw .ldb-input { padding-right: 52px; }
.ldb-eye { position: absolute; top: 0; right: 0; display: grid; place-items: center; width: 52px; height: 52px; border: 0; background: transparent; color: #56608A; font-size: 17px; cursor: pointer; border-radius: 0 14px 14px 0; }
.ldb-eye:hover, .ldb-eye:focus-visible { color: #2143B8; outline: none; }
.ldb-input.is-code { letter-spacing: .35em; text-align: center; font-size: 22px; }
.ldb-phone { display: flex; align-items: center; height: 52px; overflow: hidden; border: 1.5px solid #DCE2F0; border-radius: 14px; background: #fff; }
.ldb-phone:focus-within { border-color: #2143B8; box-shadow: 0 0 0 4px rgba(33,67,184,.12); }
.ldb-phone.is-error { border-color: #DC2626; }
.ldb-phone-cc { display: flex; flex: 0 0 auto; align-items: center; gap: 6px; height: 100%; padding: 0 12px 0 14px; border-right: 1.5px solid #E6EAF4; background: #F6F8FD; }
.ldb-phone-flag { font-size: 20px; line-height: 1; }
.ldb-phone-cc b { color: #2A3566; font-size: 15px; font-weight: 800; }
.ldb-phone-input { flex: 1; min-width: 0; height: 100%; padding: 0 14px; border: 0; outline: none; background: transparent; color: #0B1F68; font-size: 18px; font-weight: 700; letter-spacing: .02em; }
.ldb-phone-input::placeholder { color: #A7B0CC; font-weight: 600; }
.ldb-input.is-error { border-color: #DC2626; }
.ldb-error { margin: 8px 0 0; color: #DC2626; font-size: 13px; font-weight: 700; }
.ldb-account-note { margin: 8px 0 0; padding: 10px 12px; border-radius: 12px; background: #F0FDF4; border: 1px solid #BBF7D0; color: #15803D; font-size: 13px; font-weight: 700; }
.ldb-account-hint { margin: 8px 0 0; color: #6B7598; font-size: 13px; font-weight: 600; }
.ldb-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 52px; margin-top: 14px; border: 0; border-radius: 14px; background: #0B1F68; color: #fff; font-size: 16px; font-weight: 800; box-shadow: 0 12px 24px -14px rgba(11,31,104,.8); }
.ldb-btn:disabled { opacity: .6; }
/* Main actions (Register, Sign in, Continue, Done, reset steps): one compact size, on the right, arrow inside. */
.ldb-btn.ldb-btn-end, .ldb-sheet:not(.is-inline) .ldb-btn.ldb-btn-end { width: auto; min-width: 148px; height: 48px; margin-left: auto; padding: 0 22px; gap: 12px; font-size: 15px; }
.ldb-sheet:not(.is-inline) .ldb-btn.ldb-btn-end { padding: 0 6px 0 24px; }
.ldb-sheet:not(.is-inline) .ldb-btn-end .ldb-go-i { position: static; width: 36px; height: 36px; margin: 0; }
.ldb-btn-signin-compact { width: auto; margin-left: auto; padding-left: 30px; padding-right: 30px; }
/* The other way in (e.g. "Text me a code instead" under Sign in): quiet outline, never a second big orange button. */
.ldb-btn.ldb-btn-alt, .ldb-sheet:not(.is-inline) .ldb-btn.ldb-btn-alt { height: 48px; margin-top: 10px; border: 1.5px solid #E3E7F2; background: #fff; color: #0B1F68; font-size: 15px; font-weight: 700; box-shadow: none; }
.ldb-btn.ldb-btn-alt:hover, .ldb-sheet:not(.is-inline) .ldb-btn.ldb-btn-alt:hover { background: #F5F7FC; }
.ldb-btn.ldb-btn-alt i { color: #FF6C36; font-size: 15px; }
.ldb-link { display: block; margin: 12px auto 0; border: 0; background: none; color: #2143B8; font-size: 13.5px; font-weight: 800; }
.ldb-perks { display: grid; gap: 8px; margin: 18px 0 0; padding: 14px; border-radius: 16px; background: #F6F8FD; list-style: none; }
.ldb-perks li { display: flex; align-items: center; gap: 9px; color: #2A3566; font-size: 13px; font-weight: 600; }
.ldb-perks i { color: #12B76A; }
.ldb-notice { margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: #FFF7ED; border: 1px solid #FCD9B8; color: #9A3412; font-size: 13px; font-weight: 700; }
.ldb-terms { display: flex; align-items: flex-start; gap: 10px; margin: 12px 0 0; cursor: pointer; color: #2A3566; font-size: 13px; line-height: 1.5; }
.ldb-terms input { width: 20px; height: 20px; flex-shrink: 0; margin: 0; accent-color: #0B1F68; cursor: pointer; }
.ldb-terms button { padding: 0; border: 0; background: none; color: #2143B8; font: inherit; font-weight: 800; text-decoration: underline; cursor: pointer; }
/* Terms / Privacy modal: opens inside the sheet so the buyer never leaves the flow. */
.ldb-modal { position: absolute; inset: 0; z-index: 5; display: flex; align-items: flex-end; justify-content: center; padding: 12px; border-radius: inherit; background: rgba(7,19,68,.5); }
@media (min-width: 640px) { .ldb-modal { align-items: center; } }
.ldb-modal-panel { display: flex; flex-direction: column; width: 100%; max-height: 100%; overflow: hidden; border-radius: 18px; background: #fff; position: relative; }
.ldb-modal-x { position: absolute; top: 8px; right: 8px; z-index: 2; width: 34px; height: 34px; border: 0; border-radius: 999px; background: #F0F2F9; color: #4A5578; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 15px; }
.ldb-modal-x:hover { background: #0B1F68; color: #fff; }
.ldb-modal-tabs { display: flex; gap: 4px; flex-shrink: 0; padding: 10px 50px 0 10px; }
.ldb-modal-tabs { display: flex; gap: 4px; flex-shrink: 0; padding: 10px 10px 0; }
.ldb-modal-tabs button { flex: 1; padding: 10px; border: 0; border-bottom: 2px solid transparent; background: none; color: #56608A; font-size: 14px; font-weight: 800; cursor: pointer; }
.ldb-modal-tabs button.is-active { border-color: #0B1F68; color: #0B1F68; }
.ldb-legal { overflow-y: auto; padding: 10px 18px 18px; color: #2A3566; font-size: 13px; line-height: 1.55; }
.ldb-legal h2 { margin: 6px 36px 6px 0; color: #0B1F68; font-size: 16px; font-weight: 900; }
.ldb-legal h3 { margin: 12px 0 4px; color: #0B1F68; font-size: 14px; font-weight: 800; }
.ldb-legal p { margin: 6px 0; }
.ldb-legal ul { margin: 6px 0; padding-left: 20px; }
.ldb-legal li + li { margin-top: 4px; }
.ldb-legal a { color: #2143B8; font-weight: 700; }
.ldb-modal-close { flex-shrink: 0; margin: 0 12px 12px; height: 46px; border: 0; border-radius: 12px; background: #0B1F68; color: #fff; font-size: 15px; font-weight: 800; cursor: pointer; }
/* Signed-in buyer: a round initial that opens their Following page (header, swipe view). */
.ldb-toast { position: fixed; left: 50%; top: calc(14px + env(safe-area-inset-top)); z-index: 130; display: flex; align-items: center; gap: 10px; width: max-content; max-width: calc(100vw - 32px); padding: 10px 16px 10px 10px; border-radius: 999px; background: #0B1F68; color: #fff; font-size: 13.5px; font-weight: 700; line-height: 1.3; box-shadow: 0 14px 34px -14px rgba(7,19,68,.75); transform: translateX(-50%); }
.ldb-toast .ldb-me { width: 30px; height: 30px; font-size: 13px; box-shadow: none; }
.ldb-toast small { display: block; color: #C7D2F5; font-size: 12px; font-weight: 600; }
/* Bottom sheet (shop pages, Ask LinkDuka): the "Sign in sheet (mobile)" design. The inline /following card keeps the look above. */
.ldb-top { display: none; }
.ldb-label-i, .ldb-go-i, .ldb-phone-ke { display: none; }
.ldb-backdrop { background: linear-gradient(180deg, rgba(11,31,104,.55), rgba(5,9,31,.75)); -webkit-backdrop-filter: blur(8px) saturate(120%); backdrop-filter: blur(8px) saturate(120%); }
.ldb-sheet:not(.is-inline) { max-height: 88vh; max-height: 88dvh; overflow: auto; box-sizing: border-box; padding: 10px clamp(16px, 5vw, 22px) calc(20px + env(safe-area-inset-bottom)); border-radius: 30px 30px 0 0; box-shadow: 0 -30px 60px -20px rgba(0,0,0,.6); font-family: 'DM Sans', system-ui, sans-serif; animation: ldb-fade .3s ease-out; }
@media (max-width: 639px) { .ldb-sheet:not(.is-inline) { animation: ldb-up .45s cubic-bezier(.2,.8,.2,1); } }
@keyframes ldb-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes ldb-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ldb-sheet:not(.is-inline) { animation: none; } }
.ldb-sheet:not(.is-inline) .ldb-grip { width: 44px; height: 5px; margin: 0 auto 14px; background: #DCE1EE; }
.ldb-sheet:not(.is-inline) .ldb-top { display: flex; align-items: center; justify-content: space-between; }
.ldb-sheet:not(.is-inline) .ldb-brand { gap: 8px; height: 32px; padding: 0 12px 0 4px; box-sizing: border-box; background: #F0F2F9; font-size: 12.5px; color: #2142B0; }
.ldb-sheet:not(.is-inline) .ldb-brand b { width: 24px; height: 24px; background: linear-gradient(145deg, #FF8A5C, #FF6C36); color: #1B0E06; font-family: 'Bricolage Grotesque', sans-serif; font-size: 13px; font-weight: 800; }
.ldb-x { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; border: 1px solid #E4E8F4; border-radius: 999px; background: #fff; color: #4A5578; cursor: pointer; }
.ldb-x:hover { background: #F0F2F9; }
.ldb-sheet:not(.is-inline) .ldb-switch { margin-top: 14px; }
.ldb-sheet:not(.is-inline) .ldb-title { margin: 18px 0 0; font-family: 'Bricolage Grotesque', sans-serif; font-size: clamp(25px, 7.6vw, 30px); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; color: #0B1F68; }
.ldb-sheet:not(.is-inline) .ldb-sub { margin: 8px 0 0; font-size: clamp(14px, 3.9vw, 15px); line-height: 1.5; color: #4A5578; }
.ldb-sheet:not(.is-inline) .ldb-card { margin: 16px 0 0; padding: 0; border: 0; border-radius: 0; background: none; }
.ldb-sheet:not(.is-inline) .ldb-auth-panel { padding: 18px; border: 1px solid #E7EBF5; border-radius: 22px; background: linear-gradient(180deg, #fff 0%, #FAFBFF 100%); box-shadow: 0 16px 34px -28px rgba(11,31,104,.52); }
.ldb-sheet:not(.is-inline) .ldb-auth-panel--phone { margin-top: 16px; }
.ldb-sheet:not(.is-inline) .ldb-auth-panel .ldb-title { margin-top: 0; }
.ldb-sheet:not(.is-inline) .ldb-auth-panel .ldb-sub { margin: 7px 0 13px; }
.ldb-sheet:not(.is-inline) .ldb-auth-panel--reset .ldb-card { margin-top: 12px; }
.ldb-sheet:not(.is-inline) .ldb-label { display: flex; align-items: center; gap: 7px; margin: 0 0 10px; font-size: 13.5px; font-weight: 700; color: #0B1F68; }
.ldb-sheet:not(.is-inline) .ldb-label-i { display: block; flex-shrink: 0; color: #FF6C36; }
.ldb-sheet:not(.is-inline) .ldb-phone { height: 56px; border-radius: 18px; border-color: #DCE1EE; transition: border-color .2s, box-shadow .2s; }
.ldb-sheet:not(.is-inline) .ldb-phone:focus-within { border-color: #2142B0; box-shadow: 0 0 0 4px rgba(33,66,176,.12); }
.ldb-sheet:not(.is-inline) .ldb-phone.is-error { border-color: #DC2626; }
.ldb-sheet:not(.is-inline) .ldb-phone-cc { gap: 7px; padding: 0 14px; background: #F5F7FD; border-right-color: #E4E8F4; color: #6B7598; font-size: 13px; font-weight: 700; }
.ldb-sheet:not(.is-inline) .ldb-phone-cc b { color: #0B1F68; font-size: 15px; font-weight: 800; }
.ldb-sheet:not(.is-inline) .ldb-phone-ke { display: inline; }
.ldb-sheet:not(.is-inline) .ldb-phone-flag { display: none; }
.ldb-flag { display: none; flex-direction: column; width: 20px; height: 14px; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.ldb-flag i { flex: 1; }
.ldb-flag i:nth-child(1) { background: #111; }
.ldb-flag i:nth-child(2) { background: #BB0000; box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 #fff; }
.ldb-flag i:nth-child(3) { background: #006600; }
.ldb-sheet:not(.is-inline) .ldb-flag { display: inline-flex; }
.ldb-sheet:not(.is-inline) .ldb-phone-input { padding: 0 16px; font-family: inherit; font-size: 17px; font-weight: 600; }
.ldb-sheet:not(.is-inline) .ldb-phone-input::placeholder { color: #A9B2CF; font-weight: 500; }
.ldb-sheet:not(.is-inline) .ldb-input { height: 56px; border-radius: 18px; border-color: #DCE1EE; font-family: inherit; font-size: 17px; font-weight: 600; }
.ldb-sheet:not(.is-inline) .ldb-input.is-code { font-size: 22px; }
.ldb-sheet:not(.is-inline) .ldb-input:focus { border-color: #2142B0; box-shadow: 0 0 0 4px rgba(33,66,176,.12); }
.ldb-sheet:not(.is-inline) .ldb-eye { width: 56px; height: 56px; border-radius: 0 18px 18px 0; }
.ldb-sheet:not(.is-inline) .ldb-btn { position: relative; height: 54px; margin-top: 10px; border-radius: 999px; background: #FF6C36; color: #1B0E06; font-family: inherit; font-size: 16px; font-weight: 800; cursor: pointer; box-shadow: 0 16px 28px -14px rgba(255,108,54,1); transition: background-color .2s, transform .15s; }
.ldb-sheet:not(.is-inline) .ldb-btn:hover { background: #FF8A5C; }
.ldb-sheet:not(.is-inline) .ldb-btn:active { transform: scale(.98); }
.ldb-sheet:not(.is-inline) .ldb-go-i { position: absolute; right: 6px; top: 50%; display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin-top: -21px; border-radius: 999px; background: #0B1F68; color: #fff; }
.ldb-sheet:not(.is-inline) .ldb-link { color: #2142B0; }
.ldb-sheet:not(.is-inline) .ldb-x:focus-visible, .ldb-sheet:not(.is-inline) .ldb-btn:focus-visible { outline: 3px solid #FF8A5C; outline-offset: 2px; }
/* Computers: a centred modal (rounded all round, no drag handle). Last so it beats the sheet rules above. */
@media (min-width: 640px) {
    .ldb-sheet:not(.is-inline) { border-radius: 26px; padding-top: 22px; padding-bottom: 22px; }
    .ldb-sheet:not(.is-inline) .ldb-grip { display: none; }
}
