/* integrations-look.css — Settings → Integrations, dressed as respond.io's
   (owner, 2026-10-02). See integrations-look.js for what is done and why.
   White cards, one hairline, radius 8; the only colour is the logo, a green
   dot for what is connected, and the lime button. */

.crm-int-card {
  --int-ink: #1d1b1c; --int-muted: #6b7280; --int-line: #e6e8eb; --int-card: #fff;
  display: flex !important; flex-direction: column; gap: 6px;
  padding: 14px 16px !important; margin: 0 !important;
  outline: none !important; border: 1px solid var(--int-line); border-radius: 8px !important;
  background: var(--int-card) !important; cursor: pointer;
  transition: border-color .15s ease;
}
.crm-int-card:hover { border-color: #cfd4da; }
:root.dark .crm-int-card, .dark .crm-int-card { --int-ink: #edefeb; --int-muted: #9aa3af; --int-line: #2c3138; --int-card: #1b1e23; }
:root.dark .crm-int-card:hover, .dark .crm-int-card:hover { border-color: #3a4048; }

/* The top row: the logo, and its kind on the other side. The platform's
   Enabled / Disabled pill is put away - connected is said at the foot. */
.crm-int-card > div:first-child { display: flex; align-items: center !important; justify-content: space-between; min-height: 32px; }
.crm-int-card > div:first-child > div:first-child { width: 32px !important; height: 32px !important; margin: 0 !important; }
.crm-int-card > div:first-child img { border: 0 !important; box-shadow: none !important; background: transparent !important; border-radius: 6px !important; }
.crm-int-card > div:first-child > div.rounded-lg { display: none !important; }
.crm-int-cat { font-size: 12px; color: var(--int-muted); white-space: nowrap; }

/* The name and three lines of what it does. Configure goes: the card opens it. */
.crm-int-card > div:nth-child(2) { flex: 1 1 auto; }
.crm-int-card .text-heading-3 { font-size: 14px !important; font-weight: 600 !important; line-height: 1.4; color: var(--int-ink) !important; }
.crm-int-card .text-heading-3 + a { display: none !important; }
.crm-int-card > div:nth-child(2) > div:first-child { margin-bottom: 4px !important; }
.crm-int-card p, .crm-int-card .crm-int-desc {
  margin: 0; font-size: 13px !important; line-height: 1.55 !important; color: var(--int-muted) !important;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.crm-int-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.crm-int-on { display: inline-flex; align-items: center; gap: 6px; margin-inline-end: auto; font-size: 12px; color: #067647; }
.crm-int-on i { width: 7px; height: 7px; border-radius: 50%; background: #12b76a; display: inline-block; }
:root.dark .crm-int-on, .dark .crm-int-on { color: #6fe0a0; }
.crm-int-manage {
  display: inline-flex; align-items: center; height: 30px; padding: 0 12px;
  border: 1px solid var(--int-line); border-radius: 8px; background: var(--int-card);
  font-size: 12.5px; font-weight: 500; color: var(--int-ink) !important; text-decoration: none !important;
}
.crm-int-card:hover .crm-int-manage, .crm-int-manage:hover { background: #1877f2; border-color: #1877f2; color: #fff !important; }

/* Our own card (Meta): the same parts, drawn by us. */
.crm-int-top { display: flex; align-items: center; justify-content: space-between; min-height: 32px; }
.crm-int-logo { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 6px; }
.crm-int-logo--meta { color: #0866ff; font-size: 26px; line-height: 0; }
.crm-int-body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 4px; }

/* ---- one platform app's page ---------------------------------------------- */

.crm-int-pagedesc { margin: 2px 0 0; max-width: 760px; font-size: 13px; line-height: 1.6; color: #6b7280; }

/* Not connected: the logo in black and white in the middle, what is missing,
   and its own Connect button under it, in lime. */
.crm-int-empty { padding: 56px 16px !important; }
.crm-int-empty > div { flex-direction: column !important; gap: 10px; text-align: center; }
.crm-int-empty > div > div:first-child { width: 64px !important; height: 64px !important; }
.crm-int-empty > div > div:first-child img { filter: grayscale(1); opacity: .55; border: 0 !important; box-shadow: none !important; background: transparent !important; }
.crm-int-empty h3, .crm-int-empty h3 + p { display: none !important; }
/* The platform's own name and text beside the logo (ours sits after the logo). */
.crm-int-empty > div > div:has(> h3) { display: none !important; }
.crm-int-emptytext { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.crm-int-emptytext b { font-size: 15px; font-weight: 600; color: #1d1b1c; }
.crm-int-emptytext span { font-size: 13px; color: #6b7280; }
:root.dark .crm-int-emptytext b, .dark .crm-int-emptytext b { color: #edefeb; }
.crm-int-empty > div > div:last-child { width: auto !important; margin-top: 6px !important; }
.crm-int-empty > div > div:last-child button {
  background: #d4fb08 !important; color: #000 !important; border: 0 !important; border-radius: 8px !important;
  height: 34px; padding: 0 18px !important; font-weight: 500;
}
.crm-int-empty > div > div:last-child button:hover { background: #1877f2 !important; color: #fff !important; }

/* ---- the Meta Business page ---------------------------------------------- */

[data-crm-int-hidden] { display: none !important; }
.crm-int-page { width: 100%; margin: 0; align-self: stretch; padding: 16px 24px 40px; font-size: 13px; color: #1d1b1c; }
.crm-int-pagehead { display: flex; align-items: flex-start; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid #e6e8eb; }
.crm-int-back {
  flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px;
  color: #6b7280; font-size: 18px; line-height: 0; text-decoration: none !important;
}
.crm-int-back:hover { background: rgba(0, 0, 0, .05); }
.crm-int-pagetitle { display: flex; align-items: center; gap: 8px; margin: 2px 0 0; font-size: 16px; font-weight: 600; }
.crm-int-pagetitle .fi { font-size: 20px; line-height: 0; color: #0866ff; }

.crm-int-center { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 72px 16px; text-align: center; }
.crm-int-biglogo { font-size: 64px; line-height: 1; color: #9ca3af; margin-bottom: 6px; }
.crm-int-centertitle { font-size: 15px; font-weight: 600; }
.crm-int-centersub { color: #6b7280; margin-bottom: 8px; }

.crm-int-btn {
  height: 34px; padding: 0 16px; border-radius: 8px; border: 1px solid #e6e8eb; background: #fff;
  font-size: 13px; font-weight: 500; color: #1d1b1c; cursor: pointer;
}
.crm-int-btn.is-primary { background: #d4fb08; border-color: #d4fb08; color: #000; }
.crm-int-btn.is-primary:hover, .crm-int-btn.is-quiet:hover { background: #1877f2; border-color: #1877f2; color: #fff; }
.crm-int-btn.is-danger { color: var(--crm-alert-ink, #c8243b); border-color: var(--crm-alert-line, #f26b7b); background: #fff; }
.crm-int-btn.is-danger:hover { background: var(--crm-alert-bg, #fff1f2); }
.crm-int-btn.is-busy { opacity: .6; pointer-events: none; }

.crm-int-fb { display: inline-flex; align-items: center; gap: 8px; }
.crm-int-fb .fi { font-size: 16px; line-height: 0; }
.crm-int-link { margin-top: 6px; border: 0; background: none; padding: 4px; font-size: 12.5px; color: #6b7280; text-decoration: underline; cursor: pointer; }
.crm-int-link:hover { color: #1877f2; }
.crm-int-pick { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #e6e8eb; border-radius: 8px; cursor: pointer; }
.crm-int-pick.is-on { border-color: #1d1b1c; }
.crm-int-pickwords { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.crm-int-form { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 14px; text-align: start; }
.crm-int-field { display: flex; flex-direction: column; gap: 6px; }
.crm-int-fieldlabel { font-weight: 600; }
.crm-int-fieldhint { font-size: 12px; color: #6b7280; }
/* The platform styles input[type] fields its own way (a password came out grey and taller): ours are one shape. */
input.crm-int-input:focus { outline: none !important; border-color: #9ca3af !important; box-shadow: none !important; }
input.crm-int-input { -webkit-appearance: none; appearance: none; outline: none !important; height: 36px !important; min-height: 0 !important; margin: 0 !important; padding: 0 12px !important; border: 1px solid #e6e8eb !important; border-radius: 8px !important; background: #fff !important; font-size: 13px !important; box-shadow: none !important; }
.crm-int-acts { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.crm-int-error {
  padding: 9px 12px; border-radius: 8px; border: 1px solid var(--crm-alert-line, #f26b7b);
  background: var(--crm-alert-bg, #fff1f2); color: var(--crm-alert-ink, #c8243b); font-size: 12.5px;
}

.crm-int-box { max-width: 720px; margin: 20px 0 0; padding: 18px 20px; border: 1px solid #e6e8eb; border-radius: 8px; background: #fff; display: flex; flex-direction: column; gap: 10px; }
.crm-int-boxtop { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 6px; }
.crm-int-boxname { font-size: 15px; font-weight: 600; }
.crm-int-boxtop .crm-int-on { margin: 0; }
.crm-int-fact { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; border-top: 1px solid #f0f1f3; }
.crm-int-factlabel { color: #6b7280; }
.crm-int-factvalue { font-weight: 500; }
.crm-int-ask { margin-top: 6px; padding: 12px; border-radius: 8px; background: var(--crm-alert-bg, #fff1f2); color: var(--crm-alert-ink, #c8243b); display: flex; flex-direction: column; gap: 10px; }

:root.dark .crm-int-page, .dark .crm-int-page { color: #edefeb; }
:root.dark .crm-int-box, .dark .crm-int-box, :root.dark .crm-int-btn, .dark .crm-int-btn, :root.dark .crm-int-input, .dark .crm-int-input { background: #1b1e23; border-color: #2c3138; color: #edefeb; }
:root.dark .crm-int-pagehead, .dark .crm-int-pagehead, :root.dark .crm-int-fact, .dark .crm-int-fact { border-color: #2c3138; }
