/* Claim / Manage Your Listing (/claim/, /manage/) and the Listings section of /promote/admin/.
   Builds on the sponsorship pages' styles (which import the contact form's). */
@import url("/assets/css/promote.css");

.lm-shop p { margin: 0 0 4px; }
.lm-yn { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.lm-more { border: 1px solid var(--line); border-radius: var(--r-s); padding: 12px 16px; background: var(--paper); }
.lm-more summary { cursor: pointer; font-weight: 600; font-size: 15px; }
.lm-more[open] { display: grid; gap: 14px; }
.lm-img { display: grid; gap: 10px; align-content: start; }
.lm-thumb img { max-width: 100%; max-height: 160px; border-radius: 8px; border: 1px solid var(--line-2); background: #fff; object-fit: contain; }
/* logo previews (owner editor, review): a light checkerboard, so a white or transparent logo is still visible */
.lm-thumb-logo img, .pm-admin-row .pm-media img.la-logo { object-fit: contain; padding: 4px;
  background: repeating-conic-gradient(#e6e8eb 0% 25%, #fff 0% 50%) 50% / 16px 16px; }

/* price editor: one card per product */
.lm-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.lm-line { border: 1px solid var(--line); border-radius: var(--r-s); background: var(--paper); padding: 14px 16px; display: grid; gap: 12px; }
.lm-line.is-dup { border-color: var(--danger); }
.lm-line-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 15px; }
.lm-dims, .lm-inc { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.lm-dims label, .lm-inc label, .lm-pricegrid label, .lm-name { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.lm-dims select, .lm-inc select, .lm-name input { min-height: 44px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 15px; background: #fff; width: 100%; }
.lm-pricegrid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
.lm-money { display: flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 0 8px; font-weight: 400; }
.lm-money input { border: 0; min-height: 44px; width: 100%; min-width: 0; font: inherit; font-size: 16px; background: transparent; }
.lm-money:focus-within { outline: 2px solid var(--blue); outline-offset: 1px; }
.lm-basis { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; font-size: 14px; color: var(--ink-2); }
.lm-basis label { display: inline-flex; gap: 6px; align-items: center; }
.lm-warn { margin: 0; font-size: 13.5px; color: var(--danger); }
.lm-addbar { display: flex; flex-wrap: wrap; gap: 10px; }
/* "+ Add a product": the shared secondary button (site.css .btn-secondary); wraps on phones. */
.lm-btn { white-space: normal; text-align: left; }
.lm-submitbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
@media (max-width: 520px) { .lm-pricegrid { grid-template-columns: repeat(3, 1fr); } }

/* admin: Listings */
.la-h2 { font-size: 24px; margin: 48px 0 6px; }
.la-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 14px; }
.la-tools input { min-height: var(--btn-h-sm); padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 14px; }

.la-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.la-table th, .la-table td { border-bottom: 1px solid var(--line-2); padding: 5px 6px; text-align: left; vertical-align: top; }
.la-table .is-changed td:last-child { background: #FFF6E5; }
.la-scroll { overflow-x: auto; }
.la-flag { color: var(--danger); font-size: 12.5px; }
.la-state[data-state="published"] { background: #E3F4E8; color: #1E6B3A; }
.la-state[data-state="staged"] { background: #FFF6E5; color: #8A5A00; }
.la-state[data-state="failed"] { background: var(--danger-soft); color: var(--danger); }
tr.is-flagged td { background: var(--danger-soft); }
.la-dec { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; }
.la-dec fieldset { border: 0; padding: 0; margin: 0; display: flex; gap: 10px; align-items: center; }
.la-dec legend { float: left; font-weight: 600; margin-right: 6px; }
.pm-admin-row .la-dec input, .pm-admin-row input[data-use] { min-height: 0; padding: 0; width: 18px; height: 18px; }
.la-dec label { display: inline-flex; gap: 6px; align-items: center; }
.pm-admin-row [data-note] { flex: 1 1 260px; }

/* admin: one sign-in, two tabs */
.pm-col.pa-col { max-width: 1040px; }
.pa-login { margin-bottom: 18px; }
.pa-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 8px 0 18px; }
.pa-tabs [role=tab] { appearance: none; border: 1px solid transparent; border-bottom: 0; background: none; font: inherit; font-size: 16px; font-weight: 600;
  color: var(--ink-2); padding: 10px 18px; min-height: 44px; border-radius: 10px 10px 0 0; cursor: pointer; margin-bottom: -1px; display: inline-flex; gap: 8px; align-items: center; }
.pa-tabs [role=tab][aria-selected=true] { color: var(--ink); background: var(--paper); border-color: var(--line); border-bottom: 1px solid var(--paper); }
.pa-tabs [role=tab]:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.pa-count { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 12.5px; line-height: 20px; text-align: center; }
.pa-panel > h3 { margin: 22px 0 10px; }

/* admin: price changes, before -> after */
.la-summary { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin: 4px 0 10px; }
.la-chip { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; border: 1px solid transparent; white-space: nowrap; }
.la-chip.la-added { background: #E8F5EE; color: #1F6B45; border-color: #B9DFC9; }
.la-chip.la-changed { background: #FFF4DE; color: #8A5A00; border-color: #F1D7A1; }
.la-chip.la-removed { background: var(--danger-soft); color: var(--danger); border-color: var(--danger-line); }
.la-chip.la-unchanged { background: var(--snow); color: var(--ink-2); border-color: var(--line); }
.la-diff tr.la-removed td { color: var(--muted); }
.la-diff tr.la-unchanged td { color: var(--muted); }
.la-diff del { color: var(--danger); text-decoration-thickness: 1.5px; }
.la-diff ins { color: #1F6B45; text-decoration: none; font-weight: 600; }
.la-diff td { white-space: nowrap; }
.la-diff td:nth-child(2) { white-space: normal; min-width: 220px; }
.la-accept { display: inline-flex; gap: 6px; align-items: center; font-size: 13.5px; }
.pm-admin-row .la-accept input { min-height: 0; padding: 0; width: 18px; height: 18px; }

/* ---------- Outreach tab (admin) ---------- */
.or-ready { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 14px 0 18px; font-size: 14px; }
.or-ready dt { font-weight: 600; }
.or-ready dd { margin: 0; overflow-wrap: anywhere; }
.or-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; align-items: end; margin: 8px 0 14px; }
.or-form label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; }
.or-form input { font: inherit; font-weight: 400; min-height: var(--btn-h-sm); padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; }
.or-actions { display: flex; gap: 8px; align-items: center; }
.or-frame { width: 100%; height: 1500px; border: 1px solid var(--line-2, #d8d6cf); border-radius: 10px; background: #F2F3F5; }

/* Outreach: recipients and campaign sending */
.or-h { margin: 36px 0 6px; font-size: 19px; }
.or-rc-tools label, .or-rc-send label { display: inline-flex; gap: 6px; align-items: center; font-size: 13.5px; font-weight: 600; }
.or-rc-tools select, .or-rc-filters select, .or-rc-filters input, .or-rc-send input { min-height: var(--btn-h-sm); padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 14px; font-weight: 400; background: #fff; }
.or-rc-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 6px 0 10px; }
.or-rc-filters label { display: grid; gap: 4px; font-size: 12.5px; font-weight: 600; }
.or-rc-table td small { color: var(--muted); }
.or-rc-table tr.is-sel td { background: var(--accent-soft); }
.or-rc-table input[type=checkbox] { width: 18px; height: 18px; }
.or-alt, .or-src { font-size: 12px; color: var(--muted); }
.or-alt { cursor: help; text-decoration: underline dotted; }
.or-rc-send { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 14px 0; }
.or-rc-review { margin: 8px 0 18px; padding-left: 22px; font-size: 14px; line-height: 1.6; }
.or-sc-form select { font: inherit; font-weight: 400; min-height: var(--btn-h-sm); padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.or-sc-quotas { grid-column: 1 / -1; }
.or-sc-check { grid-column: 1 / -1; display: flex !important; gap: 8px; align-items: center; font-weight: 400 !important; }
.or-sc-check input { width: 18px; height: 18px; min-height: 0; }
.or-sc-bar { height: 10px; border-radius: 6px; background: var(--line); overflow: hidden; max-width: 520px; }
.or-sc-bar span { display: block; height: 100%; width: 0; background: var(--accent); }
.or-sc-days td, .or-sc-days th { text-align: right; } .or-sc-days td:first-child, .or-sc-days th:first-child { text-align: left; }
.or-sc-days tr.is-today td { background: var(--accent-soft); font-weight: 600; }
.or-sc-more { margin: 10px 0; } .or-sc-more summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.or-sc-reports { font-size: 13.5px; padding-left: 20px; line-height: 1.6; }
