/* My Account > Spending Controls (responsible-play.php). Theme tokens with
   fallbacks; every text colour keeps at least 4.5:1 on its background. */
/* Full content width, in line with every other account section. */
.pp-rg { max-width: none; }
.pp-rg-intro { line-height: 1.6; color: var(--pp-text, #17171A); }
.pp-rg-card {
  background: var(--pp-card, #fff);
  border: 1px solid var(--pp-border, #EAEAEC);
  border-radius: var(--pp-radius-card, 16px);
  padding: 18px 18px 20px;
  margin: 0 0 18px;
}
.pp-rg-card h3 { margin: 0 0 12px; font-size: 1.15rem; }
.pp-rg-spent { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pp-rg-spent li { background: var(--pp-surface, #FBF8EF); border-radius: 12px; padding: 12px; min-width: 0; }
.pp-rg-spent-label { display: block; font-size: .78rem; color: var(--pp-text-muted, #6B6B70); font-weight: 600; }
.pp-rg-spent-value { display: block; font-size: 1.3rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--pp-ink, #14141A); }
.pp-rg-spent-of { display: block; font-size: .8rem; color: var(--pp-text-muted, #6B6B70); }
.pp-rg-row { padding: 12px 0; border-bottom: 1px solid var(--pp-border, #EAEAEC); }
.pp-rg-row:first-of-type { padding-top: 0; }
.pp-rg-row label { display: block; font-weight: 700; margin-bottom: 6px; }
.pp-rg-span { font-weight: 400; color: var(--pp-text-muted, #6B6B70); }
.pp-rg-input { position: relative; max-width: 240px; }
.pp-rg-currency { position: absolute; z-index: 1; pointer-events: none; left: 14px; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--pp-text-muted, #6B6B70); }
/* Theme form styles set input padding with higher specificity, so the
   room for the pound sign needs the same weight to stick. */
.pp-rg .pp-rg-input input[type="number"] {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px 10px 32px !important;
  border: 1px solid #C9C9CF;
  border-radius: 12px;
  font-size: 1rem;
  background: #fff;
}
.pp-rg input:focus-visible, .pp-rg button:focus-visible { outline: 2px solid var(--pp-red, #D10A0A); outline-offset: 2px; }
.pp-rg-note { margin: 6px 0 0; font-size: .86rem; color: var(--pp-text-muted, #6B6B70); line-height: 1.5; }
.pp-rg-note strong { color: var(--pp-ink, #14141A); }
.pp-rg-linkbtn {
  background: none; border: 0; padding: 0; margin: 0;
  color: var(--pp-red-text, #B00A0A); font-weight: 600; text-decoration: underline; cursor: pointer; font-size: inherit;
}
.pp-rg-help { font-size: .86rem; color: var(--pp-text-muted, #6B6B70); margin: 12px 0; line-height: 1.5; }
.pp-rg-btn { border-radius: 999px !important; min-height: 46px; padding: 12px 26px !important; font-weight: 700; }
.pp-rg-btn-dark { background: var(--pp-ink, #14141A) !important; color: #fff !important; border-color: var(--pp-ink, #14141A) !important; }
.pp-rg fieldset { border: 0; background: none !important; padding: 0 !important; margin: 0 0 12px !important; min-width: 0; }
.pp-rg legend { font-weight: 700; margin: 0 0 8px !important; padding: 0 !important; float: none; background: none !important; }
.pp-rg-choices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pp-rg-choice,
.pp-rg label.pp-rg-choice {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid #C9C9CF; border-radius: 12px; padding: 10px 12px; cursor: pointer; min-height: 46px;
}
.pp-rg-choice:has(input:checked) { border-color: var(--pp-ink, #14141A); background: var(--pp-surface, #FBF8EF); }
/* The label prefix outranks the theme's `.woocommerce-account label { display: inline-block }`. */
.pp-rg-confirm,
.pp-rg label.pp-rg-confirm { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 14px; line-height: 1.45; cursor: pointer; }
.pp-rg-confirm input { margin-top: 3px; flex: 0 0 auto; }
.pp-rg-onbreak {
  background: #FFF6DA; border: 1px solid #F3D98A; border-radius: 12px; padding: 12px 14px; color: #3D2E00; font-weight: 600; line-height: 1.5;
}
.pp-rg-support { font-size: .9rem; color: var(--pp-text-muted, #6B6B70); line-height: 1.55; }
.pp-rg-support a { color: var(--pp-red-text, #B00A0A); font-weight: 600; }
@media (max-width: 600px) {
  .pp-rg-spent { grid-template-columns: 1fr; }
  .pp-rg-spent li { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
  .pp-rg-spent-label { flex: 1 0 100%; }
  .pp-rg-spent-value, .pp-rg-spent-of { display: inline; }
  .pp-rg-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pp-rg-input { max-width: none; }
  .pp-rg-btn { width: 100%; }
}

/* The theme styles account fieldsets as cards; the break length pills are not one. */
.woocommerce-account .woocommerce-MyAccount-content .pp-rg fieldset { border: 0; padding: 0; margin: 0 0 14px; background: none; box-shadow: none; }
.woocommerce-account .woocommerce-MyAccount-content .pp-rg-card h3 { margin-top: 0; }
