:root{
  --bg:#f8f1e7;
  --surface:#fffaf4;
  --surface-strong:#fff;
  --text:#3f2b20;
  --text-soft:#866a58;
  --line:rgba(199,146,84,.24);
  --primary:#d8a85f;
  --primary-hover:#c9934d;
  --gold-soft:#2b2116;
  --gold-pale:#1b1712;
  --danger:#ffd1d1;
  --danger-bg:rgba(180,35,24,.18);
  --success:#b7f2c7;
  --success-bg:rgba(2,122,72,.2);
}

*{box-sizing:border-box}
[hidden]{display:none !important}
html{scroll-behavior:smooth}
body{
  margin:0;
  min-height:100vh;
  background:linear-gradient(180deg, #fbf5ec 0%, #f3e8d9 100%);
  color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

button,
input{
  font:inherit;
}

.page{
  min-height:100vh;
  padding:32px 14px 46px;
}

.checkout-card{
  width:min(100%, 520px);
  margin:0 auto;
  background:linear-gradient(180deg, #fffaf4, #fff6eb);
  border:1px solid rgba(216,168,95,.26);
  border-radius:28px;
  padding:26px 20px 24px;
  box-shadow:0 24px 54px rgba(108,71,44,.12), 0 1px 0 rgba(255,255,255,.92) inset;
}

.form-intro{
  text-align:center;
  margin-bottom:22px;
}

.form-kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin:0 0 12px;
  color:#d8a85f;
  font-size:12px;
  font-weight:800;
  letter-spacing:.1em;
  text-transform:uppercase;
}

.form-kicker::before{
  content:"";
  width:14px;
  height:14px;
  border-radius:4px;
  background:linear-gradient(180deg,#d7b27d,#b98548);
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M17 8h-1V6a4 4 0 10-8 0v2H7a2 2 0 00-2 2v9a2 2 0 002 2h10a2 2 0 002-2v-9a2 2 0 00-2-2zm-6 8.73V17a1 1 0 012 0v-.27a2 2 0 10-2 0zM10 8V6a2 2 0 114 0v2h-4z'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M17 8h-1V6a4 4 0 10-8 0v2H7a2 2 0 00-2 2v9a2 2 0 002 2h10a2 2 0 002-2v-9a2 2 0 00-2-2zm-6 8.73V17a1 1 0 012 0v-.27a2 2 0 10-2 0zM10 8V6a2 2 0 114 0v2h-4z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.form-title{
  margin:0;
  font-size:24px;
  line-height:1.22;
  font-weight:700;
  letter-spacing:-.025em;
  color:#3a261b;
}

.summary-price{
  margin:8px 0 0;
  font-size:28px;
  line-height:1;
  font-weight:700;
  letter-spacing:-.025em;
  color:#2f3441;
}

.summary-price-note{
  margin:8px 0 0;
  color:var(--text-soft);
  font-size:12px;
  font-weight:500;
}

.field-group{
  margin-bottom:16px;
}

.field-group label{
  display:block;
  margin-bottom:10px;
  color:var(--text);
  font-size:14px;
  font-weight:700;
  letter-spacing:-.01em;
}

.field-group input{
  width:100%;
  height:48px;
  padding:0 16px;
  color:#4a3328;
  background:#fff;
  border:1px solid rgba(216,168,95,.28);
  border-radius:12px;
  outline:none;
  transition:border-color .15s ease, box-shadow .15s ease;
  font-size:14px;
  font-weight:500;
}

.field-group input::placeholder{
  color:#a78a74;
}

.field-group input:focus{
  border-color:#c79254;
  box-shadow:0 0 0 4px rgba(199,146,84,.14);
}

.trust-inline{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:0;
  margin:2px 0 18px;
  padding:2px 0 0;
}

.trust-inline span{
  display:flex;
  position:relative;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  min-height:66px;
  padding:0 9px;
  color:#876b58;
  font-size:11px;
  font-weight:600;
  line-height:1.28;
  text-align:center;
}

.trust-inline span + span{
  border-left:1px solid rgba(216,168,95,.2);
}

.trust-inline span::before{
  content:"";
  width:30px;
  height:30px;
  margin:0 0 7px;
  background:#b98548;
  flex:0 0 auto;
  mask:center/contain no-repeat;
  -webkit-mask:center/contain no-repeat;
}

.trust-inline strong,
.trust-inline b,
.trust-inline em{
  display:inline;
  color:#876b58;
  font:inherit;
}

.trust-inline b{
  color:#503a2d;
  font-weight:800;
}

.trust-inline em{
  color:#b9a189;
  font-style:normal;
  font-weight:600;
}

.trust-inline span:nth-child(1)::before{
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='black' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l7 3v6c0 5.2-3.4 9.8-7 11-3.6-1.2-7-5.8-7-11V5l7-3zm-1 12.2l4.5-4.5-1.4-1.4-3.1 3.1-1.6-1.6-1.4 1.4 3 3z'/%3E%3C/svg%3E");
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='black' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l7 3v6c0 5.2-3.4 9.8-7 11-3.6-1.2-7-5.8-7-11V5l7-3zm-1 12.2l4.5-4.5-1.4-1.4-3.1 3.1-1.6-1.6-1.4 1.4 3 3z'/%3E%3C/svg%3E");
}

.trust-inline span:nth-child(2)::before{
  width:34px;
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='black' viewBox='0 0 28 24'%3E%3Cpath d='M3 6.5A2.5 2.5 0 015.5 4h17A2.5 2.5 0 0125 6.5v11a2.5 2.5 0 01-2.5 2.5h-17A2.5 2.5 0 013 17.5v-11zm2 1V9h18V7.5a.5.5 0 00-.5-.5h-17a.5.5 0 00-.5.5zM5 13v4.5a.5.5 0 00.5.5h17a.5.5 0 00.5-.5V13H5zm2 2h5v1.5H7V15z'/%3E%3C/svg%3E");
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='black' viewBox='0 0 28 24'%3E%3Cpath d='M3 6.5A2.5 2.5 0 015.5 4h17A2.5 2.5 0 0125 6.5v11a2.5 2.5 0 01-2.5 2.5h-17A2.5 2.5 0 013 17.5v-11zm2 1V9h18V7.5a.5.5 0 00-.5-.5h-17a.5.5 0 00-.5.5zM5 13v4.5a.5.5 0 00.5.5h17a.5.5 0 00.5-.5V13H5zm2 2h5v1.5H7V15z'/%3E%3C/svg%3E");
}

.trust-inline span:nth-child(3)::before{
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M4.75 6.75h14.5v10.5H4.75z'/%3E%3Cpath d='M5.25 7.25l6.75 5.3 6.75-5.3'/%3E%3Cpath d='M5.45 16.9l4.7-4.05'/%3E%3Cpath d='M18.55 16.9l-4.7-4.05'/%3E%3C/svg%3E");
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M4.75 6.75h14.5v10.5H4.75z'/%3E%3Cpath d='M5.25 7.25l6.75 5.3 6.75-5.3'/%3E%3Cpath d='M5.45 16.9l4.7-4.05'/%3E%3Cpath d='M18.55 16.9l-4.7-4.05'/%3E%3C/svg%3E");
}

.payment-shell{
  position:relative;
  min-height:72px;
  border:1px solid rgba(199,146,84,.26);
  border-radius:13px;
  background:#fff;
  padding:10px;
  margin-bottom:10px;
  box-shadow:0 12px 28px rgba(77,51,40,.06), 0 1px 0 rgba(255,255,255,.86) inset;
}

.payment-step{
  margin-top:18px;
}

.payment-step-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  margin:0 0 10px;
  color:#7d6254;
}

.payment-step-head span{
  color:#b98548;
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.payment-step-head strong{
  color:var(--text);
  font-size:14px;
  font-weight:800;
}

.payment-loader{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:32px;
}

.loader-spinner,
.button-spinner{
  width:16px;
  height:16px;
  border-radius:999px;
  border:2px solid rgba(199,146,84,.18);
  border-top-color:#b98548;
  animation:spin .7s linear infinite;
}

@keyframes spin{
  to{transform:rotate(360deg)}
}

.payment-element{
  min-height:0;
  opacity:0;
  transition:opacity .15s ease;
}

.payment-element.is-ready{
  opacity:1;
}

.form-message{
  margin:12px 0;
  border-radius:12px;
  padding:12px 14px;
  font-size:13px;
  line-height:1.5;
}

.bank-method-row{
  width:100%;
  min-height:54px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:0 0 14px;
  padding:0 14px;
  border:1px solid rgba(199,146,84,.24);
  border-radius:13px;
  background:rgba(255,255,255,.8);
  color:#6d4e3f;
  cursor:pointer;
}

.bank-method-left{
  display:flex;
  align-items:center;
  gap:10px;
}

.bank-method-icon{
  width:16px;
  height:16px;
  background:#b98548;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='black' viewBox='0 0 24 24'%3E%3Cpath d='M3 6a2 2 0 012-2h14a2 2 0 012 2v2H3V6zm0 4h18v8a2 2 0 01-2 2H5a2 2 0 01-2-2v-8zm4 3v2h5v-2H7z'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='black' viewBox='0 0 24 24'%3E%3Cpath d='M3 6a2 2 0 012-2h14a2 2 0 012 2v2H3V6zm0 4h18v8a2 2 0 01-2 2H5a2 2 0 01-2-2v-8zm4 3v2h5v-2H7z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.bank-method-text{
  font-size:14px;
  font-weight:500;
}

.bank-method-arrow{
  width:14px;
  height:14px;
  background:#b98548;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='black' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='black' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") center/contain no-repeat;
  transition:transform .18s ease;
}

.bank-method-row[aria-expanded="true"] .bank-method-arrow{
  transform:rotate(180deg);
}

.form-message.is-error{
  border:1px solid #fecdca;
  background:var(--danger-bg);
  color:var(--danger);
}

.form-message.is-success{
  border:1px solid #abefc6;
  background:var(--success-bg);
  color:var(--success);
}

.cta-note{
  margin:10px 0 12px;
  text-align:center;
  color:#8d7364;
  font-size:12px;
  line-height:1.45;
  font-weight:500;
}

.submit-button{
  width:100%;
  min-height:48px;
  border:none;
  border-radius:999px;
  background:linear-gradient(135deg,#e2c18f 0%, #c79254 48%, #a96f36 100%);
  color:#fffaf2;
  font-size:16px;
  font-weight:700;
  line-height:1;
  cursor:pointer;
  transition:transform .15s ease, box-shadow .15s ease, opacity .15s ease;
  letter-spacing:-.01em;
  box-shadow:0 16px 34px rgba(199,146,84,.32), inset 0 1px 0 rgba(255,255,255,.32);
}

.submit-button:hover:not(:disabled){
  transform:translateY(-1px);
  box-shadow:0 20px 42px rgba(199,146,84,.38), inset 0 1px 0 rgba(255,255,255,.32);
}

.submit-button:disabled{
  cursor:not-allowed;
  opacity:.65;
}

.submit-button.is-loading{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
}

.button-spinner{
  border-color:rgba(255,255,255,.28);
  border-top-color:#fff;
}

.checkout-divider{
  height:1px;
  background:rgba(199,146,84,.18);
  margin:18px 0 14px;
}

.checkout-help{
  color:#8d7364;
  font-size:13px;
  font-weight:500;
  line-height:1.5;
  text-align:center;
}

.bank-panel{
  margin-top:14px;
}

.bank-panel-inner{
  border:1px solid var(--line);
  border-radius:16px;
  background:rgba(255,255,255,.76);
  padding:14px;
}

.bank-panel-head h3{
  margin:0;
  font-size:15px;
  line-height:1.3;
  font-weight:700;
  color:var(--text);
}

.bank-panel-head p{
  margin:6px 0 0;
  color:var(--text-soft);
  font-size:12px;
  line-height:1.5;
}

.bank-grid{
  display:grid;
  gap:12px;
  margin-top:12px;
}

.bank-qr-box,
.bank-details{
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
}

.bank-qr-box{
  width:min(100%, 190px);
  margin:0 auto;
  padding:8px;
}

.bank-qr-image{
  display:block;
  width:100%;
  height:auto;
  border-radius:10px;
}

.bank-details{
  padding:12px;
  display:grid;
  gap:10px;
}

.bank-row{
  padding-bottom:10px;
  border-bottom:1px solid var(--line);
}

.bank-row:last-child{
  padding-bottom:0;
  border-bottom:none;
}

.bank-label{
  display:block;
  margin-bottom:4px;
  color:var(--text-soft);
  font-size:11px;
  font-weight:600;
}

.bank-value{
  display:block;
  color:var(--text);
  font-size:13px;
  line-height:1.5;
  word-break:break-word;
}

.back-link{
  margin-top:14px;
  border:none;
  background:none;
  padding:0;
  color:var(--primary);
  font-size:12px;
  font-weight:600;
  cursor:pointer;
}

.back-link:hover{
  color:var(--primary-hover);
}

.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

.exit-intent-overlay{
  position:fixed;
  inset:0;
  z-index:9999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  background:rgba(8,8,12,.74);
  backdrop-filter:blur(3px);
}

.exit-intent-modal{
  position:relative;
  width:min(100%, 460px);
  border-radius:22px;
  border:1px solid rgba(255,212,0,.28);
  background:linear-gradient(180deg, #171826 0%, #11121c 100%);
  color:#f9efe2;
  padding:24px 20px 20px;
  box-shadow:0 28px 70px rgba(0,0,0,.52);
  text-align:center;
}

.exit-intent-close{
  position:absolute;
  top:8px;
  right:10px;
  width:32px;
  height:32px;
  border:none;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  color:#f6ead7;
  font-size:22px;
  line-height:1;
  cursor:pointer;
}

.exit-intent-kicker{
  margin:0 0 8px;
  color:#ffd400;
  font-size:12px;
  font-weight:800;
  letter-spacing:.09em;
  text-transform:uppercase;
}

.exit-intent-modal h2{
  margin:0 0 10px;
  font-size:28px;
  line-height:1.15;
  color:#fff4e4;
}

.exit-intent-text{
  margin:0 0 16px;
  color:#d8c9b5;
  font-size:14px;
  line-height:1.45;
}

.exit-intent-cta{
  width:100%;
  min-height:48px;
  border:none;
  border-radius:999px;
  background:linear-gradient(135deg,#ffe37a 0%, #ffd400 48%, #e9bb00 100%);
  color:#2c2100;
  font-size:16px;
  font-weight:800;
  cursor:pointer;
}

@media (min-width:640px){
  .page{
    padding:36px 18px 48px;
  }

  .checkout-card{
    padding:30px 26px 26px;
  }

  .summary-price{
    font-size:30px;
  }

  .form-title{
    font-size:26px;
  }
}

@media (max-width:639px){
  html,body{max-width:100%;overflow-x:hidden}
  .page{
    padding:14px 10px 28px;
  }
  .checkout-card{
    border-radius:16px;
    padding:14px 12px 14px;
  }
  .form-kicker{
    letter-spacing:.12em;
    font-size:11px;
  }
  .form-title{
    font-size:20px;
    line-height:1.16;
    margin-bottom:4px;
  }
  .summary-card{
    grid-template-columns:1fr;
    gap:10px;
  }
  .summary-price{
    font-size:28px;
  }
  .trust-inline{
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:0;
  }
  .trust-inline span{
    padding:8px 6px 6px;
    font-size:11px;
    line-height:1.35;
  }
  .trust-inline span::before{
    width:24px;
    height:24px;
    margin:0 0 5px;
  }
  .field-group input,
  .field-group select,
  .field-group textarea{
    min-height:46px;
  }
  .payment-step{
    margin-top:12px;
    border-radius:14px;
    padding:12px;
  }
  .submit-button{
    min-height:46px;
    font-size:15px;
  }
  .checkout-help{
    font-size:12px;
  }
  .form-intro{
    margin-bottom:14px;
  }
  .field-group{
    margin-bottom:10px;
  }
  .field-group label{
    margin-bottom:6px;
    font-size:13px;
  }
  .cta-note{
    margin:8px 0 8px;
    font-size:11px;
  }
  .exit-intent-modal{
    border-radius:18px;
    padding:20px 14px 14px;
  }
  .exit-intent-modal h2{
    font-size:24px;
  }
}
