:root {
  --bg: #fff8ef;
  --ink: #221b2f;
  --muted: #6d6278;
  --primary: #7c3aed;
  --primary-dark: #5b21b6;
  --accent: #f59e0b;
  --rose: #fb7185;
  --card: #ffffff;
  --line: rgba(34, 27, 47, 0.12);
  --shadow: 0 24px 70px rgba(63, 37, 104, 0.16);
}

* { box-sizing: border-box; }
.modal:not(.show) { display: none; }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}
.fairee-role-header,
.fairee-role-header > * { min-width: 0; }
.fairee-story-meta,
.fairee-role-nav { max-width: 100%; min-width: 0; }
.fairee-current-chip { display: none; }
.fairee-profile-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.fairee-profile-card { padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,.82); box-shadow: var(--shadow); }
.fairee-profile-card h2 { margin-bottom: 10px; font-size: 2rem; }
.fairee-profile-card small { color: var(--muted); }
.fairee-profile-card-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.fairee-profile-card-heading .eyebrow { margin: 0; }
.fairee-profile-card-heading small { overflow-wrap: anywhere; text-align: right; }
.profile-edit-form label { display: grid; gap: 6px; margin: 14px 0; font-weight: 700; }
.profile-edit-form input, .profile-edit-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; font: inherit; }
.fairee-item-form { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; width: 100%; max-width: 1080px; padding: 30px; margin: 0 auto 28px; border: 1px solid #e5dff0; border-radius: 18px; background: #fff; box-shadow: 0 16px 38px rgba(45, 27, 70, .06); }
.fairee-item-form[hidden], #noItemsMessage[hidden] { display: none !important; }
.fairee-store-edit-form[hidden] { display: none !important; }
.fairee-store-edit-form { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 1080px; padding: 30px; margin: 0 auto 28px; border: 1px solid #e5dff0; border-radius: 18px; background: #fff; box-shadow: 0 16px 38px rgba(45, 27, 70, .06); }
.fairee-store-edit-form label { display: grid; gap: 8px; color: var(--ink); font-size: .88rem; font-weight: 800; }
.fairee-store-edit-form input, .fairee-store-edit-form textarea { width: 100%; padding: 13px 14px; border: 1px solid #ded8e7; border-radius: 10px; color: var(--ink); background: #fff; font: inherit; font-weight: 500; transition: border-color .2s ease, box-shadow .2s ease; }
.fairee-store-edit-form textarea { min-height: 128px; resize: vertical; }
.fairee-store-edit-form input:focus, .fairee-store-edit-form textarea:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(124, 58, 237, .1); }
.fairee-store-edit-form label:nth-of-type(3), .fairee-store-edit-form label:nth-of-type(4), .fairee-store-edit-actions { grid-column: 1 / -1; }
.fairee-store-image-controls { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 16px; align-items: center; }
.fairee-store-edit-actions { display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 70px; padding-top: 4px; border-top: 1px solid #eee9f5; }
.fairee-store-edit-actions button[type="submit"] { width: fit-content; min-width: 156px; }
.fairee-store-edit-actions .form-note { margin: 0; color: var(--muted); }
.fairee-item-form label { display: grid; align-self: start; gap: 8px; color: var(--ink); font-size: .88rem; font-weight: 800; }
.fairee-item-form input { height: 56px; }
.fairee-cost-field { display: grid; grid-template-columns: 100px 1fr; gap: 8px; }
.fairee-cost-field select { height: 56px; border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 0 8px; font: inherit; }
.fairee-item-form textarea { min-height: 142px; resize: vertical; }
.fairee-item-field-title, .fairee-item-field-tagline, .fairee-item-field-cost { grid-column: span 4; }
.fairee-item-field-quantity, .fairee-item-field-description { grid-column: span 6; }
.fairee-item-field-image, .fairee-item-preview { grid-column: span 6; }
.fairee-item-field-image { align-self: stretch !important; }
.fairee-item-field-image input { align-self: center; }
.fairee-item-preview { min-height: 142px; border: 1px dashed #d8d0e4; border-radius: 10px; display: grid; place-items: center; padding: 10px; color: var(--muted); background: #fcfbfe; overflow: hidden; }
.fairee-item-preview img { width: 100%; height: 120px; object-fit: contain; border-radius: 7px; }
.fairee-item-preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; width: 100%; }
.fairee-item-preview-grid figure { position: relative; margin: 0; aspect-ratio: 1; overflow: hidden; border-radius: 8px; background: #fff8ef; }
.fairee-item-preview-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.fairee-item-preview-grid button { position: absolute; top: 5px; right: 5px; display: grid; place-items: center; width: 25px; height: 25px; padding: 0; border: 0; border-radius: 50%; color: #fff; background: rgba(34,27,47,.78); font-weight: 800; cursor: pointer; }
.fairee-item-form-actions { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 70px; padding-top: 4px; border-top: 1px solid #eee9f5; }
.fairee-item-form-actions button { width: fit-content; min-width: 156px; }
.fairee-item-form-actions .form-note { margin: 0; color: var(--muted); }
.fairee-store-image-preview { display: grid; place-items: center; min-height: 112px; padding: 8px; border: 1px dashed #d8d0e4; border-radius: 10px; color: var(--muted); background: #fcfbfe; overflow: hidden; }
.fairee-store-image-preview img { width: 100%; height: 94px; object-fit: contain; border-radius: 7px; }
.fairee-items-loading { padding: 28px; text-align: center; color: var(--muted); }
.fairee-item-close { position: absolute; top: 16px; right: 20px; z-index: 2; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #f4edff; color: var(--ink); font-size: 1.2rem; font-weight: 800; cursor: pointer; }
@media (max-width: 720px) { .fairee-item-form, .fairee-store-edit-form { grid-template-columns: 1fr; padding: 22px 18px; } .fairee-item-form label, .fairee-item-preview, .fairee-store-edit-form label, .fairee-store-edit-actions { grid-column: 1 / -1; } .fairee-store-image-controls { grid-template-columns: 1fr; } .fairee-store-edit-actions, .fairee-item-form-actions { flex-direction: column; } .fairee-store-edit-actions .form-note, .fairee-item-form-actions .form-note { text-align: center; } }
#itemList { display: grid; grid-template-columns: 1fr; gap: 20px; width: 100%; margin-top: 24px; }
#itemList article { position: relative; display: grid !important; grid-template-columns: 86px 1fr; align-items: start; gap: 8px 18px !important; min-height: 150px; padding: 22px 28px !important; border: 1px solid rgba(34,27,47,.12) !important; border-radius: 22px !important; background: #fff !important; box-shadow: 0 12px 30px rgba(63,37,104,.08) !important; text-align: left; }
#itemList article h2 { margin: 0 !important; font-size: 1.8rem !important; line-height: 1.1 !important; letter-spacing: -.03em !important; }
#itemList article p { margin: 0 !important; color: var(--muted) !important; font-size: 1rem !important; }
#itemList article p + p { display: none !important; }
#itemList article h2, #itemList article p { grid-column: 2; }
#itemList article .fairee-item-card-image { grid-column: 1; grid-row: 1 / span 4; width: 76px; height: 76px; border-radius: 14px; object-fit: contain; background: #fff8ef; }
#itemList article strong { width: fit-content; padding: 7px 12px; border-radius: 999px; background: #f4edff; color: var(--primary-dark); }
#itemList article strong { position: absolute; top: 22px; right: 28px; }
#itemList article > div { position: absolute; top: 70px; right: 28px; display: flex; gap: 10px; }
#itemList article button { border: 0 !important; border-radius: 999px !important; padding: 9px 18px !important; background: #f4edff !important; color: var(--primary-dark) !important; font-weight: 800; }
#itemList article button[data-item-delete] { background: #fff0f1 !important; color: #be123c !important; }
#itemList article.is-editing { border: 2px solid var(--primary) !important; background: #fbf8ff !important; box-shadow: 0 0 0 5px rgba(124,58,237,.12), 0 16px 34px rgba(63,37,104,.16) !important; }
.fairee-item-form .fairee-item-close { grid-column: auto !important; width: 34px !important; min-width: 34px; height: 34px; justify-self: auto; padding: 0 !important; }
@media (max-width: 720px) { #itemList article { grid-template-columns: 76px 1fr; } #itemList article h2, #itemList article p { grid-column: 2; } }
.fairee-item-form input, .fairee-item-form textarea { width: 100%; padding: 13px 14px; border: 1px solid #ded8e7; border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-weight: 500; transition: border-color .2s ease, box-shadow .2s ease; }
.fairee-item-form input:focus, .fairee-item-form textarea:focus, .fairee-cost-field select:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(124, 58, 237, .1); }
.fairee-cost-field select { border-color: #ded8e7; border-radius: 10px; }
.fairee-item-form input[type="file"], .fairee-store-edit-form input[type="file"] { height: 56px; padding: 7px 10px; border: 1px solid #ded8e7; border-radius: 10px; background: #fff; color: var(--muted); cursor: pointer; }
.fairee-item-form input[type="file"]::file-selector-button, .fairee-store-edit-form input[type="file"]::file-selector-button { margin-right: 12px; padding: 10px 16px; border: 0; border-radius: 999px; background: #f4edff; color: var(--primary-dark); font: inherit; font-weight: 800; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.fairee-item-form input[type="file"]::file-selector-button:hover, .fairee-store-edit-form input[type="file"]::file-selector-button:hover { background: #eadcff; transform: translateY(-1px); }
.fairee-item-card { padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.86); }
.fairee-item-card { display: grid; gap: 10px; box-shadow: 0 12px 30px rgba(63,37,104,.08); transition: transform .2s ease, box-shadow .2s ease; }
.fairee-item-card-image { width: 100%; height: 190px; border-radius: 14px; object-fit: contain; background: #fff8ef; }
.fairee-item-card-placeholder { display: grid; width: 100%; height: 190px; place-items: center; border-radius: 14px; color: var(--primary); background: #fff8ef; font-size: 2.5rem; font-weight: 800; line-height: 1; }
.fairee-item-card:hover { transform: translateY(-2px); box-shadow: 0 18px 38px rgba(63,37,104,.14); }
.fairee-item-card h2 { margin: 0; font-size: 1.65rem; color: var(--ink); }
.fairee-item-card p { margin: 0; color: var(--muted); }
.fairee-item-card strong { display: inline-flex; width: fit-content; padding: 7px 12px; border-radius: 999px; background: #f4edff; color: var(--primary-dark); font-size: .9rem; }
.fairee-item-card > div { display: flex; gap: 10px; margin-top: 8px; }
.fairee-item-card button { border: 0; border-radius: 999px; padding: 9px 18px; font: inherit; font-weight: 800; cursor: pointer; background: #f4edff; color: var(--primary-dark); }
.fairee-item-card button[data-item-delete] { background: #fff0f1; color: #be123c; }
#availableFairs, #availableGrid, .seeker-hidden-feature { display: none !important; }
#itemList > article { display: grid; gap: 10px; padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 12px 30px rgba(63,37,104,.08); }
#itemList > article h2 { margin: 0 !important; font-size: 1.8rem !important; line-height: 1.1; }
#itemList > article p { margin: 0; color: var(--muted); }
#itemList > article strong { color: var(--primary-dark); }
#itemList > article button { border: 0; border-radius: 999px; padding: 9px 18px; font-weight: 800; }
#itemList > article button[data-item-delete] { background: #fff0f1; color: #be123c; }

/* Keep seeker and contributor workspaces visually distinct. */
body.fairee-seeker-app-page {
  background:
    radial-gradient(circle at 12% 8%, rgba(14, 165, 233, .16), transparent 28%),
    radial-gradient(circle at 90% 20%, rgba(20, 184, 166, .12), transparent 30%),
    linear-gradient(180deg, #f0f9ff 0%, #ffffff 48%, #ecfeff 100%);
}

body.fairee-contributor-app-page {
  background:
    radial-gradient(circle at 12% 8%, rgba(245, 158, 11, .18), transparent 28%),
    radial-gradient(circle at 90% 20%, rgba(124, 58, 237, .14), transparent 30%),
    linear-gradient(180deg, #fffaf4 0%, #ffffff 48%, #fff8ef 100%);
}

a { color: inherit; text-decoration: none; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.section { padding: 88px 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 248, 239, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.35rem; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; background: linear-gradient(135deg, var(--primary), var(--rose)); box-shadow: 0 10px 30px rgba(124,58,237,.26); }
.nav-links { display: flex; gap: 26px; align-items: center; color: var(--muted); font-weight: 600; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { color: #fff !important; background: var(--ink); padding: 10px 16px; border-radius: 999px; border: 0; font: inherit; font-weight: 800; cursor: pointer; }
.nav-toggle { display: none; border: 0; background: transparent; font-size: 1.8rem; }

.hero { padding-top: 96px; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; color: var(--primary); font-size: .78rem; font-weight: 800; margin: 0 0 14px; }
h1, h2, h3 { line-height: 1.08; margin: 0; }
h1 { font-size: clamp(3.1rem, 8vw, 6.3rem); letter-spacing: -0.07em; }
h1 span { font-family: "Playfair Display", serif; background: linear-gradient(90deg, var(--primary), var(--rose), var(--accent)); -webkit-background-clip: text; color: transparent; }
h2 { font-size: clamp(2.1rem, 4vw, 3.5rem); letter-spacing: -0.04em; }
h3 { font-size: 1.16rem; }
.hero-text { font-size: 1.22rem; color: var(--muted); max-width: 680px; margin: 24px 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 18px; }
.btn { display: inline-flex; justify-content: center; align-items: center; border-radius: 999px; padding: 14px 22px; font-weight: 800; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 14px 30px rgba(124, 58, 237, .28); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { border-color: var(--line); background: rgba(255,255,255,.7); color: var(--ink); }
.btn-secondary:hover { border-color: var(--primary); background: #f4edff; color: var(--primary-dark); }
.microcopy { color: var(--muted); font-size: .95rem; }

.hero-card { background: rgba(255,255,255,.82); border: 1px solid var(--line); border-radius: 34px; padding: 28px; box-shadow: var(--shadow); transform: rotate(1deg); }
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.pill { background: rgba(245,158,11,.16); color: #8a5200; padding: 6px 12px; border-radius: 999px; font-weight: 800; font-size: .8rem; }
.status-dot { width: 12px; height: 12px; background: #22c55e; border-radius: 50%; box-shadow: 0 0 0 6px rgba(34,197,94,.13); }
.muted { color: var(--muted);padding-top:20px }
.chat-bubble { padding: 14px 16px; border-radius: 18px; margin: 14px 0; }
.chat-bubble.seeker { background: #f4edff; margin-left: 34px; }
.chat-bubble.ai { background: #fff2d9; margin-right: 34px; }
.offer-box { margin-top: 20px; background: var(--ink); color: #fff; border-radius: 22px; padding: 18px; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.offer-box span { display: block; opacity: .7; font-size: .82rem; }
.offer-box button, .offer-box .btn { border: 0; border-radius: 999px; background: var(--accent); color: var(--ink); padding: 10px 18px; font-weight: 900; box-shadow: none; }
.mini-modes { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.mini-modes span { border: 1px solid var(--line); border-radius: 999px; padding: 7px 10px; font-size: .8rem; font-weight: 700; color: var(--muted); }

.story-section { background: #fff; border-block: 1px solid var(--line); }
.story-section p:last-child, .section-heading p { color: var(--muted); font-size: 1.08rem; }
.section-heading { max-width: 780px; margin-bottom: 36px; }
.section-heading.center { margin-left: auto; margin-right: auto; }
.section-heading.light h2, .section-heading.light .eyebrow { color: #fff; }

.steps, .category-grid, .revenue-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step-card, .category-grid article, .revenue-grid article { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 24px; box-shadow: 0 12px 34px rgba(34,27,47,.06); }
.step-number { color: var(--rose); font-weight: 900; }
.step-card h3, .category-grid h3, .revenue-grid h3 { margin: 14px 0 10px; }
.step-card p, .category-grid p, .revenue-grid p { color: var(--muted); margin: 0; }

.modes-section { background: linear-gradient(135deg, #241739, #4c1d95); color: #fff; }
.mode-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mode-card { padding: 22px; border-radius: 24px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.08); cursor: pointer; transition: .2s ease; }
.mode-card:hover, .mode-card.active { background: rgba(255,255,255,.18); transform: translateY(-3px); }
.mode-card p { color: rgba(255,255,255,.72); }
.mode-preview { margin-top: 20px; border-radius: 28px; background: #fff; color: var(--ink); padding: 24px; box-shadow: var(--shadow); }
.mode-preview span { color: var(--primary); text-transform: uppercase; letter-spacing: .14em; font-size: .76rem; font-weight: 900; }
.mode-preview p { font-size: 1.25rem; margin: 8px 0 0; }

.category-grid { grid-template-columns: repeat(3, 1fr); }
.category-grid span { font-size: 2rem; }

.contributor-section { background: #fff; border-block: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 1fr .86fr; gap: 46px; align-items: center; }
.check-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 30px; color: var(--muted); font-weight: 600; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: #16a34a; font-weight: 900; }
.control-panel { min-width: 0; height: 100%; display: flex; flex-direction: column; background: var(--ink); border-radius: 32px; padding: 24px; color: #fff; box-shadow: var(--shadow); }
.control-panel h2 { margin: 0 0 16px; font-size: clamp(2rem, 4vw, 2.6rem); line-height: 1.05; letter-spacing: 0; }
.panel-row { display: flex; justify-content: space-between; gap: 14px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.panel-row:last-child { border-bottom: 0; }
.panel-row span { color: rgba(255,255,255,.62); }
.panel-row strong { text-align: right; }
.fairee-store-settings-page { max-width: 1040px; }
.fairee-settings-list, .fairee-payment-options { display: grid; gap: 12px; }
.fairee-settings-list article, .fairee-payment-options label { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.fairee-settings-list strong, .fairee-payment-options strong { display: block; color: var(--ink); }
.fairee-settings-list p, .fairee-payment-options small { display: block; margin: 5px 0 0; color: var(--muted); line-height: 1.45; }
.fairee-settings-toggle { position: relative; width: 46px; height: 26px; flex: 0 0 auto; cursor: pointer; }
.fairee-settings-toggle input { position: absolute; opacity: 0; }
.fairee-settings-toggle span { position: absolute; inset: 0; border-radius: 99px; background: #ded8e6; transition: background .2s ease; }
.fairee-settings-toggle span::after { content: ""; position: absolute; top: 4px; left: 4px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s ease; }
.fairee-settings-toggle input:checked + span { background: var(--primary); }
.fairee-settings-toggle input:checked + span::after { transform: translateX(20px); }
.fairee-payment-options label { cursor: pointer; }
.fairee-payment-options input { width: 18px; height: 18px; margin: 0; accent-color: var(--primary); }
.fairee-payment-options label > span { flex: 1; }
.fairee-payment-options b { color: var(--primary-dark); font-size: .82rem; }
.fairee-payment-collection-form { margin-top: 24px; padding: 0; border: 1px solid #ded4f7; border-radius: 24px; background: #fff; box-shadow: 0 26px 70px rgba(33,24,46,.08); overflow: hidden; }
.fairee-payment-collection-layout {grid-template-columns: minmax(0, 1fr) 310px; align-items: start; min-height: 520px; }
.fairee-payment-collection-main { min-width: 0; padding: 30px; }
.fairee-payment-collection-heading { padding-bottom: 22px; border-bottom: 1px solid #eadffb; }
.fairee-payment-kicker { display: inline-flex; align-items: center; width: max-content; margin-bottom: 10px; padding: 6px 10px; border-radius: 999px; background: #f3ebff; color: var(--primary); font-size: .72rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.fairee-payment-collection-heading h2, .fairee-payment-collection-heading h5, .fairee-payment-collection-panel h3, .fairee-gateway-details h3 { margin: 0; color: var(--ink); letter-spacing: 0; }
.fairee-payment-collection-heading h5 { font-size: 1.55rem; line-height: 1.16; }
.fairee-payment-collection-heading p { max-width: 680px; margin: 8px 0 0; color: var(--muted); line-height: 1.5; }
.fairee-payment-methods, .fairee-gateway-radios { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.fairee-payment-source-methods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fairee-payment-methods label, .fairee-gateway-radios label { position: relative; display: flex; gap: 14px; align-items: flex-start; min-height: 108px; padding: 18px; border: 1px solid #e5dcf3; border-radius: 14px; background: linear-gradient(180deg, #fff 0%, #fffdfb 100%); cursor: pointer; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease; }
.fairee-payment-methods label::after, .fairee-gateway-radios label::after { content: ""; position: absolute; inset: -1px auto -1px -1px; width: 4px; border-radius: 14px 0 0 14px; background: transparent; transition: background .18s ease; }
.fairee-payment-methods label:hover, .fairee-gateway-radios label:hover { border-color: #cdb9f4; box-shadow: 0 16px 34px rgba(33,24,46,.07); transform: translateY(-1px); }
.fairee-payment-methods label.is-selected, .fairee-gateway-radios label.is-selected { border-color: #a975ff; background: #f8f3ff; box-shadow: 0 8px 18px rgba(124,58,237,.08); }
.fairee-payment-methods label.is-selected::after, .fairee-gateway-radios label.is-selected::after { background: var(--primary); }
.fairee-payment-methods input, .fairee-gateway-radios input { width: 19px; height: 19px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--primary); }
.fairee-payment-option-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 auto; border: 1px solid #eadffb; border-radius: 12px; background: #fbf8ff; color: var(--primary); }
.fairee-payment-option-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fairee-payment-methods label.is-selected .fairee-payment-option-icon, .fairee-gateway-radios label.is-selected .fairee-payment-option-icon { border-color: #c9b4f4; background: #fff; color: var(--primary-dark); box-shadow: inset 0 0 0 1px rgba(124,58,237,.08); }
.fairee-payment-methods span, .fairee-gateway-radios span { display: grid; gap: 6px; min-width: 0; }
.fairee-payment-methods strong, .fairee-gateway-radios strong { color: var(--ink); font-size: 1.03rem; line-height: 1.25; }
.fairee-payment-methods small, .fairee-gateway-radios small { color: var(--muted); line-height: 1.45; }
.fairee-payment-collection-panel { margin-top: 24px; padding: 24px; border: 1px solid #eadffb; border-radius: 16px; background: #fff; }
.fairee-payment-collection-panel .fairee-payment-collection-panel { border-color: #eee7f8; background: #fbf9ff; box-shadow: none; }
.fairee-payment-collection-panel > .muted { max-width: 640px; margin: 8px 0 0; line-height: 1.5; }
.fairee-gateway-radios { margin-top: 16px; }
.fairee-gateway-details { margin-top: 22px; padding: 22px; border: 1px solid #eadffb; border-radius: 16px; background: linear-gradient(180deg, #fbf8ff 0%, #fff 100%); }
.fairee-payment-summary-card { position: sticky; top: 24px; display: grid; gap: 12px; min-height: 520px; padding: 30px; border-left: 1px solid #eadffb; background: linear-gradient(180deg, #fbf8ff 0%, #fff 62%); }
.fairee-payment-summary-card strong { color: var(--ink); font-size: 1.45rem; line-height: 1.12; }
.fairee-payment-summary-card p { margin: 0; color: var(--muted); line-height: 1.5; }
.fairee-payment-summary-list { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 18px; padding-top: 18px; border-top: 1px solid #eadffb; }
.fairee-payment-summary-list span { color: var(--muted); font-size: .78rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.fairee-payment-summary-list b { margin-bottom: 8px; color: var(--ink); }
.fairee-payment-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.fairee-payment-field-grid label, .fairee-payment-field { display: grid; gap: 8px; }
.fairee-payment-field-grid span, .fairee-payment-field span { color: var(--ink); font-weight: 800; font-size: .9rem; }
.fairee-payment-field-grid input, .fairee-payment-field input, .fairee-payment-field textarea, .fairee-payment-field select { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #dccff1; border-radius: 12px; background: #fff; color: var(--ink); font: inherit; outline: none; transition: border-color .18s ease, box-shadow .18s ease; }
.fairee-payment-field select:disabled { border-color: #e7e1ef; color: #867d92; background: #f5f3f7; cursor: not-allowed; opacity: 1; }
.fairee-payment-field-grid input:focus, .fairee-payment-field input:focus, .fairee-payment-field textarea:focus, .fairee-payment-field select:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(124,58,237,.1); }
.fairee-payment-field textarea { min-height: 116px; resize: vertical; }
.fairee-payment-field { max-width: 620px; margin-top: 18px; }
.fairee-payment-collection-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0; padding: 18px 30px; border-top: 1px solid #eadffb; background: linear-gradient(90deg, #fcfbff 0%, #f7f2ff 100%); }
.fairee-payment-collection-footer .form-note { min-height: 22px; margin: 0; color: #625878; font-size: .92rem; font-weight: 700; }
.fairee-payment-collection-footer .form-note:not(:empty) { display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; border: 1px solid #dcd1f5; border-radius: 999px; color: #5d3caa; background: #fff; }
.fairee-payment-collection-footer .form-note:not(:empty)::before { width: 7px; height: 7px; border-radius: 50%; background: #38a169; content: ""; }
.fairee-payment-collection-footer .btn { min-width: 190px; margin: 0 !important; box-shadow: 0 10px 24px rgba(124,58,237,.24); }
.fairee-transaction-summary, .fairee-report-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.fairee-transaction-summary > div, .fairee-report-grid article { display: grid; gap: 8px; min-height: 132px; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.fairee-transaction-summary span, .fairee-report-grid span, .fairee-report-grid small { color: var(--muted); }
.fairee-transaction-summary strong, .fairee-report-grid strong { color: var(--ink); font-size: 1.8rem; }
.fairee-empty-table { margin-top: 20px; padding: 46px 24px; border: 1px dashed #d8d1e3; border-radius: 12px; text-align: center; background: #fbf9ff; }
.fairee-empty-table strong { color: var(--ink); font-size: 1.1rem; }
.fairee-empty-table p { margin: 8px 0 0; color: var(--muted); }
.fairee-ai-workspace { display: grid; gap: 18px; margin-top: 28px; }
.fairee-ai-agent-card { position: relative; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 16px; align-items: center; min-height: 118px; padding: 18px 24px; border: 1px solid #eadffb; border-left: 5px solid var(--primary); border-radius: 18px; background: linear-gradient(180deg, #fff 0%, #fffdfb 100%); box-shadow: 0 10px 24px rgba(33,24,46,.045); }
.fairee-ai-agent-card-heading { display: grid; grid-template-columns: 44px minmax(0,1fr) auto; gap: 12px; align-items: center; min-width: 0; }
.fairee-ai-agent-card-heading h2 { margin: 0; color: var(--ink); font-size: 1.12rem; letter-spacing: 0; }
.fairee-ai-agent-card-heading p { margin: 4px 0 0; color: var(--muted); line-height: 1.35; }
.fairee-ai-agent-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.fairee-ai-stat-pill { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 7px 12px; border: 1px solid #d9f7e8; border-radius: 10px; background: #ecfdf5; color: #047857; font-size: .82rem; font-weight: 900; }
.fairee-ai-stat-pill i { display: block; width: 12px; height: 12px; border-radius: 50%; background: #059669; }
.fairee-ai-stat-pill.is-size { border-color: #e2d8fb; background: #f6f0ff; color: var(--primary); }
.fairee-ai-stat-pill.is-size i { width: 13px; height: 13px; border-radius: 3px; background: var(--primary); }
.fairee-ai-status-switch { display: inline-flex; align-items: center; min-height: 34px; padding: 3px; border: 1px solid #e2d8fb; border-radius: 999px; background: #f3eefb; color: #675a79; font-size: .82rem; font-weight: 900; }
.fairee-ai-status-switch b { min-width: 78px; padding: 7px 15px; border-radius: 999px; background: #d9fbe7; color: #047857; text-align: center; box-shadow: 0 2px 8px rgba(4,120,87,.12); }
.fairee-ai-status-switch span { min-width: 82px; padding: 7px 13px; text-align: center; }
.fairee-ai-status { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 6px 14px; border-radius: 999px; background: #d9fbe7; color: #047857; font-weight: 900; }
.fairee-ai-agent-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 auto; border: 1px solid #e2d5fb; border-radius: 12px; background: #f6f0ff; color: var(--primary); }
.fairee-ai-agent-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.85; stroke-linecap: round; stroke-linejoin: round; }
.fairee-ai-agent-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.fairee-ai-agent-actions button, .fairee-ai-agent-actions a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 12px; border: 1px solid #e3d8f5; border-radius: 11px; background: #fff; color: var(--ink); font-weight: 900; text-decoration: none; cursor: pointer; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease; }
.fairee-ai-agent-actions button:hover, .fairee-ai-agent-actions a:hover { border-color: #c9b4f4; background: #faf7ff; box-shadow: 0 10px 24px rgba(124,58,237,.09); transform: translateY(-1px); }
.fairee-ai-agent-actions .fairee-ai-chat-button { justify-content: center; width: 44px; min-width: 44px; padding: 0; border-color: var(--primary); background: var(--primary); color: #fff; box-shadow: 0 12px 24px rgba(124,58,237,.18); }
.fairee-ai-agent-actions .fairee-ai-chat-button:hover { border-color: var(--primary-dark); background: var(--primary-dark); color: #fff; }
.fairee-ai-chat-button .fairee-ai-agent-icon { border: 0; background: transparent; color: inherit; }
.fairee-ai-agent-actions .fairee-ai-agent-icon { width: 28px; height: 28px; border-radius: 8px; }
.fairee-ai-agent-actions .fairee-ai-agent-icon svg { width: 16px; height: 16px; }
.fairee-ai-settings-panel, .fairee-ai-conversation-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding-top: 18px; border-top: 1px solid #edf2f8; }
.fairee-ai-settings-panel label { display: grid; gap: 8px; color: var(--ink); font-weight: 900; }
.fairee-ai-settings-panel input, .fairee-ai-settings-panel select, .fairee-ai-conversation-panel input, .fairee-ai-training-grid input, .fairee-ai-training-grid select, .fairee-ai-training-entry input[type="url"], .fairee-ai-training-entry textarea, .fairee-ai-instruction-field input:not([type="checkbox"]), .fairee-ai-instruction-field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #dccff1; border-radius: 13px; background: #fff; color: var(--ink); font: inherit; outline: none; }
.fairee-ai-conversation-panel { grid-template-columns: 1fr; }
.fairee-ai-page-note { margin-top: 16px; }
.fairee-ai-back-button { margin: 20px 0; }
.fairee-ai-header-back { white-space: nowrap; }
.fairee-ai-training-page { display: grid; gap: 24px; margin-top: 20px; padding: 26px; border: 1px solid #eadffb; border-radius: 18px; background: linear-gradient(180deg, #fff 0%, #fffdfb 100%); box-shadow: 0 14px 34px rgba(33,24,46,.055); }
.fairee-ai-training-flow { margin-top: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.fairee-ai-training-title { display: grid; grid-template-columns: 52px minmax(0,1fr); gap: 14px; align-items: center; padding-bottom: 20px; border-bottom: 1px solid #eadffb; }
.fairee-ai-training-title h2 { margin: 0; color: var(--ink); font-size: 1.35rem; letter-spacing: 0; }
.fairee-ai-training-title p { margin: 5px 0 0; color: var(--muted); }
.fairee-ai-training-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fairee-ai-training-grid label { display: grid; gap: 8px; color: var(--ink); font-weight: 900; }
.fairee-ai-training-grid label:first-child:last-child { grid-column: 1 / -1; }
.fairee-ai-step-field { align-content: start; }
.fairee-ai-step-label { display: inline-flex; align-items: center; gap: 10px; min-height: 30px; color: var(--ink); font-weight: 950; }
.fairee-ai-step-label b { display: inline-grid; width: 30px; height: 30px; place-items: center; border-radius: 10px; background: #0b99ff; color: #fff; font-size: .92rem; line-height: 1; box-shadow: 0 10px 22px rgba(11,153,255,.24); }
.fairee-ai-step-label i { display: inline-grid; width: 16px; height: 16px; place-items: center; border-radius: 50%; background: #64748b; color: #fff; font-style: normal; font-size: .68rem; font-weight: 900; }
.fairee-ai-step-heading { margin-top: 2px; }
.fairee-ai-training-flow .fairee-ai-training-grid input,
.fairee-ai-training-flow .fairee-ai-training-grid select { min-height: 60px; padding: 0 24px; border-color: #cfe0f4; border-radius: 18px; font-weight: 500; box-shadow: none; }
.fairee-ai-training-flow .fairee-ai-training-grid select:focus,
.fairee-ai-training-flow .fairee-ai-training-grid input:focus { border-color: #0b99ff; box-shadow: 0 0 0 4px rgba(11,153,255,.16); }
.fairee-ai-training-methods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fairee-ai-training-methods label { position: relative; display: grid; grid-template-columns: 22px 52px minmax(0,1fr); gap: 14px; align-items: center; min-height: 136px; padding: 22px; border: 1px solid #d8e2f0; border-radius: 18px; background: #fff; cursor: pointer; }
.fairee-ai-training-methods label.is-selected { border-color: #0b99ff; background: #f6fbff; box-shadow: 0 16px 34px rgba(11,153,255,.10); }
.fairee-ai-training-methods label.is-selected::after { position: absolute; left: 50%; bottom: -38px; width: 26px; height: 26px; border-top: 2px solid #0b99ff; border-left: 2px solid #0b99ff; background: #f6fbff; content: ""; transform: translateX(-50%) rotate(45deg); }
.fairee-ai-training-methods input { width: 20px; height: 20px; accent-color: #0b99ff; }
.fairee-ai-training-methods strong { display: block; color: var(--ink); font-size: 1.02rem; }
.fairee-ai-training-methods small { display: block; margin-top: 4px; color: var(--muted); line-height: 1.4; }
.fairee-ai-training-entry { display: grid; gap: 18px; padding: 26px; border: 1px solid #b9dcff; border-radius: 20px; background: #f7fbff; box-shadow: 0 22px 48px rgba(11,153,255,.08); }
.fairee-ai-training-entry .btn { justify-self: end; background: #0b99ff; box-shadow: 0 14px 30px rgba(11,153,255,.22); }
.fairee-ai-upload-box { position: relative; display: grid; min-height: 182px; place-items: center; gap: 10px; padding: 28px; border: 1px dashed #9ed0ff; border-radius: 16px; background: rgba(255,255,255,.72); text-align: center; }
.fairee-ai-upload-box input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.fairee-ai-upload-box .fairee-ai-agent-icon { width: 56px; height: 56px; border-radius: 16px; background: #0b99ff; color: #fff; }
.fairee-ai-upload-box strong { color: var(--ink); }
.fairee-ai-upload-box span { color: #006fc9; font-size: .9rem; font-weight: 800; }
.fairee-ai-upload-box { position: relative; display: grid; place-items: center; gap: 9px; min-height: 180px; padding: 26px; border: 1px dashed #c9b4f4; border-radius: 16px; text-align: center; background: #fff; }
.fairee-ai-upload-box input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.fairee-ai-upload-box strong { color: var(--ink); }
.fairee-ai-upload-box span { color: var(--primary); font-weight: 800; }
.fairee-ai-instructions-modal-header { display: flex; align-items: center; gap: 14px; }
.fairee-ai-instructions-modal-header h2 { margin: 0; color: var(--ink); font-size: 1.45rem; letter-spacing: 0; }
.fairee-ai-instructions-modal { display: grid; gap: 20px; }
.fairee-ai-instructions-banner { display: grid; grid-template-columns: 52px minmax(0,1fr); gap: 14px; align-items: center; padding: 18px 20px; border: 1px solid #ded2fb; border-radius: 16px; background: #f7f1ff; }
.fairee-ai-instructions-banner strong { color: var(--ink); }
.fairee-ai-instructions-banner p { margin: 4px 0 0; color: var(--muted); }
.fairee-ai-instruction-field { display: grid; gap: 8px; padding: 20px; border: 1px solid #eadffb; border-radius: 16px; background: #fffdfb; color: var(--ink); font-weight: 900; }
.fairee-ai-instruction-field textarea { min-height: 260px; resize: vertical; line-height: 1.6; }
.fairee-ai-instruction-checks { display: flex; flex-wrap: wrap; gap: 14px; color: #52657c; font-weight: 800; }
.fairee-ai-instruction-checks span::before { content: "\2713"; margin-right: 6px; color: #10b981; }

.revenue-grid { grid-template-columns: repeat(3, 1fr); }
.quote-section { background: radial-gradient(circle at center, rgba(245,158,11,.24), transparent 42%); }
.quote-section h2 { font-family: "Playfair Display", serif; font-size: clamp(2.5rem, 6vw, 5rem); }
.quote-section p { color: var(--muted); }

.join-section { padding-top: 40px; }
.join-card { display: grid; grid-template-columns: .9fr 1.1fr; gap: 36px; background: #fff; border: 1px solid var(--line); border-radius: 36px; padding: 36px; box-shadow: var(--shadow); align-items: center; }
.signup-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.signup-form label { font-weight: 800; color: var(--ink); }
.signup-form input, .signup-form select { width: 100%; margin-top: 6px; padding: 14px 14px; border-radius: 14px; border: 1px solid var(--line); font: inherit; background: #fffaf5; }
.signup-form button { grid-column: span 2; }
.form-note { grid-column: span 2; margin: 0; color: var(--muted); font-size: .9rem; }
.section-action { margin-top: 28px; }

.site-footer { padding: 30px 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; color: var(--muted); }
.fairee-exvisor-footer {border-top: 1px solid var(--line); background: #fbf9ff; }
.fairee-exvisor-footer-inner { width: min(1180px, calc(100% - 40px)); min-height: 88px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.fairee-exvisor-footer-copy { display: grid; gap: 3px; color: var(--muted); font-size: .78rem; line-height: 1.35; }
.fairee-exvisor-footer-copy strong { color: var(--ink); font-size: .88rem; }
.fairee-footer-links { display: flex; align-items: center; justify-content: flex-end; gap: 18px; color: var(--muted); font-size: .84rem; font-weight: 750; }
.fairee-footer-links a { color: inherit; text-decoration: none; }
.fairee-footer-links a:hover, .fairee-footer-links a:focus-visible { color: var(--primary); text-decoration: none; }
@media (max-width: 620px) { .fairee-exvisor-footer { margin-top: 32px; } .fairee-exvisor-footer-inner { width: min(100% - 28px, 1180px); min-height: auto; padding: 22px 0; flex-direction: column; justify-content: center; gap: 14px; text-align: center; } .fairee-footer-links { justify-content: center; flex-wrap: wrap; } }

.preview-login-required { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(33, 27, 47, .44); backdrop-filter: blur(8px); }
.preview-login-required-card { width: min(440px, 100%); position: relative; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 24px 70px rgba(33, 27, 47, .24); color: var(--ink); }
.preview-login-required-card h2 { margin: 6px 0 8px; font-size: 1.55rem; line-height: 1.15; }
.preview-login-required-card p:not(.eyebrow) { margin: 0 0 18px; color: var(--muted); line-height: 1.55; }
.preview-login-required-card [data-preview-login-close] { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #f4edff; color: var(--ink); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.preview-login-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border-radius: 999px; background: var(--primary); color: #fff; font-weight: 800; text-decoration: none; box-shadow: 0 10px 24px rgba(124, 58, 237, .22); }

.fairee-role-header {
  min-height: 74px;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 248, 239, .92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.fairee-role-header .small-brand {
  flex: 0 0 auto;
  line-height: 1;
  text-decoration: none;
}
.fairee-login-only-header .fairee-role-nav { display: none; }
.fairee-login-only-header .fairee-story-meta { display: none; }
.fairee-role-header .small-brand .brand-mark { width: 36px; height: 36px; border-radius: 12px; }
.fairee-contributor-layout { min-height: 100vh; display: flex; flex-direction: column; }
.fairee-contributor-layout #top { flex: 1 0 auto; }
.fairee-contributor-layout .fairee-exvisor-footer { flex: 0 0 auto; }
.fairee-story-meta { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.fairee-story-meta .meta-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: .85rem;
  font-weight: 800;
}
.fairee-story-meta .header-link-chip { color: var(--primary); }
.fairees-header-link {
  color: var(--ink);
  font-size: .9rem;
  font-weight: 750;
  text-decoration: none;
}
.fairees-header-link:hover {
  color: var(--primary);
  text-decoration: none;
}
body.fairees-main-page .fairee-role-header {
  min-height: 72px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2 + 24px));
  gap: 28px;
  background: rgba(255, 250, 243, .95);
  backdrop-filter: blur(12px);
}
body.fairees-main-page .fairee-story-meta {
  gap: 26px;
  margin-left: auto;
}
body.fairees-main-page .fairees-header-link {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}
body.fairees-main-page .fairees-header-link:hover {
  color: var(--primary);
}
body.fairees-main-page .fairee-role-nav .fairee-auth-link {
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 24px;
  background: var(--ink);
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  box-shadow: none;
}
body.fairees-main-page .fairee-role-nav .fairee-auth-link:hover {
  background: var(--ink);
  color: #fff !important;
}
.fairee-role-nav { display: flex; align-items: center; justify-content: flex-end; flex: 0 0 auto; gap: 12px; color: var(--muted); font-weight: 700; }
.fairee-role-nav a:hover { color: var(--ink); }
.fairee-role-nav .fairee-auth-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid #ded7e8;
  border-radius: 999px;
  background: #fff;
  color: var(--ink) !important;
  font-size: .88rem;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(51, 38, 62, .05);
  white-space: nowrap;
}
.fairee-role-nav .fairee-auth-link:hover {
  border-color: #c9bbdc;
  background: #fbf8ff;
  color: var(--ink) !important;
}
.fairee-user-menu { position: relative; }
.fairee-user-menu[hidden], #faireeHeaderLoginLink[hidden] { display: none; }
.fairee-user-dropdown a[hidden], .fairee-role-nav > a[hidden] { display: none; }
.fairee-user-button {
  min-height: 42px;
  max-width: 240px;
  padding: 5px 12px 5px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.fairee-user-button[aria-expanded="true"] {
  border-color: #cbbffc;
  background: #fbf9ff;
}
.fairee-user-avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: .72rem;
  font-weight: 900;
}
.fairee-user-button > span:first-child:not(.fairee-user-caret) {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: .72rem;
  flex: 0 0 32px;
}
#faireeUserLabel {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 150px;
  font-size: .95rem;
}
.fairee-user-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--muted);
  transition: transform .2s ease;
}
.fairee-user-button[aria-expanded="true"] .fairee-user-caret { transform: rotate(180deg); }
.fairee-user-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(260px, calc(100vw - 32px));
  min-width: 220px;
  max-width: calc(100vw - 32px);
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(50,38,110,.16);
  display: none;
  z-index: 80;
}
.fairee-user-dropdown.is-open { display: grid; }
.fairee-user-dropdown-title {
  padding: 10px 11px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-weight: 900;
}
.fairee-user-dropdown a,
.fairee-user-dropdown button {
  width: 100%;
  padding: 11px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  font-size: 1rem;
}
.fairee-user-dropdown a:hover,
.fairee-user-dropdown button:hover { background: #f6f3ff; }
.fairee-login-shell { min-height: calc(100vh - 74px); display: grid; align-items: center; }
.fairee-login-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 48px; align-items: center; }
.fairee-login-panel {
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: #fff;
  box-shadow: var(--shadow);
}
.login-panel-top, .current-user-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.current-user-card[hidden] { display: none; }
.login-panel-top { margin-bottom: 22px; }
.login-panel-top h2 { margin-top: 10px; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.login-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--rose));
  font-weight: 900;
  font-size: 1.4rem;
}
.current-user-card { margin-bottom: 18px; padding: 14px; border-radius: 18px; background: #fff8ef; }
.current-user-card span, .current-user-card strong { display: block; }
.current-user-card span { color: var(--muted); font-size: .82rem; }
.login-progress { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 22px; }
.login-progress span { height: 7px; border-radius: 999px; background: #eadff7; }
.login-progress span.is-active { background: var(--primary); }
.login-step { display: none; }
.login-step.is-active { display: grid; gap: 16px; }
.fairee-login-panel label { display: grid; gap: 8px; font-weight: 800; }
.phone-input-row { display: grid; grid-template-columns: 150px 1fr; gap: 10px; }
.fairee-login-panel input, .fairee-login-panel select {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 14px;
  background: #fffaf5;
  font: inherit;
}
.fairee-google-login { display:flex; align-items:center; justify-content:center; gap:12px; width:100%; box-sizing:border-box; padding:14px 18px; border:1px solid #ded9e7; border-radius:999px; background:#fff; color:#211b2f; font-weight:800; text-decoration:none; transition:.2s ease; }
.fairee-google-login:hover { border-color:#8b42ed; box-shadow:0 10px 24px rgba(124,58,237,.12); transform:translateY(-1px); color:#211b2f; }
.fairee-google-login svg { width:20px; height:20px; flex:0 0 20px; }
.login-divider { display:flex; align-items:center; gap:12px; margin:4px 0 2px; color:#857b93; font-size:13px; font-weight:700; }
.login-step + .login-divider { margin-top: 32px; margin-bottom: 22px; }
.login-divider::before, .login-divider::after { content:""; height:1px; flex:1; background:#eadff7; }
.otp-message { padding: 12px 14px; border-radius: 16px; background: #f4edff; color: var(--primary-dark); font-weight: 800; }
.text-button { border: 0; background: transparent; color: var(--primary); font-weight: 900; cursor: pointer; justify-self: start; }
.fairee-login-required[hidden] { display: none; }
.fairee-login-required {
  min-height: calc(100vh - 74px);
  display: grid;
  align-items: start;
  padding: 56px 20px;
  background: linear-gradient(180deg, #fffaf4, #fff);
}
.fairee-login-required-card {
  width: min(560px, 100%);
  margin: 0 auto;
  padding: 34px 28px;
  border: 1px solid rgba(34,27,47,.10);
  border-radius: 26px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 18px 54px rgba(34,27,47,.08);
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: center;
  justify-items: center;
  text-align: center;
}
.fairee-login-required-copy .eyebrow { margin-bottom: 8px; }
.fairee-login-required-card h2 {
  margin-bottom: 8px;
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(1.8rem, 3.2vw, 2rem);
  letter-spacing: -0.035em;
}
.fairee-login-required-card p:not(.eyebrow) {
  color: var(--muted);
  margin: 0;
  font-size: 1rem;
}
.fairee-login-required-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  min-width: 0;
}
.fairee-existing-login-message { width: 100%; color: var(--muted); text-align: center; margin: 0 0 4px; }
.fairee-login-required-actions .btn {
  min-height: 46px;
  width: auto;
  min-width: 180px;
  padding: 0 24px;
}
.swal2-popup.fairee-swal {
  border: 1px solid rgba(34,27,47,.10);
  border-radius: 28px;
  background: #fffaf4;
  box-shadow: 0 28px 90px rgba(34,27,47,.22);
  padding: 30px;
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
}
.swal2-popup.fairee-swal .swal2-title {
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  letter-spacing: -0.035em;
}
.swal2-popup.fairee-swal .swal2-html-container {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 700;
}
.swal2-popup.fairee-swal .swal2-actions {
  gap: 10px;
  margin-top: 24px;
}
.swal2-popup.fairee-swal .swal2-styled {
  min-height: 46px;
  margin: 0;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 0 22px;
  box-shadow: none !important;
  font: inherit;
  font-weight: 900;
}
.swal2-popup.fairee-swal .swal2-confirm {
  background: var(--primary) !important;
  color: #fff !important;
}
.swal2-popup.fairee-swal .swal2-deny {
  background: #f4edff !important;
  color: var(--primary) !important;
}
.swal2-popup.fairee-swal .swal2-cancel {
  background: var(--ink) !important;
  color: #fff !important;
}
.swal2-popup.fairee-swal .swal2-success-ring {
  border-color: rgba(124,58,237,.25) !important;
}
.swal2-popup.fairee-swal .swal2-success-line-tip,
.swal2-popup.fairee-swal .swal2-success-line-long {
  background-color: var(--primary) !important;
}
.swal2-popup.fairee-swal .swal2-question {
  border-color: var(--primary);
  color: var(--primary);
}
.swal2-popup.fairee-swal .swal2-close {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 10px 26px rgba(34,27,47,.10);
}
.swal2-popup.fairee-swal .swal2-close:hover {
  color: var(--primary);
  background: #f4edff;
}
.fairee-swal-copy {
  margin: 0 0 18px;
  color: var(--muted);
  font-weight: 700;
}
.fairee-swal-role-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.fairee-swal-role-actions button {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}
.fairee-swal-role-actions button:nth-child(1) {
  background: var(--primary);
  color: #fff;
}
.fairee-swal-role-actions button:nth-child(2) {
  background: #f4edff;
  color: var(--primary);
}
.fairee-swal-role-actions button:nth-child(3) {
  background: var(--ink);
  color: #fff;
}
.fairee-dashboard {
  min-height: calc(100vh - 74px);
  /* padding: 46px 0 80px; */
  background: #fff;
}
body.fairee-contributor-app-page .fairee-dashboard {
  padding-top: 22px;
}
body.fairee-auth-missing .fairee-dashboard {
  min-height: 0;
  padding: 0;
  background: transparent;
}
.fairee-page-loader[hidden] { display: none; }
.fairee-page-loader {
  min-height: 360px;
  display: grid;
  place-items: center;
  gap: 18px;
  color: var(--ink);
}
.fairee-page-loader span {
  width: 76px;
  height: 76px;
  position: relative;
  display: block;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--rose));
  box-shadow: 0 20px 50px rgba(124,58,237,.28);
  animation: faireeLoaderPulse 1.25s ease-in-out infinite;
}
.fairee-page-loader span::before,
.fairee-page-loader span::after {
  content: "";
  position: absolute;
  inset: 15px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.72);
  border-top-color: transparent;
  animation: faireeLoaderSpin .8s linear infinite;
}
.fairee-page-loader span::after {
  inset: -8px;
  border-color: rgba(124,58,237,.16);
  border-top-color: var(--primary);
  animation-duration: 1.1s;
  animation-direction: reverse;
}
.fairee-page-loader strong {
  color: var(--muted);
  font-size: 1rem;
}
@keyframes faireeLoaderSpin {
  to { transform: rotate(360deg); }
}
@keyframes faireeLoaderPulse {
  50% { transform: scale(.92); }
}
.fairee-dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 24px;
}
.fairee-contributor-app-page .fairee-role-main {
  position: relative;
  min-height: calc(100vh - 92px);
  background:
    radial-gradient(circle at 16% 10%, rgba(255,214,145,.36), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(124,58,237,.14), transparent 30%),
    linear-gradient(180deg, #fffaf4 0%, #fff 42%, #fff8ef 100%);
  overflow: hidden;
}
.fairee-contributor-app-page .fairee-role-main::before {
  content: "";
  position: absolute;
  inset: 110px 0 auto 0;
  height: 180px;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 7%, rgba(124,58,237,.055) 7% 7.35%, transparent 7.35% 100%),
    linear-gradient(180deg, rgba(34,27,47,.045), transparent);
  background-size: 190px 100%, 100% 100%;
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.fairee-contributor-app-page .fairee-role-shell {
  position: relative;
  z-index: 1;
}
.fairee-contributor-app-page .fairee-dashboard-header {
  padding: 34px;
  border: 1px solid rgba(34,27,47,.08);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.92), rgba(255,248,239,.86)),
    radial-gradient(circle at 88% 18%, rgba(124,58,237,.16), transparent 32%);
  box-shadow: 0 24px 80px rgba(34,27,47,.08);
}
.fairee-dashboard-header h1 {
  font-size: clamp(2.4rem, 6vw, 4.8rem);
}
.fairee-contributor-home-header {
  margin-bottom: 22px;
  padding: 34px 36px;
  border: 1px solid rgba(34,27,47,.08);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.94), rgba(255,248,239,.86)),
    radial-gradient(circle at 88% 18%, rgba(124,58,237,.16), transparent 32%);
  box-shadow: 0 24px 80px rgba(34,27,47,.08);
}
.fairee-contributor-home-header h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
}
.fairee-payment-setup-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  margin-bottom: 24px;
  padding: 30px;
  border: 1px solid rgba(124,58,237,.22);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(250,247,255,.94)),
    radial-gradient(circle at 90% 12%, rgba(124,58,237,.13), transparent 30%);
  box-shadow: 0 22px 64px rgba(34,27,47,.08);
}
.fairee-payment-setup-card-main {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.fairee-payment-setup-card-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #f1ebff;
  color: var(--primary);
}
.fairee-payment-setup-card-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fairee-payment-setup-card h1 {
  max-width: 760px;
  margin: 6px 0 9px;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.fairee-payment-setup-card p:not(.eyebrow) {
  max-width: 690px;
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
}
.fairee-payment-setup-actions {
  display: flex;
  justify-content: flex-end;
}
.fairee-payment-setup-actions .btn {
  min-height: 54px;
  padding-inline: 26px;
  white-space: nowrap;
  box-shadow: 0 18px 42px rgba(124,58,237,.22);
}
.fairee-store-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.contributor-store-section[hidden], #contributorDashboardHeader[hidden],
.seeker-content-section[hidden], #seekerDashboardHeader[hidden] { display: none; }
.fairee-contributor-profile-card {
  width: min(1080px, 100%);
  margin: 34px auto 0;
  display: grid;
  grid-template-columns: .86fr 1.14fr;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 18px 58px rgba(34,27,47,.10);
}
.fairee-contributor-profile-card[hidden] { display: none; }
.fairee-profile-intro {
  padding: 42px;
  background: #fffaf4;
  border-right: 1px solid var(--line);
}
.fairee-contributor-profile-card h2 {
  max-width: 460px;
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  letter-spacing: -0.04em;
}
.fairee-profile-preview {
  margin-top: 28px;
  padding: 18px;
  border-radius: 20px;
  background: var(--ink);
  color: #fff;
}
.fairee-profile-preview span,
.fairee-profile-preview strong { display: block; }
.fairee-profile-preview span {
  color: rgba(255,255,255,.62);
  font-size: .82rem;
  margin-bottom: 6px;
}
.fairee-profile-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 42px;
  background: #fff;
}
.fairee-profile-fields label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}
.fairee-profile-fields input,
.fairee-profile-fields textarea,
.fairee-profile-fields select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: #fffaf5;
  font: inherit;
  font-weight: 700;
}
.fairee-profile-fields textarea { min-height: 120px; resize: vertical; }
.fairee-entry-primary { display: grid; grid-template-columns: 1fr 1fr; grid-column: 1 / -1; gap: 12px; margin: 0; padding: 0; border: 0; }
.fairee-entry-role-label { grid-column: 1 / -1; margin: 0 0 -8px; color: var(--ink); font-size: 1rem; font-weight: 800; }
.fairee-entry-primary label { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 10px; padding: 15px 16px; border: 1px solid var(--line); border-radius: 16px; background: #fffaf5; cursor: pointer; transition: border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.fairee-entry-primary label:hover { border-color: #bda5eb; background: #fbf8ff; }
.fairee-entry-primary label.is-selected { border-color: var(--primary); background: #f7f1ff; box-shadow: 0 8px 20px rgba(124,58,237,.12); }
.fairee-entry-primary input { width: auto; margin: 0; accent-color: var(--primary); }
.fairee-entry-primary span { color: var(--ink); font-weight: 850; }
.fairee-entry-primary small { grid-column: 2; margin-top: 2px; color: var(--muted); font-size: .78rem; }
.fairee-profile-fields .fairee-entry-info { grid-column: 1 / -1; }
.fairee-profile-fields .fairee-entry-submit { grid-column: 1 / -1; justify-self: end; align-self: start; width: auto; min-height: 42px; margin-top: 2px; padding: 10px 17px; border-radius: 12px; font-size: .9rem; box-shadow: 0 10px 22px rgba(124,58,237,.2); }
.fairee-profile-fields label:nth-child(3),
.fairee-profile-fields .form-note {
  grid-column: 1 / -1;
}
.fairee-profile-fields .fairee-profile-save {
  width: 180px;
  min-width: 180px;
  max-width: 180px;
  min-height: 50px;
  height: 50px;
  margin-top: 4px;
  justify-self: start;
  padding: 0 24px;
  border-radius: 999px;
  aspect-ratio: auto;
  align-self: start;
  grid-column: 1 / -1;
  justify-self: end;
  line-height: 1;
}
.fairee-seeker-profile-page .fairee-profile-fields .fairee-profile-save {
  grid-column: 1 / -1;
  justify-self: end;
}
.fairee-store-summary article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fffaf4;
}
.fairee-store-summary span,
.fairee-store-summary strong {
  display: block;
}
.fairee-store-summary span {
  color: var(--muted);
  font-size: .86rem;
  font-weight: 800;
}
.fairee-store-summary strong {
  margin-top: 8px;
  font-size: 1.8rem;
  color: var(--ink);
}
.fairee-contributor-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 24px;
}
.fairee-contributor-stats article {
  position: relative;
  min-height: 118px;
  padding: 20px 22px;
  overflow: hidden;
  border: 1px solid rgba(124,58,237,.18);
  border-radius: 22px;
  background:
    radial-gradient(circle at 90% 8%, rgba(124,58,237,.24), transparent 34%),
    linear-gradient(135deg, #fff 0%, #fff8ef 100%);
  box-shadow: 0 18px 44px rgba(34,27,47,.075);
}
.fairee-contributor-stats article::after {
  position: absolute;
  right: -30px;
  bottom: -48px;
  width: 106px;
  height: 106px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(124,58,237,.18), rgba(11,153,255,.16));
  content: "";
  transform: rotate(18deg);
}
.fairee-contributor-stats span,
.fairee-contributor-stats strong,
.fairee-contributor-stats small {
  position: relative;
  z-index: 1;
  display: block;
}
.fairee-contributor-stats span {
  color: var(--primary);
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.fairee-contributor-stats strong {
  margin-top: 8px;
  color: var(--ink);
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1;
}
.fairee-contributor-stats small {
  max-width: 210px;
  margin-top: 8px;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 800;
  line-height: 1.3;
}
.fairee-contributor-stats article:nth-child(2) {
  background:
    radial-gradient(circle at 90% 8%, rgba(11,153,255,.22), transparent 34%),
    linear-gradient(135deg, #fff 0%, #f4fbff 100%);
}
.fairee-contributor-stats article:nth-child(3) {
  background:
    radial-gradient(circle at 90% 8%, rgba(34,197,94,.18), transparent 34%),
    linear-gradient(135deg, #fff 0%, #f6fff9 100%);
}
.fairee-store-empty {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: center;
  margin-top: 22px;
  padding: 42px 52px;
  border: 1px solid rgba(124,58,237,.16);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,248,239,.90)),
    radial-gradient(circle at 88% 22%, rgba(124,58,237,.12), transparent 30%);
  box-shadow: 0 22px 70px rgba(34,27,47,.08);
  overflow: hidden;
}
.fairee-store-empty#emptyBargains {
  background: #fbf9ff;
}
.fairee-store-empty#emptyBargains > * { position: relative; z-index: 1; }
.fairee-store-empty#emptyBargains::after {
  content: "";
  position: absolute;
  right: 56px;
  top: 50%;
  width: 232px;
  height: 154px;
  border: 1px solid #dcd2ed;
  border-top: 14px solid #f0eaff;
  border-radius: 12px;
  background: #fff;
  box-shadow: -18px 18px 0 -1px #fff8ef, -18px 18px 0 0 #eadff8, 0 18px 34px rgba(63, 37, 104, .10);
  transform: translateY(-50%);
}
.fairee-store-empty::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 18px;
  background: repeating-linear-gradient(90deg, rgba(124,58,237,.16) 0 32px, rgba(236,72,153,.13) 32px 64px, rgba(255,214,145,.22) 64px 96px);
  opacity: .72;
}
.fairee-store-empty[hidden] { display: none; }
.fairee-store-empty h2 {
  position: relative;
  z-index: 1;
  grid-column: 1;
  max-width: 620px;
  font-size: clamp(1.8rem, 4vw, 3rem);
}
.fairee-store-empty > .eyebrow { grid-column: 1 / -1; }
.fairee-store-empty p:not(.eyebrow) {
  position: relative;
  z-index: 1;
  grid-column: 1;
  max-width: 620px;
  color: var(--muted);
}
.fairee-empty-bargain-image {
  grid-column: 2;
  grid-row: 1 / span 3;
  justify-self: center;
  width: min(100%, 260px);
  max-height: 220px;
  object-fit: contain;
  border-radius: 24px;
}
.fairee-store-empty-art {
  position: relative;
  min-height: 220px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, #fff 0 28%, #fff8ef 28% 100%);
  border: 1px solid rgba(34,27,47,.08);
  box-shadow: inset 0 -22px 0 rgba(124,58,237,.07), 0 18px 42px rgba(34,27,47,.08);
}
.fairee-store-empty-art .awning {
  position: absolute;
  left: 26px;
  right: 26px;
  top: 26px;
  height: 46px;
  border-radius: 18px 18px 10px 10px;
  background: repeating-linear-gradient(90deg, var(--primary) 0 34px, #fff 34px 68px, var(--rose) 68px 102px, #fff 102px 136px);
  box-shadow: 0 12px 22px rgba(124,58,237,.16);
}
.fairee-store-empty-art .store-window {
  position: absolute;
  left: 44px;
  right: 44px;
  top: 94px;
  height: 78px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(124,58,237,.16), rgba(236,72,153,.10)),
    #fff;
  border: 1px solid rgba(124,58,237,.14);
}
.fairee-store-empty-art .store-box {
  position: absolute;
  bottom: 26px;
  width: 62px;
  height: 42px;
  border-radius: 14px;
  background: #fffaf4;
  border: 1px solid rgba(34,27,47,.10);
}
.fairee-store-empty-art .box-one { left: 54px; }
.fairee-store-empty-art .box-two {
  right: 58px;
  height: 54px;
  background: rgba(255,214,145,.30);
}
.fairee-store-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 26px 0 14px;
  padding: 0 2px;
}
.fairee-store-list-head[hidden] { display: none; }
.fairee-store-list-head h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  letter-spacing: -0.02em;
  margin: 0;
}
.fairee-store-list-head .btn {
  min-height: 50px;
  padding-inline: 28px;
  box-shadow: 0 18px 40px rgba(124,58,237,.20);
}
.fairee-store-tools {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin: 0 0 16px;
  padding: 16px;
  border: 1px solid rgba(34,27,47,.08);
  border-radius: 22px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 14px 36px rgba(34,27,47,.06);
}
.fairee-store-tools[hidden] { display: none; }
.fairee-store-tools label {
  flex: 1;
  display: grid;
  gap: 8px;
  font-weight: 900;
}
.fairee-store-tools input {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 16px;
  background: #fff;
  font: inherit;
  font-weight: 800;
}
.fairee-store-pager {
  display: flex;
  align-items: center;
  gap: 10px;
}
.fairee-store-pager button {
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 900;
}
.fairee-store-pager button:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.fairee-store-pager span {
  color: var(--muted);
  font-weight: 900;
}
.fairee-store-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.fairee-store-card {
  display: grid;
  grid-template-columns: 144px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(124,58,237,.15);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(255,250,244,.92)),
    radial-gradient(circle at 92% 12%, rgba(124,58,237,.09), transparent 28%);
  box-shadow: 0 16px 44px rgba(34,27,47,.07);
  color: inherit;
  transition: .18s ease;
  min-height: 168px;
  overflow: hidden;
}
.fairee-store-card-main {
  display: contents;
  color: inherit;
}
.fairee-store-card:hover {
  transform: translateY(-2px);
  border-color: rgba(124,58,237,.28);
  box-shadow: 0 22px 60px rgba(34,27,47,.12);
}
.fairee-store-thumb {
  width: 144px;
  height: 128px;
  min-height: 128px;
  border-radius: 22px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,214,145,.42), transparent 32%),
    linear-gradient(135deg, rgba(124,58,237,.10), rgba(236,72,153,.08)),
    #fff8ef;
  color: var(--primary);
  font-size: 3rem;
  font-weight: 900;
}
.fairee-store-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fairee-store-thumb-empty {
  display: grid;
  place-items: center;
  gap: 3px;
  text-align: center;
}
.fairee-store-thumb-empty strong {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary), var(--rose));
  color: #fff;
  font-size: 1.7rem;
}
.fairee-store-thumb-empty small {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 900;
}
.fairee-store-no-results {
  padding: 30px;
  border: 1px dashed rgba(124,58,237,.28);
  border-radius: 24px;
  background: rgba(255,250,244,.84);
  color: var(--muted);
  font-weight: 900;
}
.fairee-store-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.fairee-store-card-body {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 24px;
  align-items: center;
}
.fairee-store-card h2 {
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  line-height: 1.08;
  color: var(--ink);
}
.fairee-store-card-top,
.fairee-store-card h2,
.fairee-store-tagline,
.fairee-store-card p:not(.fairee-store-tagline) {
  grid-column: 1;
}
.fairee-store-tagline {
  font-weight: 900;
  color: var(--muted);
  margin-bottom: 6px;
}
.fairee-store-card p {
  color: var(--muted);
  line-height: 1.4;
  margin: 0;
  max-width: 680px;
}
.fairee-store-date {
  color: var(--muted);
  font-size: .86rem;
  font-weight: 900;
}
.fairee-store-card-bottom {
  grid-column: 2;
  grid-row: 1 / span 4;
  display: grid;
  justify-items: end;
  gap: 10px;
  min-width: 180px;
}
.fairee-store-items {
  min-width: 86px;
  padding: 8px 12px;
  border-radius: 14px;
  background: rgba(255,248,239,.95);
  border: 1px solid rgba(34,27,47,.07);
  text-align: center;
}
.fairee-store-items span,
.fairee-store-items strong {
  display: block;
}
.fairee-store-items span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
}
.fairee-store-items strong {
  color: var(--ink);
  font-size: 1.1rem;
}
.fairee-store-items-link {
  cursor: pointer;
}
.fairee-store-list-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.fairee-store-list-title .eyebrow {
  margin-bottom: 0;
}
.fairee-navigation-popover-wrap {
  position: relative;
}
.fairee-settings-button {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(124,58,237,.16);
  border-radius: 50%;
  background: linear-gradient(145deg, #fff 0%, #f6efff 100%);
  box-shadow: 0 6px 16px rgba(92,52,160,.12);
  color: var(--primary);
  cursor: pointer;
  font-size: 0;
  line-height: 1;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.fairee-settings-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}
.fairee-settings-button:hover,
.fairee-settings-button:focus-visible {
  background: var(--primary);
  box-shadow: 0 10px 22px rgba(124,58,237,.28);
  color: #fff;
  outline: none;
  transform: rotate(24deg) translateY(-1px);
}
.fairee-navigation-popover {
  position: absolute;
  z-index: 20;
  top: calc(100% + 10px);
  left: 0;
  width: 224px;
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(34,27,47,.10);
  border-radius: 18px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 18px 44px rgba(34,27,47,.16);
  backdrop-filter: blur(14px);
}
.fairee-navigation-popover::before {
  position: absolute;
  top: -6px;
  left: 12px;
  width: 12px;
  height: 12px;
  border-top: 1px solid rgba(34,27,47,.10);
  border-left: 1px solid rgba(34,27,47,.10);
  background: rgba(255,255,255,.96);
  content: "";
  transform: rotate(45deg);
}
.fairee-navigation-popover-label {
  padding: 3px 8px 7px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.fairee-navigation-popover a {
  padding: 10px 12px;
  border-radius: 11px;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
}
.fairee-navigation-popover a:hover {
  background: rgba(124,58,237,.14);
  color: var(--primary);
}
.fairee-store-items-link:hover,
.fairee-store-items-link:focus-visible {
  border-color: var(--purple);
  outline: none;
}
.fairee-add-item-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--purple);
}
.fairee-add-item-link strong,
.fairee-add-item-link span {
  color: inherit;
}
.fairee-store-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.fairee-store-icon-action {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(124,58,237,.14);
  border-radius: 13px;
  background: rgba(124,58,237,.08);
  color: var(--primary);
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.fairee-store-icon-action:hover,
.fairee-store-icon-action:focus-visible {
  background: var(--primary);
  box-shadow: 0 8px 18px rgba(124,58,237,.22);
  color: #fff;
  outline: none;
  transform: translateY(-2px);
}
.fairee-store-icon-action svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}
.fairee-store-delete-action {
  border-color: rgba(220,38,38,.14);
  background: rgba(220,38,38,.07);
  color: #c72a3b;
}
.fairee-store-delete-action:hover,
.fairee-store-delete-action:focus-visible {
  background: #c72a3b;
  box-shadow: 0 8px 18px rgba(199,42,59,.22);
}
.fairee-items-page {
  width: min(1180px, calc(100% - 48px));
  min-height: calc(100vh - 180px);
  margin: 0 auto;
  padding: 54px 0 70px;
}
.fairee-items-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}
.fairee-items-store-name,
.fairee-items-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.fairee-items-store-name {
  align-items: flex-start;
}
.fairee-items-store-name .eyebrow {
  margin: 4px 0 6px;
}
.fairee-header-eyebrow-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.fairee-mobile-header-settings { display: none; }
.fairee-items-store-name h1 {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 3.5rem);
}
.fairee-items-store-name .muted {
  margin: 6px 0 0;
}
/* Match the contributor tool headers to the Transactions page. */
.fairee-contributor-page-header {
  gap: 30px;
  margin: 26px 0 30px;
  padding: 0 2px;
}
.fairee-contributor-page-header .fairee-items-store-name .eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 7px;
  color: #7448e7;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .12em;
}
.fairee-contributor-page-header .fairee-items-store-name .eyebrow::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7b4ff0;
  content: "";
}
.fairee-contributor-page-header .fairee-items-store-name h1 {
  color: #231c31;
  font-size: 46px;
  font-weight: 780;
  letter-spacing: -.045em;
}
.fairee-contributor-page-header .fairee-items-store-name .muted {
  margin-top: 8px;
  color: #777080;
  font-size: 13px;
}
.fairee-items-back {
  display: inline-flex;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(124,58,237,.16);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(34,27,47,.08);
  color: var(--primary);
}
.fairee-items-back:hover {
  background: rgba(124,58,237,.10);
  color: var(--primary-dark);
}
.fairee-items-back svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}
.fairee-store-navigation-popover {
  right: 0;
  left: auto;
  max-height: min(600px, calc(100vh - 160px));
  overflow-y: auto;
}
.fairee-store-navigation-popover::before {
  right: 12px;
  left: auto;
}
.fairee-items-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.fairee-items-grid .fairee-item-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  min-height: 100%;
  padding: 16px;
  border: 1px solid rgba(34,27,47,.10);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(63,37,104,.08);
}
.fairee-items-grid .fairee-item-card-image,
.fairee-item-card-placeholder {
  width: 180px;
  height: 150px;
  border-radius: 15px;
  object-fit: cover;
  background: #fff8ef;
}
.fairee-item-card-placeholder {
  display: grid;
  place-items: center;
  color: var(--primary);
  font-size: 3rem;
  font-weight: 900;
}
.fairee-item-card-copy {
  display: grid !important;
  gap: 7px;
  padding: 16px 2px;
}
.fairee-item-card-copy h2,
.fairee-item-card-copy p {
  margin: 0;
}
.fairee-item-card-copy h2 {
  font-size: 1.35rem;
}
.fairee-item-card-copy p {
  color: var(--muted);
}
.fairee-item-card-copy strong {
  display: inline-flex;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: #f4edff;
  margin-top: 4px;
  color: var(--primary-dark);
  font-size: .88rem;
}
.fairee-item-card-actions {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 8px;
}
.fairee-item-card-actions button {
  min-width: 88px;
  min-height: 38px;
  border: 0;
  border-radius: 10px;
  background: rgba(124,58,237,.10);
  color: var(--primary);
  font: inherit;
  font-weight: 800;
}
.fairee-item-card-actions .is-delete {
  background: rgba(199,42,59,.08);
  color: #c72a3b;
}
.fairee-item-react-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.fairee-item-react-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
}
.fairee-item-react-form input,
.fairee-item-react-form textarea,
.fairee-item-react-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 11px 12px;
  background: #fff;
  font: inherit;
}
.fairee-item-editor-wide {
  grid-column: 1 / -1;
}
.fairee-item-image-upload {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}
.fairee-item-react-form .fairee-item-image-picker {
  display: flex;
  min-height: 136px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  border: 1px dashed rgba(124,58,237,.35);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(124,58,237,.07), rgba(255,248,239,.85));
}
.fairee-item-image-picker input {
  position: absolute;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.fairee-item-image-picker-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 11px;
  background: var(--primary);
  box-shadow: 0 8px 18px rgba(124,58,237,.22);
  color: #fff;
  cursor: pointer;
  font-size: .9rem;
}
.fairee-item-image-picker-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}
.fairee-item-image-picker small {
  color: var(--muted);
  font-size: .75rem;
  font-weight: 600;
}
.fairee-item-react-form .fairee-item-preview {
  display: grid;
  grid-column: auto;
  min-height: 136px;
  padding: 10px;
  border: 1px solid rgba(34,27,47,.09);
  border-radius: 16px;
  background: #fff;
}
.fairee-item-react-form .fairee-item-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 100px);
  gap: 9px;
  justify-content: start;
}
.fairee-item-react-form .fairee-item-preview-grid figure {
  width: 100px;
  height: 100px;
  aspect-ratio: auto;
}
.fairee-item-react-form .fairee-item-preview-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fairee-item-preview-empty {
  display: grid;
  min-height: 112px;
  place-items: center;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 700;
  text-align: center;
}
.fairee-item-editor-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}
.fairee-item-editor-actions .form-note {
  flex: 1;
  margin: 0;
}
@media (max-width: 700px) {
  .fairee-items-page { width: min(100% - 32px, 1180px); padding-top: 30px; }
  .fairee-items-page-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 14px; }
  .fairee-items-store-name { min-width: 0; }
  .fairee-items-store-name h1 { font-size: clamp(1.9rem, 9vw, 2.8rem); line-height: 1.05; }
  .fairee-items-store-name .muted { max-width: 28rem; font-size: .95rem; line-height: 1.45; }
  .fairee-contributor-page-header .fairee-items-store-name h1 { font-size: 38px; }
  .fairee-contributor-page-header .fairee-items-store-name .muted { font-size: 12px; }
  .fairee-items-header-actions {
    width: auto;
    align-self: start;
    grid-column: 2;
    grid-row: 1;
    justify-content: end;
  }
  .fairee-navigation-popover-wrap .fairee-navigation-popover {
    position: fixed;
    top: 88px;
    right: 16px;
    left: 16px;
    width: auto;
    max-height: calc(100vh - 116px);
    z-index: 100;
  }
  .fairee-navigation-popover-wrap .fairee-navigation-popover::before {
    display: none;
  }
  .fairee-item-react-form { grid-template-columns: 1fr; }
  .fairee-item-editor-wide { grid-column: auto; }
  .fairee-item-image-upload { grid-template-columns: minmax(170px, 220px) minmax(0, 1fr); }
  .fairee-items-grid .fairee-item-card { grid-template-columns: 1fr; }
  .fairee-items-grid .fairee-item-card-image,
  .fairee-item-card-placeholder { width: 100%; height: 190px; }
  .fairee-item-card-actions { flex-direction: row; }
  .fairee-item-card-actions button { flex: 1; }
}
.fairee-store-link,
.fairee-store-no-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  background: rgba(124,58,237,.10);
  color: var(--primary);
  font-weight: 900;
}
.fairee-store-no-link { color: var(--muted); }
.fairee-bargain-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.fairee-bargain-actions button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  background: #fff8ef;
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}
.fairee-bargain-actions button:last-child {
  border-color: transparent;
  background: var(--primary);
  color: #fff;
}
.fairee-bootstrap-modal .modal-dialog { max-width: 720px; }
.fairee-bootstrap-modal .modal-content {
  border: 1px solid rgba(34,27,47,.10);
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 30px 90px rgba(20,14,32,.24);
}
.fairee-bootstrap-modal .modal-backdrop,
.modal-backdrop { background: rgba(29,22,43,.72); }
.fairee-store-form {
  padding: 0;
  border-radius: 24px;
  background: #fff;
  box-shadow: none;
  display: grid;
  gap: 0;
}
.fairee-store-form h2 {
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.035em;
}
.fairee-store-form-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  padding: 28px 30px 22px;
  border-bottom: 1px solid rgba(34,27,47,.08);
  background: linear-gradient(135deg, rgba(124,58,237,.08), rgba(245,158,11,.08)), #fffaf4;
}
.fairee-store-form-head .eyebrow { margin-bottom: 8px; }
.fairee-store-form-head .muted { margin: 8px 0 0; max-width: 520px; }
.fairee-store-form-head h2 { margin: 0; }
.fairee-store-close {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.88);
  color: var(--ink);
  font: inherit;
  font-size: .95rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(34,27,47,.08);
}
.fairee-store-close:hover { background: #f4edff; color: var(--primary); }
.fairee-store-form label {
  display: grid;
  gap: 8px;
  font-weight: 800;
  min-width: 0;
}
.fairee-store-form input,
.fairee-store-form textarea {
  width: 100%;
  border: 1px solid rgba(34,27,47,.13);
  border-radius: 14px;
  padding: 13px 14px;
  background: #fff;
  font: inherit;
  font-weight: 700;
  outline: 0;
}
.fairee-store-form input:focus,
.fairee-store-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(124,58,237,.10);
}
.fairee-store-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
  padding: 26px 30px;
  max-height: none;
  overflow: visible;
  background: #fcfbfe;
}
.fairee-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.fairee-store-form-grid > label:nth-child(3),
.fairee-store-form-grid > label:nth-child(4) {
  grid-column: 1 / -1;
}
.fairee-store-form-grid textarea {
  min-height: 132px;
  resize: vertical;
}
.fairee-file-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.fairee-upload-box {
  min-height: 92px;
  display: grid;
  place-items: center;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px dashed rgba(124,58,237,.38);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(124,58,237,.04), rgba(245,158,11,.06));
  color: var(--muted);
  cursor: pointer;
  font-weight: 900;
}
.fairee-image-upload-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 14px;
  align-items: stretch;
}
.fairee-image-preview {
  width: 160px;
  min-height: 96px;
  border-radius: 14px;
  overflow: hidden;
  background: #fff8ef;
}
.fairee-store-form-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
  padding: 18px 30px 26px;
  border-top: 1px solid rgba(34,27,47,.08);
  background: #fbfaf9;
}
.fairee-store-form-footer .btn {
  min-width: 150px;
  min-height: 48px;
  box-shadow: 0 16px 34px rgba(124,58,237,.22);
}
.fairee-image-preview[hidden] { display: none; }
.fairee-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fairee-store-detail-shell {
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: 280px 1fr;
  background: #fff;
  transition: grid-template-columns .2s ease;
}
.fairee-store-detail-shell.is-sidebar-collapsed { grid-template-columns: 84px 1fr; }
.fairee-store-sidebar {
  display: block;
  padding: 28px;
  border-right: 1px solid var(--line);
  background: #fffaf4;
  overflow: hidden;
  transition: padding .2s ease;
}
.fairee-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.fairee-sidebar-back {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 28px;
  color: var(--primary);
  font-weight: 900;
}
.fairee-sidebar-back svg { width: 18px; height: 18px; flex: 0 0 auto; }
.fairee-sidebar-collapse { display: grid; place-items: center; width: 34px; height: 34px; margin: 0 0 28px; padding: 0; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fff; cursor: pointer; }
.fairee-sidebar-collapse:hover { border-color: var(--primary); color: var(--primary); }
.fairee-sidebar-collapse svg { width: 18px; height: 18px; }
.fairee-sidebar-store-name {
  margin: 0 0 22px;
  color: var(--ink);
  font-size: 1.15rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.fairee-store-sidebar nav {
  display: grid;
  gap: 8px;
}
.fairee-store-sidebar nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 14px;
  color: var(--muted);
  font-weight: 900;
  white-space: nowrap;
}
.fairee-store-sidebar nav a svg { width: 18px; height: 18px; flex: 0 0 auto; }
.fairee-store-sidebar nav a:hover,
.fairee-store-sidebar nav a.is-active {
  background: #fff;
  color: var(--ink);
}
.fairee-store-sidebar nav a.is-active { color: var(--primary-dark); box-shadow: inset 3px 0 0 var(--primary), 0 4px 12px rgba(34, 27, 47, .06); }
.fairee-store-detail-shell.is-sidebar-collapsed .fairee-store-sidebar { padding: 28px 12px; }
.fairee-store-detail-shell.is-sidebar-collapsed .fairee-sidebar-head { gap: 8px; justify-content: center; }
.fairee-store-detail-shell.is-sidebar-collapsed .fairee-sidebar-back { margin-bottom: 20px; }
.fairee-store-detail-shell.is-sidebar-collapsed .fairee-sidebar-back span,
.fairee-store-detail-shell.is-sidebar-collapsed .fairee-store-sidebar nav a span { display: none; }
.fairee-store-detail-shell.is-sidebar-collapsed .fairee-sidebar-collapse { margin-bottom: 20px; flex: 0 0 auto; }
.fairee-store-detail-shell.is-sidebar-collapsed .fairee-store-sidebar nav a { justify-content: center; padding: 13px; }
.fairee-store-detail-main {
  padding: 38px;
}
.fairee-store-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 28px;
}
.fairee-store-detail-header h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
}
.fairee-overview-heading { margin: 8px 0 24px; }
.fairee-overview-heading h2 { margin: 4px 0 0; font-size: clamp(2.5rem, 6vw, 5rem); line-height: .95; }
.fairee-section-store-title { color: var(--primary); }
.fairee-section-heading-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.fairee-store-header-actions { display: flex; align-items: center; gap: 10px; }
.fairee-share-button { width: 46px; height: 46px; border: 0; border-radius: 50%; color: #fff; background: var(--primary); font-size: 1.35rem; font-weight: 900; cursor: pointer; box-shadow: 0 10px 24px rgba(124,58,237,.25); }
.fairee-share-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(34,27,47,.48); }
.fairee-share-modal[hidden] { display: none; }
.fairee-share-card { position: relative; width: min(560px,100%); max-height: calc(100vh - 40px); overflow: auto; padding: 32px; border-radius: 26px; background: #fff; box-shadow: 0 24px 70px rgba(34,27,47,.25); }
.fairee-share-card h2 { margin: 8px 0; }
.fairee-share-link { display: flex; gap: 8px; margin: 22px 0 16px; }
.fairee-share-link input { min-width: 0; flex: 1; border: 1px solid var(--line); border-radius: 12px; padding: 12px; color: var(--muted); font: inherit; }
.fairee-share-link button, .fairee-share-links a { border: 0; border-radius: 999px; padding: 11px 15px; color: var(--primary-dark); background: #f4edff; font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; }
.fairee-share-links { display: flex; flex-wrap: wrap; gap: 8px; }
.fairee-share-links a { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; padding: 0; }
.fairee-share-links svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.9; }
.fairee-qr-share { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin: 18px 0; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: #fffaf4; }
.fairee-qr-share img { width: 132px; height: 132px; border-radius: 10px; background: #fff; }
.fairee-qr-share a { border-radius: 999px; padding: 11px 15px; color: var(--primary-dark); background: #f4edff; font-weight: 800; text-decoration: none; }
.fairee-store-detail-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  grid-template-rows: minmax(260px, auto);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
}
.fairee-store-detail-grid[hidden] { display: none !important; }
.fairee-store-detail-image {
  display: grid;
  height: 260px;
  border-radius: 32px;
  overflow: hidden;
  place-items: center;
  background: #fff8ef;
  color: var(--primary);
  font-size: 5rem;
  font-weight: 900;
}
.fairee-store-detail-image img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  box-sizing: border-box;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain !important;
  padding: 12px;
  place-self: center;
}
.fairee-store-detail-media {
  width: 100%;
  height: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}
.fairee-store-image-empty {
  display: grid;
  max-width: 300px;
  gap: 8px;
  padding: 24px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.45;
  text-align: center;
}
.fairee-store-image-empty strong { font-size: 1.05rem; }
.fairee-store-image-empty span { color: var(--muted); }

.fairee-store-detail-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(34,27,47,.06);
  margin-bottom: 18px;
}
.fairee-store-detail-card h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}
.fairee-store-detail-card p,
.fairee-store-detail-card a {
  color: var(--muted);
  font-weight: 700;
}
.fairee-design-workspace { display: grid; grid-template-columns: 390px minmax(0, 1fr); gap: 28px; align-items: start; }
.fairee-preview-control { display: inline-flex; align-items: center; gap: 10px; }
.fairee-preview-label { color: var(--muted); font-size: .82rem; font-weight: 800; }
.fairee-preview-switcher { display: inline-flex; align-items: center; gap: 4px; padding: 5px; border: 1px solid rgba(124,58,237,.16); border-radius: 18px; background: rgba(255,255,255,.78); box-shadow: 0 12px 30px rgba(63,37,104,.09); backdrop-filter: blur(12px); }
.fairee-preview-option { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 15px; border-radius: 13px; color: var(--ink); font-size: .84rem; font-weight: 900; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.fairee-preview-option:hover { transform: translateY(-2px); color: var(--ink); }
.fairee-preview-option:not(.is-active) { background: #f4edff; }
.fairee-preview-option-dot { width: 8px; height: 8px; border-radius: 50%; }
.fairee-preview-option.is-draft .fairee-preview-option-dot { background: #9b72eb; box-shadow: 0 0 0 4px rgba(155,114,235,.14); }
.fairee-preview-option.is-final .fairee-preview-option-dot { background: #8ccf65; box-shadow: 0 0 0 4px rgba(140,207,101,.16); }
.fairee-preview-option.is-active { color: #fff; background: linear-gradient(135deg, var(--primary), #9b72eb); box-shadow: 0 8px 18px rgba(124,58,237,.24); }
.fairee-preview-option.is-active .fairee-preview-option-dot { background: #d8ff8a; box-shadow: 0 0 0 4px rgba(216,255,138,.16); }
@media (max-width: 560px) { .fairee-store-detail-header { align-items: flex-start; flex-direction: column; } .fairee-preview-control, .fairee-preview-switcher { width: 100%; } .fairee-preview-control { align-items: flex-start; flex-direction: column; gap: 6px; } .fairee-preview-option { flex: 1; justify-content: center; } }
@media (max-width: 700px) {
  .fairee-contributor-page-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }
  .fairee-contributor-page-header .fairee-mobile-header-settings { display: none; }
  .fairee-contributor-page-header .fairee-items-header-actions {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
  }
  .fairee-contributor-page-header .fairee-desktop-header-settings { display: block; position: relative; }
  .fairee-contributor-page-header .fairee-desktop-header-settings .fairee-navigation-popover {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: auto;
    width: min(220px, calc(100vw - 48px));
    max-height: min(520px, calc(100vh - 130px));
    z-index: 100;
  }
  .fairee-contributor-page-header .fairee-desktop-header-settings .fairee-navigation-popover::before {
    right: 12px;
    left: auto;
  }

  .fairee-items-page-header:not(.fairee-contributor-page-header) .fairee-items-header-actions,
  .fairee-items-page-header:not(.fairee-contributor-page-header) .fairee-navigation-popover-wrap {
    position: relative;
  }
  .fairee-items-page-header:not(.fairee-contributor-page-header) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }
  .fairee-items-page-header:not(.fairee-contributor-page-header) .fairee-items-header-actions {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
  }
  .fairee-items-page-header:not(.fairee-contributor-page-header) .fairee-navigation-popover-wrap .fairee-navigation-popover {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: auto;
    width: min(220px, calc(100vw - 48px));
    max-height: min(520px, calc(100vh - 130px));
    z-index: 100;
  }
  .fairee-items-page-header:not(.fairee-contributor-page-header) .fairee-navigation-popover-wrap .fairee-navigation-popover::before {
    right: 12px;
    left: auto;
  }
}
@media (max-width: 600px) {
  .fairee-contributor-page-header { margin: 18px 0 22px; }
  .fairee-contributor-page-header .fairee-items-store-name h1 { font-size: 31px; }
  .fairee-contributor-page-header .fairee-items-store-name .muted { font-size: 11px; line-height: 1.5; }
}
.fairee-contributor-page-header {
  display: block;
}
.fairee-contributor-page-header > .fairee-items-back {
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  border-radius: 12px;
}
.fairee-contributor-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
}
@media (max-width: 700px) {
  .fairee-contributor-page-header {
    display: block;
  }
  .fairee-contributor-header-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
  }
  .fairee-contributor-page-header .fairee-items-header-actions {
    grid-column: 2;
    grid-row: 1;
  }
}
.fairee-design-workspace:not(.is-previewing) { display: block; }
.fairee-design-workspace:not(.is-previewing) .fairee-design-panel { width: 100%; max-width: none; }
.fairee-design-content-fields { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px 20px; }
.fairee-design-content-fields label:nth-child(1), .fairee-design-content-fields label:nth-child(2) { grid-column: span 6; }
.fairee-design-content-fields label:nth-child(3) { grid-column: 1 / -1; }
.fairee-design-content-fields label:nth-child(4), .fairee-design-content-fields label:nth-child(5) { grid-column: span 6; }
.fairee-design-tabs { display: flex; gap: 6px; margin: 0 0 18px; padding: 5px; width: fit-content; border: 1px solid #e5dff0; border-radius: 14px; background: #faf8ff; }
.fairee-design-tabs button { border: 0; border-radius: 10px; padding: 10px 18px; color: var(--muted); background: transparent; font: inherit; font-weight: 800; cursor: pointer; }
.fairee-design-tabs button.is-active { color: #fff; background: var(--primary); box-shadow: 0 8px 18px rgba(124,58,237,.2); }

.fairee-confirmation-card {border: 1px solid #e5dff0; border-radius: 24px; background: #fff; box-shadow: 0 18px 45px rgba(45,27,70,.08); overflow: hidden; }
.fairee-confirmation-template-notice { display: flex; align-items: center; gap: 13px; margin: 0 0 18px; padding: 14px 18px; border: 1px solid #ddd0ff; border-radius: 16px; color: #4c237d; background: linear-gradient(100deg, #f8f4ff, #fff); }
.fairee-confirmation-template-notice-icon { display: grid; flex: 0 0 32px; width: 32px; height: 32px; place-items: center; border-radius: 10px; color: #fff; background: var(--primary); font-size: 17px; }
.fairee-confirmation-template-notice strong { display: block; font-size: .9rem; letter-spacing: .01em; }
.fairee-confirmation-template-notice p { margin: 2px 0 0; color: #70588d; font-size: .88rem; }
.fairee-confirmation-reset-button { margin-top: 10px; padding: 7px 11px; border: 1px solid #bda5eb; border-radius: 9px; color: #6233a3; background: #fff; font: inherit; font-size: .82rem; font-weight: 750; cursor: pointer; }
.fairee-confirmation-reset-button:hover { border-color: var(--primary); color: #fff; background: var(--primary); }
.fairee-confirmation-delivery-card { margin-bottom: 18px; padding: 24px 30px; }
.fairee-confirmation-delivery-grid { display: grid; grid-template-columns: 130px 1fr 1fr; gap: 14px 18px; align-items: center; }
.fairee-confirmation-delivery-label { font-weight: 800; color: var(--ink); }
.fairee-confirmation-delivery-input { grid-column: 2 / 4; width: 100%; box-sizing: border-box; border: 1px solid #ddd5e9; border-radius: 12px; padding: 13px 15px; color: var(--ink); background: #fff; font: inherit; }
.fairee-confirmation-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px; border-bottom: 1px solid #eee8f5; background: #faf8ff; }
.fairee-confirmation-tabs button { border: 0; border-radius: 12px; padding: 12px 16px; color: var(--muted); background: transparent; font: inherit; font-weight: 800; cursor: pointer; }
.fairee-confirmation-tabs button.is-active { color: #fff; background: var(--primary); box-shadow: 0 8px 18px rgba(124,58,237,.2); }
.fairee-confirmation-panel { padding: 28px 30px 10px; }
.fairee-confirmation-panel h3 { margin: 0 0 7px; color: var(--ink); }
.fairee-confirmation-field { display: grid; grid-template-columns: 190px minmax(0,1fr); gap: 18px; align-items: center; margin-bottom: 18px; }
.fairee-confirmation-field label { font-weight: 700; color: var(--ink); }
.fairee-confirmation-field input, .fairee-confirmation-field textarea { width: 100%; border: 1px solid #ddd5e9; border-radius: 12px; padding: 13px 15px; color: var(--ink); background: #fff; font: inherit; box-sizing: border-box; }
.fairee-confirmation-check { display: block; margin: 15px 0; color: var(--ink); font-weight: 600; }
.fairee-confirmation-check input { margin-right: 10px; accent-color: var(--primary); }
.fairee-confirmation-actions { display: flex; align-items: center; gap: 18px; padding: 20px 30px 28px; border-top: 1px solid #eee8f5; }
.fairee-confirmation-actions .form-note { margin: 0; color: var(--primary); font-weight: 700; }
@media (max-width: 680px) { .fairee-confirmation-delivery-card { padding: 18px; border-radius: 20px; } .fairee-confirmation-delivery-grid { grid-template-columns: 1fr; gap: 10px; } .fairee-confirmation-delivery-input { grid-column: auto; } .fairee-confirmation-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px; border: 1px solid #eee8f5; border-radius: 20px 20px 0 0; } .fairee-confirmation-tabs button { min-height: 44px; padding: 10px 12px; text-align: center; } .fairee-confirmation-field { grid-template-columns: 1fr; gap: 7px; } .fairee-confirmation-panel { padding: 22px 18px 8px; border-right: 1px solid #eee8f5; border-left: 1px solid #eee8f5; } .fairee-confirmation-actions { padding: 18px; flex-direction: column; align-items: stretch; border: 1px solid #eee8f5; border-top: 0; border-radius: 0 0 20px 20px; } .fairee-confirmation-actions .btn { width: 100%; } }
.fairee-design-page.is-previewing-page > .fairee-section-heading-row,
.fairee-design-page.is-previewing-page > .fairee-design-tabs { display: none; }
.fairee-design-page.is-previewing-page { padding-top: 24px; }
.fairee-design-page.is-previewing-page .fairee-design-preview { position: static; width: 100%; }
.preview-back-button { margin: 0 0 12px auto; display: block; }
.fairee-design-panel { display: grid !important; grid-template-columns: 1fr !important; gap: 12px; padding: 24px; border: 1px solid rgba(124,58,237,.14); border-radius: 28px; background: linear-gradient(145deg,#fff,#fbf8ff); box-shadow: 0 18px 50px rgba(63,37,104,.1); }
.fairee-design-panel label { display: grid; gap: 7px; color: var(--ink); font-weight: 800; }
.fairee-design-panel input, .fairee-design-panel textarea, .fairee-design-panel select { width: 100%; border: 1px solid #e5dff0; border-radius: 14px; padding: 13px 14px; background: rgba(255,255,255,.9); color: var(--ink); font: inherit; outline: none; transition: border-color .2s, box-shadow .2s; }
.fairee-design-panel input:focus, .fairee-design-panel textarea:focus, .fairee-design-panel select:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(124,58,237,.1); }
.fairee-design-panel input[type="file"] { height: 52px; padding: 7px 10px; cursor: pointer; }
.fairee-design-panel input[type="file"]::file-selector-button { margin-right: 12px; padding: 9px 16px; border: 0; border-radius: 999px; color: #fff; background: var(--primary); font: inherit; font-weight: 800; cursor: pointer; }
.fairee-design-panel input[type="range"] { accent-color: var(--primary); padding: 0; }
.fairee-design-panel output { color: var(--primary); font-size: .8rem; font-weight: 800; }
.fairee-design-style-fields input[type="color"] { width: 100%; height: 56px; padding: 5px; border: 1px solid #e5dff0; border-radius: 14px; background: #fff; cursor: pointer; box-shadow: 0 5px 14px rgba(63,37,104,.06); }
.fairee-design-style-fields input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.fairee-design-style-fields input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 9px; }
.fairee-design-style-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.fairee-keyword-help { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.55; }
.fairee-keyword-help code { padding: 2px 5px; border-radius: 5px; color: var(--primary-dark); background: #f4edff; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.fairee-design-style-fields > label:nth-of-type(1), .fairee-design-style-fields > .fairee-design-subhead { grid-column: 1 / -1; }
.fairee-design-style-fields > label { align-content: start; }
.fairee-design-color-row { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 20px; }
.fairee-design-panel h2 { margin: 12px 0 0; padding-top: 18px; border-top: 1px solid #eee8f4; font-size: 1.15rem; }
.fairee-design-panel > .fairee-sections-heading,
.fairee-design-panel > .fairee-design-help,
.fairee-design-panel > .fairee-design-sections,
.fairee-design-panel > button[type="submit"],
.fairee-design-panel > .form-note { grid-column: 1 / -1 !important; width: 100%; }
.fairee-design-panel > button[type="submit"] { width: fit-content !important; min-width: 190px; min-height: 48px; justify-self: center; padding: 12px 22px; }
.fairee-design-panel > .fairee-add-section { width: 42px !important; height: 42px; min-width: 42px; min-height: 42px; padding: 0; border: 0; border-radius: 50%; color: #fff; background: var(--primary); font-size: 1.7rem; line-height: 1; box-shadow: 0 10px 22px rgba(124,58,237,.24); cursor: pointer; }
.fairee-design-panel > .fairee-add-section[hidden] { display: none !important; }
.fairee-widget-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(34,27,47,.45); }
.fairee-widget-modal[hidden] { display: none; }
.fairee-widget-modal-card { position: relative; display: grid; gap: 14px; width: min(560px,100%); max-height: calc(100vh - 40px); padding: 30px; overflow-y: auto; overscroll-behavior: contain; border-radius: 24px; background: #fff; box-shadow: 0 24px 70px rgba(34,27,47,.25); }
.fairee-widget-modal-card #dynamicWidgetItems { display: grid; gap: 10px; max-height: 220px; overflow: auto; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fffaf4; }
.fairee-widget-modal-card #dynamicWidgetItems > div { display: grid; gap: 8px; }
.fairee-widget-modal-card #dynamicWidgetItems article { display: grid; grid-template-columns: 42px 1fr; gap: 2px 10px; align-items: center; padding: 8px; border-radius: 10px; background: #fff; }
.fairee-widget-modal-card #dynamicWidgetItems img { grid-row: span 2; width: 42px; height: 42px; border-radius: 8px; object-fit: cover; }
.fairee-widget-modal-card #dynamicWidgetItems small { color: var(--muted); }
.fairee-widget-modal-card label { display: grid; gap: 7px; font-weight: 800; }
.fairee-widget-modal-card textarea, .fairee-widget-modal-card input[type="file"], .fairee-widget-modal-card input[type="url"] { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 12px; font: inherit; }
.fairee-design-subhead { padding-top: 12px; color: var(--primary); font-size: .72rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.fairee-design-panel input[type="color"] { height: 44px; padding: 4px; cursor: pointer; }
.fairee-design-sections { display: grid; gap: 9px; }
.fairee-design-section-row { display: grid; grid-template-columns: 22px minmax(0,1fr) 145px 38px 34px; gap: 9px; align-items: start; padding: 12px; border: 1px solid #e8e0f2; border-radius: 14px; background: rgba(255,255,255,.72); transition: transform .2s, box-shadow .2s; }
.section-content { display: grid; gap: 6px; }
.section-widgets { display: flex; flex-wrap: nowrap; gap: 8px; align-items: center; min-width: 0; margin: 0 0 0 20px; }
.widget-slot { display: flex; flex: 1 1 0; min-width: 0; gap: 4px; align-items: center; }
.widget-drag-handle, .drag-handle { display: grid; place-items: center; cursor: grab; touch-action: none; user-select: none; }
.widget-drag-handle { flex: 0 0 18px; height: 28px; }
.widget-drag-handle i, .drag-handle i { display: block; width: 14px; height: 20px; background-image: radial-gradient(circle, #8f7aa5 1.5px, transparent 1.7px); background-position: 1px 1px; background-size: 7px 6px; opacity: .85; }
.widget-drag-handle:hover i, .drag-handle:hover i { opacity: 1; background-image: radial-gradient(circle, var(--primary) 1.5px, transparent 1.7px); }
.widget-slot.is-dragging { opacity: .45; }
.widget-slot .widget-delete { flex: 0 0 20px; width: 20px; height: 30px; padding: 0; border: 0; border-radius: 0; color: var(--muted); background: transparent; font-size: 1rem; line-height: 1; cursor: pointer; }
.widget-slot .widget-delete:hover { color: #be123c; background: transparent; }
.section-widgets select { flex: 1 1 0; min-width: 220px; }
.section-widgets select { width: 100%; border: 1px solid #e5dff0; border-radius: 8px; padding: 8px; background: #fff; font: inherit; }
.widget-slot .widget-edit-button { position: static; flex: 0 0 20px; width: 20px; height: 30px; margin: 0; padding: 0; border: 0; border-radius: 0; color: var(--primary-dark); background: transparent; font-size: .95rem; font-weight: 900; cursor: pointer; }
.widget-slot .widget-edit-button:hover { color: var(--primary); background: transparent; }
#widgetEditorFields { display: grid; gap: 12px; }
#widgetEditorFields label { display: grid; gap: 6px; font-weight: 800; }
#widgetEditorFields input, #widgetEditorFields textarea, #widgetEditorFields select { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font: inherit; }
#widgetEditorFields label:nth-child(2) { display: grid; }
#widgetEditorFields label[hidden] { display: none !important; }
#widgetMediaField input[type="file"]::file-selector-button, #dynamicWidgetItems input[type="file"]::file-selector-button { margin-right: 10px; padding: 10px 16px; border: 0; border-radius: 999px; color: #fff; background: var(--primary); font: inherit; font-weight: 800; cursor: pointer; }
#widgetMediaField input[type="file"] { color: var(--muted); }
#widgetMediaField, #widgetMediaUrlField { padding: 14px; border: 1px solid rgba(124,58,237,.14); border-radius: 16px; background: linear-gradient(135deg,#fbf9ff,#f7f1ff); }
#widgetMediaUrlField input[type="url"] { border-color: rgba(124,58,237,.25); background: #fff; }
#widgetMediaUrlField input[type="url"]:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(124,58,237,.1); }
#widgetMediaUrlField small { color: var(--muted); font-size: .76rem; font-weight: 600; line-height: 1.4; }
#widgetTextField { display: none !important; }
@media (max-width: 600px) { .fairee-widget-modal { padding: 10px; } .fairee-widget-modal-card { max-height: calc(100vh - 20px); padding: 22px 18px; border-radius: 18px; } }
#addSection { display: grid !important; place-items: center; justify-items: center; align-items: center; line-height: 1; }
.section-upload { display: none !important; }
#dynamicWidgetItems { grid-column: 1 / -1; }
.section-content input, .section-content textarea { width: 100%; border: 1px solid #e5dff0; border-radius: 9px; padding: 8px 10px; font: inherit; }
.section-upload { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #e5d8ff; border-radius: 12px; color: var(--primary); background: linear-gradient(145deg,#faf7ff,#f0e8ff); font-size: 1.35rem; font-weight: 900; line-height: 1; cursor: pointer; box-shadow: 0 4px 10px rgba(124,58,237,.1); transition: transform .2s, background .2s, box-shadow .2s; }
.section-upload:hover { transform: translateY(-2px); background: #eadcff; box-shadow: 0 8px 16px rgba(124,58,237,.18); }
.section-upload input { display: none; }
.section-delete { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #ffd5dc; border-radius: 12px; color: #be123c; background: #fff7f8; font-size: 1.25rem; line-height: 1; cursor: pointer; transition: transform .2s, background .2s, box-shadow .2s; }
.section-delete:hover { transform: translateY(-2px); background: #ffe5e9; box-shadow: 0 8px 16px rgba(190,18,60,.14); }
.fairee-design-section-row .section-media-input { width: 30px; height: 30px; padding: 0; border: 0; font-size: 0; cursor: pointer; }
.fairee-design-section-row .section-media-input::file-selector-button { width: 30px; height: 30px; padding: 0; border: 1px solid #e5dff0; border-radius: 8px; background: #fff; cursor: pointer; }
.fairee-design-section-row.is-dragging { opacity: .45; transform: scale(.98); }
.drag-handle { width: 22px; min-height: 38px; border-radius: 8px; }
.drag-handle:active, .widget-drag-handle:active { cursor: grabbing; background: #f3edfb; }
.fairee-design-section-row:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(63,37,104,.08); }
.fairee-design-section-row strong { font-size: .8rem; }
.fairee-design-section-row select, .fairee-design-section-row button { min-width: 0; padding: 7px 5px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font: inherit; }
.fairee-design-section-row > select[data-layout] { width: 145px; }
.fairee-widget-media-url-preview { display: grid; place-items: center; min-height: 116px; overflow: hidden; border: 1px dashed var(--line); border-radius: 14px; background: #faf8ff; }
.fairee-widget-media-url-preview img, .fairee-widget-media-url-preview video { display: block; width: 100%; max-height: 180px; object-fit: cover; }
.fairee-design-preview { display: none; position: sticky; top: 96px; padding: 12px; border: 1px solid #ddd4e8; border-radius: 28px; background: linear-gradient(145deg,#eeeaf4,#e5dfec); box-shadow: 0 22px 60px rgba(34,27,47,.14); }
.fairee-design-workspace.is-previewing { display: block; }
.fairee-design-workspace.is-previewing .fairee-design-panel { display: none; }
.fairee-design-workspace.is-previewing .fairee-design-preview { display: block; }
.fairee-design-workspace.is-previewing .fairee-design-panel { display: none !important; }
.fairee-design-loader[hidden] { display: none; }
.fairee-design-loader {
  min-height: min(760px, calc(100vh - 150px));
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  padding: clamp(40px, 8vw, 90px) 22px;
  border-radius: 24px;
  color: #241b32;
  text-align: center;
  background:
    radial-gradient(circle at 30% 24%, rgba(124,58,237,.16), transparent 24%),
    radial-gradient(circle at 70% 76%, rgba(226,90,58,.14), transparent 28%),
    linear-gradient(135deg,#fff,#fbf7ff 48%,#fff6ef);
  overflow: hidden;
}
.fairee-design-page.is-previewing-page .fairee-design-loader { display: none !important; }
.fairee-design-page.is-loading-design:not(.is-previewing-page) .fairee-design-workspace { display: none; }
.fairee-design-loader-orbit {
  position: relative;
  width: 180px;
  height: 140px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(124,58,237,.16);
  border-radius: 26px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 24px 60px rgba(63,37,104,.16);
}
.fairee-design-loader-orbit span {
  display: block;
  border-radius: 14px;
  background: linear-gradient(135deg,#ffffff,#efe8ff);
  box-shadow: inset 0 0 0 1px rgba(124,58,237,.12);
  animation: faireeLayoutTile 1.4s ease-in-out infinite;
}
.fairee-design-loader-orbit span:nth-child(1) { grid-row: span 2; animation-delay: 0s; }
.fairee-design-loader-orbit span:nth-child(2) { animation-delay: .16s; }
.fairee-design-loader-orbit span:nth-child(3) { background: linear-gradient(135deg,#fff8f1,#ffe8db); animation-delay: .32s; }
.fairee-design-loader-orbit i {
  position: absolute;
  inset: -13px;
  border: 2px solid rgba(124,58,237,.16);
  border-top-color: var(--primary);
  border-right-color: #e25a3a;
  border-radius: 32px;
  animation: faireeLayoutOrbit 1.6s linear infinite;
}
.fairee-design-loader strong {
  color: #241b32;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 900;
}
.fairee-design-loader small {
  max-width: 320px;
  color: var(--muted);
  line-height: 1.5;
}
.fairee-design-page.is-loading-design:not(.is-previewing-page) .fairee-preview-page {
  visibility: hidden;
  max-height: 0;
  min-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
}
@keyframes faireeLayoutOrbit {
  to { transform: rotate(360deg); }
}
@keyframes faireeLayoutTile {
  0%, 100% { transform: translateY(0) scale(1); opacity: .68; }
  50% { transform: translateY(-6px) scale(1.03); opacity: 1; }
}
.fairee-preview-browser { display: flex; align-items: center; gap: 6px; padding: 8px 12px; color: var(--muted); font-size: .72rem; }
.fairee-preview-browser span { width: 8px; height: 8px; border-radius: 50%; background: #c8bfd1; }
.fairee-preview-browser b { margin-left: 8px; }
.fairee-preview-page {
  position: relative;
  display: grid;
  gap: clamp(24px, var(--preview-gap, 18px), 48px);
  min-height: 700px;
  padding: clamp(24px, 5vw, 64px);

  border-radius: var(--preview-radius, 18px);

  color: var(--preview-text, #806c66);
  font-family: var(--preview-font, Inter), sans-serif;

  background: var(--preview-body, #fbf4ec);

  overflow: hidden;
  isolation: isolate;
}
.fairee-preview-page.page-width-centered { width: min(1240px, calc(100% - 48px)); margin: 24px auto; }
.fairee-preview-page::before { display: none; }
.preview-hero-image, .preview-hero-video { position: static; display: block; width: 100%; height: 360px; max-height: none; border-radius: 24px; object-fit: contain; opacity: 1; background: #eee6e1; }
.preview-hero, .preview-section { position: relative; z-index: 1; }
.preview-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(280px, .85fr); gap: clamp(24px, 5vw, 72px); align-items: center; padding: 0; background: transparent; }
.preview-hero-copy { padding: 18px 0; }
.preview-hero small { color: var(--preview-title, #d65b34); font-family: var(--preview-title-font, Georgia), serif; font-size: .72rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.preview-section span { color: var(--preview-title, #d65b34); font-family: var(--preview-title-font, Georgia), serif; font-size: calc(var(--preview-title-size, 56px) * .32); font-weight: 900; letter-spacing: .04em; }
.preview-section span:empty { display: none; }
.preview-hero h2 { margin: 14px 0 22px; color: var(--preview-title, #241a18); font-family: var(--preview-title-font, Georgia), serif; font-size: var(--preview-title-size, 56px); line-height: .98; letter-spacing: -.05em; }
.preview-hero p, .preview-widget p, .preview-item-card-body p { font-family: var(--preview-font, Inter), sans-serif; font-size: var(--preview-content-size, 16px); }
.preview-hero p { max-width: 600px; margin: 0 0 24px; color: var(--preview-text, #806c66); font-size: var(--preview-content-size, 16px); line-height: 1.7; }
.preview-hero-copy button { border: 0; border-radius: 999px; padding: 14px 22px; color: #fff; background: var(--preview-accent, #d96035); font-weight: 800; cursor: pointer; }
.preview-hero-card { padding: 14px 14px 18px; border-radius: 32px; background: #fff; box-shadow: 0 22px 55px rgba(92, 59, 42, .12); }
.preview-hero-card img, .preview-hero-card video { display: block; width: 100%; height: 360px; border-radius: 24px; object-fit: contain; background: #eee6e1; }
.preview-hero-card small { display: block; margin: 14px 4px 0; color: #806c66; line-height: 1.5; }
.preview-media-empty { display: grid; place-items: center; height: 360px; border-radius: 24px; background: #eee6e1; color: #806c66; }
.preview-section {
  display: grid;
  gap: 28px;

  min-height: auto;

  padding: clamp(20px, var(--preview-section-padding, 28px), 32px);

  border: 1px solid rgba(126, 90, 70, .12);

  /* IMPORTANT */
  background: var(--preview-section, #ffffff);

  border-radius: var(--preview-radius, 18px);

  box-shadow: none;

  overflow: hidden;
}
.preview-widget {
  display: flex;
  flex-direction: column;

  align-content: start;

  gap: 10px;

  min-width: 0;
  min-height: 0;

  padding: 0;

  overflow: hidden;
}
.preview-section img,
.preview-section video {

    display: block !important;

    width: 100% !important; 
    max-width: 100% !important;

    height: auto !important;

    border-radius: 24px !important;

    object-fit: cover !important;
}
.preview-widget p, .preview-item-card-body p { margin: 0; color: var(--preview-text, #806c66); font-family: var(--preview-font, Inter), sans-serif; font-size: var(--preview-content-size, 16px); line-height: 1.7; white-space: pre-wrap; }
.preview-item-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 12px; }
.preview-widget:has(.preview-item-grid) { grid-column: 1 / -1; }
.preview-widget:has(.preview-item-grid) > span, .preview-widget:has(.preview-item-grid) > p { grid-column: 1 / -1; }
.preview-item-grid article { padding: 20px; border: 1px solid rgba(126, 90, 70, .18); border-radius: 20px; background: #fff; box-shadow: 0 12px 28px rgba(92, 59, 42, .08); }
.preview-item-grid article { display: flex; flex-direction: column; height: 100%; overflow: hidden; padding: 0; }
.preview-item-carousel { position: relative; width: 100%; height: 220px; overflow: hidden; border-radius: 20px 20px 0 0; background: #eee6e1; }
.preview-item-carousel img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; opacity: 0; transition: opacity .45s ease; }
.preview-item-carousel img.is-active { opacity: 1; }
.preview-item-card-body { display: flex; flex: 1 1 auto; flex-direction: column; gap: 10px; padding: 22px; }
.preview-item-card-body > small { order: 1; }
.preview-item-card-body > h3 { order: 2; }
.preview-item-card-body > p { order: 3; }
.preview-item-card-body > strong { order: 4; }
.preview-item-card-body > .preview-item-actions { order: 5; }
.preview-item-card-body small { color: var(--preview-accent, #d65b34); font-size: .7rem; font-weight: 900; letter-spacing: .16em; }
.preview-item-card-body div { display: flex; gap: 8px; margin-top: 12px; }
.preview-item-card-body > p { min-height: calc(var(--preview-content-size, 16px) * 3.4); margin: 0; }
.preview-item-card-body > .preview-item-price { order: 4; flex-direction: column; align-items: flex-start; gap: 2px; margin-top: auto; }
.preview-price-note { color: var(--preview-header, #211b2f); font-size: .9rem; font-weight: 850; line-height: 1.35; }
.preview-original-price { color: var(--preview-text, #806c66); font-size: .88rem; font-weight: 700; }
.fairee-agent-slides { width: 100%; margin-top: 10px; overflow: hidden; border-radius: 12px; background: #20172a; }
.fairee-agent-slide { min-height: 140px; display: grid; place-items: center; }
.fairee-agent-slide img { display: block; width: 100%; max-height: 320px; object-fit: contain; }
.fairee-agent-slide p { width: 100%; margin: 0; padding: 16px; color: #fff; text-align: center; }
.fairee-agent-slide.is-text-only p { padding: 34px 24px; font-size: clamp(1.35rem, 4vw, 2rem); font-weight: 800; line-height: 1.35; }
.fairee-agent-slide-controls { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 8px 12px; color: #fff; background: rgba(0,0,0,.28); }
.fairee-agent-slide-controls button { width: 34px; height: 30px; border: 0; border-radius: 8px; color: #fff; background: rgba(255,255,255,.18); font: inherit; cursor: pointer; }
.modal-dialog.modal-xl:has(.fairee-agent-modal) { width: min(calc(100vw - 48px), 1040px); max-width: 1040px; }
.modal-dialog.modal-xl:has(.fairee-agent-modal) .modal-content { min-height: min(78vh, 760px); }
.modal-dialog.modal-xl:has(.fairee-agent-modal) .fairee-agent-messages { min-height: 360px; max-height: 60vh; }
@media (max-width: 620px) { .modal-dialog.modal-xl:has(.fairee-agent-modal) { width: calc(100vw - 24px); } .modal-dialog.modal-xl:has(.fairee-agent-modal) .fairee-agent-messages { min-height: 280px; max-height: 56vh; } }
.preview-item-card-body > strong { margin-top: auto; }
.preview-item-card-body > .preview-item-actions { flex-wrap: wrap; margin-top: 12px; }
.preview-item-card-body button { flex: 1; border: 0; border-radius: 999px; padding: 11px 12px; color: #fff; background: var(--preview-accent, #d96035); font: inherit; font-size: .8rem; font-weight: 800; cursor: pointer; }
.preview-item-card-body button + button { color: var(--preview-header, #4b3027); background: var(--preview-secondary-action, #f6e9dd); }
.preview-item-card-body .preview-steal-feature { position: relative; display: flex; flex: 1 1 100%; align-items: center; gap: 13px; min-height: 78px; margin: 6px 0 5px; padding: 12px 16px; overflow: hidden; border: 2px solid #ffe45c; border-radius: 18px; color: #fff; background: radial-gradient(circle at 84% 14%, rgba(255,228,92,.36) 0 21%, transparent 22%), linear-gradient(135deg, #160d22 0%, #2b163b 48%, #17101f 100%); box-shadow: 0 18px 34px rgba(25, 18, 35, .26), 0 0 0 5px rgba(255, 228, 92, .14), inset 0 0 0 1px rgba(255,255,255,.1); cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
.preview-item-card-body .preview-steal-feature::before { content: "MAIN FEATURE"; position: absolute; top: 10px; right: -32px; z-index: 2; width: 130px; padding: 4px 0; color: #21172d; background: #ffe45c; font-size: .56rem; font-weight: 950; letter-spacing: .1em; text-align: center; transform: rotate(35deg); box-shadow: 0 5px 14px rgba(0,0,0,.18); }
.preview-item-card-body .preview-steal-feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 0 38%, rgba(255,255,255,.16) 45%, transparent 52%); transform: translateX(-70%); animation: previewStealShine 2.8s ease-in-out infinite; }
.preview-item-card-body .preview-steal-feature:hover { transform: translateY(-2px) scale(1.01); box-shadow: 0 22px 42px rgba(25, 18, 35, .34), 0 0 0 6px rgba(255, 228, 92, .2), inset 0 0 0 1px rgba(255,255,255,.12); }
.preview-item-card-body .preview-steal-feature:focus-visible { outline: 3px solid rgba(255, 228, 92, .48); outline-offset: 2px; }
.preview-item-card-body .preview-steal-camera { position: relative; z-index: 3; display: grid; width: 52px; height: 52px; flex: 0 0 52px; place-items: center; border-radius: 17px; color: #21172d; background: #ffe45c; box-shadow: 0 10px 22px rgba(255, 228, 92, .34), inset 0 -3px 0 rgba(0,0,0,.12); }
.preview-item-card-body .preview-steal-camera::after { content: ""; position: absolute; inset: -7px; border: 2px solid rgba(255,228,92,.34); border-radius: 22px; animation: previewStealPulse 1.8s ease-out infinite; }
.preview-item-card-body .preview-steal-camera svg { position: relative; z-index: 1; width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.preview-item-card-body .preview-steal-copy { position: relative; z-index: 3; display: flex; min-width: 0; flex-direction: column; gap: 2px; line-height: 1.05; }
.preview-item-card-body .preview-steal-copy small { color: #ffe45c; font-size: .68rem; font-weight: 950; letter-spacing: .18em; text-transform: uppercase; text-shadow: 0 1px 0 rgba(0,0,0,.24); }
.preview-item-card-body .preview-steal-copy strong { color: #fff; font-size: 1.2rem; font-weight: 950; letter-spacing: 0; text-shadow: 0 2px 10px rgba(0,0,0,.32); }
@keyframes previewStealShine { 0%, 42% { transform: translateX(-75%); } 72%, 100% { transform: translateX(78%); } }
@keyframes previewStealPulse { 0% { opacity: .9; transform: scale(.92); } 100% { opacity: 0; transform: scale(1.18); } }
.preview-item-actions { align-items: center; }
.preview-item-card-body .preview-single-action { flex: 1 1 100%; width: 100%; }
.preview-item-card-body .preview-quantity-control { display: grid; grid-template-columns: 34px minmax(30px, 1fr) 34px; flex: 1; min-height: 42px; margin: 0; overflow: hidden; border: 2px solid var(--preview-accent, #f0c900); border-radius: 999px; background: var(--preview-secondary-action, #fffdf2); }
.preview-item-card-body .preview-quantity-control.is-locked { grid-template-columns: 1fr; }
.preview-item-card-body .preview-quantity-control:has(.preview-stock-limit) { grid-template-columns: 34px 30px minmax(0, 1fr); }
.preview-item-card-body .preview-quantity-control button { min-width: 0; padding: 0; border-radius: 0; color: #2f2a16; background: transparent; font-size: 1.1rem; }
.preview-item-card-body .preview-quantity-control output { display: grid; place-items: center; color: #201d13; font-size: .9rem; font-weight: 900; }
.preview-stock-limit { display: none; }
.preview-cart-fab { position: fixed; right: 26px; bottom: 26px; z-index: 45; display: grid; place-items: center; width: 56px; height: 56px; padding: 0; border: 0; border-radius: 50%; color: #fff; background: var(--preview-accent, #d96035); box-shadow: 0 14px 30px rgba(128, 57, 33, .32); cursor: grab; touch-action: none; }
.preview-cart-fab:active { cursor: grabbing; }
.preview-cart-fab span { font-size: 1.25rem; line-height: 1; }
.preview-cart-fab b { position: absolute; top: -5px; right: -5px; display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border: 2px solid #fff; border-radius: 50%; color: var(--preview-header, #372014); background: var(--preview-secondary-action, #f6d858); font-size: .67rem; }
.preview-cart-backdrop { position: fixed; inset: 0; z-index: 48; background: rgba(38, 24, 16, .26); backdrop-filter: blur(2px); }
.preview-cart-panel { position: fixed; z-index: 49; top: 0; right: 0; display: grid; grid-template-rows: auto 1fr auto auto auto; width: min(410px, 100vw); height: 100vh; padding: 24px; overflow: auto; border-left: 1px solid color-mix(in srgb, var(--preview-text, #6c6278) 24%, transparent); color: var(--preview-text, #6c6278); background: var(--preview-section, #fffdfa); box-shadow: -18px 0 48px rgba(58, 38, 27, .16); }
.preview-cart-backdrop[hidden], .preview-cart-panel[hidden] { display: none !important; }
.preview-cart-header { display: flex; align-items: start; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid color-mix(in srgb, var(--preview-text, #6c6278) 26%, transparent); }
.preview-cart-header small, .preview-cart-lines small { display: block; color: color-mix(in srgb, var(--preview-text, #6c6278) 78%, transparent); font-size: .72rem; }
.preview-cart-header h3 { margin: 4px 0 0; color: var(--preview-title, #241a18); font-family: var(--preview-title-font, Georgia), serif; font-size: 1.45rem; }
.preview-cart-header button { width: 34px; height: 34px; border: 0; border-radius: 50%; color: var(--preview-header, #542e20); background: var(--preview-secondary-action, #f6e9dd); font-size: 1.3rem; cursor: pointer; }
.preview-cart-lines { display: grid; align-content: start; gap: 14px; padding: 20px 0; }
.preview-cart-lines article { display: grid; grid-template-columns: minmax(0, 1fr) 116px auto; align-items: center; gap: 10px; }
.preview-cart-lines article > div { min-width: 0; }
.preview-cart-lines article strong { display: block; overflow: hidden; color: var(--preview-title, #2a1d18); font-size: .88rem; text-overflow: ellipsis; white-space: nowrap; }
.preview-cart-lines article > b { color: var(--preview-accent, #a84221); font-size: .8rem; white-space: nowrap; }
.preview-cart-lines .preview-quantity-control { display: grid; grid-template-columns: 30px 1fr 30px; height: 34px; overflow: hidden; border: 1px solid var(--preview-accent, #ead036); border-radius: 999px; background: var(--preview-secondary-action, #fffdf2); }
.preview-cart-lines .preview-quantity-control.is-locked { grid-template-columns: 1fr; }
.preview-cart-lines .preview-quantity-control:has(.preview-stock-limit) { grid-template-columns: 30px 28px minmax(0, 1fr); }
.preview-cart-lines .preview-quantity-control button { border: 0; color: var(--preview-header, #2f2a16); background: transparent; cursor: pointer; }
.preview-cart-lines .preview-quantity-control output { display: grid; place-items: center; color: var(--preview-header, #2a2419); font-size: .8rem; font-weight: 900; }
.preview-cart-total { display: flex; justify-content: space-between; padding: 18px 0; border-top: 1px solid color-mix(in srgb, var(--preview-text, #6c6278) 26%, transparent); color: var(--preview-title, #2e211c); }
.preview-cart-total strong { color: var(--preview-accent, #c9532c); font-size: 1.18rem; }
.preview-cart-contact { display: grid; gap: 6px; color: var(--preview-title, #4b3b35); font-size: .78rem; font-weight: 800; }
.preview-cart-contact input { width: 100%; min-height: 42px; padding: 0 12px; border: 1px solid color-mix(in srgb, var(--preview-text, #6c6278) 32%, transparent); border-radius: 6px; color: var(--preview-header, #2e211c); background: #fff; font: inherit; font-weight: 600; outline: 0; }
.preview-cart-contact input:focus { border-color: var(--preview-accent, #c9532c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--preview-accent, #c9532c) 16%, transparent); }
.preview-payment-methods { display: grid; gap: 9px; margin: 0; padding: 16px 0; border: 0; border-top: 1px solid #eee1d6; }
.preview-payment-methods legend { margin-bottom: 6px; color: #3e2921; font-size: .82rem; font-weight: 900; }
.preview-payment-methods label { display: flex; align-items: center; gap: 8px; color: #715a51; font-size: .82rem; }
.preview-payment-methods input { accent-color: var(--preview-accent, #d96035); }
.preview-proceed-button { min-height: 48px; margin-top: 12px; border: 0; border-radius: 14px; color: #fff; background: var(--preview-accent, #d96035); font: inherit; font-weight: 900; cursor: pointer; }
.preview-proceed-button:disabled { cursor: default; opacity: .75; }
.preview-payment-modal { position: fixed; z-index: 80; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(33, 27, 47, .56); backdrop-filter: blur(6px); }
.preview-payment-modal-card { position: relative; display: grid; grid-template-rows: auto 1fr; width: min(100%, 860px); height: min(92vh, 720px); min-height: 560px; overflow: hidden; border: 1px solid rgba(34,27,47,.1); border-radius: 16px; background: #fff; box-shadow: 0 28px 80px rgba(33,27,47,.28); }
.preview-payment-modal-heading { padding: 20px 64px 17px 24px; border-bottom: 1px solid #eee9f5; }
.preview-payment-modal-heading small { color: var(--preview-accent, #7c3aed); font-size: .72rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.preview-payment-modal-heading h3 { margin: 5px 0 0; color: #211b2f; font-size: 1.2rem; }
.preview-payment-modal-close { position: absolute; z-index: 1; top: 16px; right: 16px; display: grid; width: 34px; height: 34px; padding: 0; place-items: center; border: 0; border-radius: 50%; color: #211b2f; background: #f4edff; cursor: pointer; font-size: 1.35rem; }
.preview-payment-modal iframe { display: block; width: 100%; height: 100%; min-height: 0; border: 0; }
.preview-item-grid h3 { margin: 0 0 8px; color: var(--preview-title, #241a18); font-family: var(--preview-title-font, Georgia), serif; font-size: 1.25rem; }
.preview-item-grid p { margin-bottom: 18px; }
.preview-item-grid strong { color: var(--preview-accent, #d65b34); font-size: 1.1rem; }
.preview-section img, .preview-section video { width: 100%; height: 260px; max-height: none; border-radius: 24px; object-fit: cover; }
.preview-section b { color: var(--preview-title, #241a18); font-family: var(--preview-title-font, Georgia), serif; font-size: 1.45rem; }
.preview-section.layout-wide { grid-template-columns: 1fr; }
.preview-section.layout-narrow-wide { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.preview-section.layout-wide-narrow { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.preview-section.layout-equal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.preview-section.layout-equal-equal-equal { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.preview-section.layout-narrow-wide, .preview-section.layout-wide-narrow, .preview-section.layout-equal, .preview-section.layout-equal-equal-equal { align-items: stretch; }
.preview-section.layout-narrow-wide .preview-widget, .preview-section.layout-wide-narrow .preview-widget, .preview-section.layout-equal .preview-widget, .preview-section.layout-equal-equal-equal .preview-widget { min-width: 0; min-height: 0; height: 100%; }
.preview-section.layout-narrow-wide .preview-widget > img, .preview-section.layout-narrow-wide .preview-widget > video, .preview-section.layout-wide-narrow .preview-widget > img, .preview-section.layout-wide-narrow .preview-widget > video, .preview-section.layout-equal .preview-widget > img, .preview-section.layout-equal .preview-widget > video, .preview-section.layout-equal-equal-equal .preview-widget > img, .preview-section.layout-equal-equal-equal .preview-widget > video { flex: 1 1 auto; width: 100%; min-height: 260px; height: auto; object-fit: cover; }
.theme-dark { background: #211b2f; color: #fff; }
.theme-dark .preview-section { background: #312843; border-color: #4e4166; }
@media (max-width: 900px) { .fairee-design-workspace { grid-template-columns: 1fr; } .fairee-design-content-fields label:nth-child(1), .fairee-design-content-fields label:nth-child(2), .fairee-design-content-fields label:nth-child(3), .fairee-design-content-fields label:nth-child(4), .fairee-design-content-fields label:nth-child(5) { grid-column: 1 / -1; } }
@media (max-width: 620px) { .fairee-design-style-fields { grid-template-columns: 1fr; } .fairee-design-style-fields > label, .fairee-design-style-fields > .fairee-design-subhead { grid-column: 1; } .fairee-design-color-row { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .preview-hero { grid-template-columns: 1fr; } .preview-hero-image, .preview-hero-video, .preview-media-empty { height: 260px; } .preview-section.layout-narrow-wide, .preview-section.layout-wide-narrow, .preview-section.layout-equal, .preview-section.layout-equal-equal-equal { grid-template-columns: 1fr; } .preview-item-grid { grid-template-columns: 1fr; } .preview-cart-fab { right: 16px; bottom: 16px; } .preview-cart-panel { width: min(100%, 430px); padding: 20px; } .preview-cart-lines article { grid-template-columns: minmax(0, 1fr) 100px; } .preview-cart-lines article > b { grid-column: 2; } .preview-payment-modal { padding: 12px; } .preview-payment-modal-card { width: 100%; height: calc(100vh - 24px); min-height: 0; } }
@media (max-width: 620px) { .fairee-design-section-row { grid-template-columns: 22px 1fr 34px 34px; } .fairee-design-section-row select { grid-column: 2 / -1; } }

@media (max-width: 900px) {
  .hero-grid, .split, .join-card { grid-template-columns: 1fr; }
  .fairee-login-grid { grid-template-columns: 1fr; }
  .fairee-dashboard-header { flex-direction: column; }
  .fairee-store-summary, .fairee-contributor-stats, .fairee-store-grid, .fairee-store-form-grid, .fairee-store-detail-shell, .fairee-store-detail-grid, .fairee-contributor-profile-card, .fairee-store-empty { grid-template-columns: 1fr; }
  .fairee-profile-fields { grid-template-columns: 1fr; }
  .fairee-entry-primary { grid-template-columns: 1fr; }
  .fairee-profile-fields .fairee-profile-save { justify-self: start; }
  .fairee-profile-fields .fairee-entry-submit { justify-self: start; }
  .fairee-store-form { grid-template-columns: 1fr; }
  .fairee-store-form-side { min-height: 0; }
  .fairee-store-form h2 { font-size: clamp(3rem, 16vw, 4.2rem); }
  .fairee-store-close { position: static; justify-self: end; }
  .fairee-image-upload-row { grid-template-columns: 1fr; }
  .fairee-image-preview { width: 100%; }
  .fairee-store-form-grid > label:nth-child(3),
  .fairee-store-form-grid > label:nth-child(5),
  .fairee-store-form-grid > label:nth-child(6) { grid-column: auto; grid-row: auto; }
  .fairee-store-card { grid-template-columns: 1fr; }
  .fairee-store-thumb { width: 100%; height: 180px; }
  .fairee-store-card-body { grid-template-columns: 1fr; }
  .fairee-store-card-bottom {
    grid-column: 1;
    grid-row: auto;
    justify-items: start;
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 14px;
  }
  .fairee-store-list-head,
  .fairee-store-tools {
    align-items: stretch;
    flex-direction: column;
  }
  .fairee-store-list-head {
    align-items: center;
    flex-direction: row;
    gap: 10px;
  }
  .fairee-store-list-head .btn {
    min-height: 44px;
    padding-inline: 18px;
    white-space: nowrap;
  }
  .fairee-store-list-title {
    min-width: 0;
  }
  .fairee-store-list-title .fairee-navigation-popover {
    position: fixed;
    top: 96px;
    right: 16px;
    left: 16px;
    width: auto;
    max-height: calc(100vh - 116px);
    z-index: 100;
    transform: none;
  }
  .fairee-store-list-title .fairee-navigation-popover::before {
    display: none;
  }
  .fairee-store-pager {
    justify-content: space-between;
  }
  .fairee-store-empty-art { min-height: 180px; }
  .fairee-store-empty#emptyBargains::after { display: none; }
  .fairee-store-detail-shell.is-sidebar-collapsed { grid-template-columns: 1fr; }
  .fairee-store-sidebar { border-right: 0; border-bottom: 1px solid var(--line); padding: 16px; }
  .fairee-sidebar-head { margin: 0; }
  .fairee-sidebar-back, .fairee-sidebar-collapse { margin-bottom: 0; }
  .fairee-store-sidebar nav { display: none; padding-top: 16px; }
  .fairee-store-detail-shell.is-sidebar-nav-open .fairee-store-sidebar nav { display: grid; }
  .fairee-store-detail-shell.is-sidebar-collapsed .fairee-store-sidebar { padding: 16px; }
  .fairee-store-detail-shell.is-sidebar-collapsed .fairee-sidebar-back span,
  .fairee-store-detail-shell.is-sidebar-collapsed .fairee-store-sidebar nav a span { display: inline; }
  .fairee-store-detail-main { padding: 24px 16px 60px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .mode-grid, .category-grid, .revenue-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-toggle { display: block; }
  .nav-links { position: absolute; inset: 74px 20px auto 20px; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 18px; flex-direction: column; align-items: stretch; box-shadow: var(--shadow); display: none; }
  .nav-links.open { display: flex; }
  body.fairees-main-page .fairee-story-meta {
    display: none;
  }
}

@media (max-width: 620px) {
  .container { width: min(100% - 28px, 1120px); }
  .section { padding: 64px 0; }
  .hero { padding-top: 70px; }
  .steps, .mode-grid, .category-grid, .revenue-grid, .signup-form { grid-template-columns: 1fr; }
  .signup-form button, .form-note { grid-column: auto; }
  .footer-inner { flex-direction: column; gap: 10px; text-align: center; }
  .hero-card { transform: none; }
  .fairee-role-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px 12px;
    padding: 16px 20px;
  }
  .fairee-role-header .small-brand { grid-column: 1; grid-row: 1; }
  .fairee-role-header .fairee-role-nav {
    grid-column: 2;
    grid-row: 1;
    width: auto;
    justify-self: end;
    flex-wrap: nowrap;
  }
  .fairee-role-header .fairee-story-meta {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-end;
    margin-left: 0;
  }
  .fairee-user-menu { position: relative; }
  .fairee-user-dropdown {
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    width: min(220px, calc(100vw - 40px));
    min-width: 0;
  }
  .fairee-exvisor-footer-inner {
    align-items: flex-start;
    gap: 12px;
    text-align: left;
  }
  .fairee-contributor-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 18px;
  }
  .fairee-contributor-stats article {
    min-height: 94px;
    padding: 13px 12px;
    border-radius: 16px;
  }
  .fairee-contributor-stats span {
    font-size: .58rem;
    letter-spacing: .06em;
  }
  .fairee-contributor-stats strong {
    margin-top: 6px;
    font-size: 1.65rem;
  }
  .fairee-contributor-stats small {
    margin-top: 5px;
    font-size: .66rem;
    line-height: 1.15;
  }
  .fairee-contributor-home-header {
    padding: 24px 20px;
    border-radius: 24px;
  }
  .fairee-payment-setup-card {
    grid-template-columns: 1fr;
    padding: 22px;
    border-radius: 22px;
  }
  .fairee-payment-setup-card-main {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 14px;
  }
  .fairee-payment-setup-card-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }
  .fairee-payment-setup-card h1 {
    font-size: 1.7rem;
  }
  .fairee-payment-setup-actions,
  .fairee-payment-setup-actions .btn {
    width: 100%;
  }
  .fairee-payment-setup-actions .btn {
    justify-content: center;
  }
  .phone-input-row { grid-template-columns: 1fr; }
  .fairee-form-row { grid-template-columns: 1fr; }
  .fairee-login-required { padding: 34px 20px; }
  .fairee-login-required-card { grid-template-columns: 1fr; padding: 24px; text-align: center; }
  .fairee-login-required-actions { min-width: 0; }
  .fairee-settings-list article, .fairee-payment-options label { align-items: flex-start; padding: 18px; }
  .fairee-transaction-summary, .fairee-report-grid, .fairee-ai-agents-grid { grid-template-columns: 1fr; }
  .fairee-payment-collection-layout { grid-template-columns: 1fr; }
  .fairee-payment-collection-main { padding: 20px; }
  .fairee-payment-summary-card { position: static; min-height: 0; padding: 20px; border-top: 1px solid #eadffb; border-left: 0; }
  .fairee-payment-methods, .fairee-gateway-radios, .fairee-payment-field-grid { grid-template-columns: 1fr; }
  .fairee-payment-collection-form { border-radius: 18px; }
  .fairee-payment-collection-heading { padding-bottom: 18px; }
  .fairee-payment-methods label, .fairee-gateway-radios label { min-height: 0; padding: 16px; }
  .fairee-payment-collection-panel, .fairee-gateway-details { padding: 18px; }
  .fairee-payment-collection-footer { align-items: stretch; flex-direction: column; }
  .fairee-ai-agent-card { grid-template-columns: 1fr; min-height: 0; padding: 18px; }
  .fairee-ai-agent-card-heading { grid-template-columns: 42px minmax(0,1fr); }
  .fairee-ai-status { grid-column: 1 / -1; width: max-content; }
  .fairee-ai-agent-actions { justify-content: flex-start; }
  .fairee-ai-settings-panel, .fairee-ai-training-grid, .fairee-ai-training-methods { grid-template-columns: 1fr; }
  .fairee-ai-training-title { grid-template-columns: 42px minmax(0,1fr); }
  .fairee-ai-training-page, .fairee-ai-training-entry { padding: 20px; }
}
/* Shared role picker used by the Fairee guest layout. */
.fairee-role-modal[hidden] { display: none; }
.fairee-role-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(29, 22, 43, .58); }
.fairee-role-dialog { position: relative; width: min(520px, 100%); padding: 42px; border-radius: 28px; background: #fffaf4; box-shadow: 0 24px 80px rgba(29, 22, 43, .28); }
.fairee-role-dialog h2 { margin: 8px 0 28px; color: #241b32; font-family: 'Playfair Display', serif; font-size: clamp(2rem, 5vw, 3rem); }
.fairee-role-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.fairee-role-close { position: absolute; top: 14px; right: 16px; border: 0; background: transparent; color: #241b32; font-size: 1.8rem; cursor: pointer; }
.fairee-delivery-page {
  width: min(1180px, calc(100% - 48px));
  min-height: calc(100vh - 180px);
  margin: 0 auto;
  padding: 54px 0 70px;
}

.delivery-agent-shell {
  max-width: 1100px;
  margin: 26px auto 0;
  display: grid;
  gap: 18px;
}

.delivery-agent-top,
.delivery-journey,
.delivery-partner-card,
.delivery-agent-tools {
  background: #fff;
  border: 1px solid #ecebf0;
  border-radius: 22px;
}

.delivery-agent-top {
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.delivery-agent-title {
  display: flex;
  align-items: center;
  gap: 16px;
}

.delivery-agent-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 16px;
  background: #17131d;
  display: grid;
  place-items: center;
}

.delivery-agent-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.delivery-status-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.delivery-status-row h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 750;
  color: #241f2b;
}

.delivery-agent-title p {
  max-width: 620px;
  margin: 5px 0 0;
  color: #7b7483;
  font-size: 13.5px;
  line-height: 1.5;
}

.delivery-live,
.delivery-paused {
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.delivery-live {
  color: #17764b;
  background: #eaf8f1;
}

.delivery-paused {
  color: #8a5d21;
  background: #fff5e6;
}

.delivery-live i,
.delivery-paused i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.delivery-agent-toggle {
  cursor: pointer;
}

.delivery-agent-toggle input {
  display: none;
}

.delivery-toggle-track {
  width: 48px;
  height: 28px;
  padding: 3px;
  border-radius: 999px;
  background: #dedbe2;
  display: block;
  transition: .25s ease;
}

.delivery-toggle-thumb {
  width: 22px;
  height: 22px;
  display: block;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  transition: .25s ease;
}

.delivery-agent-toggle input:checked + .delivery-toggle-track {
  background: #6b4eff;
}

.delivery-agent-toggle input:checked + .delivery-toggle-track .delivery-toggle-thumb {
  transform: translateX(20px);
}

/* MAIN DELIVERY AREA */

.delivery-journey {
  padding: 28px;
}

.delivery-section-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  padding-bottom: 25px;
  border-bottom: 1px solid #efedf2;
}

.delivery-eyebrow {
  display: block;
  margin-bottom: 7px;
  color: #7258e8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.delivery-section-head h3,
.delivery-agent-tools h3 {
  margin: 0;
  color: #241f2b;
  font-size: 21px;
  letter-spacing: -.02em;
}

.delivery-step-pill {
  padding: 7px 11px;
  background: #f5f2ff;
  color: #694ee3;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.delivery-route {
  padding: 28px 0 8px;
}

.delivery-route-item {
  display: grid;
  grid-template-columns: 34px 46px 1fr;
  gap: 12px;
  align-items: flex-start;
  position: relative;
}

.route-number {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: #f2eff8;
  color: #685978;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
}

.route-marker {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
}

.route-marker svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke-width: 1.8;
}

.pickup-marker {
  background: #eeebff;
}

.pickup-marker svg {
  stroke: #694fe1;
}

.drop-marker {
  background: #e8f8f0;
}

.drop-marker svg {
  stroke: #248c5d;
}

.delivery-route-content {
  max-width: 720px;
}

.delivery-route-content label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  color: #332d3c;
  font-weight: 700;
}

.delivery-route-content input,
.delivery-route-content select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  outline: none;
  border: 1px solid #e2dee7;
  border-radius: 13px;
  font: inherit;
  color: #302938;
  background: #fff;
  transition: .2s;
}

.delivery-route-content input:focus {
  border-color: #7258e8;
  box-shadow: 0 0 0 3px rgba(114, 88, 232, .08);
}

.delivery-location-input-wrap {
  display: flex;
  gap: 8px;
}

.delivery-current-location {
  flex: 0 0 auto;
  border: 1px solid #ded7ef;
  border-radius: 12px;
  padding: 0 13px;
  color: #6246d8;
  background: #f8f6ff;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.delivery-current-location:hover:not(:disabled) { background: #eee9ff; }
.delivery-current-location:disabled { cursor: wait; opacity: .65; }

.delivery-route-content > span {
  display: block;
  margin-top: 7px;
  color: #99929f;
  font-size: 11.5px;
}

.route-line {
  width: 1px;
  height: 30px;
  margin: 4px 0 4px 54px;
  border-left: 1px dashed #d8d2de;
}

.delivery-auto-box {
  min-height: 48px;
  padding: 9px 14px;
  border: 1px dashed #dcd6e4;
  border-radius: 13px;
  color: #4b4353;
  font-size: 13px;
  background: #faf9fb;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.delivery-auto-box span {
  color: #99919f;
  font-size: 10.5px;
  margin-top: 2px;
}

/* PAYMENT */

.delivery-setting-block {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #efedf2;
}

.delivery-setting-title {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.delivery-setting-title h4 {
  margin: 1px 0 4px;
  color: #29232f;
  font-size: 15px;
}

.delivery-setting-title p {
  margin: 0;
  color: #8d8593;
  font-size: 12px;
}

.delivery-payment-options {
  margin: 18px 0 0 40px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.delivery-payment-card {
  width: 100%;
  min-height: 92px;
  padding: 16px;
  border: 1px solid #e7e3ea;
  border-radius: 16px;
  background: #fff;
  text-align: left;
  display: grid;
  grid-template-columns: 40px 1fr 18px;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  transition: .2s ease;
}

.delivery-payment-card:hover {
  border-color: #cfc7e5;
  transform: translateY(-1px);
}

.delivery-payment-card.selected {
  border-color: #7258e8;
  box-shadow: 0 0 0 3px rgba(114, 88, 232, .07);
  background: #fcfbff;
}

.payment-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #f4f1fa;
  color: #655476;
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: 700;
}

.payment-icon svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.delivery-payment-card strong,
.delivery-payment-card small {
  display: block;
}

.delivery-payment-card strong {
  color: #312a38;
  font-size: 13px;
}

.delivery-payment-card small {
  color: #908893;
  line-height: 1.45;
  margin-top: 4px;
}

.payment-radio {
  width: 17px;
  height: 17px;
  border: 1.5px solid #cdc6d3;
  border-radius: 50%;
}

.delivery-payment-card.selected .payment-radio {
  border: 5px solid #7258e8;
}

.delivery-online-note {
  margin: 12px 0 0 40px;
  padding: 13px 15px;
  background: #f7f5ff;
  border-radius: 13px;
  display: flex;
  gap: 10px;
}

.delivery-online-note svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: #7156e5;
  stroke-width: 1.8;
}

.delivery-online-note strong {
  color: #473876;
  font-size: 12px;
}

.delivery-online-note p {
  margin: 3px 0 0;
  color: #82779a;
  font-size: 11px;
}

/* DATE */

.delivery-date-grid {
  margin: 18px 0 0 40px;
  display: grid;
  grid-template-columns: 1fr 30px 1fr 1.2fr;
  gap: 12px;
  align-items: end;
}

.delivery-date-grid label span {
  display: block;
  margin-bottom: 7px;
  color: #6f6675;
  font-size: 11px;
  font-weight: 700;
}

.delivery-date-grid select {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid #e2dde6;
  outline: none;
  background: #fff;
  color: #322b39;
}

.delivery-date-arrow {
  height: 44px;
  display: grid;
  place-items: center;
  color: #a69eaa;
}

.delivery-date-preview {
  height: 60px;
  padding: 10px 14px;
  border-radius: 13px;
  background: #f5f7f5;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.delivery-date-preview small {
  color: #979099;
  font-size: 10px;
}

.delivery-date-preview strong {
  margin-top: 3px;
  color: #39343d;
  font-size: 12px;
}

/* PORTER */

.delivery-partner-card {
  padding: 18px 22px;
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 15px;
  align-items: center;
}

.delivery-partner-symbol {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #fff3df;
  display: grid;
  place-items: center;
}

.delivery-partner-symbol svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: #db8b1e;
  stroke-width: 1.8;
}

.delivery-partner-copy span {
  color: #a77631;
  font-size: 9.5px;
  letter-spacing: .1em;
  font-weight: 800;
}

.delivery-partner-copy h4 {
  margin: 3px 0;
  color: #302a35;
  font-size: 14px;
}

.delivery-partner-copy p {
  margin: 0;
  color: #877f89;
  font-size: 11.5px;
}

.partner-ready {
  padding: 7px 10px;
  border-radius: 999px;
  background: #f7f4ed;
  color: #786749;
  font-size: 10px;
  font-weight: 700;
}

/* AI TOOLS */

.delivery-agent-tools {
  padding: 22px;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 30px;
  align-items: center;
}

.delivery-agent-tools p {
  color: #8d8592;
  font-size: 12px;
  line-height: 1.5;
  margin: 6px 0 0;
}

.delivery-agent-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.delivery-agent-links a {
  padding: 14px;
  border: 1px solid #ebe7ee;
  border-radius: 14px;
  text-decoration: none;
  transition: .2s ease;
}

.delivery-agent-links a:hover {
  border-color: #cfc6e4;
  transform: translateY(-1px);
}

.delivery-agent-links span,
.delivery-agent-links b {
  display: block;
}

.delivery-agent-links span {
  color: #9b949e;
  font-size: 10px;
  margin-bottom: 5px;
}

.delivery-agent-links b {
  color: #3c3445;
  font-size: 12px;
}

/* SAVE */

.delivery-save-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  padding: 4px 2px;
}

.delivery-save-row span {
  color: #98919b;
  font-size: 11px;
}

.delivery-save-row button {
  height: 43px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  background: #211b28;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}

.delivery-save-row button:hover {
  background: #342a3e;
}

@media (max-width: 800px) {
  .delivery-payment-options,
  .delivery-date-grid,
  .delivery-agent-tools {
    grid-template-columns: 1fr;
  }

  .delivery-payment-options,
  .delivery-date-grid,
  .delivery-online-note {
    margin-left: 0;
  }

  .delivery-date-arrow {
    display: none;
  }

  .delivery-agent-links {
    grid-template-columns: 1fr;
  }

  .delivery-partner-card {
    grid-template-columns: 46px 1fr;
  }

  .partner-ready {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .delivery-agent-top {
    align-items: flex-start;
  }

  .delivery-agent-title {
    align-items: flex-start;
  }

  .delivery-journey {
    padding: 20px 16px;
  }

  .delivery-section-head {
    flex-direction: column;
  }

  .delivery-route-item {
    grid-template-columns: 30px 1fr;
  }

  .delivery-route-item .route-marker {
    display: none;
  }

  .delivery-location-input-wrap { flex-direction: column; }
  .delivery-current-location { min-height: 40px; }

  .route-line {
    margin-left: 14px;
  }

  .delivery-agent-tools {
    padding: 18px;
  }

  .delivery-save-row {
    flex-direction: column;
    align-items: stretch;
  }

  .delivery-save-row button {
    width: 100%;
  }
}

@media (max-width: 700px) {
  .fairee-delivery-page {
    width: min(100% - 32px, 1180px);
    padding-top: 30px;
  }
}
