.repiit-preview-cards {font-family:Inter,system-ui,sans-serif;color:#17241f;width:100%;text-align:left;}
.repiit-preview-cards * {box-sizing:border-box;}
.repiit-preview-cards .rp-preview-notice {font-size:12px;line-height:1.4;color:#52645a;background:#eaf6ef;padding:8px;border-radius:8px;margin:0 0 10px;}
.repiit-preview-cards .rp-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
.repiit-preview-cards .rp-card {min-width:0;display:flex;flex-direction:column;gap:4px;border:1px solid #e5e7eb;background:#fff;border-radius:12px;padding:7px;box-shadow:0 2px 5px #00000008;}
.repiit-preview-cards .rp-photo {position:relative;background:#f5f7f6;border-radius:8px;overflow:hidden;aspect-ratio:1/1;}
.repiit-preview-cards .rp-photo img {display:block;width:100%;height:100%;object-fit:contain;margin:0;}
.repiit-preview-cards .rp-discount {position:absolute;right:5px;top:5px;background:#ff8500;color:#17241f;font-size:11px;font-weight:700;line-height:1.25;padding:4px 7px;border-radius:20px;}
.repiit-preview-cards h3.rp-name {font:600 14px/1.35 Inter,system-ui,sans-serif;color:#17241f;margin:0;min-height:2.7em;overflow-wrap:anywhere;}
.repiit-preview-cards .rp-price {font-size:16px;font-weight:700;color:#087a49;line-height:1.25;overflow-wrap:anywhere;}
.repiit-preview-cards .rp-price small {font-size:11px;font-weight:500;}
.repiit-preview-cards .rp-best {font-size:11px;color:#855000;line-height:1.3;overflow-wrap:anywhere;}
.repiit-preview-cards .rp-bottom {display:flex;align-items:center;gap:5px;margin-top:auto;}
.repiit-preview-cards .rp-progress {flex:1;min-width:0;display:flex;flex-direction:column;gap:3px;}
.repiit-preview-cards progress {appearance:none;-webkit-appearance:none;width:100%;height:7px;border:0;border-radius:99px;overflow:hidden;background:#dce8e1;accent-color:#169b62;}
.repiit-preview-cards progress::-webkit-progress-bar {background:#dce8e1;border-radius:99px;}
.repiit-preview-cards progress::-webkit-progress-value {background:#169b62;border-radius:99px;}
.repiit-preview-cards progress::-moz-progress-bar {background:#169b62;border-radius:99px;}
.repiit-preview-cards .rp-qty,.repiit-preview-cards .rp-remaining {font-size:10px;line-height:1.3;color:#52645a;overflow-wrap:anywhere;}
.repiit-preview-cards button.rp-plus {flex:0 0 30px;width:30px;height:30px;min-width:0;min-height:0;padding:0;border:0;border-radius:7px;background:#ff8500;color:#17241f;font-size:23px;line-height:1;font-weight:600;opacity:.65;cursor:not-allowed;display:grid;place-items:center;}
@media(min-width:768px){.repiit-preview-cards .rp-grid{grid-template-columns:repeat(4,minmax(0,1fr));}}
@media(max-width:360px){.repiit-preview-cards .rp-card{padding:5px;}.repiit-preview-cards h3.rp-name{font-size:12px;}.repiit-preview-cards .rp-price{font-size:14px;}}
/* V0.2: shared preview cards; no fake active purchase buttons. */
.repiit-preview-cards .rp-card {gap:5px;padding:8px;}
.repiit-preview-cards h3.rp-name {font-size:15px;line-height:1.3;min-height:0;}
.repiit-preview-cards .rp-price {font-size:18px;}
.repiit-preview-cards .rp-best {font-size:12px;}
.repiit-preview-cards progress {height:8px;}
.repiit-preview-cards .rp-qty,.repiit-preview-cards .rp-remaining {font-size:11px;}
.repiit-preview-cards button.rp-plus {flex-basis:40px;width:40px;height:40px;border-radius:9px;}
.repiit-preview-cards .rp-time {border-top:1px solid #e5e7eb;padding-top:5px;font-size:11px;line-height:1.4;color:#855000;overflow-wrap:anywhere;}
@media(max-width:360px){.repiit-preview-cards .rp-card{padding:6px;}.repiit-preview-cards h3.rp-name{font-size:13px;}.repiit-preview-cards .rp-price{font-size:16px;}.repiit-preview-cards button.rp-plus{flex-basis:34px;width:34px;height:34px;}}
/* V0.3 – links open campaign preview only, not registration. */
.repiit-preview-cards a.rp-detail-link {display:block;color:inherit;text-decoration:none;}
.repiit-preview-cards a.rp-detail-link:focus-visible,.repiit-preview-cards a.rp-view:focus-visible {outline:3px solid #087a49;outline-offset:2px;}
.repiit-preview-cards a.rp-view {flex:0 0 40px;width:40px;height:40px;display:grid;place-items:center;border-radius:9px;background:#ff8500;color:#17241f;font-size:23px;font-weight:600;line-height:1;text-decoration:none;}
.rp-detail-body {margin:0;background:#f5f7f6;}
.repiit-preview-cards.rp-detail-page {max-width:600px;min-height:100vh;margin:0 auto;padding:12px 14px calc(100px + env(safe-area-inset-bottom,0px));font-size:15px;line-height:1.55;overflow-wrap:anywhere;}
.rp-detail-page .rp-detail-header {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:4px 0 12px;}
.rp-detail-header a {color:#087a49;font-weight:600;text-decoration:none;display:flex;align-items:center;min-height:44px;}
.rp-detail-header span {font-size:21px;font-weight:800;color:#17241f;}
.rp-detail-page .rp-detail-notice {font-size:12px;color:#52645a;background:#eaf6ef;padding:9px 12px;border-radius:10px;margin:0 0 12px;}
.rp-detail-page .rp-detail-photo {position:relative;background:#fff;border-radius:18px;overflow:hidden;margin:0 0 12px;aspect-ratio:4/3;}
.rp-detail-page .rp-detail-photo img {width:100%;height:100%;object-fit:contain;display:block;}
.rp-detail-page .rp-detail-photo .rp-discount {font-size:14px;right:12px;top:12px;}
.rp-detail-page .rp-detail-panel {background:white;border:1px solid #e5e7eb;border-radius:14px;padding:14px;margin:0 0 12px;}
.rp-detail-page h1 {font-size:24px;line-height:1.25;margin:6px 0 8px;color:#17241f;}
.rp-detail-page h2 {font-size:18px;line-height:1.35;margin:0 0 10px;color:#17241f;}
.rp-detail-page p {margin:8px 0 0;}
.rp-detail-page .rp-detail-state {color:#087a49;font-size:12px;font-weight:700;}
.rp-detail-page .rp-detail-price {font-size:28px;color:#087a49;font-weight:800;line-height:1.2;}
.rp-detail-page .rp-detail-price small {font-size:14px;font-weight:500;}
.rp-detail-page .rp-detail-muted {font-size:13px;color:#52645a;}
.rp-detail-page .rp-detail-best {font-size:14px;font-weight:600;color:#087a49;}
.rp-detail-page .rp-detail-progress-head {display:flex;justify-content:space-between;gap:8px;color:#087a49;}
.rp-detail-page progress {height:10px;display:block;margin:8px 0;}
.rp-detail-page .rp-detail-time {background:#fff3e0;color:#855000;border-radius:9px;padding:10px;margin-top:12px;font-weight:650;font-variant-numeric:tabular-nums;}
.rp-detail-page .rp-detail-tiers {display:grid;gap:8px;margin-top:12px;}
.rp-detail-page .rp-detail-tier {display:flex;justify-content:space-between;align-items:center;gap:10px;border:1px solid #e5e7eb;border-radius:10px;padding:10px;font-size:14px;}
.rp-detail-page .rp-detail-tier span {display:block;font-size:11px;color:#52645a;}
.rp-detail-page .rp-detail-tier-current {background:#eaf6ef;border-color:#169b62;color:#087a49;}
.rp-detail-page .rp-detail-bottom {position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:600px;background:#fff;border-top:1px solid #e5e7eb;padding:12px 14px calc(12px + env(safe-area-inset-bottom,0px));}
.rp-detail-page .rp-detail-bottom button {width:100%;border:0;border-radius:12px;min-height:48px;background:#e2e8e4;color:#52645a;font:600 14px/1.3 Inter,system-ui,sans-serif;cursor:not-allowed;}

/* V0.3.3 – actual border-box sizing and symmetric header.
   Scoped to the standalone detail route, not the store/home. */
html.rp-detail-root { margin:0; padding:0; width:100%; }
.rp-detail-body { margin:0; padding:0; width:100%; }
.repiit-preview-cards.rp-detail-page {
  --rp-edge: max(14px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  box-sizing:border-box;
  width:100%; max-width:600px; min-width:0;
  margin-inline:auto;
  padding:12px 14px calc(108px + env(safe-area-inset-bottom, 0px));
  padding-inline:var(--rp-edge);
}
.rp-detail-page .rp-detail-header {
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; width:100%; min-width:0; padding:4px 0 12px;
}
.rp-detail-page .rp-detail-header a {
  flex:0 1 auto; min-width:0; font-size:14px;
  overflow-wrap:anywhere;
}
.rp-detail-page .rp-detail-header span {
  position:static; transform:none; flex:0 0 auto;
  font-size:20px; text-align:right; white-space:nowrap;
}
.rp-detail-page .rp-detail-notice,
.rp-detail-page .rp-detail-photo,
.rp-detail-page .rp-detail-panel { width:100%; max-width:100%; min-width:0; }
.rp-detail-page .rp-detail-photo img { max-width:100%; }
.rp-detail-page .rp-detail-progress-head > *,
.rp-detail-page .rp-detail-tier > * { min-width:0; overflow-wrap:anywhere; }
.rp-detail-page .rp-detail-bottom {
  box-sizing:border-box; left:0; right:0; transform:none;
  width:100%; max-width:600px; margin-inline:auto;
  padding-inline:var(--rp-edge);
}
@media(max-width:360px) {
  .repiit-preview-cards.rp-detail-page { --rp-edge:max(12px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)); }
  .rp-detail-page .rp-detail-header a { font-size:13px; }
  .rp-detail-page .rp-detail-header span { font-size:19px; }
}
/* V0.4 – standalone sandbox form, keeps V0.3.3 symmetric layout. */
.rp-detail-page .rp-test-form {display:grid;gap:10px;min-width:0;margin-top:12px;scroll-margin-top:14px;}
.rp-detail-page .rp-test-form label {font-weight:600;font-size:14px;}
.rp-detail-page .rp-test-form input:not([type=checkbox]):not([type=hidden]) {width:100%;min-width:0;max-width:100%;height:46px;padding:10px;border:1px solid #d0dcd4;border-radius:9px;background:#fff;color:#17241f;font:inherit;font-size:16px;}
.rp-detail-page .rp-test-stepper {display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:8px;align-items:center;}
.rp-detail-page .rp-test-stepper input {text-align:center;}
.rp-detail-page .rp-test-stepper button {height:44px;border:0;border-radius:9px;background:#eaf6ef;color:#087a49;font-size:24px;cursor:pointer;}
.rp-detail-page .rp-test-total {display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between;padding:12px;background:#eaf6ef;border-radius:10px;color:#087a49;}
.rp-detail-page .rp-test-consent {display:flex;align-items:flex-start;gap:8px;font-size:13px!important;font-weight:400!important;}
.rp-detail-page .rp-test-consent input {flex:none;width:18px;height:18px;margin:3px 0 0;accent-color:#169b62;}
.rp-detail-page .rp-test-message {background:#fff3e0;padding:10px;border-radius:8px;color:#855000;}
.rp-detail-page .rp-test-submit,.rp-detail-page .rp-test-open {display:flex;align-items:center;justify-content:center;text-align:center;width:100%;min-height:48px;border:0;border-radius:12px;padding:10px 12px;background:#087a49;color:#fff;font:600 15px/1.35 Inter,system-ui,sans-serif;text-decoration:none;cursor:pointer;}
.rp-detail-page .rp-test-form :focus-visible,.rp-detail-page .rp-test-open:focus-visible {outline:2px solid #087a49;outline-offset:2px;}

.repiit-preview-cards .rp-source{font-size:10px;color:#52645a;line-height:1.4;}
.rp-detail-page .rp-detail-tier > strong{flex:0 0 auto;white-space:nowrap;overflow-wrap:normal;text-align:right;}
.rp-detail-page .rp-detail-tier > div{flex:1;min-width:0;}
.rp-detail-page .rp-detail-tier > strong span{display:inline;font-size:inherit;color:inherit;}
