/* new */
.col-lg-12.col-md-12.col-sm-12.col-xs-12.bannerStyle {
    padding: 0;
    width: 100%;
}

.sub-nav-tabs-a.active {
    border-radius: 23.5px;
    color: #005078;
    border: 1px solid;
    background: #fff;
}

.sub-nav-tabs-a {
    border-radius: 23.5px;
    color: #000000;
    border: none;
    background: #fff;
    box-shadow: 0 0 15px 0 rgba(0, 0, 0, .15);
}

.primary-btn {
    font-weight: 600;
    letter-spacing: 0.25px;
    padding: 8px;
    margin: 0px auto;
    font-weight: 600;
}

.__subheading p {
    text-align: left;
}

.__subheading h2 {
    margin-bottom: 10px;
}

.__offerSnap p {
    text-align: left;
}

/* Section: Limited time sale specific */
.__allSales .__infiniteCarousel .__offerContainer .__offerSnap .__offer .__content img {
    border-radius: 14px 14px 0 0;
    max-width: 380px;
}

.__allSales .__infiniteCarousel .__offerContainer .__offerSnap .__offer .__content picture+div {
    padding: 30px 30px 20px;
    min-height: 260px;
    display: flex;
    flex-direction: column;
}

.__allSales .__infiniteCarousel .__offerContainer .__offerSnap .__offer .__content picture+div p:last-child {
    margin: auto 0 0;
}

@media only screen and (max-width: 767px) {
ul.nav.nav-tabs {
    padding-top: 10px;
}

.__infiniteCarousel .__scrollContainer .__offerContainer {
    padding-bottom: 10px;
}

p.discover-mobile {
    padding-bottom: 50px;
}

    .__allSales .__infiniteCarousel .__offerContainer .__offerSnap .__offer .__content img {
        max-width: 275px;
    }

    ul.nav.nav-tabs.desktop-hide {
        display: flex;
        align-items: center;
        justify-content: center;
        padding-top: 10px;
    }

    .nav.nav-tabs li.active a:after, .nav.nav-tabs li.active:after {
        content: none;
    }

    ul.nav.nav-tabs {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav.nav-tabs li.active a, .nav.nav-tabs li.active a:active, .nav.nav-tabs li.active a:focus {
        border-bottom: solid 3px #005078;
        background-color: #fff;
        color: #000;
    }

    .nav.nav-tabs {
        border-bottom: solid 1px #d0d0ce;
        border-top: none;
        border-left: none;
        border-right: none;
    }

    .ae-content {
        width: 100%;
    }

    .__offerSnap .__offer {
        height: 335px;
    }

    .__allSales .__infiniteCarousel .__offerContainer .__offerSnap .__offer .__content picture+div {
        min-height: 200px;
    }

    .__collapsibleSection:not(.__infiniteCarousel) .__offerContainer .__offerSnap .__offer {
        width: 280px;
        margin: 0 auto;
    }

    .__offer .__content h3 {
        min-height: 92px;
    }

    .__offer .__content p {
        margin-bottom: 0;
    }

    .__collapsibleSection:not(.__infiniteCarousel) .__scrollContainer+p {
        margin: 40px 20px 0;
    }
}

/* Section: Generic and body */
.__content {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.2);
}

.__fixedWidth {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

@media only screen and (max-width: 1200px) {
    .__fixedWidth {
        max-width: calc(100% - 40px);
    }
}

/* Section: collapsible show/hide panel */
.__collapsibleSection .__offerContainer .__offerSnap .__offer .__content div p:last-child a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.__collapsibleSection .__offerContainer .__offerSnap .__offer .__content div p:last-child a::after {
    content: '';
    display: block;
    background: url(https://www.aircanada.com/content/dam/aircanada/loyalty-content/images/prev-arrow.svg) no-repeat center center;
    background-size: 14px 14px;
    width: 14px;
    height: 14px;
    transform: rotate(180deg);
    margin-left: 5px;
}

.__collapsibleSection .__offerContainer .__offerSnap .__offer .__content {
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 14px;
}

.__collapsibleSection:not(.__infiniteCarousel) {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.__collapsibleSection:not(.__infiniteCarousel) .__offerContainer {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.__collapsibleSection:not(.__infiniteCarousel) .__offerContainer .__offerSnap .__offer {
    border-radius: 14px;
    height: 100%;
}
        
.__collapsibleSection:not(.__infiniteCarousel) .__offerContainer .__offerSnap .__offer .__content img {
    border-radius: 14px 14px 0 0;
}
        
.__collapsibleSection:not(.__infiniteCarousel) .__offerContainer .__offerSnap .__offer .__content div {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
        
.__collapsibleSection:not(.__infiniteCarousel) .__offerContainer .__offerSnap .__offer .__content div p:last-child {
    margin: auto 0 0;
}
        
.__collapsibleSection:not(.__infiniteCarousel) .__navContainer {
    display: none;
}

/* Section: H2 subheading */
.__subheading {
    display: flex;
    align-items: center;
    margin: 15px auto;
}

.__subheading img {
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    background-color: rgba(224, 228, 231, 1);
    width: 65px;
    height: 65px;
    align-self: start;
    margin-right: 20px;
}

.__subheading div p {
    margin-bottom: 0;
    font-size: 16px;
    line-height: 22px;
}

.__subheading div p a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.__subheading div p a .active::after {
    transform: rotate(90deg);
}

.__subheading div p a>span {
    color: inherit;
    font-weight: inherit;
}

/* Section: infinite scroll carousel */
.__infiniteCarousel {
    position: relative;
}

.__infiniteCarousel .__scrollContainer .__offerContainer {
    gap: 20px;
    width: 100%;
    vertical-align: top;
    display: inline-flex;
    padding-bottom: 60px;
}

.__infiniteCarousel .__offerContainer .__offerSnap {
    border-radius: 14px;
    display: inline-block;
    scroll-snap-coordinate: left;
    scroll-snap-align: start;
    padding: 20px 0;
}

.__infiniteCarousel::-webkit-scrollbar,.__infiniteCarousel .__scrollContainer .__scrollContent::-webkit-scrollbar {
    display: none;
}

.__infiniteCarousel .__scrollContainer {
    overflow: hidden;
    height: 100%;
}

.__infiniteCarousel .__scrollContainer .__scrollContent {
    overflow-x: scroll;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    overscroll-behavior-x: contain;
    position: relative;
    scroll-snap-type: mandatory;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.__infiniteCarousel .__offerContainer .__offerSnap .__offer {
    transform: translateX(calc((100vw - 1200px)/2 - 10px));
}

.__infiniteCarousel .__offerContainer .__offerSnap .__offer .__content {
    border-radius: 14px;
    background: #fff;
    margin: 0;
}

.__offerSnap .__offer .__content {
    box-shadow: 2px 4px 16px rgba(0, 0, 0, .16);
    margin-top: 1.5rem;
}

.__offerSnap .__offer .__content:hover {
    transform: scale3d(1.01, 1.01, 1.01);
    cursor: pointer;
}

.__infiniteCarousel .__offerContainer .__offerSnap:first-child .__offer {
    margin-left: 0;
}

.__infiniteCarousel .__offerContainer .__offerSnap:last-child .__offer {
    padding-right: 100px;
}

.__infiniteCarousel .__leftArrow {
    background-image: linear-gradient(-90deg, rgba(249, 249, 249, 0) 0%, rgba(250, 250, 250, 1) 100%);
    backdrop-filter: blur(0.25px);
    height: 100%;
    width: 60px;
    position: absolute;
    left: 0;
    top: 0;
    display: none;
    z-index: 2;
}

.__infiniteCarousel .__arrow span {
    background: url(https://www.aircanada.com/content/dam/aircanada/airtrfx/branded/icons/icon-arrow-next.svg) no-repeat center center;
    background-size: 18px 18px;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    background-color: #005078;
    box-shadow: 0 0.2rem 0.4rem rgba(0, 0, 0, .3);
    visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    z-index: 4;
    top: 42%;
    color: #fff;
    font-size: 14px;
    width: 50px;
    height: 50px;
}

.__infiniteCarousel .__leftArrow span {
    transform: rotate(180deg);
    left: 20px;
}

.__infiniteCarousel .__rightArrow span {
    right: 20px;
}

.__infiniteCarousel .__rightArrow {
    background-image: linear-gradient(90deg, rgba(249, 249, 249, 0) 0%, rgba(250, 250, 250, 1) 100%);
    backdrop-filter: blur(0.25px);
    height: 100%;
    width: 60px;
    position: absolute;
    top: 0;
    right: 0;
    display: none;
    z-index: 2;
    display: block;
}

@media only screen and (max-width: 1200px) {
    .__infiniteCarousel .__offerContainer .__offerSnap .__offer {
        transform: translateX(20px);
    }

    .__infiniteCarousel .__offerContainer .__offerSnap:last-child .__offer {
        padding-right: 20px;
    }
}

@media only screen and (min-width: 768px) and (max-width: 1025px) {
.ae-header.row .ae-content {
    width: calc(100% - 60px);
}
    .__collapsibleSection:not(.__infiniteCarousel) .__offerContainer .__offerSnap {
        flex: 0 0 calc(50% - 20px)
    }

    .hero-container+div {
        max-width: 708px;
    }

    .aeroplan-retail-partner {
        padding: 30px 0;
    }

    .cc-faqs .accordion__container .accordion__title.panel-box a.accordion__toggle {
        margin: 0 30px;
    }

    .__collapsibleSection:not(.__infiniteCarousel) .__scrollContainer+p {
        margin: 40px 0 0;
    }
}

.nav.nav-tabs li.tab a img {
    height: 25px;
}

.nav.nav-tabs li.tab a {
    text-decoration: none;
}

nav.cc-nav {
    box-shadow: none;
    bottom: 60px;
}

.ae-header.row .ae-content {
    border-radius: 14px;
}

.tab-content .tab-pane .intro h2:after {
    content: none;
}

.row.aeroplan-retail-partner .col-50 div {
    border-radius: 14px;
}

.bg-grey {
    background: #F4F4F4;
}

.row {
    margin-left: 0;
    margin-right: 0;
}

p.accordion__title.panel-box.white-bg {
    border-radius: 14px;
}

a.accordion__toggle {
    text-decoration: none;
}

.aeroplan-banner button.primary-btn, .partner-banner button.primary-btn {
    width: 160px;
    border-radius: 14px;
    height: 50px;
}

.aeroplan-retail-partner {
    padding: 0;
}

button.primary-btn a {
    text-decoration: none;
}

.tab.primary-btn {
    margin: 0 10px;
    font-size: 16px;
}

.ae-content.sub-nav-tabs::-webkit-scrollbar {
    display: none;
}

.__subheading.__fixedWidth p a {
    text-decoration: none;
}

.__subheading.__fixedWidth p {
    text-align: left;
}

.tab.primary-btn {
    text-wrap: nowrap;
    white-space: nowrap;
}

.__allSales h2 {
    margin-bottom: 0;
}

#credit-card-tabs .tab-pane h2:first-child {
    text-align: center;
}

.__offerSnap div p {
    text-align: left;
}

.row.intro .ae-content {
    padding-top: 0;
}

.ae-content.accordion__container {
    padding: 0;
}

.hero-container {
    position: relative;
}

.gradient-overlay {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 85px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
}

nav.cc-nav {
    padding: 0;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-container+div {
    max-width: 1200px;
}

.__offerSnap h3 {
    text-align: left;
}

.__offerSnap p {
    text-align: left;
}

.__subheading.__fixedWidth div div p {
    margin: 10px;
}

.__subheading div {
    width: 100%;
}

.__subheading div div {
    display: inline-flex;
    width: 100%;
    justify-content: space-between;
}

.__subheading div div p {
    margin-right: 30px;
}

.__subheading div div:nth-of-type(1) p a::after {
    transform: rotate(180deg);
}

@media only screen and (min-width: 1440px) {
    .__infiniteCarousel .__scrollContainer .__offerContainer {
        margin-left: -60px;
    }
}

/* Hero image xl desktop*/
@media only screen and (min-width: 1600px) {
    .hero-container {
        background: #000;
        height: 615px;
        background-image: url(https://www.aircanada.com/content/dam/aircanada/loyalty-content/images/giftguide/gg-hero-xl-en.png);
        background-size: 1600px;
        background-repeat: no-repeat;
        background-position: center top;
    }

    .hero-container picture {
        display: none;
    }
}

@media only screen and (min-width: 1025px) {
    .ae-header.row .ae-content h1+p {
        text-align: center;
    }
    
    .ae-header.row .ae-content h1+p+p {
        text-align: center;
    }

    .__offer div {
        width: 380px;
    }

#earn-last-section.__collapsibleSection:not(.__infiniteCarousel), #redeem-last-section.__collapsibleSection:not(.__infiniteCarousel) {
    margin-bottom: 60px;
}

    .aeroplan-retail-partner .aeroplan-banner, .aeroplan-retail-partner .partner-banner {
        height: 215px;
    }

    :lang(fr) .aeroplan-retail-partner .aeroplan-banner, .aeroplan-retail-partner .partner-banner {
        height: 215px;
        width: 100%;
    }

    :lang(fr) .partner-banner .col-50:nth-of-type(1) {
        width: 60%;
    }

    :lang(fr) .partner-banner .col-50 {
        padding-right: 0;
    }

    :lang(fr) div#aeroplan-banner .col-60 h3 {
        min-height: 98px;
    }
    
    .row.aeroplan-retail-partner {
        max-width: 1200px;
        margin: 0 auto;
    }

    .cc-faqs .accordion__container {
        padding: 0;
        max-width: 1200px;
        margin: 0px auto;
    }

    .ae-content.sub-nav-tabs {
        padding: 0;
        position: relative;
        top: 25px;
    }

    .tab.primary-btn {
        height: 50px;
    }

    p.discover-mobile {
        display: none;
    }
}


/* Section: Typography, links and buttons */
.__sect a {
    font-family: 'Open Sans';
    font-weight: 600;
    text-align: left;
    color: #005078;
    font-weight: 600;
}

.__sect p  a ,.__sect li  a  {
    text-decoration: none;
}

.__sect h1  {
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 30px;
    line-height: 50px;
}

.__sect h2  {
    font-size: 28px;
    font-weight: 600;
    line-height: 30px;
    margin: 0 0 10px;
}

.__sect h3  {
    font-size: 18px;
    font-weight: 600;
    line-height: 23px;
}

.__sect p ,.__sect li  {
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
}

button.__primaryBtn {
    border-radius: 14px;
    background-color: #005078;
    color: #fff;
    width: fit-content;
    min-height: 50px;
}

button.__primaryBtn:hover {
    background-color: #004060;
}

button.__primaryBtn a {
    text-align: center;
    padding: 15px 60px;
    text-decoration: none;
    border-radius: 14px;
    z-index: 3;
    display: block;
}

button.__primaryBtn a,button.__primaryBtn a >* {
    font-weight: 600;
    font-size: 14px;
    color: #fff;
    text-decoration: none;
}

@media only screen and (max-width: 767px) {
.ae-header.row .ae-content {
    width: calc(100% - 40px);
}

    .__sect h1  {
        font-size: 36px;
    }

    .__sect h2  {
        font-size: 24px;
    }

    a.sub-nav-tabs span {
        font-size: 20px;
    }

    .ae-content.sub-nav-tabs {
        display: flex;
        height: 50px;
    }

    button#navTab-offers {
        margin-top: 0;
        max-height: 35px;
    }

    p.discover-mobile a {
        text-decoration: none;
        padding-left: 20px;
    }     
                
    .__allSales .__offer .__content {
        min-height: 350px;
    }

    .aeroplan-retail-partner .col-60 {
        width: 100%;
    }

    .aeroplan-retail-partner h3 {
        font-size: 20px;
        max-width: 100%;
    }

    .aeroplan-banner button.primary-btn, .partner-banner button.primary-btn {
        margin: 15px auto;
    }

    .row.aeroplan-retail-partner .col-50 {
        width: 100%;
    }
}

/* ------------ */

section.__allSales {
    padding-top: 60px;
}

.__subheading div p a::after {
    content: '';
    display: inline-block;
    background: url(https://www.aircanada.com/content/dam/aircanada/loyalty-content/images/prev-arrow.svg) no-repeat center center;
    background-size: 14px 14px;
    width: 14px;
    height: 14px;
    transform: rotate(-90deg);
    margin-left: 5px;
}

.__subheading div p a.active::after {
    transform: rotate(90deg);
}

.ae-content.sub-nav-tabs {
    background: none;
}

.__subheading.__fixedWidth h2 {
    text-align: left;
}

@media only screen and (min-width: 1025px) {
    .__offerSnap p {
        text-align: left;
    }
    
    .__offerSnap h3 {
        text-align: left;
        min-height: 82px;
    }
    
    .__collapsibleSection:not(.__infiniteCarousel) .__offerContainer .__offerSnap {
        flex: 0 0 calc(33% - 20px);
    }
    
    .ae-content.sub-nav-tabs {
        max-width: 1200px;
        align-items: center;
        justify-content: center;
        display: flex;
    }
    
    section.__allSales {
        width: 100%;
        padding: 60px 0 0 0;
    }
    
    .row.aeroplan-retail-partner {
        max-width: 1355px;
        margin: 0 auto;
    }

    .partner-banner .col-50:nth-of-type(1) {
        width: 60%;
    }
}

@media only screen and (max-width: 426px) {
    .aeroplan-retail-partner .aeroplan-banner {
        background: #fff url(https://www.aircanada.com/content/dam/aircanada/loyalty-content/images/join-aeroplan-mobile.jpg) no-repeat center center;
        background-size: cover;
    }

    .aeroplan-retail-partner .partner-banner {
        background: #fff url(https://www.aircanada.com/content/dam/aircanada/loyalty-content/images/banner-ae-partners-mobile.png) no-repeat center center;
        background-size: cover;
    }

    .aeroplan-retail-partner .aeroplan-banner, .aeroplan-retail-partner .partner-banner {
        height: 350px;
    }

    :lang(fr) .aeroplan-retail-partner .aeroplan-banner, .aeroplan-retail-partner .partner-banner {
        height: 400px;
    }
}

@media only screen and (max-width: 450px) {
    h3 {
        display: block;
    }

    .primary-btn-a {
        margin: 0;
    }

    button#navTab-offers {
        margin-top: 0;
    }
}

@media only screen and (max-width: 767px) {
    .__collapsibleSection:not(.__infiniteCarousel) .__offerContainer .__offerSnap {
      flex: 0 0 100%;
  }

  .__collapsibleSection:not(.__infiniteCarousel) .__offerContainer .__offerSnap .__offer .__content img {
      width: 100%;
      max-height: 275px;
      object-fit: cover;
  }
}

@media only screen and (max-width: 820px) {
    .hero-container img {
        margin-top: -50px;
    }
}

@media only screen and (max-width: 1024px) {
    .ae-content.sub-nav-tabs {
        display: inline-flex;
        overflow-x: auto;
    }

    button#navTab-offers {
        text-wrap: nowrap;
        white-space: nowrap;
    }

    .__allSales {
        padding-left: 30px;
    }

    .__infiniteCarousel .__rightArrow span {
        display: none;
    }

    .__infiniteCarousel .__leftArrow span {
        display: none;
    }

    p.discover-desktop {
        display: none;
    }

    p.discover-mobile {
        text-align: left;
    }

    p.discover-mobile a::after {
        transform: rotate(180deg);
    }
    
    .discover-mobile a::after {
        content: '';
        display: inline-block;
        background: url(https://www.aircanada.com/content/dam/aircanada/loyalty-content/images/prev-arrow.svg) no-repeat center center;
        background-size: 14px 14px;
        width: 14px;
        height: 14px;
        transform: rotate(-90deg);
        margin-left: 5px;
    }

    .aeroplan-retail-partner {
        padding: 20px;
    }
}

a.accordion__toggle {
    text-align: left;
}

.__offer {
    max-width: 380px;
}

.tab.primary-btn {
    padding: 0 20px;
}

li.tab.col-50.active span {
    color: #005078;
}

li.tab.col-50.active img {
    filter: invert(15%) sepia(89%) saturate(2486%) hue-rotate(182deg) brightness(97%) contrast(101%);
}

ul li {
    list-style: none;
    font-size: 14px; 
    font-weight: 500;
}

ul li a {
    font-size: 14px;
}
.ae-header .ac-icon.icon-footer-external-link{padding-left: 0}