#gagf-wrap * { box-sizing: border-box; }

#gagf-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1a1a1a;
}

.gagf-header { margin-bottom: 1.5rem; }
.gagf-header h2 { font-size: 22px; font-weight: 600; margin: 0 0 4px; }
.gagf-header p { font-size: 14px; color: #666; margin: 0 0 10px; }
.gagf-price-tag {
  display: inline-block;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 14px;
  font-weight: 600;
}

.gagf-mode-toggle { display: flex; gap: 10px; margin-bottom: 1.5rem; }
.gagf-mode-btn {
  flex: 1;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  color: #666;
  text-align: center;
  transition: all 0.15s;
}
.gagf-mode-btn .gagf-mode-icon { display: block; font-size: 20px; margin-bottom: 4px; }
.gagf-mode-btn.active {
  border: 2px solid #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 600;
}

.gagf-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.gagf-card-title {
  font-size: 11px;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}
.gagf-hint { font-size: 13px; color: #6b7280; margin-bottom: 1rem; }

.gagf-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gagf-field label { display: block; font-size: 13px; color: #374151; margin-bottom: 5px; font-weight: 500; }
.gagf-field input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  color: #111;
  background: #fff;
}
.gagf-field input:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 2px rgba(37,99,235,0.15); }
.gagf-optional { font-weight: 400; color: #9ca3af; }

.gagf-info-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #1d4ed8;
  margin-bottom: 1rem;
}

.gagf-meals-table { width: 100%; border-collapse: collapse; }
.gagf-meals-table thead th {
  font-size: 11px;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}
.gagf-meals-table thead th:last-child { text-align: right; }
.gagf-meal-row { border-bottom: 1px solid #f3f4f6; transition: background 0.1s; }
.gagf-meal-row:last-child { border-bottom: none; }
.gagf-meal-row.gagf-selected { background: #eff6ff; }
.gagf-meal-row.gagf-unavail { opacity: 0.3; pointer-events: none; }
.gagf-meals-table td { padding: 10px; vertical-align: middle; }

.gagf-meal-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
}
.gagf-meal-label input[type=checkbox] { width: 16px; height: 16px; cursor: pointer; accent-color: #2563eb; }

.gagf-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 99px;
  font-weight: 600;
}
.gagf-badge-midi { background: #fef3c7; color: #92400e; }
.gagf-badge-soir { background: #f3f4f6; color: #6b7280; }

.gagf-counter-cell { text-align: right; }
.gagf-counter {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  overflow: hidden;
  opacity: 0.3;
  pointer-events: none;
  transition: opacity 0.15s;
}
.gagf-counter.gagf-active { opacity: 1; pointer-events: all; }
.gagf-ctr-btn {
  background: #f9fafb;
  border: none;
  width: 28px;
  height: 28px;
  font-size: 16px;
  cursor: pointer;
  color: #374151;
  padding: 0;
  line-height: 1;
}
.gagf-ctr-btn:hover { background: #e5e7eb; }
.gagf-counter span {
  min-width: 32px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  background: #fff;
  padding: 0 4px;
  line-height: 28px;
  display: inline-block;
}
.gagf-price-cell { font-size: 13px; color: #6b7280; text-align: right; }

.gagf-summary {
  background: #f9fafb;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-top: 1.5rem;
}
.gagf-sum-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 6px;
}
.gagf-sum-total {
  display: flex;
  justify-content: space-between;
  font-size: 17px;
  font-weight: 700;
  color: #111;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e5e7eb;
}

.gagf-pay-btn {
  width: 100%;
  margin-top: 1.5rem;
  padding: 14px;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.gagf-pay-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.gagf-pay-btn:hover:not(:disabled) { background: #333; }

.gagf-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #dc2626;
  margin-top: 1rem;
}
.gagf-hidden { display: none !important; }

@media (max-width: 600px) {
  .gagf-grid2 { grid-template-columns: 1fr; }
  .gagf-mode-toggle { flex-direction: column; }
}
