/*
 * HTMLtool compatibility layer shared by all five EDSA visual styles.
 * The original styles predate the review card, semantic pros/cons markup
 * and embedded widgets used by the consolidated Python templates.
 */
.site-widget {
    margin-top: 32px;
    margin-bottom: 32px;
}

.site-widget > h2 {
    margin-bottom: 18px;
}

.site-widget iframe {
    display: block;
    width: 100%;
    min-height: 640px;
    border: 0;
}

.amp-widget-placeholder {
    display: grid;
    place-items: center;
    min-height: 180px;
    color: inherit;
    opacity: .72;
}

/* The project may supply an older style.css. Keep FAQ behaviour functional
   without changing the visual palette of any of the five themes. */
.faq-question {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    text-align: left;
}

.faq-item:not(.active) .faq-answer {
    display: none !important;
}

.faq-item.active .faq-answer {
    display: block !important;
}

.faq-question i {
    transition: transform .2s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.pros-cons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin: 42px 0;
}

.pros-cons__item {
    padding: 24px;
    border: 1px solid rgba(127, 127, 127, .24);
    border-radius: 16px;
    background: rgba(127, 127, 127, .08);
}

.pros-cons__item h2,
.pros-cons__item h3 {
    margin-top: 0;
}

.pros-cons__item--pros {
    border-top: 4px solid #22a06b;
}

.pros-cons__item--cons {
    border-top: 4px solid #df4b57;
}

.review-page {
    padding-top: 42px;
}

.review-hero {
    display: grid;
    grid-template-columns: minmax(120px, 210px) minmax(0, 1fr);
    gap: 32px;
    align-items: center;
    margin-bottom: 42px;
    padding: 30px;
    border: 1px solid rgba(127, 127, 127, .24);
    border-radius: 20px;
    background: rgba(127, 127, 127, .08);
}

.review-hero__logo img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    object-fit: contain;
}

.review-rating {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin: 10px 0 16px;
    font-weight: 700;
}

.review-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.review-hero__cta a {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 9px;
    background: #27ae60;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 760px) {
    .pros-cons,
    .review-hero {
        grid-template-columns: 1fr;
    }

    .review-hero__logo {
        max-width: 180px;
    }
}
