/* FireBot Certified Installers: installer portal additions and the public "Find a Certified Installer" directory.
   Builds on portal.css (.firebot-rp, cards, forms, tabs, tiles). */

/* ---------- installer portal ---------- */
.firebot-ci-login { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; max-width: 1100px; margin: 0 auto; }
.firebot-ci-login .firebot-rp-card { margin: 0; }
@media (max-width: 800px) { .firebot-ci-login { grid-template-columns: minmax(0, 1fr); } }
.firebot-ci-form-card { max-width: 860px; margin-left: auto; margin-right: auto; }
.firebot-ci-radius { display: flex; align-items: center; gap: 10px; }
.firebot-rp-form .firebot-ci-radius input { max-width: 120px; }
.firebot-ci-state { font-weight: 700; font-size: 18px; margin: 0 0 10px; }
.firebot-ci-state.ok { color: #2e7d32; }
.firebot-ci-state.warn { color: #9a6b00; }
.firebot-ci-state.bad { color: var(--rp-err); }
.firebot-ci-img { display: block; margin: 4px 0 8px; }
.firebot-ci-img img { width: 96px; height: 96px; object-fit: contain; border: 1px solid var(--rp-line); border-radius: 10px; background: #fff; }
.firebot-ci-inline { display: inline; margin: 0; }
.firebot-ci-team select { min-width: 160px; padding: 6px 10px; border: 1px solid #ccc; border-radius: 8px; }
.firebot-ci-card-preview { display: flex; gap: 16px; align-items: center; padding: 16px; border: 1px solid var(--rp-line); border-radius: 12px; background: var(--rp-soft); max-width: 640px; }
.firebot-ci-card-preview .thumb img { width: 72px; height: 72px; object-fit: contain; border-radius: 8px; background: #fff; display: block; }
.firebot-ci-card-preview .body { display: flex; flex-direction: column; gap: 3px; min-width: 0; overflow-wrap: anywhere; }
.firebot-ci-card-preview strong { font-size: 18px; }

/* ---------- directory ---------- */
.firebot-rp.firebot-ci-dir { max-width: 1400px; margin: 0 auto; }
.firebot-ci-dir-head { text-align: center; margin: 0 auto 24px; max-width: 820px; }
.firebot-ci-dir-head h1 { font-size: 36px; margin: 0 0 10px; }
.firebot-ci-dir-head p { margin: 0 0 18px; }
.firebot-ci-search { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; }
.firebot-ci-search input[type=search] { flex: 1 1 320px; max-width: 460px; min-width: 0; padding: 13px 18px; font-size: 17px; border: 1px solid #c9c9c9; border-radius: 100px; background: #fff; }
.firebot-ci-search input[type=search]:focus { outline: 2px solid var(--rp-accent); outline-offset: 1px; border-color: var(--rp-accent); }
.firebot-ci-search .button { padding: 13px 30px; }
.firebot-rp .firebot-ci-search button.firebot-ci-locate { flex-basis: 100%; font-size: 15px !important; }
.firebot-ci-dir-cols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.firebot-ci-map-wrap { position: sticky; top: 110px; }
.admin-bar .firebot-ci-map-wrap { top: 142px; }
.firebot-ci-map { height: min(680px, calc(100vh - 150px)); min-height: 420px; border-radius: 14px; overflow: hidden; background: #e9ecef; border: 1px solid var(--rp-line); }
.firebot-ci-map .firebot-ci-map-msg { display: grid; place-items: center; height: 100%; padding: 24px; text-align: center; color: #555; }
.firebot-ci-results { min-width: 0; }
.firebot-ci-summary { font-weight: 600; margin: 0 0 12px; }
.firebot-ci-summary.err { color: var(--rp-err); }
.firebot-ci-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.firebot-ci-item { display: grid; grid-template-columns: 34px 64px minmax(0, 1fr); gap: 12px; align-items: start; padding: 16px; border: 1px solid var(--rp-line); border-radius: 12px; background: #fff; cursor: pointer; transition: box-shadow .15s, border-color .15s; }
.firebot-ci-item.no-img { grid-template-columns: 34px minmax(0, 1fr); }
.firebot-ci-item:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.firebot-ci-item.active { border-color: var(--rp-accent); box-shadow: 0 0 0 2px var(--rp-accent); }
.firebot-ci-item:focus-visible { outline: 3px solid var(--rp-dark); outline-offset: 2px; }
.firebot-ci-item .num { width: 30px; height: 30px; border-radius: 50%; background: var(--rp-accent); color: #000; font-weight: 700; display: grid; place-items: center; font-size: 14px; }
.firebot-ci-item .img img { width: 64px; height: 64px; object-fit: contain; border-radius: 8px; background: var(--rp-soft); display: block; }
.firebot-ci-item .body { min-width: 0; overflow-wrap: anywhere; }
.firebot-ci-item h3 { font-size: 18px; margin: 2px 0 4px; }
.firebot-ci-item .meta { font-size: 15px; opacity: .8; margin: 0 0 8px; }
.firebot-ci-item .links { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 15px; }
.firebot-ci-item .links a { font-weight: 600; color: var(--rp-dark); }
.firebot-ci-empty { padding: 20px; border: 1px dashed #c9c9c9; border-radius: 12px; background: var(--rp-soft); }
.firebot-ci-join { text-align: center; margin-top: 28px; }
.firebot-ci-info { max-width: 240px; font-size: 14px; line-height: 1.4; color: #262729; }
.firebot-ci-info img { width: 100%; max-height: 120px; object-fit: cover; border-radius: 6px; margin-bottom: 6px; }
.firebot-ci-info strong { display: block; font-size: 15px; margin-bottom: 2px; }
.firebot-ci-info a { color: #1f6fd1; }
@media (max-width: 900px) {
	.firebot-ci-dir-cols { grid-template-columns: minmax(0, 1fr); }
	.firebot-ci-map-wrap { position: static; }
	.firebot-ci-map { height: 340px; min-height: 0; }
	.firebot-ci-dir-head h1 { font-size: 28px; }
}
@media (max-width: 480px) {
	.firebot-ci-item { grid-template-columns: 30px 48px minmax(0, 1fr); padding: 12px; gap: 10px; }
	.firebot-ci-item .img img { width: 48px; height: 48px; }
	.firebot-ci-search .button { flex: 1 1 100%; }
}

/* Hello theme caps non-Elementor pages at 1140px; give the directory (map + list) more room. */
body.firebot-ci-dir-page:not([class*=elementor-page-]) .site-main { max-width: 1440px; }

/* Training step (2026-11-21) */
.firebot-ci-team-row { padding: 14px 0 0; border-top: 1px solid var(--rp-line); }
.firebot-ci-team-row:first-child { border-top: 0; padding-top: 0; }
.firebot-ci-calendly { min-width: 280px; height: 700px; margin: 8px -12px 0; }
@media (max-width: 640px) { .firebot-ci-calendly { height: 1050px; } }

/* "Become a Reseller" banner in the installer portal (2026-11-21) */
.firebot-ci-resell { display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 0 0 22px; padding: 22px 26px; border-radius: 14px; background: var(--rp-dark); color: #fff; box-shadow: inset 6px 0 0 var(--rp-accent); }
.firebot-ci-resell .txt { flex: 1 1 420px; min-width: 0; }
.firebot-ci-resell .kicker { margin: 0 0 4px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--rp-accent); }
.firebot-rp .firebot-ci-resell h2 { margin: 0 0 6px; font-size: 22px; color: #fff; }
.firebot-ci-resell .txt p:last-child { margin: 0; font-size: 15px; line-height: 1.5; color: #e4e4e4; }
.firebot-ci-resell .actions { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.firebot-rp .firebot-ci-resell .firebot-ci-resell-learn { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px #fff; }
.firebot-rp .firebot-ci-resell .firebot-ci-resell-learn:hover { background: #fff; color: var(--rp-dark); }
body .firebot-rp .firebot-ci-resell button.firebot-rp-linkbtn { color: #cfcfcf !important; font-size: 14px !important; }
@media (max-width: 600px) { .firebot-ci-resell { padding: 18px; } .firebot-ci-resell .actions .button { flex: 1 1 auto; text-align: center; } }
/* The portal's primary-button hover is near-black, which vanishes on the dark banner: use a lighter yellow here. */
.firebot-rp .firebot-ci-resell .firebot-rp-primary:hover,
.firebot-rp .firebot-ci-resell .firebot-rp-primary:focus-visible { background: #ffd04d; color: var(--rp-dark); box-shadow: 0 0 0 2px #fff; }
