.gsqb-builder{
  --gsqb-accent:#111111;
  --gsqb-text:#111111;
  --gsqb-muted:#5b5b5b;
  --gsqb-border:#e5e7eb;
  --gsqb-bg:#ffffff;
  --gsqb-bg-soft:#f8fafc;
  color:var(--gsqb-text);
  font-family:inherit;
}
.gsqb-builder *,
.gsqb-builder *::before,
.gsqb-builder *::after{box-sizing:border-box;}
.gsqb-builder a,
.gsqb-builder button,
.gsqb-builder input,
.gsqb-builder textarea,
.gsqb-builder select{font:inherit;}
.gsqb-builder .gsqb-title,
.gsqb-builder .gsqb-subtitle,
.gsqb-builder .gsqb-cat-title,
.gsqb-builder .gsqb-summary-box h3,
.gsqb-builder .gsqb-form-box h3,
.gsqb-builder .gsqb-tax-box h3,
.gsqb-builder .gsqb-field label,
.gsqb-builder .gsqb-template-title,
.gsqb-builder .gsqb-section-title,
.gsqb-builder .gsqb-item-title,
.gsqb-builder .gsqb-unit-price,
.gsqb-builder .gsqb-item-total,
.gsqb-builder .gsqb-summary-row strong,
.gsqb-builder .gsqb-template-price,
.gsqb-builder .gsqb-result strong{
  color:var(--gsqb-text) !important;
}
.gsqb-builder .gsqb-subtitle,
.gsqb-builder .gsqb-section-subtitle,
.gsqb-builder .gsqb-item-desc,
.gsqb-builder .gsqb-summary-hint,
.gsqb-builder .gsqb-summary-tax-note,
.gsqb-builder .gsqb-template-desc,
.gsqb-builder .gsqb-template-price-note,
.gsqb-builder .gsqb-unit,
.gsqb-builder .gsqb-auto-note,
.gsqb-builder .gsqb-privacy label{
  color:var(--gsqb-muted) !important;
}
.gsqb-section-title,
.gsqb-title{margin:0 0 6px;font-size:32px;font-weight:800;line-height:1.15;}
.gsqb-section-subtitle,
.gsqb-subtitle{margin:0 0 18px;font-size:14px;line-height:1.6;}

.gsqb-templates-section{margin-bottom:34px;}
.gsqb-template-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:28px;
  align-items:stretch;
  padding:38px clamp(24px,4vw,54px);
  border:1px solid rgba(245,130,32,.58);
  border-radius:28px;
  background:linear-gradient(180deg,rgba(255,248,240,.62),rgba(255,255,255,.28));
  box-shadow:0 18px 46px rgba(17,17,17,.04);
}
.gsqb-template-card{
  display:flex;
  flex-direction:column;
  width:100%;
  min-width:0;
  min-height:100%;
  height:100%;
  border:1px solid rgba(245,130,32,.24);
  border-radius:22px;
  overflow:hidden;
  background:var(--gsqb-bg);
  box-shadow:0 18px 36px rgba(17,17,17,.08);
  transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  cursor:pointer;
}
.gsqb-template-card:hover{transform:translateY(-2px);box-shadow:0 22px 42px rgba(17,17,17,.10);}
.gsqb-template-card.is-selected{border-color:#f58220;box-shadow:0 18px 42px rgba(245,130,32,.18);}
.gsqb-template-hero{
  min-height:170px;
  padding:24px 22px 22px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  background:linear-gradient(180deg,#fee2bc 0%,#fff7ec 100%);
}
.gsqb-template-badge{
  width:112px;
  height:112px;
  border:5px solid #ff7300;
  border-radius:999px;
  background:rgba(255,255,255,.90);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  color:#ff7300 !important;
  line-height:1;
  box-shadow:inset 0 0 0 2px rgba(255,115,0,.08);
}
.gsqb-template-badge-number{font-size:42px;font-weight:900;letter-spacing:-.03em;color:#ff7300 !important;}
.gsqb-template-badge-unit{margin-top:6px;font-size:15px;font-weight:900;color:#ff7300 !important;}
.gsqb-template-badge-label{
  margin-top:-2px;
  padding:5px 16px;
  border-radius:999px;
  background:#ff7300;
  color:#fff !important;
  font-size:13px;
  font-weight:900;
  line-height:1.1;
  text-transform:uppercase;
  letter-spacing:.01em;
  box-shadow:0 4px 12px rgba(255,115,0,.25);
}
.gsqb-template-body{padding:24px 28px 26px;display:flex;flex-direction:column;gap:14px;flex:1;}
.gsqb-template-pill{display:inline-flex;align-self:flex-start;padding:6px 14px;border-radius:999px;background:#fff0df;color:#ff7300 !important;font-size:13px;font-weight:800;line-height:1.2;}
.gsqb-template-title{margin:0;font-size:clamp(20px,1.65vw,24px);font-weight:900;line-height:1.22;letter-spacing:.01em;overflow-wrap:break-word;}
.gsqb-template-image-wrap{
  width:100%;
  aspect-ratio:4/3;
  background:#f4f4f5;
  overflow:hidden;
}
.gsqb-template-image-wrap img{width:100%;height:100%;object-fit:cover;display:block;}
.gsqb-template-desc{margin:0;font-size:15px;line-height:1.58;}
.gsqb-template-desc > :first-child{margin-top:0;}
.gsqb-template-desc > :last-child{margin-bottom:0;}
.gsqb-template-desc p{margin:0 0 10px;}
.gsqb-template-desc ul,
.gsqb-template-desc ol{margin:0 0 10px 20px;padding:0;}
.gsqb-template-desc li{margin:0 0 6px;}
.gsqb-template-desc a{color:#ff7300 !important;}
.gsqb-template-footer{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:end;
  gap:16px;
  margin-top:auto;
  padding-top:4px;
}
.gsqb-template-price-wrap{display:flex;flex-direction:column;gap:4px;min-width:0;}
.gsqb-template-price{display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px;font-size:clamp(24px,2.5vw,32px);font-weight:900;line-height:1.05;}
.gsqb-template-price-value,.gsqb-template-price-currency{white-space:nowrap;}
.gsqb-template-price-currency{font-size:.76em;line-height:1;}
.gsqb-template-price-note{font-size:12px;}

.gsqb-columns{display:flex;gap:22px;align-items:flex-start;}
.gsqb-col-items{flex:1;min-width:0;}
.gsqb-col-summary{width:360px;max-width:100%;position:sticky;top:20px;}

.gsqb-cat{margin-bottom:18px;border:1px solid var(--gsqb-border);border-radius:16px;overflow:hidden;background:var(--gsqb-bg);}
.gsqb-cat-title{margin:0;padding:14px 16px;background:#fafafa;border-bottom:1px solid var(--gsqb-border);font-size:17px;font-weight:800;}
.gsqb-cat-items{padding:6px 10px;}

.gsqb-item{display:flex;gap:12px;padding:12px 6px;border-bottom:1px solid #f0f0f0;align-items:flex-start;}
.gsqb-item:last-child{border-bottom:0;}
.gsqb-item-main{flex:1;min-width:0;}
.gsqb-item-title{font-weight:700;font-size:16px;line-height:1.35;}
.gsqb-item-desc{font-size:13px;margin-top:3px;line-height:1.5;}
.gsqb-item-link-wrap{margin-top:7px;}
.gsqb-item-link{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:700;color:var(--gsqb-accent) !important;text-decoration:none !important;}
.gsqb-item-link:hover{text-decoration:underline !important;}

.gsqb-item-right{display:flex;align-items:center;gap:14px;}
.gsqb-item-price{min-width:140px;text-align:right;}
.gsqb-unit-price{font-weight:800;font-size:17px;}
.gsqb-unit{display:block;font-size:12px;margin-top:1px;}

.gsqb-item-qty{min-width:120px;text-align:right;display:flex;flex-direction:column;align-items:flex-end;gap:4px;}
.gsqb-item-qty input[type="number"]{
  width:110px;max-width:110px;padding:8px 10px;border:1px solid #d1d5db;border-radius:12px;background:#fff;color:var(--gsqb-text);
}
.gsqb-item-qty input[type="number"]:focus,
.gsqb-field input:focus,
.gsqb-field textarea:focus,
.gsqb-field select:focus{
  outline:none;
  border-color:var(--gsqb-accent);
  box-shadow:0 0 0 3px rgba(17,17,17,.08);
}
.gsqb-toggle{display:flex;align-items:center;gap:8px;font-size:13px;}
.gsqb-toggle span{color:var(--gsqb-text);}
.gsqb-auto-note{font-size:11px;}
.gsqb-item-total{min-width:120px;text-align:right;font-weight:800;font-size:16px;}

.gsqb-tax-box,
.gsqb-summary-box,
.gsqb-form-box{border:1px solid var(--gsqb-border);border-radius:18px;padding:16px;background:var(--gsqb-bg);margin-bottom:14px;box-shadow:0 6px 18px rgba(17,17,17,.04);}
.gsqb-tax-box h3,
.gsqb-summary-box h3,
.gsqb-form-box h3{margin:0 0 12px;font-size:28px;font-weight:800;line-height:1.2;}
.gsqb-summary-row{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #f0f0f0;}
.gsqb-summary-row:last-child{border-bottom:0;}
.gsqb-summary-total strong{font-size:22px;}
.gsqb-summary-hint{margin:12px 0 0;font-size:12px;line-height:1.5;}
.gsqb-summary-row span{color:var(--gsqb-text) !important;}
.gsqb-summary-tax-note{margin:12px 0 0;font-size:13px;line-height:1.55;}

.gsqb-tax-options{display:flex;flex-direction:column;gap:12px;}
.gsqb-tax-option{
  display:flex;
  align-items:flex-start;
  gap:12px;
  padding:14px 16px;
  border:1px solid #d1d5db;
  border-radius:14px;
  background:#fff !important;
  cursor:pointer;
  transition:border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.gsqb-tax-option:hover{transform:translateY(-1px);}
.gsqb-tax-option.is-active{
  border-color:#f58220;
  background:#fff8f2 !important;
  box-shadow:0 0 0 3px rgba(245,130,32,.12);
}
.gsqb-tax-option input[type="radio"]{
  appearance:auto !important;
  -webkit-appearance:radio !important;
  width:18px !important;
  height:18px !important;
  min-width:18px;
  margin:2px 0 0;
  padding:0 !important;
  accent-color:#f58220;
  cursor:pointer;
  box-shadow:none !important;
}
.gsqb-tax-option-body{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1;}
.gsqb-tax-option-title{display:block;font-size:16px;font-weight:800;color:var(--gsqb-text) !important;}
.gsqb-tax-option-desc{display:block;font-size:14px;line-height:1.5;color:var(--gsqb-muted) !important;}

.gsqb-field{margin-bottom:12px;}
.gsqb-field label{display:block;font-weight:700;font-size:13px;margin-bottom:5px;}
.gsqb-field input,
.gsqb-field textarea,
.gsqb-field select{
  width:100%;padding:10px 12px;border:1px solid #d1d5db;border-radius:12px;background:#fff;color:var(--gsqb-text);
}
.gsqb-field textarea{min-height:96px;resize:vertical;}
.gsqb-privacy{font-size:12px;}
.gsqb-privacy-wrap{display:flex;gap:12px;align-items:flex-start;}
.gsqb-privacy label{display:block;font-weight:400;line-height:1.5;cursor:pointer;margin:0;}
.gsqb-privacy input[type="checkbox"]{
  appearance:auto !important;
  -webkit-appearance:checkbox !important;
  width:18px !important;
  height:18px !important;
  min-width:18px;
  margin:2px 0 0;
  padding:0 !important;
  accent-color:var(--gsqb-accent);
  cursor:pointer;
  box-shadow:none !important;
}

.gsqb-template-btn,
.gsqb-submit,
.gsqb-builder .gsqb-result a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border-radius:12px;
  border:1px solid var(--gsqb-accent);
  background:var(--gsqb-accent);
  color:#fff !important;
  text-decoration:none !important;
  font-weight:800;
  cursor:pointer;
  transition:opacity .15s ease, transform .15s ease, box-shadow .15s ease;
  box-shadow:none;
}
.gsqb-template-btn:hover,
.gsqb-submit:hover,
.gsqb-builder .gsqb-result a:hover{opacity:.94;transform:translateY(-1px);}
.gsqb-template-btn[disabled],
.gsqb-submit[disabled]{opacity:.65;cursor:not-allowed;transform:none;}
.gsqb-template-btn{padding:13px 22px;min-width:155px;background:#ff7300;border-color:#ff7300;color:#fff !important;white-space:nowrap;border-radius:999px;box-shadow:0 12px 22px rgba(255,115,0,.18);}
.gsqb-template-btn:hover{background:#de6f08;border-color:#de6f08;opacity:1;}
.gsqb-submit{width:100%;padding:14px 16px;background:#f58220;border-color:#f58220;color:#fff !important;box-shadow:0 12px 24px rgba(245,130,32,.18);border-radius:14px;}
.gsqb-submit:hover,.gsqb-builder .gsqb-result a:hover{background:#de6f08;border-color:#de6f08;opacity:1;}
.gsqb-builder .gsqb-result a{background:#f58220;border-color:#f58220;color:#fff !important;box-shadow:0 10px 20px rgba(245,130,32,.16);}

.gsqb-result{margin-top:12px;padding:12px 14px;border-radius:14px;background:var(--gsqb-bg-soft);border:1px solid var(--gsqb-border);font-size:13px;color:var(--gsqb-text);}
.gsqb-result a{padding:10px 14px;}

@media (max-width: 1060px){
  .gsqb-template-grid{grid-template-columns:repeat(2,minmax(0,1fr));padding:32px 26px;gap:22px;}
}

@media (max-width: 980px){
  .gsqb-columns{flex-direction:column;}
  .gsqb-col-summary{width:100%;position:static;}
  .gsqb-item{flex-direction:column;}
  .gsqb-item-right{justify-content:space-between;width:100%;}
  .gsqb-item-price,.gsqb-item-total{min-width:0;text-align:left;}
  .gsqb-item-qty{align-items:flex-start;text-align:left;}
}
@media (max-width: 640px){
  .gsqb-template-grid{grid-template-columns:1fr;padding:20px 14px;border-radius:22px;gap:18px;}
  .gsqb-section-title,
  .gsqb-title{font-size:26px;}
  .gsqb-tax-box h3,
  .gsqb-summary-box h3,
  .gsqb-form-box h3{font-size:24px;}
  .gsqb-template-hero{min-height:145px;}
  .gsqb-template-body{padding:20px 20px 22px;}
  .gsqb-template-badge{width:96px;height:96px;border-width:4px;}
  .gsqb-template-badge-number{font-size:36px;}
  .gsqb-template-title{font-size:22px;}
  .gsqb-template-footer{grid-template-columns:1fr;align-items:stretch;}
  .gsqb-template-price{white-space:normal;}
  .gsqb-template-btn{width:100%;min-width:0;}
}
