/* Passwordless checkout / account sign-in */

body.bf-otp-checkout .bf-content{padding:0}
body.bf-otp-checkout .bf-content-inner{max-width:none;margin:0}
body.bf-otp-checkout article > h1,
body.bf-otp-checkout .wp-block-woocommerce-checkout,
body.bf-otp-checkout .woocommerce,
body.bf-otp-checkout .wp-block-woocommerce-cart{display:none!important}

.bf-otp-shell{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(280px,420px);
  min-height:calc(100vh - 160px);
  background:#fff;
}
.bf-otp-shell__main{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:48px 24px 64px;
}
.bf-otp-shell__side{
  background:#f8fafc;
  border-left:1px solid var(--bf-line);
  padding:32px 28px 48px;
}

body.bf-otp-account .bf-account-page{background:#fff;min-height:calc(100vh - 160px);display:flex;align-items:center;justify-content:center;padding:48px 20px 72px}
body.bf-otp-account .bf-otp-account-wrap{width:min(440px,100%)}

.bf-otp{width:min(420px,100%);text-align:center}
.bf-otp__brand{display:flex;justify-content:center;margin:0 0 28px}
.bf-otp__logo{display:block;max-height:52px;width:auto}
.bf-otp h1{margin:0 0 8px;font:800 32px/1.15 "Anek Telugu",sans-serif;color:var(--bf-navy)}
.bf-otp__lead{margin:0 0 22px;color:#64748b;font:400 16px/1.45 Inter,sans-serif}
.bf-otp__form{display:flex;flex-direction:column;gap:12px}
.bf-otp__input{
  width:100%;
  height:56px;
  border:0;
  border-radius:16px;
  background:#f1f5f9;
  padding:0 20px;
  font:400 16px Inter,sans-serif;
  color:var(--bf-navy);
}
.bf-otp__input::placeholder{color:#94a3b8}
.bf-otp__input:focus{outline:0;box-shadow:0 0 0 3px rgba(37,99,235,.18);background:#fff}
.bf-otp__submit{
  width:100%;
  height:56px;
  border:0;
  border-radius:999px;
  background:#6b7280;
  color:#fff;
  font:700 16px/1 Poppins,sans-serif;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  cursor:pointer;
}
.bf-otp__submit:hover,
.bf-otp__form:valid .bf-otp__submit{background:#111827}
.bf-otp__submit:disabled{opacity:.7;cursor:wait}
.bf-otp__legal{margin:18px 0 0;color:#94a3b8;font:400 13px/1.5 Inter,sans-serif}
.bf-otp__legal a{color:#64748b;text-decoration:underline;text-underline-offset:2px}
.bf-otp__legal a:hover{color:var(--bf-navy)}
.bf-otp__partner{margin:16px 0 0;text-align:center}
.bf-otp__partner a{color:var(--bf-navy);font:600 14px/1.4 Inter,sans-serif;text-decoration:underline;text-underline-offset:3px}
.bf-otp__partner a:hover{color:var(--bf-blue)}
.bf-otp__error{margin:0;padding:10px 12px;border-radius:10px;background:#fff0f0;border:1px solid #e9b2b2;color:#9f1239;font:500 13px Inter,sans-serif}
.bf-otp__hint{margin:10px 0 0;color:#94a3b8;font:400 13px Inter,sans-serif}
.bf-otp__hint--spam{
  margin-top:4px;
  font-weight:600;
  color:#b45309;
  animation:bf-otp-flash 1.1s ease-in-out infinite;
}
@keyframes bf-otp-flash{
  0%,100%{opacity:1}
  50%{opacity:.2}
}
@media (prefers-reduced-motion:reduce){
  .bf-otp__hint--spam{animation:none}
}
.bf-otp__resend{margin:18px 0 8px}
.bf-otp__text-btn{border:0;background:none;padding:0;color:#94a3b8;font:500 14px Inter,sans-serif;cursor:pointer}
.bf-otp__text-btn:disabled{cursor:default}
.bf-otp__text-btn--link{color:var(--bf-navy);text-decoration:underline;text-underline-offset:3px;font-weight:600}
.bf-otp__text-btn--link:hover{color:var(--bf-blue)}

.bf-otp-codebox{position:relative;display:block;height:72px}
.bf-otp-codebox input{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  opacity:0;
  z-index:2;
  caret-color:transparent;
}
.bf-otp-slots{
  position:absolute;
  inset:0;
  display:grid;
  grid-template-columns:repeat(6,1fr);
  align-items:center;
  border:2px solid #0f172a;
  border-radius:18px;
  background:#fff;
  pointer-events:none;
}
.bf-otp-slots i{
  display:grid;
  place-items:center;
  height:100%;
  font:700 22px/1 Inter,sans-serif;
  color:var(--bf-navy);
  border-right:1px solid transparent;
}
.bf-otp-slots i:not(.is-filled)::before{
  content:"";
  width:8px;
  height:8px;
  border-radius:50%;
  background:#d1d5db;
}
.bf-otp-slots i.is-active::before{background:#94a3b8}

.bf-otp-summary h2{margin:0 0 20px;font:800 13px/1 Inter,sans-serif;letter-spacing:.06em;text-transform:uppercase;color:#111}
.bf-otp-summary__items{list-style:none;margin:0 0 22px;padding:0;display:flex;flex-direction:column;gap:16px}
.bf-otp-summary__items li{display:grid;grid-template-columns:56px minmax(0,1fr) auto;gap:12px;align-items:center}
.bf-otp-summary__media{position:relative;width:56px;height:56px;border:1px solid var(--bf-line);border-radius:12px;overflow:hidden;background:#fff}
.bf-otp-summary__media img{width:100%;height:100%;object-fit:contain}
.bf-otp-summary__media span{
  position:absolute;top:-6px;right:-6px;min-width:20px;height:20px;padding:0 5px;border-radius:999px;
  background:#111;color:#fff;font:700 11px/20px Inter,sans-serif;text-align:center
}
.bf-otp-summary__info{min-width:0}
.bf-otp-summary__info strong{display:block;font:700 14px/1.3 Inter,sans-serif;color:#111}
.bf-otp-summary__info small{display:block;margin-top:2px;color:#64748b;font:500 12px Inter,sans-serif}
.bf-otp-summary__price{text-align:right;font:700 14px Inter,sans-serif}
.bf-otp-summary__price del{display:block;color:#94a3b8;font-weight:500;font-size:12px}
.bf-otp-summary__row{display:flex;justify-content:space-between;gap:12px;margin-top:10px;font:600 14px Inter,sans-serif;color:#111}
.bf-otp-summary__row--save{color:#16a34a}

@media(max-width:900px){
  .bf-otp-shell{grid-template-columns:1fr}
  .bf-otp-shell__side{border-left:0;border-top:1px solid var(--bf-line)}
  .bf-otp-shell__main{padding:36px 18px 28px}
  .bf-otp h1{font-size:28px}
}
