@charset "UTF-8";

.golf-cost-page {
  max-width: 1200px;
}

.golf-cost-card {
  padding: 28px;
}

.cost-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 24px;
}

.cost-input-panel,
.cost-result-panel {
  padding: 24px;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  background: #fbfcfe;
}

.cost-result-panel {
  background: #ffffff;
}

.cost-section-title {
  margin: 0 0 16px;
  font-size: 23px;
  font-weight: 900;
  color: #111827;
}

.cost-title-gap {
  margin-top: 28px;
}

.cost-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.cost-option-box {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.cost-check-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #ffffff;
}

.cost-check-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  color: #111827;
}

.cost-check-card small {
  display: block;
  font-size: 13px;
  line-height: 1.6;
  color: #6b7280;
}

.cost-check-card input {
  width: 18px;
  height: 18px;
  accent-color: #111827;
  flex-shrink: 0;
  margin-top: 2px;
}

.cost-btn-row {
  margin-top: 22px;
}

.cost-message {
  margin: 14px 0 0;
  min-height: 22px;
  font-size: 14px;
  color: #4b5563;
}

.cost-message.is-success {
  color: #166534;
  font-weight: 700;
}

.cost-message.is-error {
  color: #b91c1c;
  font-weight: 700;
}

.cost-result-head {
  margin-bottom: 18px;
}

.cost-result-head h2 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 900;
  color: #111827;
}

.cost-result-head p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #6b7280;
}

.cost-summary-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.cost-summary-card {
  padding: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #f8fafc;
}

.cost-summary-card.primary {
  background: #111827;
  border-color: #111827;
}

.cost-summary-card span {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  color: #6b7280;
  font-weight: 700;
}

.cost-summary-card strong {
  display: block;
  font-size: 28px;
  color: #111827;
  font-weight: 900;
}

.cost-summary-card.primary span,
.cost-summary-card.primary strong {
  color: #ffffff;
}

.cost-breakdown-box,
.cost-settle-box {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #ffffff;
}

.cost-breakdown-box h3,
.cost-settle-box h3 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 900;
  color: #111827;
}

.cost-breakdown-box ul {
  margin: 0;
  padding-left: 18px;
  color: #475569;
  font-size: 14px;
  line-height: 1.8;
}

#payerSettleResult {
  font-size: 15px;
  line-height: 1.8;
  color: #374151;
}

.settle-highlight {
  display: block;
  margin-top: 8px;
  font-size: 22px;
  font-weight: 900;
  color: #111827;
}

@media (max-width: 1024px) {
  .cost-layout {
    grid-template-columns: 1fr;
  }

  .cost-result-panel {
    min-width: 0;
  }
}

@media (max-width: 768px) {
  .golf-cost-card {
    padding: 18px;
  }

  .cost-input-panel,
  .cost-result-panel {
    padding: 20px;
    border-radius: 20px;
  }

  .cost-grid,
  .cost-option-box {
    grid-template-columns: 1fr;
  }

  .cost-summary-card strong {
    font-size: 24px;
  }
}