/* Prix & majorations (store-pricing.js). Feuille a part, comme site-studio.css. */

#store-pricing-host {
  display: grid;
  gap: 18px;
}

.sp-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}
.sp-head h3 { margin: 4px 0 6px; }
.sp-picker { min-width: 260px; }

.sp-notice {
  padding: 12px 16px;
  border-radius: var(--r-sm);
  font-weight: 600;
}
.sp-notice-green { background: var(--ok-soft); color: #11733f; }
.sp-notice-red { background: var(--danger-soft); color: #b4282d; }

.badge.gray { background: var(--surface-2); color: var(--ink-soft); }

.sp-rule {
  display: grid;
  grid-template-columns: auto minmax(160px, 220px) 1fr auto;
  align-items: end;
  gap: 16px;
}
@media (max-width: 900px) {
  .sp-rule { grid-template-columns: 1fr; }
}

.sp-seg {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface-2);
}
.sp-seg label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
}
.sp-seg label input { position: absolute; opacity: 0; pointer-events: none; }
.sp-seg label.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.sp-seg label.disabled { opacity: 0.45; cursor: not-allowed; }

.sp-example { margin: 0 0 10px; }
.sp-warn { margin: 14px 0 0; font-size: 12.5px; }

.sp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.sp-table-wrap { overflow-x: auto; }
.sp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.sp-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.sp-table td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.sp-table td small { display: block; }
.sp-table tr.sp-group th {
  padding-top: 18px;
  font-size: 13px;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
}
.sp-table tr.sp-off td { opacity: 0.55; }

.sp-inline { display: flex; align-items: center; gap: 6px; }
.sp-num { width: 110px; }
.sp-cell-actions { white-space: nowrap; text-align: right; }

.link-button {
  border: 0;
  background: none;
  color: var(--danger);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-left: 6px;
}

.sp-migration .sp-table input { width: 120px; }
