.akotp-modal { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; padding: 16px; background: rgba(40, 44, 39, .55); backdrop-filter: blur(3px); }
.akotp-modal[hidden] { display: none; }
.akotp-modal__box { position: relative; width: 100%; max-width: 440px; max-height: 100%; overflow: auto; }
.akotp-modal__box #akotp { margin: 0; }
.akotp-modal__x { position: absolute; inset-block-start: 10px; inset-inline-start: 12px; z-index: 1; width: 36px; height: 36px; border: 0; background: none; font-size: 26px; line-height: 1; cursor: pointer; color: var(--muted, #626D5C); }
.akotp-modal #akotp .button { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 50px; border: 1px solid var(--green, #282C27); border-radius: 10px; background: var(--green, #282C27); color: var(--paper, #fff); font-size: 15px; font-weight: 800; cursor: pointer; }
.akotp-modal #akotp .button:hover { background: var(--green-d, #394535); border-color: var(--green-d, #394535); }
.akotp-modal #akotp .akotp__back { color: var(--ink, #282C27); font-size: 13px; }
.akotp-modal__x { inset-inline-start: auto; inset-inline-end: 12px; }

/* Full-page sign-in: shared OTP forms retain their original modal behavior. */
#akotp.akotp--page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
  width: 100%;
  max-width: 1000px;
  min-height: 570px;
  margin: 24px auto 56px;
  padding: 12px;
  border: 1px solid #e4e9e1;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(40, 60, 35, .10);
  overflow: hidden;
  direction: rtl;
}
#akotp.akotp--page .akotp__form-panel { align-self: center; padding: 40px clamp(28px, 4vw, 64px); min-width: 0; }
#akotp.akotp--page .akotp__brand { display: block; width: fit-content; margin-bottom: 32px; color: #386442; font-size: 30px; font-weight: 500; line-height: 1.3; letter-spacing: 3px; }
#akotp.akotp--page .akotp__brand span { display: block; margin-top: 6px; color: #7a8476; font-size: 11px; letter-spacing: 0; }
#akotp.akotp--page h2 { margin: 0 0 12px; color: #282c27; font-size: 26px; font-weight: 500; line-height: 1.5; }
#akotp .akotp__hint { color: #71796d; margin: 0 0 24px; font-size: 13px; line-height: 1.9; }
#akotp.akotp--page .form-row { margin: 0 0 20px; padding: 0; }
#akotp.akotp--page label { margin-bottom: 8px; color: #424a3e; font-weight: 500; }
#akotp.akotp--page input.input-text { background: #fff; min-height: 50px; border: 1px solid #dce3d8; border-radius: 10px; }
#akotp.akotp--page input.input-text:focus { border-color: #7fa875; box-shadow: 0 0 0 3px #edf4e9; }
#akotp.akotp--page .button { margin: 0; border: 1px solid #b8d7af; background: #b8d7af; color: #233620; font-weight: 500; border-radius: 10px; transition: background .15s; }
#akotp.akotp--page .button:hover { background: #a7cb9d; border-color: #a7cb9d; }
#akotp.akotp--page .button:focus-visible,
#akotp.akotp--page a:focus-visible { outline: 2px solid #386442; outline-offset: 4px; }
#akotp.akotp--page .akotp__signup-note { margin: 24px 0 14px; padding-top: 20px; border-top: 1px solid #edf0ea; color: #7a8176; text-align: center; font-size: 12px; line-height: 1.9; }
#akotp.akotp--page .akotp__shop-link { display: block; color: #386442; text-align: center; font-size: 12px; }
#akotp.akotp--page .akotp__visual { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; padding: 36px; border-radius: 20px; overflow: hidden; background: radial-gradient(ellipse at 90% 8%, #dfeccd 0%, transparent 52%), radial-gradient(ellipse at 5% 48%, #74996a 0%, transparent 66%), linear-gradient(155deg, #b8d7af, #386442); color: #fff; }
#akotp.akotp--page .akotp__visual-brand { font-size: 26px; letter-spacing: 5px; font-weight: 400; opacity: .9; }
#akotp.akotp--page .akotp__visual-copy > span { display: block; margin-bottom: 16px; font-size: 13px; color: #e7f0e2; }
#akotp.akotp--page .akotp__visual h3 { margin: 0 0 20px; color: #fff; font-size: 30px; font-weight: 500; line-height: 1.65; }
#akotp.akotp--page .akotp__visual p { margin: 0; color: #e7f0e2; font-size: 13px; line-height: 2; }
body.woocommerce-account:not(.logged-in) .ak-page__head { display: none; }
@media (max-width: 767px) {
  #akotp.akotp--page { display: block; min-height: 0; max-width: 460px; margin: 20px auto 36px; padding: 0; border-radius: 22px; }
  #akotp.akotp--page .akotp__form-panel { padding: 32px 24px; }
  #akotp.akotp--page .akotp__visual { display: none; }
  #akotp.akotp--page .akotp__brand { margin-bottom: 28px; }
  #akotp.akotp--page h2 { font-size: 23px; }
}

/* Standalone authentication screen and removal of the legacy 560px parent limit. */
body.woocommerce-account:not(.logged-in):has(#akotp.akotp--page) { max-width: none; min-width: 0; min-height: 100svh; padding: 0; background: #f7f8fa; }
body.woocommerce-account:not(.logged-in):has(#akotp.akotp--page) .ak-header,
body.woocommerce-account:not(.logged-in):has(#akotp.akotp--page) .ak-footer,
body.woocommerce-account:not(.logged-in):has(#akotp.akotp--page) .ak-bottom,
body.woocommerce-account:not(.logged-in):has(#akotp.akotp--page) .ak-mobile-shipping-note { display: none !important; }
body.woocommerce-account:not(.logged-in):has(#akotp.akotp--page) main.ak-page { width: 100%; max-width: none; min-height: 100svh; display: grid; align-items: center; padding: 48px 24px; }
body.woocommerce-account:not(.logged-in):has(#akotp.akotp--page) main.ak-page > article { width: 100%; max-width: none; margin: 0; }
body.woocommerce-account:not(.logged-in):has(#akotp.akotp--page) .ak-content { width: 100%; }
body.woocommerce-account:not(.logged-in):has(#akotp.akotp--page) .woocommerce:has(#akotp.akotp--page) { display: block; width: 100%; max-width: none; margin: 0; }
body.woocommerce-account:not(.logged-in):has(#akotp.akotp--page) #akotp.akotp--page { width: 100%; max-width: 1000px; margin: 0 auto; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); }
body.woocommerce-account:not(.logged-in):has(#akotp.akotp--page) #akotp.akotp--page .akotp__form-panel { padding: 40px clamp(28px, 4vw, 64px); }
@media (max-width: 900px) {
  body.woocommerce-account:not(.logged-in):has(#akotp.akotp--page) main.ak-page { padding: 24px 16px; }
  body.woocommerce-account:not(.logged-in):has(#akotp.akotp--page) #akotp.akotp--page { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 480px; min-height: 0; padding: 10px; border-radius: 24px; }
  body.woocommerce-account:not(.logged-in):has(#akotp.akotp--page) #akotp.akotp--page .akotp__visual { display: flex; order: -1; min-height: 185px; padding: 24px; border-radius: 16px; gap: 20px; }
  body.woocommerce-account:not(.logged-in):has(#akotp.akotp--page) #akotp.akotp--page .akotp__visual-brand { font-size: 18px; }
  body.woocommerce-account:not(.logged-in):has(#akotp.akotp--page) #akotp.akotp--page .akotp__visual-copy > span { margin-bottom: 6px; font-size: 11px; }
  body.woocommerce-account:not(.logged-in):has(#akotp.akotp--page) #akotp.akotp--page .akotp__visual h3 { margin: 0; font-size: 22px; line-height: 1.6; }
  body.woocommerce-account:not(.logged-in):has(#akotp.akotp--page) #akotp.akotp--page .akotp__visual p { display: none; }
  body.woocommerce-account:not(.logged-in):has(#akotp.akotp--page) #akotp.akotp--page .akotp__form-panel { padding: 28px 18px 22px; }
  body.woocommerce-account:not(.logged-in):has(#akotp.akotp--page) #akotp.akotp--page .akotp__brand { display: none; }
  body.woocommerce-account:not(.logged-in):has(#akotp.akotp--page) #akotp.akotp--page h2 { font-size: 23px; }
}
