/* Estilos do componente `exchange_details`.
   Extraídos do Twig: antes eram emitidos inline UMA VEZ POR CARD,
   o que produzia 587 cópias idênticas em /external-ads. */
.exchange-details{
    width: 100%;
    padding: 0;
    --offers: #845EEE;
    --accepts: #845EEE;
    --muted: #6c757d;
    --line: rgba(0,0,0,.14);
    --icon-wrap-bg: #ffffff;
}

.exchange-details__side{
    padding: 0 2px;
}

.exchange-details__section-header{
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.exchange-details__section-header--accepts .exchange-details__section-icon{
    background: transparent;
    border: none;
}
.exchange-details__section-header--accepts .exchange-details__section-label{
    color: var(--accepts);
}

.exchange-details__section-icon{
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    flex: 0 0 auto;
}

.exchange-details__section-icon img{
    width: 26px;
    height: 26px;
    object-fit: contain;
    display: block;
}

.exchange-details__section-label{
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .02em;
    line-height: 1;
    color: black;
}

.exchange-details__section-label--offers{
    color: var(--offers);
}

.exchange-details__section-label--accepts{
    color: var(--accepts);
}

.exchange-details__title{
    font-weight: 500;
    color: #212529;
    font-size: 1.08rem;
    line-height: 1.25;
    margin: 0 0 6px;
    padding-left: 0;
}

.exchange-details__desc{
    color: var(--muted);
    font-size: .98rem;
    line-height: 1.45;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.exchange-details__title--truncate{
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: var(--exchange-rows);
    overflow: hidden;
}
.exchange-details__title--full{
    display: block;
}

.exchange-details__desc--truncate{
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: var(--exchange-rows);
    overflow: hidden;
}
.exchange-details__desc--full{
    display: block;
}

.exchange-details__between{
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 14px 0;
    width: 100%;
}

.exchange-details__line{
    display: block;
    height: 0;
    border-top: 1px solid var(--line);
    background: transparent !important;
    flex: 1 1 auto;
    min-width: 24px;
}

.exchange-details__swap-icon-wrap{
    width: 34px;
    height: 34px;
    background: var(--icon-wrap-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.exchange-details__swap-icon{
    color: rgba(0,0,0,.33);
    font-size: 1rem;
}

/* Escopo específico para o card BO: mantém divisor e ícone visíveis no admin */
.auati-offer-card-bo .exchange-details{
    --line: #d9dde3;
    --icon-wrap-bg: transparent;
}
.auati-offer-card-bo .exchange-details__between{
    align-items: center;
    justify-content: center;
    width: 100%;
}
.auati-offer-card-bo .exchange-details__line{
    border-top-color: #d9dde3;
}
.auati-offer-card-bo .exchange-details__swap-icon{
    color: #c3c8cf !important;
}

@media (max-width: 576.98px){
    .exchange-details__title{ font-size: 1.02rem; }
    .exchange-details__between{ margin: 12px 0; }
    .exchange-details__desc{ font-size: .95rem; }
}
