/* =====================================================
   공통 빠른 계산기
===================================================== */

.quick-calc-modal{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  background:rgba(15,23,42,.38);
  z-index:9999;
}

.quick-calc-modal.is-open{
  display:flex;
}

.quick-calc-box{
  width:380px;
  max-width:calc(100vw - 32px);
  background:#ffffff;
  border-radius:20px;
  padding:22px;
  box-shadow:0 28px 80px rgba(15,23,42,.30);
  border:1px solid #dbe4f0;
}

.quick-calc-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:16px;
  font-size:20px;
  font-weight:900;
  color:#0f172a;
}

.quick-calc-close{
  border:0;
  background:#f1f5f9;
  width:36px;
  height:36px;
  border-radius:10px;
  font-size:24px;
  cursor:pointer;
}

.quick-calc-display{
  width:100%;
  height:60px;
  margin-bottom:14px;
  border:1px solid #cbd5e1;
  border-radius:14px;
  font-size:28px;
  font-weight:900;
  text-align:right;
  padding:0 16px;
  box-sizing:border-box;
  color:#0f172a;
}

.quick-calc-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
}

.quick-calc-grid button{
  height:54px;
  border:0;
  border-radius:13px;
  background:#f1f5f9;
  color:#0f172a;
  font-size:18px;
  font-weight:850;
  cursor:pointer;
}

.quick-calc-grid button:hover{
  background:#dbeafe;
}

.quick-calc-grid .wide{
  grid-column:span 2;
}

.quick-calc-equal{
  background:#2563eb !important;
  color:#fff !important;
}

.quick-calc-apply{
  background:#0f172a !important;
  color:#fff !important;
  font-size:15px !important;
}
