/* Buyer bundle negotiation and authenticated merchant review. Theme colours inherit tokens. */
.wy-offers-page { padding-top: 38px; padding-bottom: 60px; }
.wy-offer-nav { display: flex; flex-wrap: wrap; gap: 22px; margin-bottom: 26px; font-size: 13px; }
.wy-offer-nav a { text-underline-offset: 4px; }
.wy-offer-intro { max-width: 760px; margin: -10px 0 28px; }
.wy-offer-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.wy-offer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.wy-offer-panel { padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-guide); min-width: 0; overflow-wrap: anywhere; }
.wy-offer-panel h2 { font-size: 21px; font-weight: 500; line-height: 1.4; margin-bottom: 14px; }
.wy-offer-panel h2 a { text-decoration: none; }
.wy-offer-panel h2 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.wy-offer-panel > .wy-small + .wy-small { margin-top: 12px; }
.wy-offer-card-head { display: flex; justify-content: space-between; align-items: start; gap: 14px; margin-bottom: 14px; }
.wy-offer-card-head h2 { font-size: 18px; margin: 0; }
.wy-offer-status { display: inline-flex; align-items: center; min-height: 30px; padding: 5px 11px; border: 1px solid var(--line); border-radius: var(--radius-pill); font-size: 12px; line-height: 1.5; background: var(--soft); }
.wy-offer-status[data-status=accepted] { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.wy-offer-price { font-size: 30px; font-weight: 500; line-height: 1.4; margin: 10px 0; }
.wy-offer-price > span { font-size: 13px; color: var(--muted); font-weight: 400; }
.wy-offer-preview { padding-left: 18px; margin: 18px 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.wy-offer-lines { list-style: none; padding: 0; margin: 22px 0; border-top: 1px solid var(--line); }
.wy-offer-lines > li { display: flex; justify-content: space-between; gap: 22px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.wy-offer-lines > li > div { min-width: 0; }
.wy-offer-lines > li > strong { white-space: nowrap; font-weight: 500; }
.wy-offer-lines a { text-underline-offset: 4px; font-weight: 500; }
.wy-offer-lines .wy-small { margin-top: 5px; }
.wy-offer-total { display: flex; justify-content: space-between; align-items: start; flex-wrap: wrap; gap: 12px; margin: 20px 0; }
.wy-offer-total strong { font-weight: 500; }
.wy-offer-summary { position: sticky; top: var(--header-offset); }
.wy-offer-form { display: grid; gap: 12px; margin-top: 18px; }
.wy-offer-form label { font-size: 14px; font-weight: 500; }
.wy-offer-form input:not([type=hidden]) { width: 100%; min-width: 0; min-height: 48px; padding: 11px 13px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-field); }
.wy-offer-form .wy-primary, .wy-offer-form .wy-secondary { width: 100%; }
.wy-offer-summary > .wy-small { margin-top: 14px; }
.wy-offer-actions { display: grid; gap: 10px; margin-top: 20px; }
.wy-offer-actions form { margin: 0; }
.wy-offer-actions button { width: 100%; }
.wy-offer-counter { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 24px; }
.wy-offer-cancel { margin-top: 20px; }
.wy-offer-history { margin-top: 24px; }
.wy-offer-history ol { margin: 0; padding-left: 20px; font-size: 13px; }
.wy-offer-history li { padding: 10px 0; }
.wy-offer-history li + li { border-top: 1px solid var(--line); }
.wy-offer-history strong { font-weight: 500; }
.wy-offer-notice { margin-top: 32px; border: 1px solid var(--line); border-radius: var(--radius-guide); background: var(--soft); padding: 23px 26px; font-size: 13px; line-height: 1.8; }
.wy-offer-notice > strong { display: block; font-weight: 600; margin-bottom: 7px; }
.wy-offer-notice p { max-width: 900px; color: var(--muted); }
.wy-offer-notice p + p { margin-top: 9px; }
.wy-offer-empty { grid-column: 1 / -1; padding: 32px 0; max-width: 620px; }
.wy-offer-empty h2 { font-size: 24px; font-weight: 500; margin-bottom: 14px; }
.wy-offer-empty p { color: var(--muted); margin-bottom: 22px; line-height: 1.8; }
.wy-offer-feedback { margin: 20px 0; min-height: 24px; font-size: 14px; overflow-wrap: anywhere; }
.wy-offer-feedback[data-error=true] { padding: 14px 16px; border-radius: var(--radius-field); background: var(--error-bg); color: var(--error-ink); }
.wy-merchant-unlock { max-width: 580px; }
.wy-merchant-toolbar { display: flex; justify-content: space-between; gap: 18px; margin: 20px 0 28px; }
.wy-merchant-layout { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 1.5fr); gap: 28px; align-items: start; }
.wy-offer-section-title { font-size: 20px; font-weight: 500; margin-bottom: 18px; }
.wy-offer-list { display: grid; gap: 16px; }
.wy-offer-list .wy-offer-panel { padding: 20px; }
.wy-offer-list .wy-offer-card-head { display: block; }
.wy-offer-list .wy-offer-status { margin-top: 9px; }
.wy-merchant-detail .wy-offer-panel + .wy-offer-panel { margin-top: 22px; }
.wy-merchant-detail { scroll-margin-top: var(--header-offset); }
.wy-bag-offer-link { margin: 18px 0 8px; }
.wy-bag-offer-link .wy-secondary { width: 100%; }
.wy-bag-offer-link p { margin-top: 9px; }
@media (max-width: 1000px) {
  .wy-offer-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; }
  .wy-offer-panel { padding: 22px; }
}
@media (max-width: 800px) {
  .wy-offer-layout, .wy-merchant-layout { grid-template-columns: 1fr; }
  .wy-offer-summary { position: static; }
  .wy-offer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .wy-offers-page { padding-top: 28px; }
  .wy-offers-page .wy-collection-heading { align-items: start; flex-direction: column; gap: 18px; }
  .wy-offer-panel { padding: 20px; }
  .wy-offer-card-head { flex-direction: column; }
  .wy-offer-form input:not([type=hidden]) { font-size: 16px; }
  .wy-offer-lines > li { gap: 12px; font-size: 13px; }
  .wy-offer-notice { padding: 20px; }
  .wy-merchant-toolbar { flex-wrap: wrap; }
}

/* Sandbox checkout status reuses offer panels without loading a payment SDK. */
.wy-checkout-return, .wy-checkout-blocked { margin-top: 0; margin-bottom: 24px; }
.wy-checkout-layout { margin-top: 28px; }
.wy-checkout-totals { display: grid; gap: 14px; margin: 20px 0; }
.wy-checkout-totals > div { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.wy-checkout-totals dt { color: var(--muted); }
.wy-checkout-totals dd { margin: 0; text-align: right; }
.wy-checkout-grand-total { border-top: 1px solid var(--line); padding-top: 18px; font-size: 18px; font-weight: 500; }
.wy-checkout-grand-total dt { color: var(--ink); }
.wy-checkout-state { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 20px; }
.wy-checkout-state h3 { font-size: 16px; font-weight: 500; margin-bottom: 12px; }
.wy-checkout-state > p { font-size: 13px; color: var(--muted); line-height: 1.8; }
.wy-checkout-state > .wy-primary { width: 100%; margin: 18px 0 12px; }
.wy-offer-status[data-checkout-state=paid] { background: var(--accent); color: var(--on-accent); border-color: transparent; }
