/* Full-width donation area and compact account navigation for signed-in users. */
.p2e-donation-layout .p2e-donation-account {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 24px auto 0;
  padding: 16px 20px;
  border: 1px solid rgba(212, 161, 79, .24);
  border-radius: 8px;
  background: #1b1c1b;
  color: #f4eadc;
  font: 14px/1.5 Arial, sans-serif;
}
.p2e-donation-account-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.p2e-donation-account-icon { display: grid; place-items: center; flex: 0 0 42px; height: 42px; border: 1px solid #6d5331; border-radius: 50%; background: #30271d; color: #e2b665; }
.p2e-donation-account-label { display: block; margin-bottom: 2px; color: #bcb0a0; font-size: 12px; }
.p2e-donation-account-identity strong { display: block; color: #f6e4c3; font-size: 17px; overflow-wrap: anywhere; }
.p2e-donation-account-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.p2e-donation-account-actions .p2e-donation-account-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px; border: 1px solid #95703d; border-radius: 5px; background: #372a1c; color: #f6e4c3; text-decoration: none; font-weight: 700; }
.p2e-donation-account-actions .p2e-donation-account-logout { border-color: #51483c; background: transparent; color: #cbbba3; }
.p2e-donation-account-actions .p2e-donation-account-link:hover { background: #4a3621; border-color: #e2b665; }
.p2e-donation-account-actions .p2e-donation-account-link:focus-visible { outline: 2px solid #e2b665; outline-offset: 4px; }
@media (max-width: 600px) {
  .p2e-donation-layout .p2e-donation-account { flex-wrap: wrap; gap: 16px; }
  .p2e-donation-account-actions { width: 100%; }
  .p2e-donation-account-actions .p2e-donation-account-link { flex: 1; }
}

/* Scoped to the donation module: compatible with the Minos button/reset rules. */
.donate-shop-shell.donate-shop-v3 {
  --shop-gold: #e2b665;
  --shop-muted: #bcb0a0;
  --shop-border: rgba(212, 161, 79, .24);
  color: #f4eadc;
  font: 14px/1.6 Arial, sans-serif;
  max-width: 1180px;
  margin: 24px auto 40px;
  container-type: inline-size;
}
.donate-shop-shell *, .donate-shop-shell *::before, .donate-shop-shell *::after { box-sizing: border-box; }
.donate-shop-shell button {
  display: block;
  position: static;
  width: auto;
  height: auto;
  min-height: 44px;
  margin: 0;
  padding: 12px 16px;
  border: 1px solid var(--shop-border);
  border-radius: 6px;
  background: #211e1b;
  color: #f4eadc;
  font: inherit;
  line-height: 1.5;
  text-shadow: none;
  box-shadow: none;
  white-space: normal;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
}
.donate-shop-shell button:hover { background: #34291d; border-color: var(--shop-gold); filter: none; }
.donate-shop-shell button:focus-visible, .donate-shop-shell a:focus-visible, .donate-shop-shell input:focus-visible {
  outline: 2px solid var(--shop-gold);
  outline-offset: 4px;
}
.donate-shop-shell h1, .donate-shop-shell h2, .donate-shop-shell h3 {
  padding: 0;
  margin: 0 0 10px;
  color: #f6e4c3;
  font-family: Arial, sans-serif;
  font-weight: 700;
  line-height: 1.25;
  text-transform: none;
  text-shadow: none;
}
.donate-shop-shell p { margin: 0; line-height: 1.65; }
.donate-shop-hero {
  border: 1px solid var(--shop-border);
  border-top: 3px solid #bc8537;
  border-radius: 10px;
  background: radial-gradient(ellipse at top right, #50301d 0, transparent 65%), linear-gradient(120deg, #25201c, #171716);
  overflow: hidden;
}
.donate-shop-hero-overlay { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 32px; padding: 32px; align-items: center; }
.donate-shop-kicker { color: var(--shop-gold); font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 12px; }
.donate-shop-shell .donate-shop-hero h1 { max-width: 640px; font-size: clamp(24px, 3vw, 34px); }
.donate-shop-hero-copy p { color: #d1c3b1; max-width: 580px; }
.donate-shop-hero-points { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.donate-shop-hero-points span { border: 1px solid var(--shop-border); border-radius: 30px; padding: 5px 12px; font-size: 11px; color: #dec79f; }
.donate-shop-hero-badge { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.donate-shop-hero-badge img { width: 170px; height: 145px; object-fit: contain; max-width: 100%; }
.donate-shop-hero-badge > span { color: var(--shop-gold); text-transform: uppercase; font-size: 12px; letter-spacing: .2em; }
.donate-shop-hero-badge small { color: var(--shop-muted); font-size: 11px; }
.donate-shop-content { padding-top: 18px; }
.donate-shop-terms { margin-bottom: 22px; border: 1px solid var(--shop-border); border-radius: 6px; background: #1b1b19; }
.donate-shop-shell .donate-shop-terms-toggle { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 13px 18px; border: 0; background: transparent; text-align: left; color: #dbc6a4; font-size: 13px; }
.donate-shop-terms-toggle::after { content: '+'; font-size: 20px; }
.donate-shop-terms-toggle[aria-expanded=true]::after { content: '−'; }
.donate-shop-terms-toggle .glyphicon { display: none; }
.donate-shop-terms-body { padding: 0 18px 18px; color: var(--shop-muted); font-size: 13px; }
.donate-shop-terms-body a { color: var(--shop-gold); text-decoration: underline; }
.donate-shop-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 22px; }
.donate-shop-shell .donate-shop-tab { width: 100%; font-weight: 700; }
.donate-shop-shell .donate-shop-tab.is-active { color: #fff2d7; border-color: #bd893f; background: linear-gradient(135deg, #664124, #3b2a1c); box-shadow: inset 0 -2px #d7a654; }
.donate-shop-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 24px; align-items: start; }
.donate-shop-panels, .donate-shop-payment-board { min-width: 0; }
.donate-shop-panel { display: none; }
.donate-shop-panel.is-active { display: block; }
.donate-shop-section-header { margin-bottom: 20px; }
.donate-shop-shell .donate-shop-section-header h2 { font-size: 22px; }
.donate-shop-section-header p { color: var(--shop-muted); font-size: 13px; }
.donate-shop-calculator-card, .donate-shop-selection-card, .donate-shop-gateways {
  background: linear-gradient(145deg, #25211c, #191918);
  border: 1px solid var(--shop-border);
  border-radius: 8px;
  padding: 24px;
}
.donate-shop-label { display: block; font-size: 13px; margin-bottom: 12px; color: #d7c8b4; }
.donate-shop-amount-box { display: flex; align-items: center; gap: 12px; border: 1px solid #675034; border-radius: 6px; background: #121415; padding: 12px 16px; }
.donate-shop-currency { color: var(--shop-gold); font-size: 24px; }
.donate-shop-shell .donate-shop-amount-box input { width: 100%; min-width: 0; height: auto; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; color: #fff2d7; font: 700 32px/1.3 Arial, sans-serif; text-align: left; }
.donate-shop-shell input[type=range] { display: block; width: 100%; height: 24px; margin: 22px 0 4px; padding: 0; border: 0; box-shadow: none; background: transparent; accent-color: #d4a04c; cursor: pointer; }
.donate-shop-range-scale { display: flex; justify-content: space-between; gap: 8px; color: var(--shop-muted); font-size: 11px; }
.donate-shop-presets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 22px 0; }
.donate-shop-shell .donate-shop-preset { padding: 10px 4px; width: 100%; font-size: 13px; }
.donate-shop-shell .donate-shop-preset.is-active { background: #523921; border-color: #c69549; color: #ffe2a6; }
.donate-shop-summary-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid var(--shop-border); padding-top: 20px; }
.donate-shop-summary-row > span { color: var(--shop-muted); font-size: 13px; }
.donate-shop-summary-row strong { color: var(--shop-gold); font-size: 20px; }
.donate-shop-summary-note { color: var(--shop-muted); margin-top: 12px; font-size: 12px; }
.donate-shop-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.donate-shop-shell .donate-shop-product-card { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 10px; width: 100%; min-height: 220px; padding: 24px; text-align: left; }
.donate-shop-shell .donate-shop-product-card.is-selected { border-color: #d7a654; background: #33291d; box-shadow: inset 0 0 0 1px #d7a654; }
.donate-shop-product-tag { border-radius: 4px; background: #49351f; color: #eccc91; font-size: 10px; font-weight: 700; letter-spacing: .12em; padding: 4px 10px; text-transform: uppercase; }
.donate-shop-product-card strong { font-size: 18px; }
.donate-shop-product-price { color: var(--shop-gold); font-size: 26px; font-weight: 700; }
.donate-shop-product-meta { color: #dfd1bb; font-size: 13px; }
.donate-shop-product-desc { color: var(--shop-muted); font-size: 12px; }
.donate-shop-empty { grid-column: 1 / -1; padding: 28px; border: 1px dashed var(--shop-border); color: var(--shop-muted); text-align: center; border-radius: 8px; }
.donate-shop-payment-board { display: grid; gap: 16px; }
.donate-shop-selection-header { color: var(--shop-gold); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; }
.donate-shop-selection-title { font-size: 20px; font-weight: 700; line-height: 1.3; margin-bottom: 8px; }
.donate-shop-selection-subtitle { color: var(--shop-muted); font-size: 12px; }
.donate-shop-selection-metrics { display: grid; gap: 12px; margin-top: 20px; }
.donate-shop-selection-metrics > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--shop-border); padding-bottom: 10px; }
.donate-shop-selection-metrics span { color: var(--shop-muted); font-size: 12px; }
.donate-shop-selection-metrics strong { font-size: 16px; }
.donate-shop-selection-metrics > div:first-child strong { color: var(--shop-gold); font-size: 24px; }
.donate-shop-quantity-field { margin-top: 16px; }
.donate-shop-quantity-field label { display: block; margin-bottom: 8px; font-size: 13px; }
.donate-shop-shell .donate-shop-quantity-field input { width: 100%; height: 44px; padding: 10px; background: #121415; color: #fff; border: 1px solid #675034; border-radius: 5px; }
.donate-shop-shell .donate-shop-gateways h3 { font-size: 18px; }
.donate-shop-gateways-header p { color: var(--shop-muted); font-size: 12px; margin-bottom: 16px; }
.donate-shop-gateways .row { display: grid; gap: 10px; margin: 0; }
.donate-shop-gateways .row::before, .donate-shop-gateways .row::after { display: none; }
.donate-shop-gateways .row > div { float: none; width: 100%; padding: 0; min-width: 0; }
.donate-shop-gateway-card { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px; border: 1px solid var(--shop-border); border-radius: 6px; background: #191b1c; color: #f4eadc; }
.donate-shop-gateway-card:hover { border-color: var(--shop-gold); background: #2b2721; }
.donate-shop-gateway-name { font-size: 16px; font-weight: 700; }
.donate-shop-gateway-currency { color: var(--shop-gold); font-size: 11px; align-self: center; }
.donate-shop-gateway-note { grid-column: 1 / -1; font-size: 12px; color: var(--shop-muted); }
.donate-shop-gateway-card[aria-disabled=true] { opacity: .45; cursor: not-allowed; }
@container (max-width: 850px) {
  .donate-shop-workspace { grid-template-columns: minmax(0, 1fr); }
  .donate-shop-payment-board { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
@container (max-width: 560px) {
  .donate-shop-hero-overlay { grid-template-columns: minmax(0, 1fr); padding: 24px; gap: 16px; }
  .donate-shop-hero-badge { display: none; }
  .donate-shop-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .donate-shop-card-grid, .donate-shop-payment-board { grid-template-columns: minmax(0, 1fr); }
  .donate-shop-calculator-card, .donate-shop-selection-card, .donate-shop-gateways { padding: 20px; }
  .donate-shop-presets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
