/* GREGMART - Listrak's own made-up store, the concept demo of the loyalty add-ins (docs/claude/CONVERSATION-RUNNER.md section
   1c "GregMart"). A normal store website - its header, its menu, its pages - with the add-ins dropped in by one script tag
   each. Phone | Wide draws the whole site at a phone's width, so the add-ins show their phone layout. */

.gm-bar .sc-bar-in { flex-wrap: wrap; gap: 10px; }
.gm-bar-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-left: auto; }
.gm-switch { display: inline-flex; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; overflow: hidden; }
.gm-switch button { background: transparent; color: inherit; border: 0; padding: 8px 14px; min-height: 40px; font: inherit; font-weight: 700; cursor: pointer; }
.gm-switch button[aria-pressed="true"] { background: #fff; color: #10201c; }
.gm-pill {
  min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .45); background: transparent; color: inherit;
  font: inherit; font-weight: 700; cursor: pointer;
}
.gm-pill-strong { background: #ffcf33; color: #1b1500; border-color: #ffcf33; }
.gm-signed { font-weight: 700; }

.gm-how { background: #0e1513; color: #e7efec; }
.gm-how-in { max-width: 1120px; margin: 0 auto; padding: 22px 20px; display: grid; gap: 12px; }
.gm-how h2 { font-size: 20px; margin: 0; }
.gm-how p { margin: 0; color: #b9c8c3; max-width: 72ch; }
.gm-pre { margin: 0; padding: 14px 16px; border-radius: 12px; background: #1b2522; color: #d5f5e8; overflow-x: auto; font: 13px/1.5 "DM Mono", ui-monospace, Consolas, monospace; white-space: pre; }

.gm-stage { background: #eef1ef; padding: 0 0 48px; }
.gm-site { background: #fff; color: #18211f; font-family: "Manrope", system-ui, sans-serif; margin: 0 auto; max-width: 1180px; }
body[data-gm-view="phone"] .gm-stage { padding: 24px 12px 48px; }
body[data-gm-view="phone"] .gm-site { max-width: 390px; border-radius: 34px; overflow: hidden; box-shadow: 0 24px 60px rgba(16, 32, 28, .25); border: 10px solid #111; }

.gm-ribbon { margin: 0; padding: 10px 16px; background: #fff7d6; color: #4a3b00; font-size: 14px; text-align: center; }
.gm-head { display: flex; align-items: center; gap: 16px; padding: 14px 20px; border-bottom: 1px solid #e3e8e6; flex-wrap: wrap; }
.gm-logo { font-weight: 800; font-size: 26px; letter-spacing: -.02em; color: #0f6b5c; text-decoration: none; }
.gm-logo span { color: #f2a900; }
.gm-menu { display: flex; gap: 4px; flex-wrap: wrap; flex: 1 1 auto; }
.gm-menu a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 999px; text-decoration: none; font-weight: 700; color: #24302d; }
.gm-menu a[aria-current="page"] { background: #0f6b5c; color: #fff; }
body[data-gm-view="phone"] .gm-menu { flex-wrap: nowrap; overflow-x: auto; }

.gm-hero { display: grid; gap: 18px; padding: 28px 20px; background: linear-gradient(120deg, #0f6b5c, #138a76); color: #fff; }
.gm-hero h1 { margin: 0; font-size: 34px; line-height: 1.1; letter-spacing: -.02em; }
.gm-hero p { margin: 0; font-size: 17px; max-width: 56ch; opacity: .95; }
.gm-hero-pic { min-height: 180px; border-radius: 18px; background-size: cover; background-position: center; }
@media (min-width: 860px) {
  body[data-gm-view="wide"] .gm-hero { grid-template-columns: 1.1fr 1fr; align-items: center; padding: 40px 32px; }
}
.gm-body { padding: 20px; display: grid; gap: 24px; }
.gm-body h2 { margin: 0 0 4px; font-size: 22px; }
.gm-h1 { margin: 0 0 6px; font-size: 32px; line-height: 1.1; letter-spacing: -.02em; }
.gm-lede { margin: 0; color: #4c5a56; }
.gm-addin { min-height: 360px; }
.gm-cols { display: grid; gap: 24px; }
@media (min-width: 900px) {
  body[data-gm-view="wide"] .gm-cols { grid-template-columns: 1fr 1fr; align-items: start; }
}
.gm-stores { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.gm-store { border: 1px solid #e3e8e6; border-radius: 16px; padding: 16px; display: grid; gap: 4px; }
.gm-store h3 { margin: 0; font-size: 18px; }
.gm-store p { margin: 0; color: #4c5a56; }
.gm-foot { padding: 20px; border-top: 1px solid #e3e8e6; font-size: 14px; color: #4c5a56; display: grid; gap: 6px; }
.gm-foot p { margin: 0; }

/* The points badge - an add-in in the store's own header. Its frame grows when its panel opens, so it sits in a positioned box
   and opens over the page instead of pushing it down. */
.gm-head { position: relative; }
.gm-badge-slot { position: relative; margin-left: auto; width: 320px; max-width: 100%; height: 56px; z-index: 5; }
.gm-badge-slot .gm-addin { position: absolute; top: 0; right: 0; width: 100%; min-height: 0; }
body[data-gm-view="phone"] .gm-badge-slot { width: 100%; }
.gm-badge-slot.gm-badge-open { z-index: 30; }
