.page-header {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
  margin-top: 1rem;
}
.payment-tabs {
  display: flex;
  gap: 30px;
  margin-bottom: 20px;
}
.payment-tab {
  padding: 10px 0;
  cursor: pointer;
  font-weight: 500;
  color: #888;
  position: relative;
}
.payment-tab.active {
  color: #000;
  font-weight: 700;
}
.payment-tab.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #000;
}
.check-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #ddd;
}
.check-table th,
.check-table td {
  border: 1px solid #e5e5e5;
  padding: 14px;
  vertical-align: middle;
}
.check-table th {
  width: 25%;
  background: #f5f6f8;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
}
.check-table td {
  width: 25%;
}
.check-table input[type="text"],
.check-table input[type="date"] {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}
.radio-group {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.table-bottom-area {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
}
.agree-text {
  font-size: 14px;
  color: #3b82f6;
  cursor: pointer;
}
.agree-text:hover {
  text-decoration: underline;
}
.agree-btn {
  padding: 10px 18px;
  background-color: #3b82f6;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

.agree-btn.active {
  background-color: #7faee8;
}

.agree-btn:hover {
  background-color: #7faee8;
}
@media (max-width: 768px) {
  .check-table {
    border: none;
  }
  .check-table,
  .check-table tbody,
  .check-table tr {
    display: block;
    width: 100%;
  }
  .check-table tr {
    margin-bottom: 15px;
    border: 1px solid #e5e5e5;
  }
  .check-table th,
  .check-table td {
    display: block;
    width: 100%;
    border: none;
  }
  .check-table th {
    background: #f5f6f8;
    padding-bottom: 6px;
  }
  .check-table td {
    padding-top: 6px;
  }
  .table-bottom-area {
    flex-direction: column;
    align-items: flex-end;
  }
}

.custom-modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.modal-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.modal-close-icon {
  position: absolute;
  top: 10px;
  right: 15px;
  background: transparent;
  border: none;
  font-size: 30px;
  cursor: pointer;
  color: #666;
}
.modal-close-icon:hover {
  color: #000;
}

/* ─── Receipt Modal (wide, flex layout) ─────────────────────── */
.receipt-box {
  position: relative;
  width: 680px;
  max-width: 1100px;
  max-height: 85vh;
  background: #f0f2f5;
  border-radius: 12px;
  z-index: 10000;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.receipt-box p {
  font-size: 18px;
  margin-bottom: 8px;
  font-family: Pretendard;

}

.receipt-box p span {
  display: inline;
  color: #555;
  font-family: Pretendard;
  font-size: 18px;
  vertical-align: unset;
}

.receipt-header {
  font-weight: 700;
  text-align: center;
  font-size: 24px;
  color: #1a1a2e;
  padding: 20px 24px 14px;
  border-bottom: 1px solid #dde3ec;
  background: #fff;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  font-family: Pretendard;
}

.receipt-body {
  padding: 50px 35px;
}

/* ─── Receipt Card Grid ──────────────────────────────────────── */
#receipt-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  overflow-y: auto;
  padding: 20px;
  flex: 1;
}

.receipt-card {
  background: #fff;
  border: 1px solid #d0d7e3;
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 13px;
  line-height: 1.7;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.receipt-card-header {
  font-weight: 700;
  text-align: center;
  font-size: 16px;
  color: #1a1a2e;
  padding: 4px;
  border-bottom: 1px solid #d0d7e3;
}

.receipt-card p {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin: 3px 0;
  gap: 10px;
  padding: 2px 0;
}

.receipt-card p strong {
  color: #6b7280;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 12px;
}

.receipt-card p span {
  color: #111827;
  text-align: right;
  word-break: break-all;
  font-size: 12px;
}

.receipt-card hr {
  border: none;
  border-top: 1px solid #e5e9f0;
  margin: 10px 0;
}



.receipt-card .receipt-total strong {
  font-size: 18px;
  font-weight: 700;
}

.receipt-card .receipt-total span {
  font-size: 18px;
  font-weight: 700;
}

/* 감사 메시지 */
.receipt-card .receipt-thank {
  text-align: center;
  color: #9ca3af;
  font-size: 11px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed #e5e9f0;
  letter-spacing: 0.3px;
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  #receipt-list {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .receipt-header {
  	font-size: 18px;
  }
  .receipt-box p {
  	font-size: 15px;
  }
  .receipt-box p span {
  	font-size:15px;
  }
}

@media (max-width: 600px) {
  #receipt-list {
    grid-template-columns: 1fr !important;
  }
  .receipt-box {
    width: 90%;
    max-height: 90vh;
  }
}