/* Simple GST Calculator (India) v1.2.0 */
.gst-calc-box{
  background:#fff;
  padding:22px;
  border-radius:14px;
  max-width:980px;
  margin:0 auto;
  box-shadow:0 12px 28px rgba(0,0,0,.12);
  border:1px solid rgba(0,0,0,.06);
  font-family: inherit;
}

.gst-row{ display:flex; gap:18px; flex-wrap:wrap; align-items:flex-end; }
.gst-row-2{ margin-top:14px; align-items:center; }

.gst-field{ flex:1; min-width:220px; }
.gst-field label{
  font-weight:700; display:flex; gap:10px; align-items:center;
  margin-bottom:8px; color:#0f172a;
}
.gst-small-label{ display:block; font-size:12px; font-weight:700; color:#475569; margin-bottom:8px; }

.gst-field input, .gst-field select{
  width:100%; padding:10px 12px; border-radius:10px;
  border:1px solid rgba(15, 23, 42, .18); background:#fff; font-size:15px; outline:none;
}
.gst-field input:focus, .gst-field select:focus{
  border-color: rgba(37, 99, 235, .65);
  box-shadow:0 0 0 4px rgba(37, 99, 235, .12);
}

.gst-radio-group{ flex:2; min-width:320px; }
.gst-radio{
  display:inline-flex; align-items:center; gap:8px; margin-right:14px;
  font-weight:600; color:#0f172a; font-size:14px; user-select:none;
}
.gst-radio input{ width:auto; }

.gst-actions{ display:flex; gap:10px; justify-content:flex-end; min-width:280px; }
#gst_calc_btn, .gst-btn-secondary{
  padding:10px 14px; border-radius:10px; border:1px solid transparent;
  cursor:pointer; font-weight:700; font-size:14px; white-space:nowrap;
}
#gst_calc_btn{ background:#2563eb; color:#fff; }
#gst_calc_btn:hover{ filter:brightness(.97); }
.gst-btn-secondary{ background:#f1f5f9; border-color: rgba(15, 23, 42, .12); color:#0f172a; }
.gst-btn-secondary:hover{ filter:brightness(.98); }

.gst-result{ margin-top:18px; }
.gst-math{
  display:flex; gap:14px; flex-wrap:wrap; align-items:center; justify-content:space-between;
  padding:16px; border-radius:14px; background:#f8fafc; border:1px solid rgba(15, 23, 42, .06);
}
.gst-math-box{ flex:1; min-width:180px; text-align:center; padding:10px 6px; }
.gst-op{ font-size:34px; font-weight:900; color:#0f172a; opacity:.75; }
.gst-value{ font-size:38px; font-weight:900; letter-spacing:-.5px; color:#0f172a; }
.gst-caption{ font-size:14px; font-weight:700; color:#1d4ed8; margin-top:4px; }

.gst-breakup{
  margin-top:14px; padding:14px 16px; border-radius:14px; background:#fff;
  border:1px solid rgba(15, 23, 42, .08);
}
.gst-breakup-title{ font-size:14px; font-weight:900; color:#0f172a; margin-bottom:10px; }
.gst-breakup-grid{ display:flex; gap:12px; flex-wrap:wrap; }
.gst-break-item{
  flex:1; min-width:180px; padding:12px; border-radius:12px; background:#f8fafc;
  border:1px solid rgba(15, 23, 42, .06); display:flex; align-items:center; justify-content:space-between;
  font-weight:800;
}
.gst-break-item span{ color:#334155; font-weight:800; }
.gst-break-item strong{ color:#16a34a; }

.gst-share{
  margin-top:14px; padding:14px 16px; border-radius:14px; background:#fff;
  border:1px solid rgba(15, 23, 42, .08);
}
.gst-share-buttons{ display:flex; gap:10px; flex-wrap:wrap; margin-top:12px; }
.gst-share-btn{
  padding:10px 14px; border-radius:999px; border:1px solid rgba(15,23,42,.12);
  background:#f8fafc; font-weight:800; cursor:pointer; font-size:14px;
}
.gst-share-btn:hover{ filter:brightness(.98); }

.gst-share-row{ display:flex; gap:10px; align-items:center; margin-top:8px; }
#gst_share_url{ flex:1; font-size:13px; color:#0f172a; }
.gst-hint{ margin-top:8px; font-size:12px; color:#64748b; font-weight:600; }

.gst-image-row{ margin-top:10px; }

.gst-flash{ box-shadow:0 0 0 4px rgba(34, 197, 94, .18) !important; }

/* Tooltip */
.gst-tooltip-wrap{ position:relative; display:inline-flex; align-items:center; }
.gst-tooltip-icon{
  width:18px; height:18px; border-radius:999px; display:inline-flex; align-items:center; justify-content:center;
  font-size:12px; font-weight:900; background:#e2e8f0; color:#0f172a; border:1px solid rgba(15,23,42,.12);
}
.gst-tooltip{
  position:absolute; left:0; top:26px; min-width:230px; max-width:280px; padding:10px 12px; border-radius:12px;
  background:#0f172a; color:#fff; font-size:12px; line-height:1.35; box-shadow:0 18px 40px rgba(0,0,0,.22);
  opacity:0; pointer-events:none; transform: translateY(-4px); transition: all .15s ease; z-index: 9999;
}
.gst-tooltip strong{ display:block; margin-bottom:6px; }
.gst-tooltip em{ opacity:.9; }
.gst-tooltip-wrap:hover .gst-tooltip,
.gst-tooltip-wrap:focus .gst-tooltip{ opacity:1; pointer-events:auto; transform: translateY(0); }

/* Calculate pulse */
.gst-calc-box.gst-calculated{ animation: gstPulse .18s ease-in-out; }
@keyframes gstPulse{ 0%{transform:scale(1);} 50%{transform:scale(1.008);} 100%{transform:scale(1);} }

@media (max-width: 720px){
  .gst-actions{ justify-content:stretch; flex-wrap:wrap; }
  #gst_calc_btn, .gst-btn-secondary{ width:100%; }
  .gst-op{ display:none; }
  .gst-value{ font-size:32px; }
  .gst-share-btn{ width:100%; text-align:center; }
}



/* === v1.2.1 FIX: Ensure share buttons are visible across themes === */
.gst-share-btn{
  background-color:#2563eb !important;
  color:#ffffff !important;
  border:none !important;
  font-weight:800;
  opacity:1 !important;
}
.gst-share-btn.gst-wa{ background-color:#25D366 !important; }
.gst-share-btn.gst-x{ background-color:#000000 !important; }
.gst-share-btn.gst-fb{ background-color:#1877F2 !important; }
.gst-share-btn.gst-ln{ background-color:#0A66C2 !important; }
.gst-share-btn.gst-tg{ background-color:#229ED9 !important; }
.gst-share-btn:hover{ filter:brightness(1.08); }

/* Make secondary action buttons clearly visible */
.gst-btn-secondary{
  background-color:#0f172a !important;
  color:#ffffff !important;
  border:none !important;
}
.gst-btn-secondary:hover{ background-color:#1e293b !important; }
