/* Account composition only. Shared controls, fields, cards and overlays are owned
   by components.css, loaded by template.html (also for checkout/wizard consumers). */
/* ---------- standard account layout & shell (section 9) ---------- */
.pm-ui .container.payment-container,
.pm-ui .payment-container,
.pm-ui .account-container {
  max-width: 1332px;
  box-sizing: border-box;
}
.pm-ui #accountContent {
  min-width: 0;
}
.pm-shell,.payment-shell,.groups-shell,.routines-shell {max-width:1100px;margin:0 auto;width:100%;padding:0 0 12px}
.pm-header {margin:0 0 22px}
.pm-header h1 {margin:0;font-size:var(--pm-h1-size, 30px);line-height:1.2;font-weight:var(--pm-weight-strong, 600) !important;letter-spacing:-0.01em;color:var(--pm-ink)}
.pm-header h2 {margin:0;font-size:var(--pm-h2-size, 26px);line-height:1.25;font-weight:var(--pm-weight-strong, 600) !important;color:var(--pm-ink)}
.pm-header .pm-sub,.pm-header p {margin:7px 0 0;color:var(--pm-muted);font-size:15px;line-height:1.5}
/* paragraphs span the card: no artificial text measure — the card's own padding is the boundary */

/* ---------- account switches: same glyphs as the order skip control ---------- */
/* Keep native checkbox/checked/change semantics. Small glyphs sit in a >=44px
   labelled row; only the order-date placement scales with its heading. */
body.my input[type=checkbox].toggle {
  appearance:none;
  font-size:16px;
  border:none!important;
  border-radius:0!important;
  box-shadow:none!important;
  background-color:transparent!important;
  background-repeat:no-repeat;
  background-position:center;
  background-size:contain;
  width:2.04em;
  height:1.25em;
  min-height:0;
  max-width:none;
  position:relative;
  z-index:auto;
  vertical-align:middle;
  margin:0;
  padding:0;
  outline:none;
  flex:0 0 auto;
  cursor:pointer;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='4 52 248 152'><path d='M176,56H80a72,72,0,0,0,0,144h96a72,72,0,0,0,0-144Z' fill='%23c40000'/><path d='M112,128A32,32,0,1,1,80,96,32,32,0,0,1,112,128Z' fill='%231a1a1a' opacity='0.2'/><path d='M176,56H80a72,72,0,0,0,0,144h96a72,72,0,0,0,0-144Zm0,128H80A56,56,0,0,1,80,72h96a56,56,0,0,1,0,112ZM80,88a40,40,0,1,0,40,40A40,40,0,0,0,80,88Zm0,64a24,24,0,1,1,24-24A24,24,0,0,1,80,152Z' fill='%231a1a1a'/></svg>");
}
body.my input[type=checkbox].toggle:checked {
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='4 52 248 152'><path d='M176,56H80a72,72,0,0,0,0,144h96a72,72,0,0,0,0-144Z' fill='%23709E77'/><path d='M208,128a32,32,0,1,1-32-32A32,32,0,0,1,208,128Z' fill='%231a1a1a' opacity='0.2'/><path d='M176,56H80a72,72,0,0,0,0,144h96a72,72,0,0,0,0-144Zm0,128H80A56,56,0,0,1,80,72h96a56,56,0,0,1,0,112Zm0-96a40,40,0,1,0,40,40A40,40,0,0,0,176,88Zm0,64a24,24,0,1,1,24-24A24,24,0,0,1,176,152Z' fill='%231a1a1a'/></svg>");
}
body.my input[type=checkbox].toggle::before {content:none!important} /* retire the global ✕/✔ knob */
body.my input[type=checkbox].toggle:disabled {opacity:0.45;cursor:default}

body.my input[type=checkbox].toggle:focus-visible {outline:2px solid var(--pm-focus);outline-offset:3px}
body.my .toggle-row,body.my .pm-toggle-row,body.my label.inline:has(>input.toggle) {display:flex;align-items:center;gap:12px;min-height:44px;max-width:100%;margin:10px 0;flex-wrap:nowrap}
body.my .toggle-row>label,body.my .pm-toggle-row>span,body.my label.inline:has(>input.toggle)>span {min-width:0;margin:0;font-size:14px;font-weight:var(--pm-weight-strong,600);color:var(--pm-ink);line-height:1.5}
body.my .toggle-row>label,body.my .pm-toggle-row,body.my label.inline:has(>input.toggle) {cursor:pointer}
body.my .toggle-row>label {display:flex;align-items:center;min-height:44px;flex:1}

/* ---------- meta rows & action rows ---------- */
.pm-meta,.gp-meta,.holiday-meta {color:var(--pm-muted);font-size:14px;line-height:1.45;margin:2px 0}
.pm-warn-line,.gp-warn {color:var(--pm-primary-dark);font-weight:var(--pm-weight-strong, 600);font-size:14px;margin:6px 0}
.pm-actions-row,.gp-actions-row,.holiday-actions {margin-top:12px;display:flex;gap:10px;flex-wrap:wrap;align-items:center}

/* ---------- copy-link rows ---------- */
.pm-copylink,.ref-link,.gp-link {display:flex;align-items:center;gap:12px;border:1px dashed var(--pm-border);border-radius:var(--pm-radius-control);background:var(--pm-surface-warm);padding:12px 14px;flex-wrap:wrap;margin:8px 0;max-width:100%}
.pm-copylink-code,.ref-link-code,.gp-link-url {font-weight:var(--pm-weight-strong, 600);color:var(--pm-ink);word-break:break-word;overflow-wrap:anywhere;font-size:14px;flex:1;min-width:180px;line-height:1.4}
.pm-copylink .pm-btn,.ref-link .button-primary,.gp-link .gp-btn {margin-left:auto;flex:0 0 auto}
@media (max-width:520px) {
  .pm-copylink,.ref-link,.gp-link {flex-direction:column;align-items:stretch;gap:10px}
  .pm-copylink-code,.ref-link-code,.gp-link-url {text-align:center;min-width:0;width:100%}
  .pm-copylink .pm-btn,.ref-link .button-primary,.gp-link .gp-btn {width:100%;margin-left:0}
}

/* ---------- progress bars ---------- */
.pm-bar,.gp-moq .bar {display:inline-block;width:140px;height:9px;background:var(--pm-border-soft);border-radius:999px;overflow:hidden;vertical-align:1px;margin:0 8px}
.pm-bar span,.gp-moq .bar span {display:block;height:100%;background:var(--pm-primary);border-radius:999px}
.pm-bar.met span,.gp-moq .met span {background:var(--pm-success)}

/* ---------- voting tiles & stars ---------- */
.pm-tile {background:#fff;border:1px solid var(--pm-border);border-radius:14px;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 5px 14px -10px rgba(0,0,0,.18);margin-bottom:14px;height:calc(100% - 14px)}
.pm-tile>img {width:100%;height:160px;object-fit:cover;display:block}
.pm-tile .pm-tile-body {padding:12px 14px 14px;display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;flex:1 1 auto}
.pm-tile h5 {margin:0;font-weight:var(--pm-weight-strong, 600);font-size:15px;color:var(--pm-ink)}
.pm-stars {display:flex;gap:4px}
.pm-stars .star {width:24px;height:24px;cursor:pointer;color:#d9cfc2;transition:color .15s ease,transform .15s ease}
.pm-stars .star .pm-dim {fill:currentColor}
.pm-stars .star:hover {transform:scale(1.15)}
.pm-stars .star.active {color:#e8a33d}
.pm-stars .star.active .pm-dim {opacity:1}
.pm-page .pm-comment-toggle,.pm-page .comment-toggle {display:inline-flex;align-items:center;gap:6px;font-size:12.5px;font-weight:var(--pm-weight-strong, 600);border:0 !important;background:transparent;color:var(--pm-primary);cursor:pointer;padding:4px 8px;border-radius:8px;font-family:inherit;box-shadow:none;min-width:0}
.pm-page .pm-comment-toggle:hover,.pm-page .comment-toggle:hover {background:#f6efe6 !important;color:var(--pm-primary) !important}
.pm-comment-section {padding:0 14px 14px}
.pm-comment-section textarea {width:100%;padding:10px 12px;border:1px solid var(--pm-border);border-radius:10px;font-size:14px;font-family:inherit;box-sizing:border-box;margin-bottom:10px;resize:vertical;color:var(--pm-ink)}
.pm-facet-row {display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px;font-size:13px;font-weight:600;color:var(--pm-ink)}
.pm-comment-section textarea:focus-visible {outline:2px solid var(--pm-focus);outline-offset:1px}

/* ---------- rewards ---------- */
.reward_strip {display:flex;flex-direction:column;align-items:center;text-align:center;padding:10px 0 0}
.reward_strip form {display:flex;align-items:center;flex-direction:column;width:100%}
.reward_visual {aspect-ratio:1;position:relative;max-width:190px;width:100%}
.reward_circle {width:100%;height:100%}
.reward_circle_info {position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:1}
.reward_circle_info span {display:flex;flex-direction:column;width:100%;align-items:center}
.reward_circle_info svg {width:40%;aspect-ratio:1}
.reward_circle_info h3 {margin:0 0 2px;font-size:17px;font-weight:var(--pm-weight-strong, 600);color:var(--pm-ink)}
.reward_circle_info .counter {font-size:1.2rem;font-weight:var(--pm-weight-strong, 600);color:var(--pm-ink)}
.reward_visual .counter {position:static;margin-top:2px}
.cta_text {max-width:240px;text-align:center;margin:10px 0 12px;font-size:14px;font-weight:600;line-height:1.45;color:var(--pm-ink);min-height:0}
.cta_text span {color:var(--pm-primary);font-weight:var(--pm-weight-strong, 600)}
/* the three-card strip keeps its CTA copy block at a fixed height so the cards align
   (the contract the retired fragments/rewards-styles.css carried) */
.reward_strip .cta_text {max-width:220px;min-height:84px}
/* popup nudge kept from rewards-styles.css: the type label sits optically centered in the circle */
.popup_wrapper .reward_circle_info h3 {margin-top:-6px}
.reward-glyph {color:var(--pm-primary)}

/* ---------- focus & motion safety ---------- */
#accountContent :focus-visible {outline:2px solid var(--pm-focus);outline-offset:2px;border-radius:4px}
@media (prefers-reduced-motion:reduce){
  button.pm-saving::after,input[type=submit].pm-saving::after,.button.pm-saving::after {animation-duration:1.4s}
  .pm-toast {transition:opacity .2s ease}
  .pm-toast.visible,.pm-toast.dismissing {transform:translateX(-50%)}
  .pm-stars .star:hover {transform:none}
}


@media (max-width:991.98px){.pm-header h1{font-size:26px}}
