/* 公開ウィジェット: iframe埋め込み前提・mobile-first・1カラム */

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #1a1a1a;
  background: #f5f5f5;
}

.widget {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 1rem;
  box-sizing: border-box;
}

.widget__title {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
}

.widget__loading,
.widget__error {
  padding: 1rem;
  text-align: center;
  color: #5c5c5c;
}

.widget__error {
  color: #c00;
}

.widget__content[hidden],
.widget__error[hidden],
.widget__loading[hidden] {
  display: none !important;
}

/* カテゴリカード */
.widget__category {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  margin-bottom: 1rem;
  overflow: hidden;
}

.widget__category-title {
  margin: 0;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  background: #f8f9fa;
  border-bottom: 1px solid #e8e8e8;
}

.widget__category-body {
  padding: 0.5rem 0;
}

/* サービス行 */
.widget__service {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f0f0f0;
  min-height: 44px;
  box-sizing: border-box;
}

.widget__service:last-child {
  border-bottom: none;
}

.widget__service-checkbox {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin: 0;
  cursor: pointer;
}

.widget__service-name {
  flex: 1;
  margin: 0;
  font-size: 0.9375rem;
}

.widget__service-qty {
  width: 3rem;
  padding: 0.35rem 0.25rem;
  font-size: 1rem;
  text-align: center;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  box-sizing: border-box;
}

.widget__service-qty:disabled {
  background: #f5f5f5;
  color: #999;
}

.widget__service-price {
  min-width: 5rem;
  text-align: right;
  font-weight: 500;
}

/* 合計 */
.widget__total {
  margin-top: 1rem;
  padding: 1rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.widget__total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.widget__total-row + .widget__total-row {
  margin-top: 0.5rem;
}

.widget__total-row--tax .widget__total-label {
  font-size: 0.875rem;
}

.widget__total-label {
  font-size: 0.9375rem;
  color: #5c5c5c;
}

.widget__total-amount {
  font-size: 1.5rem;
  font-weight: 700;
}

.widget__total-tax {
  font-size: 1rem;
  color: #5c5c5c;
}
