.cdc-backdrop,
.cdc-backdrop *,
.cdc-floating,
.cdc-floating *,
.cdc-banner,
.cdc-banner * {
  box-sizing: border-box;
}

.cdc-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  padding: 20px;
  place-items: center;
  background: rgba(5, 27, 23, 0.68);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  animation: cdcBackdropIn 0.25s ease both;
  font-family: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.cdc-backdrop[hidden] {
  display: none !important;
}

.cdc-dialog {
  position: relative;
  display: grid;
  width: min(100%, 760px);
  overflow: hidden;
  grid-template-columns: minmax(270px, 0.9fr) 1.1fr;
  color: #12344b;
  background: #f5f7f2;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 26px;
  box-shadow: 0 32px 90px rgba(0, 20, 15, 0.36);
  animation: cdcDialogIn 0.32s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  text-align: left;
}

.cdc-close {
  position: absolute;
  z-index: 3;
  top: 14px;
  right: 14px;
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  margin: 0;
  cursor: pointer;
  place-items: center;
  color: #12344b;
  background: rgba(255, 255, 255, 0.92);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, background 0.2s ease;
}

.cdc-close:hover,
.cdc-close:focus-visible {
  color: #12344b;
  background: #ffffff;
  transform: scale(1.05);
}

.cdc-close svg {
  display: block;
  width: 20px;
  height: 20px;
}

.cdc-image {
  position: relative;
  min-height: 390px;
  background: #0876ee;
  overflow: hidden;
}

.cdc-image img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  object-fit: cover;
  object-position: center;
}

.cdc-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 42px 42px;
}

.cdc-eyebrow {
  display: block;
  margin: 0;
  color: #329d5d;
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.cdc-copy h2.cdc-title {
  margin: 13px 0 14px !important;
  padding: 0 !important;
  color: #12344b !important;
  font-family: inherit !important;
  font-size: clamp(34px, 4vw, 51px) !important;
  font-weight: 750 !important;
  letter-spacing: -0.05em !important;
  line-height: 0.96 !important;
  text-wrap: balance;
}

.cdc-copy p.cdc-description {
  margin: 0 !important;
  padding: 0 !important;
  color: #60716d !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
}

.cdc-copy a.cdc-cta {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 27px;
  padding: 0 19px;
  color: #ffffff !important;
  background: #075344;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none !important;
  transition: background 0.2s ease, transform 0.2s ease;
}

.cdc-copy a.cdc-cta:hover,
.cdc-copy a.cdc-cta:focus-visible {
  color: #ffffff !important;
  background: #053e33;
  transform: translateY(-1px);
}

.cdc-copy a.cdc-cta svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

/* Botão flutuante opcional */
.cdc-floating {
  position: fixed;
  z-index: 99990;
  bottom: 22px;
  left: 22px;
  display: block;
  width: 72px;
  height: 72px;
  padding: 5px;
  background: #ffffff;
  border: 1px solid rgba(16, 47, 73, 0.12);
  border-radius: 50%;
  box-shadow: 0 17px 44px rgba(4, 31, 25, 0.22);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  text-decoration: none !important;
}

.cdc-floating:hover,
.cdc-floating:focus-visible {
  box-shadow: 0 21px 50px rgba(4, 31, 25, 0.3);
  transform: translateY(-3px);
}

.cdc-floating img {
  display: block;
  width: 60px !important;
  height: 60px !important;
  object-fit: cover;
  border-radius: 50%;
}

/* Faixa horizontal via shortcode [canal_dos_catadores_faixa] */
.cdc-banner {
  position: relative;
  overflow: hidden;
  background: #0877ed;
}

.cdc-banner a {
  display: block;
  line-height: 0;
}

.cdc-banner img {
  display: block;
  width: 100%;
  height: auto;
}

@keyframes cdcBackdropIn {
  from {
    opacity: 0;
  }
}

@keyframes cdcDialogIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
}

@media (max-width: 650px) {
  .cdc-backdrop {
    align-items: end;
    padding: 12px;
  }
  .cdc-dialog {
    grid-template-columns: 1fr;
    border-radius: 22px;
  }
  .cdc-image {
    min-height: min(52vw, 230px);
  }
  .cdc-copy {
    padding: 28px 24px 25px;
  }
  .cdc-copy h2.cdc-title {
    font-size: 34px !important;
  }
  .cdc-copy a.cdc-cta {
    margin-top: 20px;
  }
}

@media (max-width: 600px) {
  .cdc-floating {
    bottom: 14px;
    left: 14px;
    width: 58px;
    height: 58px;
    padding: 4px;
  }
  .cdc-floating img {
    width: 48px !important;
    height: 48px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cdc-backdrop,
  .cdc-dialog,
  .cdc-floating {
    animation: none;
    transition: none;
  }
}
