.fi-banner {
    width: 100%;
    max-width: 1200px;
    display: flex;
    border-radius: 14px;
    box-shadow: 0px 3px 14px rgba(0,0,0, 0.2);
    background-color: #fff;
    padding: 30px;
    margin: 20px auto;
    position: relative;
}
.fi-banner.no-padding {
    padding: 0;
}
.fi-banner:has(.fi-banner__aep__image){
    margin-top: 20px;
    margin-bottom: 20px;
}
@media only screen and (max-width: 1200px){
    .fi-banner {
        max-width: 100%;
    }
}
.fi-banner .red-text {color: #D8292F;}
.fi-banner div:nth-of-type(2) {
    padding: 0 20px;
    flex: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.fi-banner.no-padding div:nth-of-type(2) {
    padding: 20px 30px;
}
.fi-banner div:nth-of-type(2) p.fi-pill {
    border-radius: 14px;
    padding: 4px 15px;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 12px;
    text-align: center;
    line-height: 18px;
    width: fit-content;
    margin-bottom: 20px;
}
.fi-banner.no-padding div:nth-of-type(2) p.fi-pill {
    margin: .5rem 0 1rem 0;
}
.fi-banner div:nth-of-type(2) p.fi-pill.red {
    background: #D8292F;
    color: #fff;
}
.fi-banner div:nth-of-type(2) p.fi-pill.black {
    background: #000;
    color: #fff;
}
.fi-banner div:nth-of-type(2) p.fi-pill.green {
    background: #20842f;
    color: #fff;
}
.fi-banner div:nth-of-type(2) p {
    margin-bottom: 15px;
    font: normal 400 18px 'Open Sans';
    line-height: 24px;
    letter-spacing: 0px;
}
.fi-banner div:nth-of-type(2) p.fi-footnote{
    font: normal 400 12px 'Open Sans';
    align-self: center;
    margin-bottom: unset;
}
.fi-banner div:nth-of-type(2) p.fi-title {
    font-size: 28px;
    font-weight: bold;
    line-height: 28px;
}
.fi-banner.no-padding div:nth-of-type(2) p.fi-title {
    margin: 0 0 1rem;
}
.fi-banner div:nth-of-type(2) p.fi-title em, .fi-banner div:nth-of-type(2) p.fi-title strong {
    font-weight: bold;
}
.fi-banner div:nth-of-type(2) p.fi-title sup {
    font-size: 14px;
    vertical-align: middle;
}
.fi-banner.no-padding .fi-desc {
    margin: 0 0 1rem;
}
.fi-banner .fi-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}
.fi-banner.no-padding .fi-row {
    padding-bottom: .5rem;
}
.fi-banner .fi-row.align-bottom{
    margin-top: auto;
}
.fi-banner .fi-row .fi-conditionsPanel {
    flex: 1;
    padding-right: 20px;
    margin-top: auto;
}
.fi-banner .fi-row .fi-conditionsPanel p {
    display: flex;
    color: #005078;
    font-weight: 600;
    font-size: 16px;
    align-items: center;
}
.fi-banner .fi-row .fi-conditionsPanel p:hover {
    text-decoration: underline;
    cursor: pointer;
}
.fi-banner #conditionsContent {
    background-color: #f9f8f6;
    padding: 12px;
    border-radius: 14px;
    margin-top: 15px;
    display: none;
}
.fi-banner #conditionsContent > * {
    font-size: 12px;
    color: #000;
    font-weight: normal;
    margin-bottom: 0
}
.fi-banner #conditionsContent.active{
    display: block;
}
.fi-banner .fi-row .fi-conditionsPanel.active p svg{
    rotate: 180deg;
}
.fi-banner .fi-row .fi-conditionsPanel p svg {
    width: 20px;
    height: 20px;
    stroke: #1460aa;
    fill: #1460aa;
}
.fi-banner div:nth-of-type(2) p.fi-cta {
    margin-bottom: 0;
    margin-left: auto;
}
.fi-banner div:nth-of-type(2) p.fi-cta a {
    font-weight: 600;
    text-align: right;
    color: #fff;
    font-size: 16px;
    border-radius: 100px;
    padding: 15px 30px;
    width: fit-content;
    display: block;
    background-color: #1460aa!important;
    border-color: #1460aa!important;
    box-shadow: none;
    text-decoration: none;
    text-wrap: nowrap;
}
.fi-banner div:nth-of-type(2) p.fi-cta a.fi-text-link {
    color: #1460aa;
    font-size: 14px;
    padding: 0;
    background-color: #FFFFFF00!important;
    border-color: #FFFFFF00!important;
}
.fi-banner div:nth-of-type(2) p.fi-cta a.fi-text-link .ac-icon{
    padding-left: 8px;
}
.fi-banner div:nth-of-type(1) img {
    width: 100%;
    max-width: 354px;
    min-width: auto;
    height: auto;
    object-fit: cover;
    object-position: center;
    border-radius: 14px;
}
.fi-banner .fi-banner__aep__image{
    position: relative;
    min-width: 354px;
}
.fi-banner .fi-banner__aep__image .fi-banner__card-overlay{
    position: absolute;
    object-fit: contain;
    right: 0;
    max-width: 95%;
    top: -5px;
}
.fi-banner .fi-banner__aep__image .fi-banner__card-overlay.has-city{
    left: 0;
    height: unset;
    max-width: 65%;
    top: -10px;
}
.fi-banner.no-padding div:nth-of-type(1) img {
    height: 100%;
    border-radius: 14px 0 0 14px;
}
.fi-banner.no-padding div:nth-of-type(1) img.align-left {
    object-position: left;
}

/* Strange iPadPro issue particular for AEP city view */
@media only screen and (min-width: 821px) and (max-width: 1024px){
    .fi-banner .fi-banner__aep__image .fi-banner__card-overlay.has-city{
        left: calc(50% - 180px);
        height: 160px;
        max-width: 100%;
    }
}
@media only screen and (min-width: 768px) and (max-width: 820px){
    .fi-banner .fi-banner__aep__image .fi-banner__card-overlay.has-city{
        left: calc(50% - 185px);
        height: 160px;
        max-width: 100%;
    }
}

@media only screen and (min-width: 768px) and (max-width: 1024px){
    .target-ad-container {
        padding: 0 28px;
    }
    .fi-banner div:nth-of-type(1) img {
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 300px;
        object-fit: cover;
    }
    .fi-banner.no-padding div:nth-of-type(1) img {
        max-height: 500px;
        object-position: center;
    }
    .fi-banner div:nth-of-type(2) p.fi-cta.md-left {
        margin-right: auto;
        margin-left: unset;
    }
    .fi-banner div:nth-of-type(1) img.fi-banner__aep__background {
        max-width: 300px;
        max-height: 300px;
        height: 280px;
    }
    .fi-banner .fi-banner__aep__image{
        min-width: unset;
    }
    .fi-banner .fi-banner__aep__image .fi-banner__card-overlay{
        max-width: 95%;
        right: -5px;
        top: -10px;
    }
    .fi-banner .fi-row.fi-banner__aep__footer {
        flex-direction: column;
    }
    .fi-banner .fi-row.fi-banner__aep__footer p.fi-footnote{
        align-self: start;
        margin-bottom: 15px;
    }
    .fi-banner .fi-row.fi-banner__aep__footer p.fi-cta{
        margin-left: unset;
    }
}
@media only screen and (max-width: 767px){
    .fi-banner div:nth-of-type(2) {
        padding: 0 20px 20px 20px;
    }
    .target-ad-container {
        padding: 0 2.4rem!important;
    }
    .fi-banner {
        flex-direction: column;
        padding: 0px;
    }
    .fi-banner div:nth-of-type(1) img {
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 270px;
        object-fit: cover;
        object-position: top;
        border-radius: 14px 14px 0 0;
        margin-bottom: 20px;
    }
    .fi-banner.no-padding div:nth-of-type(1) img {
        border-radius: 14px 14px 0 0;
    }
    .fi-banner.no-padding div:nth-of-type(2) {
        padding-top: 0;
    }
    .fi-banner .fi-row {
        padding: 0;
        flex-direction: column-reverse;
    }
    .fi-banner .fi-row.fi-banner__aep__footer {
        flex-direction: column;
    }
    .fi-banner #conditionsContent {
        margin: 0 auto 15px;
    }
    .fi-banner div:nth-of-type(2) p.fi-cta a {
        font-size: 14px;
    }
    .fi-banner div:nth-of-type(2) p.fi-footnote{
        align-self: start;
        margin-bottom: 15px;
    }
    .fi-banner .fi-row .fi-conditionsPanel p {
        font-size: 14px;
        line-height: 18px;
    }
    .fi-banner div:nth-of-type(2) p.fi-title {
        font-size: 24px;
    }
    .fi-banner div:nth-of-type(2) p {
        font-size: 16px;
    }
    .fi-banner div:nth-of-type(2) p.fi-cta {
        margin: 0 auto;
        width: 100%;
    }
    .fi-banner.no-padding div:nth-of-type(2) p.fi-cta {
        display: flex;
    }
    .fi-banner div:nth-of-type(2) p.fi-cta a {
        text-align: center;
        width: 100%;
    }
    .fi-banner #conditionsContent.active {
        margin-left: 0;
        width: 100%;
    }
    .fi-banner .fi-banner__aep__image{
        min-width: unset;
    }
    .fi-banner .fi-banner__aep__image .fi-banner__card-overlay.has-city{
        top: -10px;
        max-width: 60%;
    }
    a#ad_btn {
        padding: 12px 24px;
        margin: 0 auto;
    }
    a#ad_btn.fi-text-link {
        padding: 0;
        text-align: right;
    }
    .fi-banner .fi-cta:has(.fi-text-link){
        margin-bottom: 0;
    }
    .fi-banner .fi-row.fi-banner__aep__footer a#ad_btn {
        max-width: unset;
    }
    .ad-container.ngx-ac-container.dynamic-background.fi-banner-3 {
        padding: 0;
    }
}