/* DG Customer Chat 1.3.15 — opt-in Smart Home (50 / 25 / 25).
   Scoped to the new wrapper: CLASSIC mode keeps all legacy CSS and markup.
   Images, counts, links and text inside the right column are rendered by
   dgsmartlanding itself; no duplicated classifier or hardcoded stock data. */
.dgchat-home-cta-slot--smart .dgchat-smart-home,
.dgchat-home-cta-slot--smart .dgchat-smart-home * { box-sizing:border-box; }
.dgchat-home-cta-slot--smart .dgchat-smart-home { width:100%; max-width:1320px; margin:6px auto 20px; }
.dgchat-home-cta-slot--smart .dgchat-smart-home__grid {
  display:grid; grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1fr);
  gap:14px; align-items:stretch;
}
.dgchat-home-cta-slot--smart .dgchat-smart-home__grid > * { min-width:0; }

/* Three visual containers: search 50%, two Landing cards 25% each.
   The independent Landing module still renders its two own cards. */
.dgchat-home-cta-slot--smart .dgchat-smart-home__search-panel { grid-column:1; }
.dgchat-home-cta-slot--smart .dgchat-smart-home__landing { grid-column:2 / 4; }

/* The search keeps the same form and button classes used by the existing JS. */
.dgchat-home-cta-slot--smart .dgchat-smart-home .dg-home-v2--smart {
  display:flex; flex-direction:column; width:100%; height:100%; max-width:none;
  margin:0; background:#fff; box-shadow:0 10px 28px rgba(13,40,75,.11);
}
.dgchat-home-cta-slot--smart .dgchat-smart-home .dg-home-v2--smart .dg-home-v2__inner {
  flex:1 1 auto; min-height:325px; background:#092d52;
}
.dgchat-home-cta-slot--smart .dgchat-smart-home .dg-home-v2--smart .dg-home-v2__overlay {
  background:radial-gradient(circle at 100% 0%,rgba(35,137,196,.34),transparent 44%),
             linear-gradient(126deg,#092344 0%,#114b78 100%);
}
.dgchat-home-cta-slot--smart .dgchat-smart-home .dg-home-v2--smart .dg-home-v2__content {
  width:100%; max-width:none; padding:31px 24px 25px;
}
.dgchat-home-cta-slot--smart .dgchat-smart-home .dg-home-v2--smart .dg-home-v2__eyebrow { font-size:10px; letter-spacing:.09em; }
.dgchat-home-cta-slot--smart .dgchat-smart-home .dg-home-v2--smart .dg-home-v2__title {
  max-width:100%; font-size:clamp(25px,2.2vw,34px); line-height:1.11;
  overflow-wrap:anywhere;
}
.dgchat-home-cta-slot--smart .dgchat-smart-home .dg-home-v2--smart .dg-home-v2__description {
  max-width:100%; margin-top:12px; font-size:13px; line-height:1.55;
}
.dgchat-home-cta-slot--smart .dgchat-smart-home .dg-home-v2--smart .dg-home-v2__search { max-width:none; margin-top:24px; }
.dgchat-home-cta-slot--smart .dgchat-smart-home .dg-home-v2--smart .dg-home-v2__searchbox {
  display:flex; flex-direction:row; gap:0; padding:4px; background:#fff;
  border:1px solid rgba(255,255,255,.25); border-radius:11px;
}
.dgchat-home-cta-slot--smart .dgchat-smart-home .dg-home-v2--smart .dg-home-v2__input {
  min-width:0; height:42px!important; font-size:14px!important; border:0!important;
  box-shadow:none!important;
}
.dgchat-home-cta-slot--smart .dgchat-smart-home .dg-home-v2--smart .dg-home-v2__submit {
  flex:0 0 auto; min-width:132px; width:auto; height:42px!important;
  padding:0 12px!important; font-size:10px!important;
}
.dgchat-home-cta-slot--smart .dgchat-smart-home .dg-home-v2--smart .dg-home-v2__utility-row {
  display:flex; align-items:flex-start; flex-wrap:wrap;
  justify-content:space-between; width:100%; max-width:none; gap:12px 8px; margin-top:13px;
}
.dgchat-home-cta-slot--smart .dgchat-smart-home .dg-home-v2--smart .dg-home-v2__assistant-inline {
  flex-wrap:wrap; white-space:normal; justify-content:flex-start;
}
.dgchat-home-cta-slot--smart .dgchat-smart-home .dg-home-v2--smart .dg-home-v2__assistant-btn {
  min-height:34px; padding:4px 10px; white-space:normal; text-align:center;
}
.dgchat-home-cta-slot--smart .dgchat-smart-home .dg-home-v2--smart .dg-home-v2__trust {
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.dgchat-home-cta-slot--smart .dgchat-smart-home .dg-home-v2--smart .dg-home-v2__trust > span {
  min-height:35px; padding:5px 6px; font-size:10px;
}

/* The Landing module renders both catalogue cards itself (50% of right half). */
.dgchat-home-cta-slot--smart .dgchat-smart-home__landing { display:flex; min-width:0; }
.dgchat-home-cta-slot--smart .dgchat-smart-home__landing > .dgsl-home-showcase {
  display:flex; flex:1 1 auto; width:100%; min-width:0; max-width:none;
  margin:0; padding:0;
}
.dgchat-home-cta-slot--smart .dgchat-smart-home__landing .dgsl-home-showcase-inner { display:flex; width:100%; }
.dgchat-home-cta-slot--smart .dgchat-smart-home__landing .dgsl-home-card-grid {
  display:grid; flex:1 1 auto; width:100%; min-width:0;
  grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px;
}
.dgchat-home-cta-slot--smart .dgchat-smart-home__landing .dgsl-home-card-grid-single { grid-template-columns:minmax(0,1fr); }
.dgchat-home-cta-slot--smart .dgchat-smart-home__landing .dgsl-home-card {
  display:flex; height:100%; min-width:0; border-radius:15px;
  box-shadow:0 7px 24px rgba(14,39,74,.07);
}
.dgchat-home-cta-slot--smart .dgchat-smart-home__landing .dgsl-home-card-media {
  flex:0 0 auto; min-height:0; height:178px; aspect-ratio:auto;
}
.dgchat-home-cta-slot--smart .dgchat-smart-home__landing .dgsl-home-card-media img {
  width:100%; height:100%; object-fit:contain; padding:8px;
}
.dgchat-home-cta-slot--smart .dgchat-smart-home__landing .dgsl-home-card-media-custom img { object-fit:cover; padding:0; }
.dgchat-home-cta-slot--smart .dgchat-smart-home__landing .dgsl-home-card-badge {
  top:10px; left:10px; padding:5px 8px; font-size:9px;
}
.dgchat-home-cta-slot--smart .dgchat-smart-home__landing .dgsl-home-card-body {
  display:flex; flex:1 1 auto; flex-direction:column; padding:15px 14px;
}
.dgchat-home-cta-slot--smart .dgchat-smart-home__landing .dgsl-home-card-title {
  font-size:18px; line-height:1.2; margin-bottom:8px;
}
.dgchat-home-cta-slot--smart .dgchat-smart-home__landing .dgsl-home-card-description {
  display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3;
  overflow:hidden; font-size:12px; line-height:1.45; min-height:0; margin-bottom:9px;
}
.dgchat-home-cta-slot--smart .dgchat-smart-home__landing .dgsl-home-card-footer {
  display:flex; flex-direction:column; align-items:stretch; gap:10px;
  margin-top:auto; padding-top:11px;
}
.dgchat-home-cta-slot--smart .dgchat-smart-home__landing .dgsl-home-card-count { font-size:11px; }
.dgchat-home-cta-slot--smart .dgchat-smart-home__landing .dgsl-home-card-count strong { font-size:16px; }
.dgchat-home-cta-slot--smart .dgchat-smart-home__landing .dgsl-home-card-button {
  display:flex; width:100%; min-height:37px; padding:0 8px;
  white-space:normal; text-align:center; font-size:10px; line-height:1.2;
}

/* Retain current Elementor positions until the standalone Landing widget is
   manually hidden after validation. Avoid hiding unrelated Elementor sections. */
@media (max-width:1099px) {
  .dgchat-home-cta-slot--smart .dgchat-smart-home__landing,
  .dgchat-home-cta-slot--smart .dgchat-smart-home__search-panel { grid-column:1; }
  .dgchat-home-cta-slot--smart .dgchat-smart-home__grid { grid-template-columns:minmax(0,1fr); }
  .dgchat-home-cta-slot--smart .dgchat-smart-home .dg-home-v2--smart .dg-home-v2__inner { min-height:0; }
  .dgchat-home-cta-slot--smart .dgchat-smart-home .dg-home-v2--smart .dg-home-v2__content { padding:26px 23px; }
  .dgchat-home-cta-slot--smart .dgchat-smart-home__landing .dgsl-home-card-media { height:200px; }
}
@media (max-width:680px) {
  .dgchat-home-cta-slot--smart .dgchat-smart-home { width:calc(100% - 16px); margin:7px auto 15px; }
  .dgchat-home-cta-slot--smart .dgchat-smart-home__grid { gap:12px; }
  .dgchat-home-cta-slot--smart .dgchat-smart-home .dg-home-v2--smart .dg-home-v2__content { padding:24px 16px 20px; }
  .dgchat-home-cta-slot--smart .dgchat-smart-home .dg-home-v2--smart .dg-home-v2__title { font-size:clamp(25px,7vw,31px); }
  .dgchat-home-cta-slot--smart .dgchat-smart-home .dg-home-v2--smart .dg-home-v2__searchbox {
    flex-direction:column; padding:0; gap:8px; border:0; background:transparent; box-shadow:none;
  }
  .dgchat-home-cta-slot--smart .dgchat-smart-home .dg-home-v2--smart .dg-home-v2__input {
    height:47px!important; border:1px solid rgba(255,255,255,.28)!important;
    box-shadow:0 7px 16px rgba(0,0,0,.12)!important;
  }
  .dgchat-home-cta-slot--smart .dgchat-smart-home .dg-home-v2--smart .dg-home-v2__submit {
    width:100%; min-width:0; height:46px!important;
  }
  .dgchat-home-cta-slot--smart .dgchat-smart-home__landing .dgsl-home-card-grid,
  .dgchat-home-cta-slot--smart .dgchat-smart-home__landing .dgsl-home-card-grid-single {
    grid-template-columns:minmax(0,1fr); gap:12px;
  }
  .dgchat-home-cta-slot--smart .dgchat-smart-home__landing .dgsl-home-card { height:auto; }
  .dgchat-home-cta-slot--smart .dgchat-smart-home__landing .dgsl-home-card-media { height:185px; }
  .dgchat-home-cta-slot--smart .dgchat-smart-home__landing .dgsl-home-card-description { -webkit-line-clamp:2; }
  .dgchat-home-cta-slot--smart .dgchat-smart-home__landing .dgsl-home-card-footer { flex-direction:row; align-items:center; }
  .dgchat-home-cta-slot--smart .dgchat-smart-home__landing .dgsl-home-card-button { width:auto; min-width:120px; }
}
@media (max-width:380px) {
  .dgchat-home-cta-slot--smart .dgchat-smart-home__landing .dgsl-home-card-footer { flex-direction:column; align-items:stretch; }
  .dgchat-home-cta-slot--smart .dgchat-smart-home__landing .dgsl-home-card-button { width:100%; }
}
@media (prefers-reduced-motion:reduce) {
  .dgchat-home-cta-slot--smart .dgchat-smart-home__landing .dgsl-home-card { transition:none; }
}