.rwap,
.rwap * { box-sizing: border-box; }
.rwap { max-width: 1240px; margin: 32px auto; color: #171717; background: #f6f4f0; font-family: Inter, "Helvetica Neue", Arial, sans-serif; border: 1px solid rgba(0,0,0,.09); }
.rwap button,
.rwap textarea { font: inherit; }
.rwap__header { min-height: 150px; display: flex; align-items: center; gap: 28px; padding: 28px 40px; color: #fff; background: var(--rwap-primary); }
.rwap__logo { width: 120px; max-height: 88px; object-fit: contain; }
.rwap__eyebrow { display: block; margin-bottom: 6px; color: var(--rwap-accent); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.rwap__header h2 { margin: 0; color: inherit; font-size: clamp(30px, 4vw, 54px); line-height: 1.02; }
.rwap__header p { margin: 9px 0 0; color: rgba(255,255,255,.78); }
.rwap__header-copy { flex: 1; min-width: 0; }
.rwap button.rwap__help-toggle { align-self: flex-start; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; margin: 0 0 0 auto; padding: 10px 16px; border: 1px solid rgba(255,255,255,.55) !important; border-radius: 6px; background: transparent !important; color: #fff !important; font-size: 14px; font-weight: 700; line-height: 1.4; text-transform: none; text-decoration: none; cursor: pointer; transition: border-color .18s ease, background-color .18s ease; }
.rwap .rwap__help-toggle > span { display: grid; place-items: center; width: 19px; height: 19px; border: 1px solid currentColor; border-radius: 50%; font-size: 12px; }
.rwap button.rwap__help-toggle:hover { border-color: var(--rwap-accent) !important; background: rgba(255,255,255,.1) !important; }
.rwap button.rwap__help-toggle:focus-visible { outline: 3px solid var(--rwap-accent); outline-offset: 4px; }
.rwap__layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(340px, .75fr); min-height: 680px; }
.rwap__stage { position: relative; display: grid; place-items: center; min-height: 680px; padding: 54px; overflow: hidden; }
.rwap__empty { width: min(520px, 100%); aspect-ratio: 2/3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; background: #fff; border: 2px dashed rgba(0,0,0,.24); }
.rwap__empty strong { font-size: 22px; }
.rwap__empty small { opacity: .55; }
.rwap__spark { display: grid; place-items: center; width: 70px; height: 70px; color: #fff; background: var(--rwap-accent); border-radius: 50%; font-size: 31px; }
.rwap__loader { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.rwap__loader span { width: 58px; height: 58px; border: 5px solid rgba(0,0,0,.1); border-top-color: var(--rwap-accent); border-radius: 50%; animation: rwap-spin .8s linear infinite; }
.rwap__preview { display: block; max-width: 100%; max-height: 620px; object-fit: contain; box-shadow: 0 24px 55px rgba(0,0,0,.18); }
.rwap__controls { padding: 0; background: #fff; border-left: 1px solid rgba(0,0,0,.1); }
.rwap__step { display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 16px; padding: 32px; border-bottom: 1px solid rgba(0,0,0,.1); }
.rwap__step > span { display: grid; place-items: center; width: 32px; height: 32px; color: #fff; background: var(--rwap-primary); border-radius: 50%; font-weight: 800; }
.rwap__step h3,
.rwap__order h3 { margin: 3px 0 16px; font-size: 20px; }
.rwap textarea { width: 100%; resize: vertical; min-height: 142px; padding: 15px; border: 1px solid rgba(0,0,0,.22); border-radius: 2px; outline: 0; }
.rwap textarea:focus { border-color: var(--rwap-accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--rwap-accent), transparent 78%); }
.rwap__choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rwap__choices button,
.rwap__sizes button { padding: 14px; color: #171717; background: #fff; border: 1px solid rgba(0,0,0,.18); cursor: pointer; }
.rwap__choices button.is-active,
.rwap__sizes button.is-active { color: #fff; background: var(--rwap-primary); border-color: var(--rwap-primary); }
.rwap__generate,
.rwap__cart { width: calc(100% - 64px); min-height: 56px; margin: 28px 32px; padding: 14px 18px; color: #fff; background: var(--rwap-accent); border: 0; font-weight: 800; cursor: pointer; }
.rwap__generate:disabled,
.rwap__cart:disabled { cursor: not-allowed; opacity: .48; }
.rwap__order { padding: 28px 32px 4px; border-top: 1px solid rgba(0,0,0,.1); }
.rwap__sizes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rwap__sizes button { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; }
.rwap__sizes strong { font-size: 24px; }
.rwap__sizes small { opacity: .65; }
.rwap__sizes em { margin-top: 5px; font-style: normal; font-weight: 800; }
.rwap__order .rwap__cart { width: 100%; margin: 20px 0; }
.rwap__message { min-height: 24px; margin: 6px 32px 25px; font-size: 14px; }
.rwap__message.is-error { color: #b42318; }
.rwap__message.is-success { color: #167345; }
.rwap footer { padding: 12px 24px; color: rgba(255,255,255,.72); background: var(--rwap-primary); text-align: center; font-size: 12px; }
.rwap footer a,
.rwap footer a:visited { color: inherit !important; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.38); transition: color .2s ease, border-color .2s ease; }
.rwap footer a:hover,
.rwap footer a:focus-visible { color: var(--rwap-accent) !important; border-bottom-color: var(--rwap-accent); }

/* Modal help lives in the browser top layer, outside any theme page wrapper. */
.rwap-help,
.rwap-help * { box-sizing: border-box; }
.rwap-help { --rwap-primary: #171717; --rwap-accent: #ff7a00; position: fixed; inset: 0; width: 100%; height: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(12,12,12,0); color: #171717; overflow: hidden; font: 14px/1.6 Inter, "Helvetica Neue", Arial, sans-serif; text-align: left; z-index: 2147483647; transition: background-color .38s ease; }
.rwap-help[open] { display: flex; justify-content: flex-end; }
.rwap-help::backdrop { background: transparent; }
.rwap-help.is-visible { background: rgba(12,12,12,.52); }
.rwap-help__panel { display: flex; flex-direction: column; width: min(500px, 100%); height: 100%; min-width: 0; background: #fff; box-shadow: -16px 0 60px rgba(0,0,0,.2); transform: translateX(100%); transition: transform .48s cubic-bezier(.22,.61,.36,1); }
.rwap-help.is-visible .rwap-help__panel { transform: translateX(0); }
.rwap-help .rwap-help__header { display: flex; align-items: flex-start; gap: 20px; flex-shrink: 0; padding: 26px 26px 24px; padding-top: max(26px, env(safe-area-inset-top)); border-bottom: 1px solid #e5e3df; background: var(--rwap-primary); color: #fff; }
.rwap-help__header > div { flex: 1; min-width: 0; }
.rwap-help .rwap-help__eyebrow { display: block; margin-bottom: 8px; color: var(--rwap-accent); font-size: 10px; font-weight: 800; letter-spacing: .13em; line-height: 1.6; }
.rwap-help h2 { margin: 0; color: inherit; font-size: 26px; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
.rwap-help h2:focus { outline: none; }
.rwap-help h3 { margin: 0 0 9px; color: #171717; font-size: 17px; font-weight: 700; line-height: 1.35; letter-spacing: normal; }
.rwap-help h4 { margin: 0; color: #171717; font-size: 15px; font-weight: 700; line-height: 1.4; letter-spacing: normal; }
.rwap-help p { margin: 0 0 12px; color: #4d4d4d; font: inherit; }
.rwap-help button { font-family: inherit; text-transform: none; letter-spacing: normal; box-shadow: none; text-decoration: none; }
.rwap-help button.rwap-help__close { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; min-height: 44px; margin: 0; padding: 0; border: 1px solid rgba(255,255,255,.55) !important; border-radius: 6px; background: transparent !important; color: #fff !important; font-size: 29px; font-weight: 400; line-height: 1; cursor: pointer; }
.rwap-help button.rwap-help__close:hover { background: rgba(255,255,255,.12) !important; border-color: var(--rwap-accent) !important; }
.rwap-help button:focus-visible { outline: 3px solid var(--rwap-accent); outline-offset: 3px; }
.rwap-help__content { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 26px; }
.rwap-help .rwap-help__intro { color: #383838; margin-bottom: 24px; font-size: 15px; }
.rwap-help .rwap-help__steps { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; counter-reset: rwap-help-step; }
.rwap-help__steps li { position: relative; padding-left: 42px; counter-increment: rwap-help-step; }
.rwap-help__steps li::before { content: counter(rwap-help-step); position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--rwap-primary); color: #fff; font-size: 13px; font-weight: 700; }
.rwap-help__steps li p { margin: 0; }
.rwap-help__section { margin: 26px 0 0; padding: 24px 0 0; border-top: 1px solid #e5e3df; }
.rwap-help .rwap-help__formula { padding: 13px 15px; border-left: 3px solid var(--rwap-accent); border-radius: 0 5px 5px 0; background: #f6f4f0; color: #171717; font-size: 14px; font-weight: 700; }
.rwap-help__comparison { padding: 16px; border: 1px solid #e5e3df; border-radius: 7px; }
.rwap-help__comparison > span,
.rwap-help__comparison > strong { display: block; margin-bottom: 3px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.rwap-help__comparison > span { color: #6b6b6b; }
.rwap-help__comparison > strong { color: #24684b; }
.rwap-help__comparison p:last-child { margin-bottom: 0; }
.rwap-help__example { margin-top: 14px; padding: 18px; border: 1px solid #e5e3df; border-radius: 8px; background: #faf9f6; }
.rwap-help__example-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.rwap-help__example-heading > span { margin-left: auto; padding: 2px 8px; border: 1px solid #dedbd5; border-radius: 20px; color: #5e5a55; font-size: 11px; font-weight: 600; }
.rwap-help__example > p { font-size: 13px; line-height: 1.65; }
.rwap-help button.rwap-help__button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; max-width: 100%; margin: 0; padding: 10px 15px; border: 1px solid var(--rwap-accent) !important; border-radius: 5px; background: var(--rwap-accent) !important; color: #171717 !important; font-size: 13px; font-weight: 700; line-height: 1.5; white-space: normal; cursor: pointer; transition: background-color .18s ease, border-color .18s ease; }
.rwap-help button.rwap-help__button--outline { background: transparent !important; border-color: #c5c1ba !important; }
.rwap-help button.rwap-help__button:not(:disabled):hover { background: #fff3e8 !important; border-color: var(--rwap-accent) !important; color: #171717 !important; }
.rwap-help button.rwap-help__button:disabled { opacity: .5; cursor: not-allowed; }
.rwap-help__confirm { margin-top: 16px; padding-top: 16px; border-top: 1px solid #dedbd5; }
.rwap-help__confirm > div { display: flex; flex-wrap: wrap; gap: 8px; }
.rwap-help .rwap-help__confirm > p { color: #171717; font-weight: 600; }
.rwap-help .rwap-help__notice { margin: 12px 0; padding: 12px; border-left: 3px solid var(--rwap-accent); background: #fff3e8; }
.rwap-help .rwap-help__tips { display: grid; gap: 12px; margin: 0; padding-left: 20px; list-style: disc; color: #4d4d4d; }
.rwap-help__tips li::marker { color: #777; }
.rwap-help__footer { flex-shrink: 0; padding: 18px 26px; padding-bottom: max(18px, env(safe-area-inset-bottom)); border-top: 1px solid #e5e3df; background: #fff; }
.rwap-help__footer .rwap-help__button { width: 100%; }
.rwap-help .rwap-help__sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; clip-path: inset(50%); white-space: nowrap; overflow: hidden; }
@media (max-width: 520px) {
  .rwap-help .rwap-help__header { padding: 20px; padding-top: max(20px, env(safe-area-inset-top)); gap: 12px; }
  .rwap-help h2 { font-size: 23px; }
  .rwap-help__content { padding: 22px 20px; }
  .rwap-help__footer { padding: 16px 20px; padding-bottom: max(16px, env(safe-area-inset-bottom)); }
}
@media (max-height: 480px) {
  .rwap-help .rwap-help__header { padding: 12px 20px; }
  .rwap-help h2 { font-size: 20px; }
  .rwap-help .rwap-help__eyebrow { margin-bottom: 2px; }
  .rwap-help__footer { padding: 10px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .rwap-help,
  .rwap-help__panel,
  .rwap-help button.rwap-help__button,
  .rwap button.rwap__help-toggle { transition: none; }
}
[hidden] { display: none !important; }
@keyframes rwap-spin { to { transform: rotate(360deg); } }
@media (max-width: 820px) {
  .rwap { margin: 12px 0; }
  .rwap__header { padding: 24px; flex-wrap: wrap; gap: 16px; }
  .rwap__header-copy { flex-basis: 100%; order: 2; }
  .rwap__logo { width: 86px; }
  .rwap__layout { grid-template-columns: 1fr; }
  .rwap__stage { min-height: 520px; padding: 28px 20px; }
  .rwap__empty { max-height: 460px; }
  .rwap__preview { max-height: 500px; }
  .rwap__controls { border-left: 0; border-top: 1px solid rgba(0,0,0,.1); }
}
@media (max-width: 520px) {
  .rwap__header { align-items: flex-start; gap: 16px; }
  .rwap__header h2 { font-size: 30px; }
  .rwap__header p { font-size: 14px; }
  .rwap__step { padding: 24px 18px; grid-template-columns: 32px minmax(0,1fr); gap: 12px; }
  .rwap__generate { width: calc(100% - 36px); margin: 22px 18px; }
  .rwap__order { padding: 24px 18px 4px; }
  .rwap__message { margin-left: 18px; margin-right: 18px; }
}
