/* Exact BeautyKlove login layout, scoped so it cannot affect other forms. */
.custom-login-container.bklma-v3-login {
  box-sizing: border-box;
  width: calc(100% - 16px);
  max-width: 400px;
  margin: auto;
  padding: 24px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, .08);
  color: #282428;
  font-family: inherit;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.custom-login-container.bklma-v3-login *,
.custom-login-container.bklma-v3-login *::before,
.custom-login-container.bklma-v3-login *::after {
  box-sizing: border-box;
  font-family: inherit;
}

.custom-login-container.bklma-v3-login .bk-login-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: 10px;
  background: linear-gradient(90deg, #fa046e, #17010a);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}

.custom-login-container.bklma-v3-login .login-title {
  margin: 0 !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  text-align: center;
}

.custom-login-container.bklma-v3-login form {
  margin: 0;
}

.custom-login-container.bklma-v3-login label {
  display: block;
  margin: 10px 0 0;
  color: #282428;
  font-size: 12px;
  font-weight: 600;
}

.custom-login-container.bklma-v3-login :is(input[type="tel"], input[type="text"], button) {
  width: 100%;
  margin: 10px 0;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: inherit;
}

.custom-login-container.bklma-v3-login :is(input[type="tel"], input[type="text"]) {
  min-height: 44px;
  background: #fff;
  color: #282428;
  box-shadow: none;
  font-size: 16px !important;
  line-height: 1.3;
  outline: 0;
}

.custom-login-container.bklma-v3-login :is(input[type="tel"], input[type="text"]):focus {
  border-color: #c9246b;
  box-shadow: 0 0 0 2px rgba(201, 36, 107, .12);
}

.custom-login-container.bklma-v3-login #send-otp-button {
  min-height: 38px;
  border: 0;
  background: #c9246b;
  color: #fff;
  box-shadow: none;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
}

.custom-login-container.bklma-v3-login #send-otp-button:disabled {
  border: 0;
  background: #ccc !important;
  color: #666 !important;
  cursor: not-allowed;
  opacity: 1;
}

.custom-login-container.bklma-v3-login button.woocommerce-button {
  min-height: 38px;
  border: 0;
  border-radius: 10px;
  background: #c9246b;
  color: #fff;
  box-shadow: none;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
}

.custom-login-container.bklma-v3-login #otp-status {
  min-height: 18px;
  margin-top: 5px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.custom-login-container.bklma-v3-login .retry-otp {
  color: #666;
  font-size: 13px;
  text-align: center;
}

.custom-login-container.bklma-v3-login .retry-otp a {
  color: #0073aa !important;
  font-size: 13px;
  text-decoration: underline !important;
}

.custom-login-container.bklma-v3-login .bk-login-support {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #eee;
  color: #666;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.custom-login-container.bklma-v3-login .bk-login-support a {
  display: inline-block;
  color: #c9246b !important;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none !important;
}

.custom-login-container.bklma-v3-login :is(button, a) {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

body.bklma-v3-checkout-auth-required :is(.woocommerce-form-login-toggle, .woocommerce-form-coupon-toggle, form.checkout, .woocommerce-checkout-review-order, #payment) {
  display: none !important;
}

body.bklma-v3-checkout-auth-required .bklma-v3-login,
body.bklma-v3-otp-gateway .bklma-v3-login {
  display: block !important;
}

body.bklma-v3-otp-gateway :is(.u-columns.col2-set, .woocommerce-form-login, .woocommerce-form-register) {
  display: none !important;
}

body.bklma-v3-otp-gateway .custom-login-container:not(.bklma-v3-login) {
  display: none !important;
}

@media (max-width: 560px) {
  .custom-login-container.bklma-v3-login {
    width: auto;
    margin-right: max(8px, env(safe-area-inset-right));
    margin-left: max(8px, env(safe-area-inset-left));
    padding: 24px;
  }
}
