/* DCK Directory extras: claim popup, checkout, pricing, cost calculator,
   profile price card, nearby contractors, stats line, footer CTA band. */

.dck-claim-pop, .dck-pay-pop, .dck-band {
  --dck-brand: #111111; --dck-brand-deep: #000000; --dck-brand-soft: #EFEFEF;
  --dck-ink: #111111; --dck-muted: #6B6B6B; --dck-line: #E3E3E3; --dck-ground: #F6F6F6;
  --dck-card: #FFFFFF; --dck-good: #17683F; --dck-good-soft: #E3F2EA; --dck-bad: #A8321F; --dck-bad-soft: #FAE9E6;
}

/* ---------- Popups (share the login popup shell) ---------- */
.dck-claim-pop__card, .dck-pay-pop__card { max-width: 560px; max-height: calc(100vh - 40px); overflow-y: auto; }
.dck-claim-pop__card h2, .dck-pay-pop__card h2 { margin-bottom: 6px; padding-right: 30px; }
.dck-claim-pop__intro { margin: 0 0 16px; font-size: 16px; }
.dck-claim-pop a, .dck-pay-pop a, .dck-claim-inline a { color: var(--dck-brand); font-weight: 600; }
.dck-claim-pop .dck-btn, .dck-pay-pop .dck-btn { width: 100%; text-align: center; justify-content: center; }
.dck-claim-pop .dck-claimw__actions .dck-btn { width: auto; }
.dck-claim-pop .dck-stack input, .dck-pay-pop .dck-stack input, .dck-pay-pop .dck-stack select { font-size: 16px; }
.dck-check a { text-decoration: underline; }

/* ---------- Claim widget ---------- */
.dck-claimw__label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; }
.dck-claimw__label input { padding: 12px 14px; border: 1px solid var(--dck-line); border-radius: 10px; background: var(--dck-ground); font: inherit; font-size: 16px; color: var(--dck-ink); width: 100%; box-sizing: border-box; }
.dck-claimw__results { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.dck-claimw__results li { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--dck-line); border-radius: 10px; padding: 10px 12px; background: #fff; }
.dck-claimw__results b { display: block; font-size: 16px; }
.dck-claimw__results small { color: var(--dck-muted); font-size: 16px; }
.dck-claimw__results button { flex: none; border: 0; border-radius: 8px; background: var(--dck-brand); color: #fff; font-weight: 700; font-size: 16px; padding: 8px 14px; cursor: pointer; }
.dck-claimw__results button[disabled] { background: var(--dck-ground); color: var(--dck-muted); cursor: default; }
.dck-claimw__hint { font-size: 16px; color: var(--dck-muted); margin: 10px 0 0; }
.dck-claimw__new { font-size: 16px; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--dck-line); }
.dck-claimw__pick { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--dck-ground); border-radius: 10px; padding: 12px 14px; }
.dck-claimw__pick b { display: block; font-size: 16px; }
.dck-claimw__pick small { color: var(--dck-muted); font-size: 16px; }
.dck-claimw__change { border: 1px solid var(--dck-line); background: #fff; border-radius: 8px; padding: 6px 12px; font-size: 16px; font-weight: 600; cursor: pointer; color: var(--dck-ink); }
.dck-claimw__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.dck-claimw .dck-check { display: flex; align-items: flex-start !important; font-size: 14px; line-height: 1.45; }
.dck-claimw .dck-check input { margin-top: 3px; flex: none; }
.dck-claimw__done { text-align: center; padding: 8px 0 4px; }
.dck-claimw__done h3 { margin: 10px 0 6px; font-size: 20px; }
.dck-claimw__done p { color: var(--dck-muted); font-size: 16px; margin: 0 0 16px; }
.dck-claimw__tick { width: 52px; height: 52px; margin: 0 auto; border-radius: 50%; background: var(--dck-good-soft); color: var(--dck-good); display: grid; place-items: center; }
.dck-claimw__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.dck-form-msg.err a { color: inherit; text-decoration: underline; }

/* Inline version on the signup page */
.dck-claim-inline { margin: 18px 0 8px; }
.dck-claim-inline h2 { margin: 0 0 12px; font-size: 20px; }
.dck-or { display: flex; align-items: center; gap: 12px; margin: 22px 0 6px; color: var(--dck-muted); font-size: 16px; text-transform: uppercase; letter-spacing: .08em; }
.dck-or::before, .dck-or::after { content: ""; flex: 1; height: 1px; background: var(--dck-line); }
.dck-new-title { font-size: 20px; margin: 10px 0 12px; scroll-margin-top: 110px; }
#dck-claim { scroll-margin-top: 110px; }

/* ---------- Checkout ---------- */
.dck-plan-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dck-plan-pick label { position: relative; cursor: pointer; }
.dck-plan-pick input { position: absolute; opacity: 0; }
.dck-plan-pick span { display: block; border: 1.5px solid var(--dck-line); border-radius: 12px; padding: 12px 14px; font-size: 16px; }
.dck-plan-pick b { font-size: 20px; }
.dck-plan-pick small { display: block; color: var(--dck-muted); font-size: 16px; margin-top: 2px; }
.dck-plan-pick input:checked + span { border-color: var(--dck-brand); box-shadow: 0 0 0 2px var(--dck-brand) inset; }
.dck-plan-pick input:focus-visible + span { outline: 2px solid var(--dck-brand); outline-offset: 2px; }
.dck-pay-secure { display: flex; gap: 6px; align-items: flex-start; font-size: 16px; color: var(--dck-muted); margin: 0; }
.dck-pay-secure svg { flex: none; margin-top: 1px; }
.dck-pay-pop .dck-check { display: flex; align-items: flex-start !important; font-size: 14px; line-height: 1.45; }
.dck-pay-pop .dck-check input { margin-top: 3px; flex: none; }

/* Dashboard billing box */
.dck-bill { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border: 1px solid var(--dck-line); background: var(--dck-ground); border-radius: 12px; padding: 16px 20px; margin: 16px 0; font-size: 16px; }
.dck-bill--on { background: var(--dck-good-soft); border-color: #bfe3cd; }
.dck-bill--warn { background: var(--dck-bad-soft); border-color: #f0c9c3; }
.dck-bill .dck-form-msg { flex-basis: 100%; margin: 0; }
.dck-price-edit { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--dck-line); border-radius: 10px; }
.dck-price-edit > b { font-size: 16px; }
.dck-price-row { display: flex; align-items: center; gap: 6px; font-size: 16px; flex-wrap: wrap; }
.dck-price-row span { flex: 1 1 160px; }
.dck-price-row input { width: 90px !important; }

/* ---------- Pricing page ---------- */
.dck-eyebrow { display: inline-block; font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--dck-muted); background: var(--dck-ground); border-radius: 999px; padding: 5px 12px; margin-bottom: 12px; }
.dck-pricing__head { text-align: center; max-width: 680px; margin: 0 auto 28px; }
.dck-pricing__head h1 { margin: 0 0 10px; }
.dck-pricing__head p { font-size: 16px; margin: 0 0 20px; }
.dck-bill-toggle { display: inline-flex; background: var(--dck-ground); border: 1px solid var(--dck-line); border-radius: 999px; padding: 4px; gap: 4px; }
.dck-bill-toggle button { border: 0; background: none; border-radius: 999px; padding: 9px 18px; font: inherit; font-size: 16px; font-weight: 700; color: var(--dck-muted); cursor: pointer; }
.dck-bill-toggle button.is-on { background: #fff; color: var(--dck-ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.dck-bill-toggle em { font-style: normal; font-size: 14px; color: var(--dck-good); background: var(--dck-good-soft); border-radius: 999px; padding: 2px 7px; margin-left: 4px; }
.dck-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 900px; margin: 0 auto 28px; }
.dck-plan { position: relative; background: #fff; border: 1px solid var(--dck-line); border-radius: 16px; padding: 26px 24px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--dck-shadow); }
.dck-plan h2 { margin: 0; font-size: 20px; }
.dck-plan > p { margin: 0; font-size: 16px; }
.dck-plan--pro { border: 2px solid var(--dck-brand); }
.dck-plan__tag { position: absolute; top: -12px; right: 20px; background: var(--dck-brand); color: #fff; font-size: 14px; font-weight: 700; border-radius: 999px; padding: 4px 12px; }
.dck-plan__price b { font-size: 39px; font-weight: 800; letter-spacing: -.02em; }
.dck-plan__price span { color: var(--dck-muted); margin-left: 6px; font-size: 16px; }
.dck-plan .dck-btn { text-align: center; justify-content: center; width: 100%; box-sizing: border-box; }
.dck-plan__list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 9px; font-size: 16px; }
.dck-plan__list li { display: flex; gap: 8px; align-items: flex-start; }
.dck-plan__list svg { flex: none; color: var(--dck-good); margin-top: 1px; }
.dck-plan__list small { color: var(--dck-muted); }
.dck-compare { max-width: 900px; margin: 0 auto 20px; }
.dck-compare__scroll { overflow-x: auto; }
.dck-compare table { width: 100%; border-collapse: collapse; font-size: 16px; }
.dck-compare th, .dck-compare td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--dck-line); }
.dck-compare thead th { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--dck-muted); }
.dck-compare td { text-align: center; width: 24%; }
.dck-compare td svg { color: var(--dck-good); }
.dck-compare tbody th { font-weight: 500; }
.dck-price-no { color: #6B6B6B; font-size: 20px; }
.dck-pricing .dck-card { max-width: 900px; margin-left: auto; margin-right: auto; }
@media (max-width: 720px) { .dck-plans { grid-template-columns: 1fr; } }

/* ---------- Cost calculator ---------- */
.dck-calc h1 { margin: 0 0 8px; }
.dck-calc .dck-card { margin-top: 18px; }
.dck-calc__sizes { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 10px; }
.dck-calc__sizes button { border: 1px solid var(--dck-line); background: #fff; border-radius: 999px; padding: 7px 12px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--dck-ink); }
.dck-calc__sizes button.is-on { background: var(--dck-brand); border-color: var(--dck-brand); color: #fff; }
.dck-calc__sizes small { font-weight: 400; opacity: .75; }
.dck-calc input[type="number"] { width: 100%; box-sizing: border-box; }
.dck-calc__out { text-align: center; background: var(--dck-ground); border-radius: 12px; padding: 18px; }
.dck-calc__out small { display: block; font-size: 16px; text-transform: uppercase; letter-spacing: .08em; color: var(--dck-muted); }
.dck-calc__out b { display: block; font-size: clamp(31px, 6vw, 39px); font-weight: 800; letter-spacing: -.02em; margin: 4px 0; }
.dck-calc__out span { font-size: 16px; color: var(--dck-muted); }
.dck-calc .dck-btn { text-align: center; justify-content: center; }

/* ---------- Profile: prices + nearby ---------- */
.dck-costs__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.dck-costs__list li { display: flex; align-items: baseline; gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--dck-line); font-size: 16px; }
.dck-costs__list li:last-child { border-bottom: 0; }
.dck-costs__list span { flex: 1; }
.dck-costs__list small { color: var(--dck-muted); font-size: 16px; }
.dck-costs .dck-fine { text-align: left; font-size: 16px; }
.dck-nearby ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dck-nearby a { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--dck-line); border-radius: 10px; color: var(--dck-ink) !important; text-decoration: none !important; }
.dck-nearby a:hover { border-color: var(--dck-ink); }
.dck-nearby b { display: block; font-size: 16px; line-height: 1.3; }
.dck-nearby small { color: var(--dck-muted); font-size: 16px; }
.dck-nearby__av { flex: none; width: 38px; height: 38px; border-radius: 9px; background: var(--dck-ink); color: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 700; }
@media (max-width: 640px) { .dck-nearby ul { grid-template-columns: 1fr; } }
.dck-upsell__more { display: block; margin-top: 10px; font-size: 16px; font-weight: 600; text-align: center; }
.dck-upsell .dck-btn { width: 100%; text-align: center; justify-content: center; box-sizing: border-box; }

/* ---------- Directory hero stats ---------- */
.dck-stats { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px; margin: -8px 0 16px !important; font-size: 16px; color: rgba(255,255,255,.85); }
.dck-stats b { color: #fff; font-weight: 800; }
.dck-stats i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .6; }

/* ---------- CTA band above the footer ---------- */
.dck-band { background: #1b1b1b; color: #fff; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
.dck-band__in { max-width: 1120px; margin: 0 auto; padding: 22px 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.dck-band__icon { flex: none; width: 44px; height: 44px; border-radius: 11px; background: rgba(255,255,255,.1); display: grid; place-items: center; }
.dck-band__txt { flex: 1 1 260px; display: flex; flex-direction: column; gap: 2px; }
.dck-band__txt strong { font-size: 16px; }
.dck-band__txt span { font-size: 16px; color: rgba(255,255,255,.75); }
.dck-band__btn { flex: none; background: #fff; color: #111 !important; font-weight: 700; font-size: 16px; border-radius: 10px; padding: 12px 20px; text-decoration: none !important; }
.dck-band__btn:hover { background: #e9e9e9; }
@media (max-width: 560px) { .dck-band__btn { width: 100%; text-align: center; } }

/* Theme page template: our pages bring their own heading and need more width. */
.max-w-3xl:has(.dck-pricing), .max-w-3xl:has(.dck-calc) { max-width: 1160px; }
.max-w-3xl:has(.dck-pricing) > h1, .max-w-3xl:has(.dck-calc) > h1 { display: none; }
/* The theme puts a ✓ before every list item; our lists draw their own. */
.dck-plan__list li, .dck-costs__list li, .dck-nearby li, .dck-claimw__results li { padding-left: 0 !important; }
.dck-plan__list li::before, .dck-costs__list li::before, .dck-nearby li::before, .dck-claimw__results li::before { content: none !important; display: none !important; }

/* ---------- Free profiles: example finish photos + default services (1.22.0) ---------- */
.dck-examples .dck-soon__head { margin-bottom: 12px; }
.dck-examples__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.dck-examples__grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; display: block; background: var(--dck-ground); }
.dck-examples__note { margin: 10px 0 0; font-size: 16px; color: var(--dck-muted); }
.dck-services-default h2 { margin-top: 0; }
@media (max-width: 640px) { .dck-examples__grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Contractor dashboard (1.22.0) ---------- */
.dck-dash-admin { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: var(--dck-ground); border: 1px solid var(--dck-line); border-radius: 12px; padding: 12px 16px; margin: 0 0 20px; font-size: 14px; }
.dck-dash-admin input[type="search"] { flex: 1 1 220px; padding: 10px 12px; border: 1px solid var(--dck-line); border-radius: 8px; font: inherit; font-size: 16px; }
.dck-dash__results { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 8px; }
.dck-dash__results a { display: block; padding: 12px 14px; border: 1px solid var(--dck-line); border-radius: 10px; background: #fff; color: var(--dck-ink); }
.dck-dash__results small { color: var(--dck-muted); }
.dck-dash__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.dck-dash__head h1 { margin: 0 0 8px; }
.dck-dash__badges { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.dck-dash__switch { display: flex; flex-direction: column; gap: 4px; font-size: 16px; font-weight: 600; min-width: 240px; }
.dck-dash__switch select { padding: 10px 12px; border: 1px solid var(--dck-line); border-radius: 8px; font: inherit; font-size: 16px; background: #fff; }
.dck-dash__layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.dck-dash__nav { position: sticky; top: 120px; display: flex; flex-direction: column; gap: 4px; }
.dck-dash__nav a { display: block; padding: 10px 14px; border-radius: 10px; font-size: 16px; font-weight: 600; color: var(--dck-ink) !important; text-decoration: none !important; }
.dck-dash__nav a:hover { background: var(--dck-ground); }
.dck-dash__nav a.is-on { background: var(--dck-ink); color: #fff !important; }
.dck-dash__main { display: grid; gap: 20px; min-width: 0; }
.dck-dash__form { display: grid; gap: 20px; }
.dck-dash__pane h2 { margin-top: 0; }
.dck-dash__pane h3 { font-size: 20px; margin: 20px 0 10px; }
.dck-dash__fs { border: 0; padding: 0; margin: 0; min-width: 0; }
.dck-dash__fs legend { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.dck-dash__meter { height: 10px; border-radius: 999px; background: var(--dck-ground); overflow: hidden; }
.dck-dash__meter-fill { display: block; height: 100%; width: 0; background: var(--dck-good); border-radius: 999px; transition: width .4s ease; }
.dck-dash__checks { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 0; }
.dck-dash__checks li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--dck-line); font-size: 16px; padding-left: 0 !important; }
.dck-dash__checks li::before { content: none !important; display: none !important; }
.dck-dash__checks li:last-child { border-bottom: 0; }
.dck-dash__checks li.is-done span { color: var(--dck-muted); }
.dck-dash__checks b { color: var(--dck-good); font-size: 16px; }
.dck-dash__checks a { font-size: 16px; font-weight: 700; }
.dck-dash__logo { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.dck-dash__logo-img { width: 72px; height: 72px; border-radius: 14px; overflow: hidden; background: var(--dck-ink); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 20px; flex: none; }
.dck-dash__logo-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dck-dash__logo label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.dck-dash__gallery { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.dck-dash__gallery li { padding-left: 0 !important; }
.dck-dash__gallery li::before { content: none !important; display: none !important; }
.dck-dash__gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; display: block; }
.dck-dash__gallery .dck-check { font-size: 14px; margin-top: 6px; }
.dck-dash__hours { display: grid; grid-template-columns: 120px 1fr 1fr; gap: 8px 10px; align-items: center; font-size: 16px; }
.dck-dash__hours input { padding: 8px 10px; border: 1px solid var(--dck-line); border-radius: 8px; font: inherit; font-size: 16px; }
.dck-dash__save { position: sticky; bottom: 12px; z-index: 5; background: #fff; border: 1px solid var(--dck-line); border-radius: 12px; padding: 12px; box-shadow: var(--dck-shadow); }
.dck-dash.is-tabbed .dck-dash__pane[hidden], .dck-dash__save[hidden] { display: none !important; }
.dck-bill-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 0 0 16px; }
.dck-bill-facts div { background: var(--dck-ground); border-radius: 10px; padding: 12px 14px; }
.dck-bill-facts dt { font-size: 16px; color: var(--dck-muted); margin: 0 0 4px; }
.dck-bill-facts dd { margin: 0; font-size: 16px; font-weight: 700; }
.dck-bill-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.dck-bill-actions .dck-form-msg { flex-basis: 100%; }
.dck-bill-history { width: 100%; border-collapse: collapse; font-size: 16px; }
.dck-bill-history th, .dck-bill-history td { text-align: left; padding: 10px; border-bottom: 1px solid var(--dck-line); }
.dck-bill-history thead th { font-size: 14px; color: var(--dck-muted); text-transform: uppercase; letter-spacing: .05em; }
@media (max-width: 860px) {
  .dck-dash__layout { grid-template-columns: 1fr; }
  .dck-dash__nav { position: static; flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
  .dck-dash__nav a { white-space: nowrap; border: 1px solid var(--dck-line); }
  .dck-dash__hours { grid-template-columns: 1fr 1fr; }
  .dck-dash__hours span { grid-column: 1 / -1; font-weight: 600; }
}
