/* TEXTORA POST PAYMENT CHECKOUT UI V2 */

:root{
  --post-ink:#053B49;
  --post-text:#182C33;
  --post-muted:#68787D;
  --post-line:#E4E1DA;
  --post-line-strong:#D6D2C8;
  --post-soft:#FAF9F6;
  --post-peach:#FF9E7A;
  --post-danger:#A33C28;
  --post-danger-soft:#FFF2ED;
  --post-ok:#236540;
  --post-ok-soft:#EEF8F1;
}

*{
  box-sizing:border-box;
}

.co-flow{
  margin:28px 0 0;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:9px;
}

.co-flow-step{
  position:relative;
  padding-top:16px;
  color:#9AA4A6;
  font-size:10px;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
}

.co-flow-step:before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:3px;
  border-radius:999px;
  background:#EAE7E0;
}

.co-flow-step.on{
  color:var(--post-ink);
}

.co-flow-step.on:before{
  background:var(--post-ink);
}

.co-email-panel{
  margin-top:30px;
}

.co-email-help{
  margin:11px 0 0;
  color:var(--post-muted);
  font-size:11px;
  line-height:1.55;
}

.co-payment-state{
  display:none;
  min-height:300px;
  padding:38px 0 10px;
  text-align:center;
}

.co-payment-state.show{
  display:block;
  animation:postReveal .22s ease both;
}

.co-state-icon{
  width:58px;
  height:58px;
  margin:0 auto 17px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--post-line);
  border-radius:18px;
  background:var(--post-soft);
  color:var(--post-ink);
  font-size:21px;
  font-weight:700;
}

.co-state-icon.error{
  border-color:#F1D1C7;
  background:var(--post-danger-soft);
  color:var(--post-danger);
}

.co-payment-state h2{
  margin:0;
  color:var(--post-text);
  font-size:27px;
  line-height:1.15;
  font-weight:650;
  letter-spacing:-.04em;
}

.co-payment-state p{
  max-width:470px;
  margin:11px auto 21px;
  color:var(--post-muted);
  font-size:13px;
  line-height:1.65;
}

.co-state-actions{
  width:min(370px,100%);
  margin:0 auto;
}

.co-state-actions .tx-btn + .tx-btn{
  margin-top:10px;
}

.co-modal{
  position:fixed;
  z-index:999999;
  inset:0;
  padding:24px;
  display:none;
  align-items:center;
  justify-content:center;
  overflow:auto;
  background:rgba(17,31,36,.48);
  backdrop-filter:blur(8px);
}

.co-modal.show{
  display:flex;
  animation:postModalFade .18s ease both;
}

.co-claim-card{
  width:min(545px,100%);
  margin:auto;
  overflow:hidden;
  border:1px solid #E7E3DB;
  border-radius:22px;
  background:#fff;
  box-shadow:
    0 34px 100px rgba(15,30,36,.22);
  animation:postModalRise .22s ease both;
}

.co-claim-inner{
  padding:35px 39px 38px;
}

.co-claim-brand{
  margin-bottom:27px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.co-claim-brand-name{
  display:flex;
  align-items:center;
  gap:9px;
  color:var(--post-ink);
  font-size:14px;
  font-weight:700;
}

.co-claim-mark{
  width:29px;
  height:29px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:9px;
  background:var(--post-ink);
  color:#fff;
  font-size:12px;
  font-weight:700;
}

.co-paid-badge{
  height:27px;
  padding:0 10px;
  display:inline-flex;
  align-items:center;
  border:1px solid #CFE5D7;
  border-radius:999px;
  background:var(--post-ok-soft);
  color:var(--post-ok);
  font-size:9px;
  font-weight:750;
  letter-spacing:.045em;
  text-transform:uppercase;
}

.co-claim-step{
  display:none;
}

.co-claim-step.show{
  display:block;
  animation:postReveal .22s ease both;
}

.co-claim-icon,
.otp-icon{
  width:54px;
  height:54px;
  margin:0 auto 18px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid #E5E1D9;
  border-radius:17px;
  background:var(--post-soft);
  color:var(--post-ink);
}

.co-claim-icon svg,
.otp-icon svg{
  width:25px;
  height:25px;
}

.co-claim-step h2{
  margin:0;
  color:var(--post-text);
  font-size:28px;
  line-height:1.14;
  font-weight:650;
  letter-spacing:-.045em;
  text-align:center;
}

.co-claim-description,
.otp-description{
  max-width:425px;
  margin:10px auto 24px;
  color:var(--post-muted);
  font-size:13px;
  line-height:1.65;
  text-align:center;
}

.co-locked-email{
  margin:0 0 20px;
  padding:11px 13px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  border:1px solid var(--post-line);
  border-radius:11px;
  background:var(--post-soft);
  color:var(--post-muted);
  font-size:11px;
}

.co-locked-email strong{
  min-width:0;
  overflow:hidden;
  color:var(--post-ink);
  font-size:12px;
  font-weight:650;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.co-claim-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}

.co-claim-field{
  margin-top:14px;
}

.co-claim-grid .co-claim-field{
  margin-top:0;
}

.co-claim-field label{
  display:block;
  margin:0 0 7px;
  color:#33484F;
  font-size:12px;
  font-weight:600;
}

.co-claim-field input{
  width:100%;
  height:48px;
  padding:0 13px;
  border:1px solid var(--post-line-strong);
  border-radius:11px;
  outline:0;
  background:#fff;
  color:var(--post-text);
  font:inherit;
  font-size:14px;
  transition:
    border-color .15s ease,
    box-shadow .15s ease;
}

.co-claim-field input:focus{
  border-color:var(--post-ink);
  box-shadow:0 0 0 3px rgba(5,59,73,.08);
}

.co-password-wrap{
  position:relative;
}

.co-password-wrap input{
  padding-right:62px;
}

.co-password-toggle{
  position:absolute;
  top:50%;
  right:8px;
  height:31px;
  padding:0 8px;
  transform:translateY(-50%);
  border:0;
  border-radius:8px;
  background:transparent;
  color:var(--post-ink);
  font-size:11px;
  font-weight:650;
  cursor:pointer;
}

.co-password-toggle:hover{
  background:#F3F1EC;
}

.co-strength{
  margin-top:8px;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:5px;
}

.co-strength i{
  height:4px;
  border-radius:999px;
  background:#EAE7E0;
}

.co-strength[data-score="1"] i:nth-child(-n+1){
  background:#E97649;
}

.co-strength[data-score="2"] i:nth-child(-n+2){
  background:#D89C2D;
}

.co-strength[data-score="3"] i:nth-child(-n+3){
  background:#6D9C54;
}

.co-strength[data-score="4"] i:nth-child(-n+4){
  background:var(--post-ok);
}

.tx-optional{
  color:#8A9699;
  font-size:10px;
  font-weight:500;
}

.co-claim-terms{
  margin-top:17px;
  display:grid;
  grid-template-columns:17px 1fr;
  align-items:start;
  gap:10px;
  color:var(--post-muted);
  font-size:11px;
  line-height:1.55;
}

.co-claim-terms input{
  width:16px;
  height:16px;
  margin-top:1px;
  accent-color:var(--post-ink);
}

.co-claim-terms a{
  color:var(--post-ink);
  font-weight:600;
  text-decoration:none;
}

.co-claim-error,
.form-error.otp-error{
  margin-top:9px;
  color:var(--post-danger);
  font-size:12px;
  line-height:1.45;
  text-align:left;
}

.co-claim-error:empty,
.form-error.otp-error:empty{
  display:none;
}

.otp-inputs{
  width:min(390px,100%);
  margin:3px auto 0;
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:9px;
}

.otp-input{
  width:100%;
  min-width:0;
  height:55px;
  padding:0;
  border:1px solid var(--post-line-strong);
  border-radius:11px;
  outline:0;
  background:#fff;
  color:var(--post-text);
  font-size:21px;
  font-weight:650;
  text-align:center;
}

.otp-input:focus{
  border-color:var(--post-ink);
  box-shadow:0 0 0 3px rgba(5,59,73,.08);
}

.otp-actions{
  margin-top:17px;
}

.otp-resend{
  margin-top:13px;
  color:var(--post-muted);
  font-size:11px;
  text-align:center;
}

.otp-resend-button{
  padding:0;
  border:0;
  background:transparent;
  color:var(--post-ink);
  font-size:11px;
  font-weight:650;
  cursor:pointer;
}

.otp-resend-button:disabled{
  opacity:.48;
  cursor:not-allowed;
}

.co-claim-success-icon{
  width:62px;
  height:62px;
  margin:0 auto 18px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid #CDE5D6;
  border-radius:19px;
  background:var(--post-ok-soft);
  color:var(--post-ok);
  font-size:25px;
  font-weight:750;
}

.tx-btn.loading{
  pointer-events:none;
  opacity:.82;
}

.tx-btn .tx-spin{
  display:none;
}

.tx-btn.loading .tx-spin{
  display:inline-block;
}

body.co-modal-open{
  overflow:hidden;
}

@keyframes postReveal{
  from{
    opacity:0;
    transform:translateY(5px);
  }

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

@keyframes postModalFade{
  from{opacity:0}
  to{opacity:1}
}

@keyframes postModalRise{
  from{
    opacity:0;
    transform:translateY(12px) scale(.985);
  }

  to{
    opacity:1;
    transform:translateY(0) scale(1);
  }
}

@media(max-width:620px){
  .co-modal{
    padding:12px;
    align-items:flex-start;
  }

  .co-claim-card{
    margin:10px auto;
    border-radius:19px;
  }

  .co-claim-inner{
    padding:27px 20px 30px;
  }

  .co-claim-grid{
    grid-template-columns:1fr;
    gap:14px;
  }

  .otp-inputs{
    gap:6px;
  }

  .otp-input{
    height:49px;
    border-radius:9px;
    font-size:18px;
  }
}


/* TEXTORA CHECKOUT CTA FLOOR V1 */

/*
Desktop checkout uses the full available card height.
The email field remains near the top while the primary
checkout action and trust message sit near the bottom.
*/

#checkoutView{
  width:100%;
}

@media(min-width:761px){
  .co-main{
    display:flex;
    align-items:stretch;
  }

  #checkoutView{
    flex:1 1 auto;
    min-height:100%;
    display:flex;
    flex-direction:column;
  }

  #checkoutView .co-email-panel{
    flex:1 1 auto;
    min-height:0;
    margin-top:38px;
    display:flex;
    flex-direction:column;
  }

  #checkoutView .co-email-panel .tx-field{
    flex:0 0 auto;
  }

  #checkoutButton{
    margin-top:auto;
  }

  #checkoutView .co-email-help{
    margin-top:15px;
    margin-bottom:0;
  }

  .co-payment-state{
    width:100%;
  }
}

@media(max-width:760px){
  #checkoutView{
    display:block;
  }

  #checkoutButton{
    margin-top:22px;
  }
}
