/* FoxiWorld V1122 — mobile buy-now account choice and clean guest checkout entry. */
.checkout-auth-modal[hidden] {
  display: none !important;
}

.checkout-auth-modal {
  position: fixed;
  inset: 0;
  z-index: 3200;
  display: grid;
  place-items: center;
  padding: 24px;
}

.checkout-auth-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 23, 17, .64);
  backdrop-filter: blur(7px);
}

.checkout-auth-dialog {
  position: relative;
  width: min(880px, 100%);
  display: grid;
  grid-template-columns: minmax(250px, .8fr) minmax(0, 1.2fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .68);
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 34px 100px rgba(4, 32, 22, .34);
}

.checkout-auth-dialog:focus { outline: none; }

.checkout-auth-close {
  position: absolute;
  z-index: 3;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid #e1e8e4;
  border-radius: 50%;
  background: rgba(255, 255, 255, .96);
  color: #34423c;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.checkout-auth-visual {
  position: relative;
  min-height: 430px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(circle at 40% 34%, #fff 0 7%, transparent 8%), linear-gradient(145deg, #0a7454, #06422f);
}

.checkout-auth-visual::before,
.checkout-auth-visual::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
}

.checkout-auth-visual::before {
  width: 310px;
  height: 310px;
  left: -120px;
  bottom: -100px;
}

.checkout-auth-visual::after {
  width: 230px;
  height: 230px;
  right: -100px;
  top: -60px;
}

.checkout-auth-fox {
  position: relative;
  z-index: 1;
  width: 150px;
  height: 150px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 46px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 20px 55px rgba(0, 0, 0, .18);
  transform: rotate(-3deg);
}

.checkout-auth-fox img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.checkout-auth-paw {
  position: absolute;
  color: rgba(255, 255, 255, .24);
  font-size: 46px;
}

.checkout-auth-paw--one { left: 30px; top: 38px; transform: rotate(-24deg); }
.checkout-auth-paw--two { right: 34px; bottom: 38px; transform: rotate(22deg); }
.checkout-auth-content { padding: 52px 52px 42px; }
.checkout-auth-eyebrow { display: inline-flex; margin-bottom: 12px; color: #08704d; font-size: 12px; font-weight: 900; letter-spacing: .12em; }
.checkout-auth-content h2 { margin: 0; color: #14211c; font: 800 clamp(29px, 3.2vw, 42px)/1.08 "Manrope", "DM Sans", sans-serif; letter-spacing: -1.2px; }
.checkout-auth-content > p { margin: 16px 0 0; color: #63716a; font-size: 15px; line-height: 1.65; }
.checkout-auth-benefits { display: flex; flex-wrap: wrap; gap: 9px; margin: 22px 0 26px; }
.checkout-auth-benefits span { padding: 8px 11px; border: 1px solid #dbe9e1; border-radius: 999px; background: #f3faf6; color: #176143; font-size: 12px; font-weight: 800; }
.checkout-auth-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.checkout-auth-actions .btn { min-height: 52px; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.checkout-auth-guest { grid-column: 1 / -1; min-height: 50px; border: 1px solid #dfe8e3; border-radius: 14px; background: #f5f8f6; color: #52615a; font: 800 14px/1 "DM Sans", sans-serif; cursor: pointer; }
.checkout-auth-note { margin-top: 10px !important; text-align: center !important; color: #89948f !important; font-size: 12px !important; }
.checkout-auth-guest.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.checkout-auth-guest.is-loading::after { content: ""; position: absolute; width: 18px; height: 18px; border: 2px solid rgba(7, 84, 58, .25); border-top-color: #07543a; border-radius: 50%; animation: foxiCheckoutEntrySpin .65s linear infinite; }
body.checkout-auth-open { overflow: hidden; }
body.checkout-auth-open.foxi-mobile-app .fx-mobile-dock,
body.checkout-auth-open.foxi-mobile-app.foxi-mobile-product .pd-mobile-buybar,
body.checkout-auth-open .v15-chat,
body.checkout-auth-open .fw-chat-launcher,
body.checkout-auth-open .fx-orbit { display: none !important; }

@keyframes foxiCheckoutEntrySpin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  body:not(.admin-body).foxi-mobile-app .fw-nav-wrap,
  body:not(.admin-body).foxi-mobile-app .fw-nav.fw-mega-nav { display: none !important; }

  body.customer-auth-body.foxi-mobile-app .customer-auth-header {
    padding: 7px 0 !important;
  }

  body.customer-auth-body.foxi-mobile-app .customer-auth-header .brand {
    display: none !important;
  }

  body.customer-auth-body.foxi-mobile-app .customer-auth-header-inner {
    min-height: 28px !important;
    justify-content: flex-end !important;
  }

  body.customer-auth-body.foxi-mobile-app .auth-back-link {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 28px !important;
    font-size: 11px !important;
  }

  body.fw-checkout.foxi-mobile-app .breadcrumbs { display: none !important; }
  body.fw-checkout.foxi-mobile-app > .fw-topbar,
  body.fw-checkout.foxi-mobile-app > .fw-header { display: none !important; }
  body.fw-checkout.foxi-mobile-app .checkout-page { padding-top: 12px !important; padding-bottom: 84px !important; }
}

@media (max-width: 760px) {
  .checkout-auth-modal {
    place-items: center;
    padding: max(10px, env(safe-area-inset-top, 0px)) 10px max(10px, env(safe-area-inset-bottom, 0px));
    overflow: hidden;
  }

  .checkout-auth-dialog {
    width: 100%;
    max-height: calc(100dvh - max(20px, env(safe-area-inset-top, 0px) + env(safe-area-inset-bottom, 0px)));
    grid-template-columns: minmax(0, 1fr);
    overflow: hidden auto !important;
    overscroll-behavior: contain;
    border-radius: 28px !important;
    clip-path: inset(0 round 28px);
  }

  .checkout-auth-visual {
    min-height: 145px;
    border-radius: 27px 27px 0 0;
  }

  .checkout-auth-close { top: 16px; right: 16px; }
  .checkout-auth-fox { width: 92px; height: 92px; border-radius: 30px; }
  .checkout-auth-paw { font-size: 30px; }
  .checkout-auth-content { padding: 28px 20px 25px; }
  .checkout-auth-content h2 { font-size: clamp(27px, 8vw, 34px); }
  .checkout-auth-content > p { margin-top: 13px; font-size: 14px; line-height: 1.55; }
  .checkout-auth-benefits { margin: 19px 0 23px; }
  .checkout-auth-actions { grid-template-columns: 1fr; gap: 10px; }
  .checkout-auth-guest { grid-column: auto; min-height: 52px; }
}

@media (max-width: 380px), (max-height: 700px) {
  .checkout-auth-visual { min-height: 112px; }
  .checkout-auth-fox { width: 74px; height: 74px; border-radius: 24px; }
  .checkout-auth-content { padding: 21px 16px 18px; }
  .checkout-auth-eyebrow { margin-bottom: 8px; font-size: 10px; }
  .checkout-auth-content h2 { font-size: 25px; }
  .checkout-auth-content > p { margin-top: 9px; font-size: 13px; }
  .checkout-auth-benefits { gap: 6px; margin: 14px 0 17px; }
  .checkout-auth-benefits span { padding: 6px 8px; font-size: 10px; }
  .checkout-auth-actions .btn,
  .checkout-auth-guest { min-height: 46px; }
  .checkout-auth-note { margin-top: 7px !important; font-size: 10px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .checkout-auth-guest.is-loading::after { animation-duration: 1.2s; }
}
