#cost_a {
  width: 100%;
  padding: 120px 0;
  background: #E3DDD7;
  /* 좌측 영역(그룹 세로칸 + 구분칸) 합계 폭 / 그룹 세로칸 폭 */
  --cost-region: 260px;
  --cost-group: 52px;
}

#cost_a .cost-inner {
  max-width: 1300px;
  width: 90%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
}

#cost_a .tit-div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}

#cost_a .st-tit {
  font-weight: 700;
  font-family: Paperlogy;
}

#cost_a .st-sub-txt {
  /* color: #444; */
  /* color: #5f432c;
opacity: 0.8;
font-size: 18px;
text-align: center;
font-family: 'Paperlogy'; */

}

#cost_a .cost-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

/* 탭 */
#cost_a .cost-tab-wrap {
  width: 100%;
  display: flex;
  gap: 20px;
  align-items: flex-end;
  justify-content: center;
}

#cost_a .cost-tab {
  width: 130px;
  height: 52px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: #9d8f8c;
  color: #fff;
  font-size: 24px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}

#cost_a .cost-tab:hover {
  background: #8b7e7b;
}

#cost_a .cost-tab.active {
  background: radial-gradient(
    ellipse 100% 38.31% at 50% 0%,
    #ff4713 0%,
    #d12e00 100%
  );
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* 테이블 */
#cost_a .cost-table-wrap {
  width: 1000px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0.9;
}

#cost_a .cost-table-scroll {
  border-radius: 12px;
  overflow: hidden;
}

#cost_a .cost-table {
  width: 100%;
  border-collapse: collapse;
}

#cost_a .cost-table thead tr {
  border-bottom: 2px solid #381804;
}

#cost_a .cost-table thead th {
  height: 56px;
  padding: 0 16px;
  font-size: 20px;
  font-weight: 700;
  color: #381804;
  vertical-align: middle;
}

#cost_a .cost-table thead th.col-category {
  width: var(--cost-region);
  background: #eee8dc;
  text-align: center;
}

#cost_a .cost-table thead th.col-detail {
  text-align: center;
}

#cost_a .cost-table thead th.col-price {
  width: 240px;
  text-align: center;
}

#cost_a .cost-table thead th .price-unit {
  font-weight: 400;
}

#cost_a .cost-table tbody tr {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
}

#cost_a .cost-table tbody tr:last-child {
  border-bottom: none;
}

#cost_a .cost-table tbody td {
  padding: 12px 16px;
  font-size: 20px;
  vertical-align: middle;
  word-break: keep-all;
}

#cost_a .cost-table tbody td.col-category {
  background: #ece5d8;
  color: #4a2f27;
  font-weight: 700;
  text-align: center;
  width: var(--cost-region);
  word-break: keep-all;
}

/* 그룹 세로 병합칸 (인테리어) */
#cost_a .cost-table tbody td.col-group {
  width: var(--cost-group);
  background: #ece5d8;
  color: #4a2f27;
  font-weight: 700;
  text-align: center;
  vertical-align: middle;
  writing-mode: vertical-rl;
  text-orientation: upright;
  letter-spacing: 3px;
  padding: 12px 4px;
  white-space: nowrap;
  word-break: keep-all;
  border-right: 1px solid rgba(56, 24, 4, 0.12);
}

/* 그룹에 속한 구분칸은 그룹칸 폭만큼 줄어듦 */
#cost_a .cost-table tbody td.col-category--grouped {
  width: calc(var(--cost-region) - var(--cost-group));
}

#cost_a .cost-table tbody td.col-detail {
  color: #505050;
  font-weight: 400;
}

#cost_a .cost-table tbody td.col-price {
  color: #111;
  font-weight: 700;
  text-align: center;
  width: 240px;
}

#cost_a .cost-table .price-note {
  font-weight: 400;
}

/* 합계 */
#cost_a .cost-total-row {
  display: flex;
  align-items: center;
  background: var(--brand-main, #d71718);
  border-radius: 12px;
  overflow: visible;
}

#cost_a .total-label {
  width: var(--cost-region);
  flex-shrink: 0;
  padding: 16px;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
}

#cost_a .total-price {
  flex: 1;
  padding: 16px 40px 16px 16px;
  color: #fff;
  font-size: 32px;
  font-family: 'GmarketSans', 'Gmarket Sans', sans-serif;
  font-weight: 500;
  text-align: right;
  display: inline-block;
  transform-origin: right center;
  animation: price-zoom 1s ease-in-out infinite alternate;
}

@keyframes price-zoom {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.15);
  }
}

#cost_a .cost-note {
  text-align: right;
  color: #505050;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  word-break: keep-all;
}

@media (max-width: 1100px) {
  #cost_a .cost-table-wrap {
    width: 100%;
  }
}

@media (max-width: 1024px) {
  #cost_a .cost-content {
    gap: 30px;
  }
  #cost_a {
    --cost-region: 28%;
    --cost-group: 44px;
  }
  #cost_a .cost-table thead th,
  #cost_a .cost-table tbody td {
    font-size: 18px;
  }
  #cost_a .total-label {
    font-size: 20px;
  }
  #cost_a .total-price {
    font-size: 28px;
  }
  #cost_a .cost-note {
    font-size: 18px;
    letter-spacing: -0.45px;
  }
}

@media (max-width: 900px) {
  #cost_a {
    padding: 80px 0;
  }
  #cost_a .cost-inner {
    gap: 50px;
  }
  #cost_a .st-tit {
    font-size: 40px;
  }
  #cost_a .st-sub-tit {
    font-size: 18px;
  }
  #cost_a .cost-note {
    font-size: 16px;
    letter-spacing: -0.4px;
  }
  #cost_a .cost-tab {
    width: 80px;
    height: 44px;
    font-size: 18px;
  }
  #cost_a .cost-table thead th,
  #cost_a .cost-table tbody td {
    font-size: 15px;
    padding: 10px;
  }
  #cost_a {
    --cost-region: 100px;
    --cost-group: 34px;
  }
  #cost_a .cost-table thead th.col-price,
  #cost_a .cost-table tbody td.col-price {
    width: 120px;
  }
  #cost_a .total-label {
    width: var(--cost-region);
    font-size: 18px;
    padding: 12px;
  }
  #cost_a .total-price {
    font-size: 22px;
    padding-right: 16px;
  }
  #cost_a .cost-note {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  #cost_a {
    padding: 70px 0;
    gap: 40px;
  }
  #cost_a .cost-inner {
    gap: 40px;
  }
  #cost_a .tit-div {
    gap: 20px;
  }
  #cost_a .cost-total-row {
    margin-top: -6px;
  }
  #cost_a .cost-content {
    gap: 20px;
  }
  #cost_a {
    --cost-region: 20%;
    --cost-group: 30px;
  }
  #cost_a .cost-table thead th.col-price {
    width: 40%;
  }
  #cost_a .total-label,
  #cost_a .cost-table thead th,
  #cost_a .cost-table tbody td {
    font-size: 16px;
  }
  #cost_a .total-price {
    font-size: 20px;
    padding: 10px 15px 10px 10px;
  }
  #cost_a .cost-table thead th {
    padding: 0px 8px;
  }
  #cost_a .cost-table tbody td {
    padding: 10px 8px;
  }
  #cost_a .cost-tab {
    font-size: 18px;
    letter-spacing: -0.45px;
    line-height: 130%;
    width: 80px;
    height: 42px;
  }
}

@media (max-width: 650px) {
  #cost_a .st-tit {
    font-size: 32px;
  }
  #cost_a .st-sub-tit {
    font-size: 15px;
  }
  #cost_a .cost-tab-wrap {
    gap: 10px;
  }
  #cost_a .cost-tab {
    width: 68px;
    height: 40px;
    font-size: 15px;
  }
  #cost_a .cost-table thead th,
  #cost_a .cost-table tbody td {
    font-size: 12px;
    padding: 8px 6px;
  }
  #cost_a {
    --cost-region: 90px;
    --cost-group: 26px;
  }
  #cost_a .cost-table thead th.col-price,
  #cost_a .cost-table tbody td.col-price {
    width: 80px;
  }
  #cost_a .total-label {
    width: var(--cost-region);
    font-size: 15px;
    padding: 10px 8px;
  }
  #cost_a .total-price {
    font-size: 16px;
    padding: 10px 12px;
  }
  #cost_a .cost-note {
    font-size: 12px;
  }
  #cost_a .cost-note {
    font-size: 14px;
    letter-spacing: -0.35px;
  }
  #cost_a .cost-table-scroll,
  #cost_a .cost-total-row {
    border-radius: 6px;
  }
}

@media (max-width: 480px) {
  #cost_a .cost-tab-wrap {
    gap: 10px;
  }
  #cost_a .cost-tab,
  #cost_a .cost-tab-badge-wrap {
    width: calc(25% - 7.5px);
  }
  #cost_a .cost-tab-badge-wrap .cost-tab {
    width: 100%;
  }
  #cost_a .total-label {
    font-size: 12px;
    line-height: 14px; /* 116.667% */
    letter-spacing: -0.3px;
    padding: 8px;
  }
  #cost_a .cost-table tbody td {
    padding: 6px 8px;
  }
  #cost_a .total-price {
    font-size: 16px;
    line-height: 120%; /* 19.2px */
    letter-spacing: -0.4px;
    padding: 8px 20px 8px 8px;
  }
  #cost_a .cost-table thead th,
  #cost_a .cost-table tbody td {
    font-size: 10px;
    line-height: 14px; /* 140% */
    letter-spacing: -0.25px;
  }
  #cost_a .cost-table thead th {
    height: auto;
    padding: 7px 8px;
  }
  #cost_a .cost-note {
    font-size: 12px;
    letter-spacing: -0.3px;
  }
}

@media (max-width: 400px) {
  #cost .cost-note {
    font-size: 10px;
    letter-spacing: -0.25px;
  }
}

@media (max-width: 350px) {
  #cost .cost-note {
    font-size: 9px;
  }
}
