/* ===============================
   PR IYASA OTP – NYKAA / DIMBA UI
   =============================== */

/* Overlay */
.pr-otp-overlay {
    background: rgba(0,0,0,0.65) !important;
    backdrop-filter: blur(6px);
    animation: prFadeIn .25s ease;
}

/* Card */
.pr-otp-card {
    position: relative;
    width: 360px !important;
    max-width: 92%;
    padding: 28px 24px 26px !important;
    border-radius: 20px !important;
    box-shadow: 0 15px 45px rgba(0,0,0,0.25) !important;
    font-family: "Inter", "Helvetica Neue", Arial, sans-serif !important;
    animation: prSlideUp .35s ease;
}

/* Close button */
#pr-otp-close {
    top: 14px !important;
    right: 16px !important;
    font-size: 24px !important;
    color: #888 !important;
}
#pr-otp-close:hover {
    color: #ff3f6c !important;
}

/* Logo */
.pr-otp-logo img {
    max-width: 110px;
    margin: 4px auto 14px;
    display: block;
}

/* Inputs */
#pr-otp-user,
#pr-otp-code {
    width: 100% !important;
    padding: 14px 16px !important;
    margin: 10px 0 !important;
    border-radius: 12px !important;
    border: 1px solid #e6e6e6 !important;
    font-size: 14px;
    background: #fafafa;
    color: black;
    transition: all .25s ease;
}

#pr-otp-user:focus,
#pr-otp-code:focus {
    border-color: #ff3f6c !important;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255,63,108,.15);
}

/* Primary buttons */
#pr-otp-send,
#pr-otp-verify {
    width: 100% !important;
    padding: 14px 0 !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg,#ff3f6c,#ff5a8a) !important;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .3px;
    box-shadow: 0 8px 18px rgba(255,63,108,.35);
}

#pr-otp-send:hover,
#pr-otp-verify:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(255,63,108,.45);
}

/* Message */
#pr-otp-msg {
    font-size: 13px;
    margin-top: 6px;
}

/* Divider */
.pr-otp-separator {
    margin: 18px 0 14px;
    font-size: 12px;
    color: #999;
    position: relative;
}
.pr-otp-separator:before,
.pr-otp-separator:after {
    content: "";
    position: absolute;
    top: 50%;
    width: 28%;
    height: 1px;
    background: #e6e6e6;
}
.pr-otp-separator:before { left: 0; }
.pr-otp-separator:after { right: 0; }

/* Gmail button */
.pr-otp-gmail a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid #e5e5e5;
    background: #fff;
    font-weight: 600;
    font-size: 14px;
    color: #444;
    text-decoration: none;
    transition: all .25s ease;
}
.pr-otp-gmail a:hover {
    background: #f9f9f9;
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
}
.pr-otp-gmail img {
    width: 20px;
}

/* Terms */
.pr-otp-terms {
    font-size: 11px;
    color: #888;
    margin-top: 16px;
    line-height: 1.5;
}
.pr-otp-terms a {
    color: #ff3f6c;
    text-decoration: none;
    font-weight: 500;
}

/* ===============================
   MOBILE BOTTOM LOGIN MODAL
   =============================== */

@media (max-width: 768px) {

  /* Overlay alignment */
  .pr-otp-overlay {
      align-items: flex-end !important;
      padding: 0 !important;
  }

  /* Bottom sheet card */
  .pr-otp-card {
      width: 100% !important;
      max-width: 100% !important;
      border-radius: 22px 22px 0 0 !important;
      padding: 22px 18px 26px !important;
      margin: 0 !important;
      animation: prBottomUp .35s ease forwards;
      box-shadow: 0 -10px 40px rgba(0,0,0,.35) !important;
  }

  /* Drag indicator (visual only) */
  .pr-otp-card::before {
      content: "";
      width: 40px;
      height: 4px;
      background: #ddd;
      border-radius: 4px;
      position: absolute;
      top: 10px;
      left: 50%;
      transform: translateX(-50%);
  }

  /* Close button reposition */
  #pr-otp-close {
      top: 12px !important;
      right: 16px !important;
      font-size: 26px !important;
  }

  /* Inputs */
  #pr-otp-user,
  #pr-otp-code {
      font-size: 15px !important;
      padding: 15px 16px !important;
  }

  /* Buttons */
  #pr-otp-send,
  #pr-otp-verify {
      padding: 15px 0 !important;
      font-size: 16px !important;
      border-radius: 16px !important;
  }

  /* Gmail button */
  .pr-otp-gmail a {
      padding: 14px !important;
      border-radius: 16px !important;
  }

  /* Terms spacing */
  .pr-otp-terms {
      margin-top: 18px;
      font-size: 11px;
  }
}

/* Bottom slide animation */
@keyframes prBottomUp {
  from {
      transform: translateY(100%);
      opacity: 0;
  }
  to {
      transform: translateY(0);
      opacity: 1;
  }
}

/* Animations */
@keyframes prFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes prSlideUp {
    from { transform: translateY(20px) scale(.96); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}

/* Mobile */
@media (max-width: 480px) {
    .pr-otp-card {
        border-radius: 18px !important;
    }
}


/* =================================================
   FORCE BOTTOM SHEET – WORKS IN NATIVE WEBVIEW
   ================================================= */

@media (max-width: 768px) {

  /* Overlay becomes normal */
  .pr-otp-overlay {
      align-items: unset !important;
      justify-content: unset !important;
  }

  /* Card fixed to bottom (WebView-safe) */
  .pr-otp-card {
      position: fixed !important;
      left: 0;
      right: 0;
      bottom: 0;
      width: 100% !important;
      max-width: 100% !important;
      margin: 0 !important;

      border-radius: 22px 22px 0 0 !important;
      padding: 22px 18px 28px !important;

      transform: translateY(0);
      animation: prNativeBottomUp .35s ease forwards;
      box-shadow: 0 -12px 40px rgba(0,0,0,.35) !important;
  }

  /* Drag handle */
  .pr-otp-card::before {
      content: "";
      width: 42px;
      height: 4px;
      background: #ddd;
      border-radius: 4px;
      position: absolute;
      top: 10px;
      left: 50%;
      transform: translateX(-50%);
  }

  /* Keyboard safe padding */
  .pr-otp-card {
      padding-bottom: 32px !important;
  }
}

/* Bottom animation – WebView safe */
@keyframes prNativeBottomUp {
  from {
      transform: translateY(100%);
      opacity: 0;
  }
  to {
      transform: translateY(0);
      opacity: 1;
  }
}

/* Hide default WooCommerce My Account login/register titles */
.woocommerce-account h2,
.woocommerce-account .u-column1 h2,
.woocommerce-account .u-column2 h2 {
    display: none !important;
}

/* Optional: hide entire default forms if using custom popup */
.woocommerce-account .woocommerce-form-login,
.woocommerce-account .woocommerce-form-register {
    display: none !important;
}

/* Overlay fade */
.pr-otp-overlay {
    animation: prFadeIn .25s ease forwards;
}

@keyframes prFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Card zoom-in */
.pr-otp-card {
    animation: prZoomIn .35s cubic-bezier(.2,.8,.2,1);
}

@keyframes prZoomIn {
    from {
        opacity: 0;
        transform: scale(.92) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.pr-otp-inputs input {
    transition: all .2s ease;
}

.pr-otp-inputs input:focus {
    transform: scale(1.08);
    box-shadow: 0 0 0 3px rgba(255, 91, 158, 0.25);
}

.pr-btn {
    transition: transform .15s ease, box-shadow .15s ease;
}

.pr-btn:active {
    transform: scale(.96);
    box-shadow: 0 4px 12px rgba(0,0,0,.15) inset;
}

.pr-otp-overlay {
    animation: prFadeIn .25s ease forwards;
}

@keyframes prFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.pr-otp-card {
    animation: prZoomIn .35s cubic-bezier(.2,.8,.2,1);
}

@keyframes prZoomIn {
    from {
        opacity: 0;
        transform: scale(.94) translateY(12px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.pr-otp-inputs input {
    transition: all .2s ease;
}

.pr-otp-inputs input:focus {
    transform: scale(1.07);
    box-shadow: 0 0 0 3px rgba(0,0,0,.12);
}

.pr-otp-card.pr-error {
    animation: prShake .4s;
}

.pr-btn {
    transition: transform .15s ease, box-shadow .15s ease;
}

.pr-btn:active {
    transform: scale(.96);
    box-shadow: inset 0 4px 10px rgba(0,0,0,.15);
}

.pr-otp-overlay.pr-closing {
    animation: prFadeOut .2s ease forwards;
}

.pr-otp-card.pr-closing {
    animation: prCloseDown .25s ease forwards;
}

@keyframes prFadeOut {
    to { opacity: 0; }
}

@keyframes prCloseDown {
    to {
        opacity: 0;
        transform: translateY(20px) scale(.95);
    }
}

.pr-otp-card.pr-success {
    box-shadow: 0 0 0 6px rgba(46, 204, 113, 0.25);
    animation: prSuccess .45s ease;
}

@keyframes prSuccess {
    0% { transform: scale(.97); }
    60% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

@keyframes prShake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    50% { transform: translateX(6px); }
    75% { transform: translateX(-4px); }
    100% { transform: translateX(0); }
}
@media (max-width: 768px) {
    .pr-otp-overlay {
        align-items: flex-end !important;
    }

    .pr-otp-card {
        border-radius: 18px 18px 0 0 !important;
        animation: prSlideUp .4s cubic-bezier(.25,.8,.25,1);
    }

    @keyframes prSlideUp {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }
}

@media (max-width: 768px) {

    .pr-logo-text {
        font-size: 22px;
    }

    .pr-brand-badge {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

.pr-brand-wrap {
    text-align: center;
    margin-bottom: 22px;
}

/* Circular badge */
.pr-brand-badge {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff4f8b, #ff8fab);
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
}

/* Logo text */
.pr-logo-text {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.6px;
    background: linear-gradient(90deg, #ff4f8b, #ff8fab);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Subtitle */
.pr-logo-sub {
    font-size: 13px;
    color: #777;
    margin-top: 4px;
}

.pr-brand-badge,
.pr-logo-text {
    opacity: 0;
    transform: translateY(-10px);
    animation: prLogoReveal .45s ease forwards;
}

.pr-logo-sub {
    opacity: 0;
    animation: prSubReveal .35s ease forwards;
    animation-delay: .25s;
}

@keyframes prLogoReveal {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes prSubReveal {
    to { opacity: 1; }
}

.pr-otp-card {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.4);
}

@media (prefers-color-scheme: dark) {

    .pr-otp-card {
        background: rgba(25,25,25,0.85);
        border-color: rgba(255,255,255,0.08);
        color: #fff;
    }

    .pr-logo-sub {
        color: #aaa;
    }
}

@media (max-width: 768px) {

    .pr-logo-text {
        font-size: 22px;
    }

    .pr-brand-badge {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}