/* Brand kit from Shopify: logos across the app, Settings → Brand "From Shopify" and the product list
   (src/ui/brand-kit.tsx, src/ui/brand-products.tsx). Loaded on every page (layout Head). */

/* Sidebar / mobile bar: small square logo next to the brand name. */
.logo .bk-row { display: flex; align-items: center; gap: 9px; color: inherit; }
.logo .bk-row-name { color: inherit; min-width: 0; overflow-wrap: anywhere; }
.bk-logo { flex: none; border-radius: 7px; object-fit: contain; background: #fff; border: 1px solid var(--line); }
.side-top .logo .logo-on, .mbar .logo .logo-on { padding-left: 0; }
.mbar .logo .bk-logo { width: 22px; height: 22px; }

/* Auth pages on the brand's own domain. */
.logo.bk-auth { display: inline-flex; align-items: center; gap: 10px; }
.logo.bk-auth .bk-auth-name { color: var(--ink); line-height: 1.2; }
.logo.bk-auth .bk-auth-name > span { color: inherit; }

/* Explore: logo in place of the initial. */
.xb-mark.xb-mark-logo { background: #fff; border: 1px solid var(--line); overflow: hidden; padding: 4px; }
.xb-mark.xb-mark-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* Creator brief hero. */
.bf-hero .bf-hero-logo { position: relative; z-index: 1; display: block; height: 40px; width: auto; max-width: 180px; object-fit: contain; background: #fff; border-radius: 10px; padding: 6px 10px; margin-bottom: 14px; }

/* Settings → Brand → From Shopify. */
.bk-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; }
.bk-head h2 { margin: 0 0 8px; }
.bk-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin: 6px 0 14px; }
.bk-logos { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-start; }
.bk-logos figure { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.bk-logo-wide { height: 56px; width: auto; max-width: 220px; object-fit: contain; border: 1px solid var(--line); border-radius: 10px; padding: 8px; background: #fff; }
.bk-logo-sq { width: 56px; height: 56px; object-fit: contain; border: 1px solid var(--line); border-radius: 10px; padding: 6px; background: #fff; }
.bk-swatches { display: flex; gap: 14px; flex-wrap: wrap; }
.bk-swatch { display: flex; align-items: center; gap: 10px; }
.bk-chip { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }
.bk-swatch-text { display: flex; flex-direction: column; line-height: 1.3; font-size: 13px; }
.bk-swatch-text code { width: fit-content; }
.bk-slogan { margin: 12px 0 4px; font-weight: 600; font-style: italic; }
.bk-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.bk-actions form { margin: 0; }
.bk-actions .btn { display: inline-flex; align-items: center; gap: 8px; }
.bk-actions .btn:disabled { opacity: 0.75; cursor: default; }
.bk-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15); }
.bk-note { margin: 8px 0 0; }
.bk-sync { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.bk-sync p { margin: 4px 0 0 28px; }
.bk-switch { flex-direction: row; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; }
.bk-switch input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }

/* Products creators can choose (inside the Brand form). */
.bp { display: flex; flex-direction: column; gap: 10px; }
.bp legend { font-weight: 500; font-size: 14px; padding: 0; margin-bottom: 2px; }
.bp > p { margin: 0; }
.bp-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 10px; max-height: 440px; overflow-y: auto; background: var(--surface); }
.bp-list li { border-top: 1px solid var(--line); }
.bp-list li:first-child { border-top: 0; }
.bp-list li.bp-off { opacity: 0.65; }
.bp-row { flex-direction: row; align-items: center; gap: 12px; padding: 10px 12px; cursor: pointer; font-weight: 400; }
.bp-row:hover { background: var(--bg); }
.bp-row input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--accent); }
.bp-row img, .bp-noimg { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex: none; background: var(--bg); border: 1px solid var(--line); }
.bp-title { flex: 1; min-width: 0; display: flex; flex-direction: column; font-weight: 600; overflow-wrap: anywhere; line-height: 1.3; }
.bp-title .muted { font-weight: 400; }
.bp-hint { flex: none; }
.bp-auto { flex-direction: row; align-items: center; gap: 10px; font-weight: 400; cursor: pointer; }
.bp-auto input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }

/* Upload forms: product photo next to the dropdown. */
.bp-pick { display: flex; align-items: center; gap: 10px; }
.bp-pick select { flex: 1; min-width: 0; }
.bp-pick-img { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; flex: none; border: 1px solid var(--line); background: var(--bg); }
.bp-pick-img[hidden] { display: none; }

@media (max-width: 640px) {
  .bk-grid { grid-template-columns: 1fr; }
  .bp-hint { display: none; }
  .bk-actions .btn { width: 100%; justify-content: center; }
  .bk-actions form { flex: 1 1 100%; }
}
