.cdd-wrap {
    --cdd-bg:       #2563eb;
    --cdd-bg-hover: #112f70;
    --cdd-color:    #ffffff;
    margin-top: 64px;
    display: flex;
    justify-content: center;
}

.cdd-inner {
    width: 100%;
    max-width: 56rem;
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid #e2e8f0;
}

.cdd-topbar {
    display: flex;
    height: 4px;
    border-radius: 9999px;
    overflow: hidden;
    flex-shrink: 0;
}

.cdd-topbar__accent { width: 64px; flex-shrink: 0; }
.cdd-topbar__gray   { flex: 1; background-color: #e5e7eb; }

.cdd-body {
    display: flex;
    align-items: stretch;
    gap: 24px;
    padding: 20px 0;
}

/* ── Imagem única ── */
.cdd-thumbnail {
    width: 40% !important;
    height: auto !important;
    min-height: 192px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    border: 1px solid rgb(226 232 240 / 0.8) !important;
    flex-shrink: 0;
    align-self: stretch;
}

/* ── Carrossel (2+ imagens) ── */
.cdd-carousel {
    width: 40%;
    flex-shrink: 0;
    position: relative;
    border-radius: 8px;
    border: 1px solid rgb(226 232 240 / 0.8);
    /* altura fixa igual ao comportamento da imagem única */
    min-height: 220px;
    margin-bottom: 40px; /* espaço para os dots externos */
}

.cdd-carousel .slick-slider,
.cdd-carousel .slick-list {
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.cdd-carousel .slick-track {
    display: flex !important;
    height: 100%;
}

.cdd-carousel__slide {
    outline: none;
    line-height: 0;
}

.cdd-thumbnail--carousel {
    width: 100% !important;
    height: 220px !important;
    object-fit: cover;
    object-position: center;
    display: block !important;
}

/* Dots — abaixo da imagem */
.cdd-carousel .slick-dots {
    position: absolute;
    bottom: -35px;
    width: 100%;
    text-align: center;
    list-style: none;
    margin: 0;
    padding: 0;
    z-index: 5;
}

.cdd-carousel .slick-dots li {
    display: inline-block;
    margin: 0 3px;
}

.cdd-carousel .slick-dots li button {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
    border: none; cursor: pointer;
    font-size: 0; line-height: 0; padding: 0;
    transition: background 0.2s;
}

.cdd-carousel .slick-dots li button:before {
    display: none !important;
}

.cdd-carousel .slick-dots li.slick-active button {
    background: var(--cdd-bg);
}

/* Setas — posicionadas sobre a imagem */
.cdd-carousel .slick-prev,
.cdd-carousel .slick-next {
    position: absolute;
    top: 110px; /* metade de 220px */
    transform: translateY(-50%);
    z-index: 10;
    width: 28px; height: 28px;
    background: var(--cdd-bg) !important;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.cdd-carousel .slick-prev:hover,
.cdd-carousel .slick-next:hover {
    background: var(--cdd-bg-hover) !important;
}

.cdd-carousel .slick-prev { left: 8px; }
.cdd-carousel .slick-next { right: 8px; }

.cdd-carousel .slick-prev:before { content: '‹'; }
.cdd-carousel .slick-next:before { content: '›'; }

.cdd-carousel .slick-prev:before,
.cdd-carousel .slick-next:before {
    font-size: 20px;
    line-height: 1;
    color: #fff;
    opacity: 1;
    font-family: inherit;
}

/* Conteúdo */
.cdd-content { flex: 1; }

.cdd-category {
    font-size: 0.875rem; color: #64748b;
    text-transform: uppercase; letter-spacing: 0.05em;
    display: block; margin-bottom: 4px;
}

.cdd-title {
    font-size: 1.75rem; font-weight: 500;
    margin: 0 0 8px; line-height: 1.25;
}

.cdd-beneficios {
    display: flex; flex-wrap: wrap;
    gap: 8px; margin-top: 12px; margin-bottom: 4px;
}

.cdd-beneficio {
    font-size: 0.75rem; font-weight: 600;
    text-transform: uppercase;
    padding: 2px 8px; border-radius: 4px; margin-bottom: 6px;
}

.cdd-description {
    font-size: 1rem; margin: 8px 0 0;
    color: #374151; line-height: 1.6;
}

.cdd-footer {
    padding: 20px 0 0;
    display: flex; flex-direction: column;
    align-items: flex-start; gap: 8px;
}

.cdd-btn {
    display: inline-block;
    background-color: var(--cdd-bg);
    color: var(--cdd-color);
    text-decoration: none;
    font-size: 1rem; font-weight: 600;
    padding: 12px 24px; border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
    min-width: 180px; text-align: center;
}

.cdd-btn:hover,
.cdd-btn:focus-visible {
    background-color: var(--cdd-bg-hover);
    color: var(--cdd-color);
    text-decoration: none;
}

.cdd-notice {
    display: block; font-size: 0.75rem;
    color: #64748b; text-align: left;
}

/* Mobile */
@media (max-width: 767px) {
    .cdd-body {
        flex-direction: column;
        padding: 20px;
        border: 1px solid #e2e8f0;
        border-top: none;
        text-align: center;
    }

    .cdd-thumbnail { width: 100% !important; height: 220px !important; }
    .cdd-carousel  { width: 100%; }
    .cdd-beneficios { justify-content: center; }
    .cdd-notice     { text-align: center; width: 100%; }
    .cdd-btn        { width: 100%; }
}
