/* Make an Offer pop-up. Uses the store theme colours so it follows light/dark. */
html body #offerModal.om-modal { width: min(900px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow: auto; box-sizing: border-box; padding: 28px; border: 0; border-radius: 20px; background: var(--surface); color: var(--ink); box-shadow: 0 28px 80px rgba(0,0,0,.55); }
#offerModal .om-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
#offerModal .om-head h2 { margin: 0; font-size: 1.75rem; font-weight: 900; line-height: 1.1; }
#offerModal .om-x { width: 36px; height: 36px; border: 0; border-radius: 999px; background: color-mix(in srgb, var(--ink) 10%, var(--surface)); color: var(--ink); font-size: 1.4rem; line-height: 1; cursor: pointer; }
#offerModal .om-body { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 28px; align-items: start; }
#offerModal .om-body.om-single { grid-template-columns: minmax(0, 1fr); max-width: 460px; margin: 0 auto; }
#offerModal .om-left, #offerModal .om-form { display: flex; flex-direction: column; gap: 14px; }
#offerModal .om-eyebrow { color: var(--muted); font-size: .625rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
#offerModal .om-eyebrow em { font-style: normal; font-weight: 600; letter-spacing: 0; text-transform: none; opacity: .7; }
#offerModal .om-accent { color: var(--red); }
#offerModal .om-beat, #offerModal .om-steps, #offerModal .om-as { background: color-mix(in srgb, var(--ink) 5%, var(--surface)); border-radius: 12px; }
#offerModal .om-beat { display: flex; align-items: center; gap: 12px; padding: 10px; }
#offerModal .om-beat img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex: none; }
#offerModal .om-beat div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
#offerModal .om-beat strong { font-size: 1.05rem; font-weight: 900; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#offerModal .om-beat small { color: var(--muted); font-size: .75rem; }
#offerModal .om-license { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px dashed var(--line-strong, var(--line)); border-radius: 12px; }
#offerModal .om-license strong { display: block; font-size: 1rem; font-weight: 900; }
#offerModal .om-license span { display: block; margin-top: 3px; color: var(--muted); font-size: .75rem; line-height: 1.35; }
#offerModal .om-license b { color: var(--red); font-size: .6875rem; font-weight: 800; white-space: nowrap; }
#offerModal .om-steps { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; }
#offerModal .om-steps p { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-size: .8125rem; line-height: 1.35; }
#offerModal .om-steps i { flex: none; width: 20px; height: 20px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 12%, var(--surface)); display: grid; place-items: center; font-style: normal; font-size: .6875rem; font-weight: 900; }
#offerModal .om-titleblock h3 { margin: 0; font-size: 1.25rem; font-weight: 900; }
#offerModal .om-titleblock p { margin: 4px 0 0; color: var(--muted); font-size: .8125rem; line-height: 1.4; }
#offerModal .om-seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 12px; background: color-mix(in srgb, var(--ink) 8%, var(--surface)); }
#offerModal .om-seg button { height: 36px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-weight: 700; font-size: .8125rem; font-family: inherit; cursor: pointer; }
#offerModal .om-seg button.on { background: var(--surface); color: var(--red); font-weight: 900; }
#offerModal .om-form label { display: flex; flex-direction: column; gap: 6px; }
#offerModal .om-form label > span:not(.om-eyebrow) { color: var(--muted); font-size: .75rem; font-weight: 700; }
#offerModal .om-form input, #offerModal .om-form textarea { box-sizing: border-box; width: 100%; border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--ink) 7%, var(--surface)); color: var(--ink); font-weight: 700; font-size: .9375rem; font-family: inherit; }
#offerModal .om-form input { height: 48px; padding: 0 14px; }
#offerModal .om-form textarea { min-height: 84px; padding: 12px 14px; resize: vertical; font-weight: 600; line-height: 1.4; }
#offerModal .om-form input:focus, #offerModal .om-form textarea:focus { outline: 0; border-color: var(--red); }
#offerModal .om-as { display: flex; align-items: center; gap: 10px; padding: 10px 14px; }
#offerModal .om-as div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
#offerModal .om-as b { font-size: .8125rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#offerModal .om-as button { border: 0; background: transparent; color: var(--muted); font-weight: 700; font-size: .75rem; font-family: inherit; cursor: pointer; text-decoration: underline; }
#offerModal .om-avatar { width: 30px; height: 30px; border-radius: 999px; background: var(--red); color: var(--palette-accent-text, #0b0b0c); display: grid; place-items: center; font-size: .75rem; font-weight: 900; flex: none; }
#offerModal .om-amount { display: flex; align-items: center; gap: 8px; height: 64px; padding: 0 16px; border: 1px solid var(--red); border-radius: 14px; background: color-mix(in srgb, var(--ink) 7%, var(--surface)); }
#offerModal .om-amount span { color: var(--muted); font-size: 1.75rem; font-weight: 900; }
#offerModal .om-form .om-amount input { flex: 1; min-width: 0; height: auto; padding: 0; border: 0; background: transparent; font-size: 2rem; font-weight: 900; }
#offerModal .om-amountwrap small { color: var(--muted); font-size: .75rem; }
#offerModal .om-msg { min-height: 18px; margin: 0; color: #ff8a8a; font-size: .8125rem; font-weight: 700; }
#offerModal .om-primary { height: 52px; border: 0; border-radius: 999px; background: var(--red); color: var(--palette-accent-text, #0b0b0c); font-weight: 900; font-size: .9375rem; font-family: inherit; cursor: pointer; }
#offerModal .om-primary:disabled { opacity: .6; cursor: default; }
#offerModal .om-sent { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 16px 0 8px; text-align: center; }
#offerModal .om-sent h3 { margin: 0; font-size: 1.625rem; font-weight: 900; }
#offerModal .om-sent p { margin: 0; max-width: 320px; color: var(--muted); font-size: .875rem; line-height: 1.45; }
#offerModal .om-check { width: 64px; height: 64px; border-radius: 999px; display: grid; place-items: center; color: var(--red); background: color-mix(in srgb, var(--red) 16%, var(--surface)); }
#offerModal .om-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; margin-top: 8px; }
#offerModal .om-ghost, #offerModal .om-solid { height: 48px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: .875rem; font-family: inherit; text-decoration: none; cursor: pointer; }
#offerModal .om-ghost { border: 1px solid var(--red); background: transparent; color: var(--red); }
#offerModal .om-solid { border: 0; background: var(--red); color: var(--palette-accent-text, #0b0b0c); }
@media (max-width: 700px) {
  html body #offerModal.om-modal { padding: 16px; border-radius: 20px; }
  #offerModal .om-head h2 { font-size: 1.5rem; }
  #offerModal .om-body { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  #offerModal .om-left { display: contents; }
  #offerModal .om-beat { order: 1; }
  #offerModal .om-license { order: 2; }
  #offerModal .om-right { order: 3; }
  #offerModal .om-steps { order: 4; }
}
