*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  background:#F3F3F3;

  font-family:
  -apple-system,
  BlinkMacSystemFont,
  sans-serif;

  color:#1F1F1F;

  overflow-x:hidden;
}

/* TOPBAR */

.topbar{
  height:18px;

  background:#17B26A;

  color:#fff;

  font-size:10px;

  display:flex;
  align-items:center;
  justify-content:center;

  gap:8px;

  position:sticky;
  top:0;
  z-index:999;
}

/* WRAPPER */

.checkout{
  width:100%;
  max-width:420px;

  margin:auto;

  padding-bottom:30px;
}

/* BANNER */

.banner{
  padding:12px 12px 8px;
}

.banner img{
  width:100%;

  display:block;

  border-radius:12px;

  object-fit:cover;
}

/* CARD */

.card{
  background:#fff;

  border:1px solid #E7E7E7;

  border-radius:14px;

  margin:0 12px 10px;

  overflow:hidden;
}

/* CARD HEADER */

.card-header{
  height:42px;

  padding:0 14px;

  display:flex;
  align-items:center;
  justify-content:space-between;

  border-bottom:1px solid #EFEFEF;

  font-size:12px;

  color:#555;

  cursor:pointer;

  user-select:none;
}

.card-header i{
  font-size:11px;

  transition:0.25s ease;
}

/* SUMMARY */

.summary-content{
  overflow:hidden;

  max-height:200px;

  transition:
  max-height 0.3s ease,
  opacity 0.2s ease;

  opacity:1;
}

.summary-content.closed{
  max-height:0;

  opacity:0;
}

#summaryIcon.rotate{
  transform:rotate(-180deg);
}

/* PRODUCT */

.product{
  display:flex;

  gap:12px;

  padding:14px;
}

.product img{
  width:54px;
  height:54px;

  border-radius:8px;

  object-fit:cover;

  flex-shrink:0;
}

.product-info{
  flex:1;
}

.product-info h2{
  font-size:13px;

  line-height:1.3;

  margin-bottom:6px;

  font-weight:600;
}

.price-row{
  display:flex;
  align-items:center;

  gap:6px;
}

.price-row strong{
  color:#14AE5C;

  font-size:15px;

  font-weight:700;
}

.price-row span{
  color:#888;

  font-size:11px;
}

/* FORM + PAYMENT + PIX */

.form-card,
.payment-card,
.pix{
  padding:14px;
}

/* SECTION TITLE */

.section-title{
  display:flex;
  align-items:center;

  gap:8px;

  margin-bottom:14px;

  font-size:12px;
  font-weight:600;

  color:#444;
}

.section-title i{
  color:#9B8D19;

  font-size:12px;
}

/* INPUT */

.input{
  height:42px;

  border:1px solid #DADADA;

  border-radius:8px;

  display:flex;

  align-items:center;

  gap:10px;

  padding:0 12px;

  margin-bottom:10px;

  background:#fff;

  transition:0.2s ease;
}

.input:focus-within{
  border-color:#B9B9B9;

  background:#FCFCFC;
}

.input i{
  color:#999;

  font-size:12px;
}

.input input{
  flex:1;

  border:none;
  outline:none;

  background:none;

  font-size:13px;

  color:#1F1F1F;
}

.input input::placeholder{
  color:#999;
}

/* PIX METHOD */

.pix-method{
  width:84px;
  height:34px;

  border:1px solid #DADADA;

  border-radius:8px;

  display:flex;

  align-items:center;
  justify-content:center;

  gap:8px;

  font-size:12px;

  margin-bottom:16px;

  background:#FAFAFA;
}

.pix-method i{
  color:#555;
}

/* PAYMENT INFO */

.payment-info{
  background:#F8F8F8;

  border:1px solid #EEEEEE;

  border-radius:10px;

  padding:12px;

  margin-bottom:16px;
}

.payment-info h3{
  font-size:11px;

  margin-bottom:8px;

  color:#333;
}

.payment-info p{
  font-size:10px;

  color:#777;

  line-height:1.5;

  margin-bottom:6px;
}

/* TOTAL */

.total{
  display:flex;
  align-items:center;
  justify-content:space-between;

  margin-bottom:14px;

  padding-top:4px;
}

.total span{
  font-size:11px;

  color:#777;
}

.total strong{
  color:#14AE5C;

  font-size:15px;

  font-weight:700;
}

/* BUTTON */

.buy-button{
  width:100%;
  height:46px;

  border:none;

  border-radius:8px;

  background:#17B26A;

  color:#fff;

  font-size:13px;
  font-weight:700;

  display:flex;

  align-items:center;
  justify-content:center;

  gap:8px;

  cursor:pointer;

  transition:0.2s ease;
}

.buy-button:hover{
  background:#14995B;
}

.buy-button:active{
  transform:scale(0.99);
}

.buy-button i{
  font-size:12px;
}

/* SECURE */

.secure{
  height:34px;

  border:1px solid #ECECEC;

  border-radius:8px;

  margin-top:12px;

  display:flex;

  align-items:center;
  justify-content:center;

  gap:6px;

  font-size:10px;

  color:#888;
}

.secure i{
  color:#17B26A;
}

/* PIX */

.pix-top{
  display:flex;
  align-items:center;
  justify-content:space-between;

  margin-bottom:16px;
}

.pix-top span{
  font-size:13px;

  font-weight:600;
}

#timer{
  color:#9B8D19;

  font-size:14px;

  font-weight:700;
}

.qr-code{
  width:100%;

  border-radius:12px;

  margin-bottom:12px;

  background:#fff;

  border:1px solid #ECECEC;
}

/* TEXTAREA */

textarea{
  width:100%;
  height:90px;

  border:1px solid #DADADA;

  border-radius:8px;

  padding:12px;

  resize:none;

  font-size:11px;

  margin-bottom:12px;

  outline:none;

  color:#333;

  background:#fff;
}

/* COPY BUTTON */

.copy-button{
  width:100%;
  height:42px;

  border:none;

  border-radius:8px;

  background:#111;

  color:#fff;

  font-size:12px;
  font-weight:600;

  cursor:pointer;

  transition:0.2s ease;
}

.copy-button:hover{
  background:#000;
}

.copy-button:active{
  transform:scale(0.99);
}

/* UTILITIES */

.hidden{
  display:none;
}

/* MOBILE */

@media(max-width:480px){

  .checkout{
    max-width:100%;
  }

  .banner{
    padding:10px 10px 6px;
  }

  .card{
    margin:0 10px 10px;
  }

}