/* ==========================================================
   NYMIQ
   PHONE SHIELD PREMIUM UI V1
   ========================================================== */


/* ----------------------------------------------------------
   PAGE PHONE SHIELD
   ---------------------------------------------------------- */

#phone{
  --phone-green:#3ef4a7;
  --phone-green-soft:rgba(62,244,167,.12);
  --phone-blue:#69a9ff;
  --phone-border:rgba(126,174,255,.20);
  --phone-bg:rgba(4,14,32,.82);
  --phone-bg-2:rgba(7,20,42,.94);
}


/* ----------------------------------------------------------
   CARTES
   ---------------------------------------------------------- */

#phone .panel{
  position:relative;
  overflow:hidden;
  border:1px solid var(--phone-border);
  border-radius:24px;
  background:
    radial-gradient(
      circle at 100% 0,
      rgba(39,117,255,.08),
      transparent 38%
    ),
    linear-gradient(
      155deg,
      rgba(7,20,43,.96),
      rgba(2,11,27,.94)
    );
  box-shadow:
    0 20px 55px rgba(0,0,0,.24),
    inset 0 1px 0 rgba(255,255,255,.025);
}


#phone .panel-head{
  gap:16px;
}


#phone .panel-head h3{
  letter-spacing:-.02em;
}


#phone .panel-head .muted{
  line-height:1.6;
}


/* ----------------------------------------------------------
   BOUTON ACTUALISER
   ---------------------------------------------------------- */

#refreshPhone{
  flex:0 0 auto !important;
  width:auto !important;
  min-width:128px !important;
  min-height:46px;
  padding:0 17px !important;
  white-space:nowrap !important;
  word-break:normal !important;
  overflow-wrap:normal !important;
  border-radius:14px;
  font-weight:750;
}


#refreshPhone::before{
  content:"↻";
  display:inline-block;
  margin-right:8px;
  font-size:18px;
  line-height:1;
}


/* ----------------------------------------------------------
   PRIVACY NUMBER
   ---------------------------------------------------------- */

#phone #privacyNumberStatus .success-box{
  position:relative;
  display:grid;
  gap:7px;
  margin:15px 0;
  padding:18px 20px;
  border:1px solid rgba(62,244,167,.22);
  border-radius:17px;
  background:
    linear-gradient(
      135deg,
      rgba(62,244,167,.10),
      rgba(62,244,167,.025)
    );
}


#phone #privacyNumberStatus .success-box b{
  font-size:20px;
  letter-spacing:.015em;
  color:#eafff5;
}


#phone #privacyNumberStatus .success-box span{
  color:#91a7bf;
  line-height:1.5;
}


/* ----------------------------------------------------------
   TRACE SLOTS
   ---------------------------------------------------------- */

#phone .phone-number-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-top:10px;
  padding:15px 16px;
  border:1px solid rgba(255,255,255,.075);
  border-radius:16px;
  background:rgba(255,255,255,.025);
}


#phone .phone-number-row > div{
  min-width:0;
}


#phone .phone-number-row b{
  display:block;
  margin-bottom:4px;
  color:#f4f8ff;
}


#phone .phone-number-row small{
  display:block;
  color:#8095b1;
  overflow-wrap:anywhere;
}


/* ----------------------------------------------------------
   BOITE SMS / OTP
   ---------------------------------------------------------- */

#phoneInbox{
  display:grid;
  gap:14px;
}


#phone .idfw-phone-inbox-item{
  position:relative;
  display:grid;
  gap:16px;
  margin-top:14px;
  padding:19px;
  overflow:hidden;

  border:
    1px solid
    rgba(108,162,255,.19);

  border-radius:20px;

  background:
    radial-gradient(
      circle at 100% 0,
      rgba(62,244,167,.06),
      transparent 34%
    ),
    linear-gradient(
      155deg,
      rgba(8,23,48,.96),
      rgba(4,14,31,.98)
    );

  box-shadow:
    0 16px 38px rgba(0,0,0,.20);
}


#phone .idfw-phone-inbox-item::before{
  content:"";
  position:absolute;
  left:0;
  top:17px;
  bottom:17px;
  width:3px;
  border-radius:0 4px 4px 0;

  background:
    linear-gradient(
      180deg,
      var(--phone-green),
      rgba(74,139,255,.78)
    );

  box-shadow:
    0 0 18px rgba(62,244,167,.30);
}


#phone .idfw-phone-inbox-item.read::before{
  opacity:.42;
}


/* ----------------------------------------------------------
   EN-TETE MESSAGE
   ---------------------------------------------------------- */

#phone .idfw-inbox-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}


#phone .idfw-inbox-source{
  display:flex;
  align-items:center;
  gap:11px;
  min-width:0;
}


#phone .idfw-source-icon{
  flex:0 0 40px;
  width:40px;
  height:40px;

  display:grid;
  place-items:center;

  border:
    1px solid
    rgba(62,244,167,.18);

  border-radius:13px;

  background:
    rgba(62,244,167,.07);

  color:var(--phone-green);

  font-size:17px;
}


#phone .idfw-inbox-source > div{
  min-width:0;
}


#phone .idfw-inbox-source b{
  display:block;
  color:#f5f8ff;
  font-size:15px;
  margin-bottom:3px;
}


#phone .idfw-inbox-source small{
  display:block;
  color:#8296b1;
  font-size:12px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}


#phone .idfw-inbox-meta{
  display:flex;
  align-items:flex-end;
  flex-direction:column;
  gap:6px;
  flex:0 0 auto;
}


#phone .idfw-inbox-meta small{
  color:#7187a4;
  font-size:11px;
}


#phone .idfw-type-badge{
  position:static !important;
  padding:6px 10px;
  font-size:10px;
  color:#baffdf;
  border-color:rgba(62,244,167,.18);
  background:rgba(62,244,167,.075);
}


/* ----------------------------------------------------------
   MESSAGE
   ---------------------------------------------------------- */

#phone .idfw-sms-message{
  padding:14px 15px;

  border:
    1px solid
    rgba(255,255,255,.065);

  border-radius:15px;

  background:
    rgba(255,255,255,.025);
}


#phone .idfw-sms-label{
  display:block;
  margin-bottom:7px;

  color:#7089aa;
  font-size:9px;
  font-weight:850;
  letter-spacing:.13em;
}


#phone .idfw-sms-message p{
  margin:0;
  color:#dbe6f6;
  font-size:14px;
  line-height:1.65;
}


/* ----------------------------------------------------------
   CODE OTP
   ---------------------------------------------------------- */

#phone .idfw-otp-zone{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:stretch;
  gap:10px;
}


#phone .idfw-otp-code{
  min-width:0;
  min-height:76px;

  display:flex;
  flex-direction:column;
  justify-content:center;

  padding:13px 17px;

  border:
    1px solid
    rgba(62,244,167,.25);

  border-radius:16px;

  background:
    radial-gradient(
      circle at 0 50%,
      rgba(62,244,167,.13),
      transparent 55%
    ),
    rgba(62,244,167,.045);
}


#phone .idfw-otp-code span{
  margin-bottom:3px;

  color:#68cda4;

  font-size:9px;
  font-weight:850;
  letter-spacing:.12em;
}


#phone .idfw-otp-code strong{
  color:#f5fff9;

  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    monospace;

  font-size:30px;
  font-weight:900;
  letter-spacing:.15em;
  line-height:1.08;

  text-shadow:
    0 0 20px
    rgba(62,244,167,.12);
}


/* ----------------------------------------------------------
   COPIER
   ---------------------------------------------------------- */

#phone .idfw-otp-copy{
  width:auto !important;
  min-width:102px;
  min-height:76px;

  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;

  margin:0 !important;
  padding:10px 15px !important;

  border:
    1px solid
    rgba(62,244,167,.30);

  border-radius:16px;

  background:
    linear-gradient(
      145deg,
      rgba(62,244,167,.18),
      rgba(62,244,167,.08)
    );

  color:#dffff0;

  font-size:12px;
  font-weight:800;
  letter-spacing:0;

  cursor:pointer;

  transition:
    transform .18s ease,
    border-color .18s ease,
    background .18s ease;
}


#phone .idfw-otp-copy:hover{
  transform:translateY(-1px);
  border-color:rgba(62,244,167,.55);
  background:rgba(62,244,167,.16);
}


#phone .idfw-otp-copy:active{
  transform:scale(.97);
}


#phone .idfw-copy-icon{
  font-size:19px;
  line-height:1;
}


/* ----------------------------------------------------------
   EXPIRATION
   ---------------------------------------------------------- */

#phone .idfw-expiry{
  display:flex;
  align-items:center;
  gap:7px;

  padding-top:2px;

  color:#667e9e;

  font-size:10px;
}


#phone .idfw-expiry b{
  margin-left:auto;
  color:#8299b7;
  font-weight:650;
}


/* ----------------------------------------------------------
   EMPTY
   ---------------------------------------------------------- */

#phone .empty{
  border-radius:17px;
  line-height:1.55;
}


/* ----------------------------------------------------------
   MOBILE
   ---------------------------------------------------------- */

@media(max-width:680px){

  #phone .panel{
    border-radius:20px;
  }


  #phone .panel-head{
    align-items:flex-start;
  }


  #refreshPhone{
    min-width:118px !important;
    max-width:145px;
    min-height:43px;
    font-size:13px;
  }


  #phone .idfw-phone-inbox-item{
    gap:14px;
    padding:17px 15px 17px 18px;
    border-radius:18px;
  }


  #phone .idfw-inbox-head{
    align-items:flex-start;
  }


  #phone .idfw-source-icon{
    flex-basis:37px;
    width:37px;
    height:37px;
  }


  #phone .idfw-inbox-source small{
    max-width:190px;
  }


  #phone .idfw-inbox-meta small{
    font-size:10px;
  }


  #phone .idfw-otp-zone{
    grid-template-columns:1fr;
  }


  #phone .idfw-otp-code{
    min-height:75px;
    text-align:center;
    align-items:center;
  }


  #phone .idfw-otp-code strong{
    font-size:29px;
  }


  #phone .idfw-otp-copy{
    width:100% !important;
    min-height:48px;

    flex-direction:row;

    border-radius:14px;
  }


  #phone .idfw-expiry{
    flex-wrap:wrap;
  }


  #phone .idfw-expiry b{
    width:100%;
    margin-left:22px;
  }

}


/* Très petits écrans */

@media(max-width:390px){

  #phone .idfw-inbox-meta small{
    display:none;
  }


  #phone .idfw-inbox-source small{
    max-width:160px;
  }


  #phone .idfw-otp-code strong{
    font-size:26px;
  }

}
