/* C150: the approved sticky bar and the desktop stay unchanged. */
@media (max-width: 768px) {
    body.engeduca-proportions-enrollment .engeduca-course-hero__price-value,
    body.engeduca-proportions-enrollment .engeduca-group-landing__offer-actions .engeduca-group-landing__price {
        flex: 0 0 auto;
        width: max-content;
    }
    body.engeduca-proportions-enrollment .engeduca-course-hero__price .engeduca-course-hero__cta,
    body.engeduca-proportions-enrollment .engeduca-group-landing__offer-actions .engeduca-group-landing__button {
        flex: 1 1 auto;
        width: auto;
    }
    body.engeduca-proportions-enrollment .engeduca-course-end-cta {
        grid-template-columns: fit-content(52%) minmax(110px, 1fr);
    }
    body.engeduca-proportions-enrollment .engeduca-course-end-cta .engeduca-course-hero__cta {
        width: 100%;
        justify-self: stretch;
    }
}

/* C150.7: preserve the approved horizontal footer in both catalogues.
   The client accepts De/por on two lines INSIDE the chip when the full
   discount cannot fit beside the whole link (literal 218014997). */
:is(.engd-courses:not(.engd-mentoria-cards):not(.engd-group-cards--library) > .engd-course, .engform-card) :is(.engd-course-foot, .engform-card__foot) {
    display: grid;
    grid-template-columns: minmax(0, max-content) max-content;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 11px;
    border-top: 1px solid #edf0f5;
}
:is(.engd-courses:not(.engd-mentoria-cards):not(.engd-group-cards--library) > .engd-course, .engform-card) :is(.engd-course-chip-price, .engform-card__price) {
    justify-self: start;
    min-width: 0;
    max-width: 100%;
    width: fit-content !important;
    padding: 4px 8px;
    font-size: 11px;
    line-height: 1.35;
    white-space: normal;
    border-radius: 2px;
    color: #8a4313;
    background: #fff3e8;
    border-color: #f3c79f;
}
:is(.engd-courses:not(.engd-mentoria-cards):not(.engd-group-cards--library) > .engd-course, .engform-card) :is(.engd-course-cta, .engform-card__cta) {
    display: inline-flex;
    align-items: center;
    justify-self: end;
    grid-column: 2;
    gap: 6px;
    min-width: max-content;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

:is(.engd-courses:not(.engd-mentoria-cards):not(.engd-group-cards--library) > .engd-course, .engform-card) :is(.engd-course-chip-price, .engform-card__price) :is(.engd-pr-de, .engd-pr-por) {
    display: block;
    white-space: nowrap;
}

/* C152: two explicit badge rows and complete monetary units, scoped to LPs. */
.engeduca-group-landing__hero .engeduca-group-landing__category { display: block; width: fit-content; max-width: 100%; }
.engeduca-group-landing__badge-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.engeduca-group-landing__hero .engeduca-group-landing__badge-row > span { margin: 0; }
@media (min-width: 769px) {
    .engeduca-group-landing .engeduca-course-end-cta .engeduca-course-hero__cta { min-width: 210px; }
}
@media (max-width: 768px) {
    body.engeduca-proportions-offer .engeduca-course-hero__price-value,
    body.engeduca-proportions-offer .engeduca-group-landing__offer-actions .engeduca-group-landing__price {
        flex: 0 0 auto; width: max-content; max-width: 55%; padding-inline: 8px;
    }
    body.engeduca-proportions-offer .engeduca-course-hero__price .engeduca-course-hero__cta,
    body.engeduca-proportions-offer .engeduca-group-landing__offer-actions .engeduca-group-landing__button {
        flex: 1 1 0; width: auto; min-width: 110px;
    }
    .engeduca-group-landing__hero .engeduca-group-landing__badge-row > span {
        font-size: clamp(10px, 3vw, 12px) !important;
        letter-spacing: .03em;
        padding-inline: 5px;
    }
    .engeduca-group-landing__badge-row { gap: 6px; }
    .engeduca-group-landing .engeduca-course-end-cta { grid-template-columns: fit-content(52%) minmax(110px, 1fr); }
    .engeduca-group-landing .engeduca-course-end-cta .engeduca-course-hero__cta { width: 100%; justify-self: stretch; }
    .engeduca-group-landing__offer-actions .engeduca-price-line { display: block; white-space: nowrap; }
}
/* C155: somente a cor normal dos CTAs comerciais; hovers aprovados não mudam. */
.engeduca-course-hero__cta:not(:hover),
.engeduca-group-landing__button--primary:not(:hover),
.engeduca-sticky-cta__button:not(:hover){background-color:#e16c18!important}
.engeduca-course-hero__cta:not(:hover){border-color:#e16c18!important}
