.wsp-portal { max-width: 680px; margin: 48px auto; padding: 28px; border-radius: 12px; background: #faf8f2; color: #25342b; }
.wsp-portal h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.2; }
.wsp-portal [hidden] { display: none !important; }
.wsp-portal #wsp-return:not([hidden]) + .wsp-help { display: none; }
.wsp-actions { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin: 8px 0 20px; }
.wsp-portal .wsp-actions button { margin: 0; padding: 9px 14px; min-height: 44px; }
.wsp-portal .wsp-actions .wsp-link-button { background: transparent; color: #355a42; padding: 9px 0; text-decoration: underline; }
.wsp-refresh-block { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.wsp-portal .wsp-actions .wsp-refresh-button { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #87958a; background: transparent; color: #355a42; }
.wsp-refresh-button > span { font-size: 1.2em; line-height: 1; }
.wsp-checked { margin: 0; font-size: .8rem; color: #59655c; }
.wsp-checked time { white-space: nowrap; }
.wsp-portal #wsp-choose-back { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 8px 0; margin: 0 0 12px; }
/* Keep light button variants readable against the shop theme's forced mobile white text.
   Include child labels and dynamic links (session reload/payment help); solid primary buttons stay white. */
.wsp-portal button.wsp-link-button,
.wsp-portal button.wsp-return-entry,
.wsp-portal button.wsp-refresh-button { color: #355a42 !important; }
.wsp-portal button.wsp-link-button *,
.wsp-portal button.wsp-return-entry *,
.wsp-portal button.wsp-refresh-button * { color: inherit !important; }
.wsp-portal .wsp-choice button.wsp-choice-card,
.wsp-portal .wsp-choice button.wsp-choice-card strong,
.wsp-portal .wsp-choice button.wsp-choice-card span { color: #25342b !important; }
.wsp-portal .wsp-choice button.wsp-choice-card span:last-child { color: #355a42 !important; }
.wsp-portal .wsp-return-entry, .wsp-portal #wsp-return .wsp-link-button { background: transparent; color: #355a42; padding: 8px 0; margin: 8px 0 0; text-decoration: underline; }
.wsp-return-row { border-bottom: 1px solid #dce4d8; padding: 14px 0; }
.wsp-portal .wsp-return-row > label { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 10px; }
.wsp-portal .wsp-return-row input[type=checkbox] { width: 18px; height: 18px; flex: 0 0 18px; margin: 3px 0 0; accent-color: #355a42; }
.wsp-portal .wsp-return-row .wsp-return-quantity { margin: 0 0 0 28px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: .9rem; font-weight: 400; }
.wsp-portal .wsp-return-quantity input { width: 80px; padding: 7px; }
.wsp-portal .wsp-return-quantity input:disabled { background: #f0f0ed; color: #68716a; }
.wsp-return-quantity small { color: #566159; }
.wsp-tracking { display: flex; align-items: flex-start; gap: 12px; background: #f4f7f1; border: 1px solid #dce4d8; border-radius: 8px; padding: 14px; margin: 12px 0 16px; }
.wsp-parcel-icon { flex: 0 0 40px; width: 40px; height: 40px; color: #355a42; }
.wsp-tracking-content { min-width: 0; }
.wsp-tracking a { display: block; font-weight: 600; overflow-wrap: anywhere; margin-top: 6px; }
.wsp-tracking p { margin: 6px 0 0; font-size: .9rem; }
.wsp-eyebrow { font-size: .85rem; font-weight: 600; letter-spacing: .04em; }
.wsp-portal label { display: block; margin: 18px 0 6px; font-weight: 600; }
.wsp-portal input { display: block; width: 100%; padding: 12px; border: 1px solid #87958a; border-radius: 6px; background: white; color: #25342b; }
.wsp-portal button { margin: 22px 0 8px; padding: 12px 22px; border: 0; border-radius: 6px; background: #355a42; color: white; cursor: pointer; }
.wsp-portal button:disabled { opacity: .6; cursor: wait; }
.wsp-portal input:focus-visible, .wsp-portal button:focus-visible, .wsp-portal a:focus-visible { outline: 3px solid #b28532; outline-offset: 3px; }
.wsp-card { background: white; padding: 18px; margin: 16px 0; border-left: 4px solid #355a42; border-radius: 6px; }
.wsp-card h2 { font-size: 1.2rem; }
.wsp-card p { margin-bottom: 6px; }
.wsp-items { list-style: none; padding-left: 0; }
.wsp-item { display: flex; align-items: flex-start; gap: .45rem; }
.wsp-stock-signals { display: inline-flex; align-items: center; gap: .2rem; flex: 0 0 1.5rem; min-height: 1.5em; }
.wsp-stock-dot { display: inline-block; width: .65rem; height: .65rem; flex: 0 0 .65rem; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .18); }
.wsp-stock-dot-available { background: #24763c; }
.wsp-stock-dot-waiting { background: #c12f32; }
.wsp-more-items { margin: 8px 0; }
.wsp-more-items summary { color: #355a42; cursor: pointer; text-decoration: underline; }
.wsp-more-items summary:focus-visible { outline: 3px solid #b28532; outline-offset: 3px; }
.wsp-loading { display: flex; align-items: flex-start; gap: .65rem; }
.wsp-spinner { display: inline-block; flex: 0 0 auto; width: 1.1em; height: 1.1em; margin-top: .2em; border: 2px solid #d5dfd7; border-top-color: #355a42; border-radius: 50%; animation: wsp-spin .85s linear infinite; }
@keyframes wsp-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .wsp-spinner { animation: none; } }
.wsp-help, .wsp-card small { font-size: .9rem; }
.wsp-portal a { color: #355a42; text-decoration: underline; }
.wsp-portal .wsp-link-button { background: transparent; color: #355a42; padding: 8px 0; text-decoration: underline; margin: 8px 0; }
.wsp-choice { margin-top: 24px; }
.wsp-portal .wsp-choice-card { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; width: 100%; text-align: left; margin: 0 0 14px; padding: 20px; background: white; border: 1px solid #cad7ca; color: #25342b; }
.wsp-choice-card strong { font-size: 1.1rem; }
.wsp-choice-card span:first-of-type { grid-column: 1; font-weight: 400; }
.wsp-choice-card span:last-child { grid-column: 2; grid-row: 1 / 3; align-self: center; color: #355a42; font-size: 1.5rem; }
.wsp-choice-card:hover { border-color: #355a42; background: #f4f7f1; }
.wsp-contact-entry { border-top: 1px solid #dce4d8; padding-top: 18px; margin-top: 28px; }
.wsp-contact-entry p { margin-bottom: 0; }
.wsp-contact-panel { border-top: 1px solid #dce4d8; margin-top: 24px; padding-top: 20px; }
.wsp-contact-panel h2 { font-size: 1.4rem; }
.wsp-portal textarea, .wsp-portal select { width: 100%; padding: 12px; border: 1px solid #87958a; border-radius: 6px; background: white; color: #25342b; }
.wsp-portal textarea { min-height: 160px; resize: vertical; }
.wsp-portal textarea:focus-visible, .wsp-portal select:focus-visible { outline: 3px solid #b28532; outline-offset: 3px; }
.wsp-portal input[readonly] { background: #f0f2ec; }
.wsp-portal .wsp-privacy { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; }
.wsp-portal .wsp-privacy input { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 3px; accent-color: #355a42; }
.wsp-honey { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 600px) {
    .wsp-portal { margin: 20px 12px; padding: 20px; }
    .wsp-actions { flex-direction: column; gap: 6px; }
    .wsp-refresh-block { align-items: flex-start; }
}

.wsp-payment { margin: 14px 0; padding: 14px 0; border-top: 1px solid #dce4d8; }
.wsp-portal .wsp-payment-start { margin: 0; min-height: 44px; }
.wsp-portal .wsp-payment-link { display: inline-flex; align-items: center; min-height: 44px; border-radius: 6px; padding: 12px 18px; margin: 8px 0; background: #355a42; color: #fff !important; text-decoration: none; }

/* Same method-list structure and native provider icons as Ceres checkout. */
.wsp-payment-methods { border: 0; padding: 0; margin: 24px 0; min-width: 0; }
.wsp-payment-methods legend { font-size: 1.2rem; font-weight: 600; }
.wsp-payment-methods .method-list { list-style: none; padding: 0; margin: 12px 0; }
.wsp-payment-methods .method-list-item { position: relative; margin: 8px 0; }
.wsp-payment-methods input[type="radio"] { position: absolute; top: 50%; left: 16px; transform: translateY(-50%); width: 18px; height: 18px; margin: 0; z-index: 1; accent-color: #355a42; }
.wsp-payment-methods .provider-select-label { display: flex; align-items: center; gap: 16px; min-height: 68px; width: 100%; margin: 0; padding: 14px 16px 14px 48px; border: 1px solid #c8d1c7; border-radius: 6px; background: white; cursor: pointer; color: #25342b; }
.wsp-payment-methods input:checked + label { border: 2px solid #355a42; padding: 13px 15px 13px 47px; background: #f2f6f0; }
.wsp-payment-methods input:focus-visible + label { outline: 3px solid #b28532; outline-offset: 3px; }
.wsp-payment-methods .icon { width: 66px; flex: 0 0 66px; text-align: center; }
.wsp-payment-methods .icon img { max-width: 66px; max-height: 36px; object-fit: contain; }
.wsp-payment-methods .content { overflow-wrap: anywhere; }
.wsp-payment-methods input:disabled + label { cursor: wait; opacity: .7; }
.wsp-bank { margin: 24px 0; padding: 20px; border-left: 4px solid #355a42; border-radius: 6px; background: white; }
.wsp-bank h2 { font-size: 1.3rem; }
.wsp-bank dl { display: grid; grid-template-columns: minmax(100px, 1fr) 2fr; gap: 8px 16px; margin: 0; }
.wsp-bank dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { .wsp-bank dl { grid-template-columns: 1fr; gap: 2px; } .wsp-bank dd { margin-bottom: 12px; } }
/* Match the tracking panel while keeping the return action easy to tap and keyboard accessible. */
.wsp-portal .wsp-return-box .wsp-return-entry { display: block; min-height: 44px; margin: 0; padding: 9px 0; font-weight: 600; text-align: left; }
