/* =========================================================
   PREMIER SA — CUSTOMER OTP POLICY
   Presentation only. No business logic is changed.
   ========================================================= */

#customerOtpPolicy{
  position:relative;
  overflow:hidden;
  border:1px solid #e4eaf2;
  border-radius:18px;
  background:
    linear-gradient(180deg,#ffffff 0%,#fbfcfe 100%);
  box-shadow:
    0 10px 30px rgba(15,23,42,.055);
  padding:0;
}

/* ---------- Header ---------- */

#customerOtpPolicy > h3{
  margin:0;
  min-height:68px;
  padding:16px 20px;
  display:flex;
  align-items:center;
  gap:10px;
  border-bottom:1px solid #e9edf3;
  background:
    linear-gradient(
      90deg,
      rgba(21,59,111,.06),
      rgba(45,125,246,.025)
    );
  font-size:17px;
  font-weight:800;
  color:#153b6f;
}

#customerOtpPolicy > h3 [data-icon]{
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  border-radius:11px;
  background:#eef5ff;
  color:#2d7df6;
}

#customerOtpPolicy > h3 svg{
  width:19px;
  height:19px;
}

#customerOtpPolicySub{
  margin:0;
  padding:12px 20px 2px;
  color:#7b8798;
  font-size:13px;
  line-height:1.7;
}

/* ---------- Live controls ---------- */

#customerOtpPolicy .provider-module-grid{
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  padding:14px 20px 18px;
}

#customerOtpPolicy .provider-module-grid .row{
  min-height:98px;
  padding:15px 16px !important;
  margin:0 !important;
  border:1px solid #e7ebf1;
  border-radius:14px;
  background:#fff;
  display:flex !important;
  flex-direction:column;
  justify-content:space-between;
  align-items:stretch !important;
  gap:12px;
  box-shadow:
    0 3px 12px rgba(15,23,42,.035);
  transition:
    border-color .18s ease,
    box-shadow .18s ease,
    transform .18s ease;
}

#customerOtpPolicy .provider-module-grid .row:hover{
  border-color:#d7e2f2;
  box-shadow:
    0 7px 18px rgba(15,23,42,.065);
  transform:translateY(-1px);
}

#customerOtpPolicy .provider-module-grid .row > span:first-child{
  font-size:13px;
  font-weight:700;
  color:#526074;
}

/* ---------- Professional switches ---------- */

#customerOtpPolicy .provider-module-grid .row label{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  cursor:pointer;
}

#customerOtpPolicy input[type="checkbox"]{
  appearance:none;
  -webkit-appearance:none;
  width:46px;
  height:26px;
  min-width:46px;
  padding:0;
  margin:0;
  position:relative;
  border:0;
  border-radius:999px;
  outline:none;
  cursor:pointer;
  background:#cbd5e1;
  box-shadow:
    inset 0 0 0 1px rgba(15,23,42,.05);
  transition:background .2s ease;
}

#customerOtpPolicy input[type="checkbox"]::after{
  content:"";
  width:20px;
  height:20px;
  position:absolute;
  top:3px;
  left:3px;
  border-radius:50%;
  background:#fff;
  box-shadow:
    0 2px 6px rgba(15,23,42,.22);
  transition:
    transform .2s ease,
    box-shadow .2s ease;
}

#customerOtpPolicy input[type="checkbox"]:checked{
  background:#2d7df6;
}

#customerOtpPolicy input[type="checkbox"]:checked::after{
  transform:translateX(20px);
}

html[dir="rtl"]
#customerOtpPolicy input[type="checkbox"]::after{
  left:auto;
  right:3px;
}

html[dir="rtl"]
#customerOtpPolicy input[type="checkbox"]:checked::after{
  transform:translateX(-20px);
}

#customerOtpPolicy input[type="checkbox"]:focus-visible{
  box-shadow:
    0 0 0 4px rgba(45,125,246,.14);
}

#customerOtpPolicy input[type="checkbox"]:disabled{
  opacity:.55;
  cursor:not-allowed;
}

/* ---------- Enabled state ---------- */

#customerOtpLoginState,
#customerOtpRegistrationState{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:25px;
  padding:3px 10px;
  border-radius:999px;
  background:#e9faf1;
  color:#16854b;
  font-size:12px;
  font-weight:800;
}

#customerOtpRecoveryState{
  align-self:flex-start;
  display:inline-flex;
  align-items:center;
  min-height:25px;
  padding:3px 10px;
  border-radius:999px;
}

/* ---------- OTP values ---------- */

#customerOtpPolicy .form-grid{
  margin:0 20px;
  padding:16px;
  display:grid !important;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:12px;
  border:1px solid #e8edf3;
  border-radius:16px;
  background:#f8fafc;
}

#customerOtpPolicy .form-grid label{
  min-width:0;
  margin:0 !important;
  padding:13px 14px 12px;
  display:flex;
  flex-direction:column;
  gap:9px;
  border:1px solid #e5eaf1;
  border-radius:13px;
  background:#fff;
  box-shadow:
    0 2px 8px rgba(15,23,42,.025);
}

#customerOtpPolicy .form-grid label > span{
  min-height:36px;
  display:flex;
  align-items:flex-start;
  color:#657286;
  font-size:12px;
  font-weight:700;
  line-height:1.45;
}

#customerOtpPolicy .form-grid input[type="number"]{
  width:100%;
  height:43px;
  margin:0;
  padding:0 12px;
  border:1px solid #dce3ec;
  border-radius:10px;
  background:#fff;
  color:#0b1f3b;
  font-size:17px;
  font-weight:800;
  outline:none;
  box-sizing:border-box;
  transition:
    border-color .18s ease,
    box-shadow .18s ease;
}

#customerOtpPolicy .form-grid input[type="number"]:focus{
  border-color:#2d7df6;
  box-shadow:
    0 0 0 3px rgba(45,125,246,.10);
}

/* ---------- Bottom action ---------- */

#customerOtpPolicy .taqnyat-actions{
  margin:0;
  padding:17px 20px 19px;
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}

#customerOtpPolicySave{
  min-width:175px;
  height:44px;
  border-radius:11px !important;
  box-shadow:
    0 5px 13px rgba(181,126,31,.16);
}

#customerOtpPolicyStatus{
  margin:0 !important;
  flex:1;
  min-width:220px;
  padding:9px 12px;
  border-radius:10px;
  background:#f8fafc;
  color:#68768a;
  font-size:12px;
  line-height:1.6;
}

/* ---------- Compact layout ---------- */

@media (max-width:1200px){

  #customerOtpPolicy .provider-module-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  #customerOtpPolicy .form-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

@media (max-width:760px){

  #customerOtpPolicy{
    border-radius:14px;
  }

  #customerOtpPolicy > h3{
    padding:14px 15px;
  }

  #customerOtpPolicySub{
    padding:10px 15px 0;
  }

  #customerOtpPolicy .provider-module-grid{
    grid-template-columns:1fr;
    padding:12px 15px 15px;
  }

  #customerOtpPolicy .provider-module-grid .row{
    min-height:84px;
  }

  #customerOtpPolicy .form-grid{
    margin:0 15px;
    padding:12px;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  #customerOtpPolicy .taqnyat-actions{
    padding:15px;
  }

  #customerOtpPolicySave{
    width:100%;
  }

  #customerOtpPolicyStatus{
    width:100%;
    min-width:0;
  }
}

@media (max-width:480px){

  #customerOtpPolicy .form-grid{
    grid-template-columns:1fr;
  }
}
