/* Container */
.ast-compre-junto {
    padding: 1.2em;
    border: 1.5px solid #5BC87A;
    border-radius: 14px;
    margin: 1em 0;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

/* Esconde h3 */
.ast-compre-junto > h3 {
    display: none;
}

/* Layout flex */
.ast-compre-junto-content {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Imagem */
.ast-compre-junto-content .ast-cross-thumb {
    border-radius: 10px;
    width: 140px;
    height: 140px;
    object-fit: cover;
    flex-shrink: 0;
}

/* Div interna */
.ast-compre-junto-content > div {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

/* Nome — serif sem negrito */
.ast-compre-junto-content strong.ast-cross-name {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
    font-size: 1.2em;
    color: #222;
    line-height: 1.2;
}

/* Remove <br> */
.ast-compre-junto-content > div br {
    display: none;
}

/* Descrição curta injetada via JS */
.ast-cross-short-desc {
    color: #b0b0b0;
    font-size: 0.82em;
    line-height: 1.4;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Rodapé: preço + botão na mesma linha */
.ast-cross-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 180px;
    margin-top: 10px;
    flex-wrap: nowrap;
    padding-right: 8px;
}

/* Preço em verde */
.ast-compre-junto-content .woocommerce-Price-amount,
.ast-cross-footer .woocommerce-Price-amount,
.ast-cross-footer bdi {
    color: #3aaa5c;
    font-weight: 600;
    font-size: 1em;
    white-space: nowrap;
}

/* Botão */
.ast-compre-junto .ast-compre-junto-content div button.button.ast-compre-junto-button,
.ast-compre-junto button.button.ast-compre-junto-button,
button.ast-compre-junto-button {
    background-color: var(--e-global-color-39851e9) !important;
    font-family: var(--e-global-typography-text-font-family), Sans-serif !important;
    font-size: 0.85em !important;
    font-weight: var(--e-global-typography-text-font-weight) !important;
    text-transform: var(--e-global-typography-text-text-transform) !important;
    line-height: 1 !important;
    letter-spacing: var(--e-global-typography-text-letter-spacing) !important;
    color: var(--e-global-color-text) !important;
    border-style: solid !important;
    border-width: 1px !important;
    border-color: var(--e-global-color-accent) !important;
    border-radius: 8px !important;
    padding: 0.6em 1.2em !important;
    box-shadow: none !important;
    cursor: pointer !important;
    transition: filter 0.2s ease !important;
    margin-left: auto !important;
    margin-right: 8px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    flex-shrink: 0;
    white-space: nowrap;
    width: auto !important;
    display: inline-block !important;
}

button.ast-compre-junto-button:hover,
button.ast-compre-junto-button:focus,
button.ast-compre-junto-button:active {
    filter: brightness(0.92) !important;
    background-color: var(--e-global-color-39851e9) !important;
    color: var(--e-global-color-text) !important;
    border-color: var(--e-global-color-accent) !important;
}

/* Mobile */
@media (max-width: 480px) {
    .ast-compre-junto-content {
        gap: 12px;
    }

    .ast-compre-junto-content .ast-cross-thumb {
        width: 90px;
        height: 90px;
    }

    .ast-compre-junto-content strong.ast-cross-name {
        font-size: 1em;
    }

    .ast-cross-footer {
        gap: 8px;
        padding-right: 4px;
    }

    button.ast-compre-junto-button {
        font-size: 0.78em !important;
        padding: 0.5em 0.9em !important;
        margin-right: 4px !important;
    }
}