.ae-header .ae-content {
    -webkit-box-shadow: 0 10px 24px -10px rgb(0 0 0 / 12%);
    box-shadow: 0 10px 24px -10px rgb(0 0 0 / 12%);
    padding: 4em 0 0;
    bottom: 0;
}

h1 {
    font: normal 300 36px Open Sans;
    background: transparent;
    color: #000;
}

.ae-content h2 {
    margin-bottom: 0px;
}

.icon {
    width: 170px !important;
    margin-bottom: 36px;
    margin-top: 28px;
    height: 131px;
}

.ae-content h2:after {
    content: '';
    display: block;
    margin: 14px auto;
    height: 2px;
    width: 20px;
    background-color: #b8a890;
    border: none;
}

.narrow {
    clear: both;
    padding: 0px 39px;
}

.promotions h2 {
    text-align: center;
}

.green {
    background-color: #d4e9e2;
    margin: 18px -56px auto;
    position: relative;
    top: 61px;
    padding-top: 56px;
    padding-left: 45px;
    padding-right: 25px;
}
.offerFlexBox{
	display: flex;
	justify-content: center;

}
.offerFlexBox > div{
	width: 33%;
}
.green img {
    width: 144px;
    height: 130px;
    margin-bottom: 30px;
}

.green h3 {
    font-weight: bold;
}

.green h3 span {
    display: block;
    font-size: 32px;
    line-height: 36px;
}

.green .col-lg-4.col-md-4 {
    margin-bottom: 25px;
}


.green a {
    position: absolute;
    bottom: 0px;
    left: 146px;
    top: 307px;
}

:lang(fr).green a {
    position: absolute;
    bottom: 0px;
    left: 107px;
    top: 344px;
}

.green .offerFlexBox > div{
	position: relative;
}


.green p {
    font-size: 14px !important;
    line-height: 22px !important;
    letter-spacing: 0;
    max-width: 300px;
	margin-left: auto;
	margin-right: auto;
}

.grey-bg.promotions {
    padding-top: 58px;
}

.promotions .promotion-panels .col-33 {
    position: relative;
    width: 80%;
}

.promotions .promotion-panels .col-33 a {
    display: flex;
    box-shadow: 0px 6px 15px -3px rgb(0 0 0 / 20%);
    background-color: rgba(255,255,255, 1);
    text-decoration: none;
    /* align-items: center; */
}
.promotions .promotion-panels .col-33 a img {
    max-width: 405px;
    margin: 0;
	object-fit: cover;
}

.promotions .promotion-panels .col-33 h3:after {
    content: '';
    display: block;
    height: 2px;
    width: 20px;
    background-color: #b8a890;
    border: none;
    margin-top: 15px;
}

.SB .ae-content h2:after {
    display: none;
}

.SB {
    display: block;
    background-image: linear-gradient(to right, #d4e9e2 0%, #f9fcfb);
    max-width: 1200px;
    width: 100%;
    padding: 24px 6em 0px;
    margin: 30px auto;
    margin-bottom: 71px;
    margin-top: 70px;
}

.bk {
    background: url(/content/dam/aircanada/loyalty-content/images/icon/ae-sb-reward.svg)no-repeat left bottom;
    position: relative;
    padding-top: 18px;
    left: 58px;
}

.bk h2 {
    font-size: 20px;
    line-height: 24px;
}

.SB .col-50 {
    position: relative;
    left: 134px;
    margin-left: 88px;
    width: calc(75% - 4px);
}

a.accordion-toggle.no-animation:after {
    content: url(/content/dam/aircanada/loyalty-content/images/icon/icon-down-arrow.svg);
}

.cc-faqs .accordion__container .accordion__title.panel-box.selected a:after {
    -webkit-transform: rotateZ( 180deg);
    transform: rotateZ( 180deg);
}

.cc-faqs .accordion__container {
    padding: 0em 0px 34px !important;
    max-width: 1200px;
    width: 100%;
    margin: 0px auto;
}

p.accordion-title {
    -webkit-box-shadow: 0 6px 19px -7px rgb(0 0 0 / 15%);
    box-shadow: 0 6px 19px -7px rgb(0 0 0 / 15%);
    margin-bottom: 30px;
    border: none !important;
}

.ae-content.tc {
    margin-top: 0px;
    padding-top: 1px;
}
#tc table {
	margin: 0px auto 20px;
	width: 100%;
}
#tc table tr th {
	background: #086240;
	color: #fff;
	font-weight: 600;
	padding: 5px 0px;
	border-left: 1px solid #FFFFFF;
	border-right: 1px solid #FFFFFF;
	border-bottom: 2px solid #E6E6E6;
	font-size: 16px;
}
#tc table tr td {
	border-bottom: 2px solid #E6E6E6;
	font-size: 16px;
	font-weight: 400;
}


p.accordion-title a {
    font-size: 20px;
    color: black;
    line-height: 28px;
    letter-spacing: 0.22px;
}

.grey-bg .ae-content {
    padding-bottom: 2px;
}

.promotions .promotion-panels {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-bottom: 30px auto 60px;
    justify-content: center;
}
/*
.promotions .promotion-panels .col-33:last-child {
    width: 100%;
    box-shadow: none;
}
*/
.dd {
    background: url(/content/dam/aircanada/loyalty-content/images/icon/icon-double-pts.svg)no-repeat left bottom;
    background-color: transparent !important;
    padding-top: 23px;
    margin-left: 45px
}

.dd a {
    background: transparent !important;
    text-align: center !important;
}

.promotions button.primary-btn {
    width: 200px;
}

.login .primary-btn {
    top: 118px;
    position: relative;
    right: 106px;
    height: 50px;
    width: 270px;
}

.prelogin h2:after {
    display: none;
}

.linked .login .primary-btn {
    top: 10px;
    right: 0px;
    margin: 0 auto 25px;
}

.promotion-panels .col-33 span {
    text-align: left;
    display: block;
    background-color: #fff;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    height: 100%;
}
.promotion-panels .col-33 span.icon-footer-external-link,
.promotion-panels .col-33 span.sr-only{
	display: inline;
}
.promotion-panels .col-33 span.ac-card-caption {
    position: absolute;
    padding: 0 1rem;
    font-size: 12px;
    line-height: 20px;
    letter-spacing: .05rem;
    border-radius: 5rem;
    max-width: calc(100% - 4rem);
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
    margin: 20px 10px 10px 20px;
    text-transform: uppercase;
    top: 0;
    font-weight: 600;
    height: auto;
}
.promotion-panels .col-33 span.ac-card-caption{
    background: #000;
    color: #fff;
}

.promotions .promotion-panels .col-33 .copy {
    padding: 20px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    height: 100%;
}

.promotions .promotion-panels .col-33 .copy p:last-child {
    text-decoration: underline;
}

.promotions .promotion-panels .col-33 a .copy a {
    height: auto;
    background: transparent;
    display: inline-block;
}

.promotions .promotion-panels .col-33 span .copy a {
    height: auto;
    background: transparent;
    display: inline-block;
}

.cc-faqs+p {
    font-size: 14px;
    color: #005078;
    font-weight: 600;
    line-height: 1.29;
}

.ae-footer {
    margin-top: 62px;
}

.promotion-panels .col-50 {
    position: relative;
    left: calc(21% - 9px);
    margin-left: 88px;
    width: calc(57% - 4px);
}
.promotions .promotion-panels .col-33 .copy > p:nth-child(3) {
    color: #005078;
    font-weight: 700;
}

.ac-icon.icon-footer-external-link:after {
    display: none !important;
}

.grey-sb-bg h2 {text-align: center;
    padding-bottom: 30px;}

table tr th {
	color: #fff;
	background: #086240;
	font-weight: 600;
	/* color: #2A2A2A; */
	/* background: #E6E6E6; */
	padding: 5px 0px; 
	border-left: 1px solid #FFFFFF;
	border-right: 1px solid #FFFFFF;
	border-bottom: 2px solid #E6E6E6;
	font-size: 24px;
}

.grey-sb-bg.ae-content {
    padding: 4em 165px;
}
.grey-sb-bg.new-pts.ae-content {
    padding: 4em 0;
}

.grey-sb-bg.new-pts + .row.aeroplan-retail-partner.starbucks-banner {
    max-width: 1215px;
    margin: 0 auto;
    width: 100%;
    padding: 0 0 30px 0;
}

.grey-sb-bg.ae-content h2, .grey-sb-bg.ae-content h2+p {text-align: center;}
.grey-sb-bg.ae-content h2+p {
    width: 75%;
    margin: -20px auto 40px;
}

table tr td {
    border-bottom: 2px solid #E6E6E6;
    font-size: 18px;
    font-weight: 400;
}

.rewards-sb img {
    width: 18%;
    padding: 10px 0px 16px 9px;
}
.sb-1 img {
    width: 23%;
    padding: 10px 0px 16px 20px;
}

table.rewards-sb {
    box-shadow: 0 16px 19px 0px rgb(0 0 0 / 15%);
}

@media only screen and (max-width: 767px) {
    .rewards-sb img {
        width: 43%;
        padding: 10px 0px 16px 9px;
    }

    .grey-sb-bg.ae-content {
        padding: 4em 0px;
    }

    .sb-1 img {
        width: 52%;
        padding: 10px 0px 16px 16px;
    }

    table tr th {font-size: 18px;}
    .grey-sb-bg.ae-content h2+p {width: 100%;}
    .grey-sb-bg.new-pts + .row.aeroplan-retail-partner.starbucks-banner {padding: 0 10px;}

	.promotion-panels .col-33 span.ac-card-caption {
		top: 15px;
		left: 0px;
	}
	.offerFlexBox{
		flex-direction: column;
	}
	.offerFlexBox > div{
		width: 100%;
	}
}

/* Table */
table.grid-container {
    box-shadow: 0 6px 19px -7px rgb(0 0 0 / 15%);
    border: none;
    position: relative;
    width: 100%;
}

table.grid-container .ae-carousel-mobile {
    width: 100%;
    display: table;
}

table.grid-container .ae-carousel-mobile tr th, table.grid-container .ae-carousel-mobile tr td {
    border: none;
}

table.grid-container .ae-carousel-mobile tr:first-child th {
    font-size: 20px;
    padding: 30px;
}

table.grid-container .ae-carousel-mobile tr td {
    text-align: center;
    padding: 15px;
}

@media only screen and (min-width: 767px){
    table.grid-container .ae-carousel-mobile tr:first-child th:nth-of-type(2), table.grid-container .ae-carousel-mobile tr td:nth-of-type(2) {
        padding-right: 0px;
    }
    table.grid-container .ae-carousel-mobile tr:first-child th:nth-of-type(3), table.grid-container .ae-carousel-mobile tr td:nth-of-type(3) {
        padding: 0;
        max-width: 260px;
        width: 260px;
    }
}

table.grid-container .ae-carousel-mobile tr:not(:first-child):nth-of-type(odd) {
    background-color: #efefef;
}

table.grid-container .ae-carousel-mobile tr td {
    font-weight: 600;
    font-size: 20px;
}

table.grid-container .ae-carousel-mobile tr td:last-child {
    font-size: 14px;
    font-weight: normal;
}

table.grid-container .ae-carousel-mobile tr td:last-child span.list span {
    display: list-item;
    text-align: left;
    line-height: 1.5;
}

table.grid-container .ae-carousel-mobile tr td img {
    width: 100%;
    max-width: 250px;
}

table.grid-container .ae-carousel-mobile tr td:first-child:after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background: url('/content/dam/aircanada/loyalty-content/images/icon/icon-arrow-forward.svg') no-repeat center center;
    margin-right: -40px;
    margin-left: 20px;
}

table.grid-container .ae-carousel-mobile tr td:first-child span {
    width: 100%;
    display: inline-block;
}
table.grid-container .ae-carousel-mobile tr td:nth-child(2) {color: #1C613E;}
table.grid-container .ae-carousel-mobile tr td:nth-child(2) span:after {
    content: '';
    display: inline-block;
    width: 25px;
    height: 25px;
    margin-left: 8px;
    background: url(/content/dam/aircanada/loyalty-content/images/icon/icon-sb-star.png) no-repeat center center;
    background-size: contain;
}

table.grid-container .ae-carousel-mobile tr:first-child th:last-child {
    text-align: left;
    padding-left: 0;
}

@media only screen and (max-width: 767px){
    table.grid-container, table.grid-container .ae-carousel-mobile {display: block; box-shadow: none;}
    table.grid-container .ae-carousel-mobile {    margin: 0 20px;
    width: calc(100% - 40px);}
    table.grid-container .ae-carousel-mobile ul.slick-dots {margin-top: 20px;}
    table.grid-container .ae-carousel-mobile .slick-track {display: flex;}
    table.grid-container .ae-carousel-mobile tr td[data-th]:before  {
        content: attr(data-th);
        height: 100%;
        width: 40%;
    }
    table.grid-container .ae-carousel-mobile tr:not(:first-child):nth-of-type(odd) {background: #fff;}
    table.grid-container .ae-carousel-mobile tr:not(.hidden-xs) {
    display: grid !important;
    box-shadow: 0 6px 19px -7px rgb(0 0 0 / 15%); 
    }

    table.grid-container .ae-carousel-mobile tr td:nth-of-type(3) {
        order: 0;
        width: 100%;
        justify-content: center;
    }

    table.grid-container .ae-carousel-mobile tr td {
        order: 1;
        display: flex;
        padding: 0;
        align-items: center;
    }

    table.grid-container .ae-carousel-mobile tr td:before {
        background: #1C613E;
        color: #fff;
        font-size: 16px;
        padding: 20px;
        font-weight: bold;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    table.grid-container .ae-carousel-mobile tr td span {
        flex: 60%;
        text-align: left;
        padding-left: 30px;
    }

    table.grid-container .ae-carousel-mobile tr td:first-child:after {
        display: none;
    }

    table.grid-container .ae-carousel-mobile tr td:nth-of-type(1), table.grid-container .ae-carousel-mobile tr td:nth-of-type(4) {background: #efefef;}

    table.grid-container .ae-carousel-mobile tr td:last-child span.list {
        padding: 10px 10px 10px 45px;
    }
    table.grid-container .ae-carousel-mobile tr td:last-child span.list span {padding-left: 0;}
}

@media only screen and (max-width: 1024px) and (min-width: 768px) {
    .narrow {
        padding: 0px 0px;
    }
    .login .primary-btn {
        top: 163px;
        position: relative;
        right: 140px;
        height: 50px;
        width: 270px;
        bottom: 0px;
    }
    .green.row {
        padding-top: 56px;
        padding-left: 33px;
        padding-right: 33px;
    }
    .green h2 {
        font-size: 24px;
        line-height: 28px;
    }
    .green p {
        width: auto;
        left: 0px;
    }
    .green a {
        position: absolute;
        bottom: 0px;
        left: 90px;
        top: 317px;
    }
    :lang(fr).green a {
        left: 60px;
        top: 390px;
    }
    .green div:last-child a {
        left: 100px;
    }
    :lang(fr) .green div:last-child a {
        left: 60px;
    }
    .ae-header .ae-content {
        bottom: -7px;
        padding-top: 38px;
    }
    .icon {
        width: 20% !important;
    }
    h1 {
        padding-left: 0px;
        padding-right: 0px;
    }
    .dd {
        background: url(/content/dam/aircanada/loyalty-content/images/icon/icon-double-pts.svg)no-repeat center top;
        padding-top: 23px;
        background-color: transparent !important;
    }
    .promotion-panels .col-50 {
        position: relative;
        left: 0px;
        margin-left: 0px;
        width: 100%;
        top: calc(48% - 27px);
        text-align: center;
    }
    .promotions .promotion-panels .col-33 h3:after {
        content: '';
        display: block;
        height: 2px;
        width: 20px;
        background-color: #b8a890;
        border: none;
    }
    .promotions .promotion-panels .col-33 .dd h3:after {
        margin: auto;
        margin-top: 15px;
    }
    .promotions .promotion-panels {
        margin-bottom: 7em;
    }
    .promotions .promotion-panels .col-33 img {
        margin: 0px auto 20px;
    }
    .promotions .promotion-panels .col-33 .primary-btn {
        width: calc(100% - 10px);
        top: calc(49% - 62px) !important;
        right: calc(70% - 16px) !important;
    }
    :lang(fr).promotions .promotion-panels .col-33 .primary-btn {
        width: calc(100% - 10px);
        top: calc(49% - 16px) !important;
        right: calc(70% - 16px) !important;
    }
	.promotions .promotion-panels .col-33 a{
		display: block;
	}

    .promotions .promotion-panels .col-33 a img {
        margin: 0px auto 20px;
        max-width: 100%;
    }
    .SB {
        width: calc(100% - 60px);
        max-width: 100%;
        padding-left: 0px !important;
    }
    .grey-bg .ae-content {
        padding: 4em 1px;
    }
    .promotions .promotion-panels .col-33 {
        width: calc(50% - 27px) !important;
    }
    .SB .col-50 {
        width: 70%;
        margin-left: 20px !important;
    }
    .cc-faqs .accordion__container {
        padding: 30px !important;
    }
}

@media only screen and (max-width: 767px) {
    .promotion-panels .col-50 {
        padding-top: 210px;
        left: 0px;
        text-align: center;
        margin-left: 0px;
        width: 100%;
    }
    .promotions button.primary-btn {
        width: 334px;
        margin: auto;
    }
    .promotions .promotion-panels .col-33 a img {
        max-width: 100%;
    }
    .ae-header .ae-content {
        bottom: 0px;
    }
    .ae-header .ae-content .narrow {padding: 20px;}
    .narrow {
        padding: 0px;
    }
    .narrow h1 {
        font-size: 30px;
        line-height: 36px;
    }
    .icon {
        margin: 0px auto;
    }
    .linked h2 {
        font-size: 24px;
        line-height: 28px;
    }
    .green.row {
        margin: auto -31px;
        padding-top: 33px;
        padding-left: 18px;
        padding-right: 20px;
    }
    .green h2 {
        font-size: 24px;
        line-height: 28px;
    }
    .green p {
        width: 100%;
        left: 0px;
    }
    .green h3 {
        font-weight: bold;
        font-size: 20px;
        line-height: 36px;
    }
    .green img {
        margin-bottom: 20px;
        min-height: 130px;
        width: 130px;
        height: 130px;
    }
    .green .col-lg-4.col-md-4 {
        margin-bottom: 0px;
    }
    .green a {
        position: relative;
        bottom: 0px;
        left: 0px;
        top: 0px;
        font-size: 14px;
    }
    :lang(fr).green a {
        position: relative;
        bottom: 0px;
        left: 0px;
        top: 0px;
        font-size: 14px;
    }
    .grey-bg .ae-content {
        padding: 30px 0;
    }
    .promotions h2 {
        font-size: 24px;
        line-height: 28px;
    }
    .promotion-panels img {
        margin: 0px auto 25px !important;
    }
    .dd {
        background: url(/content/dam/aircanada/loyalty-content/images/icon/icon-double-pts.svg)no-repeat center top;
        padding-top: 23px;
        background-color: transparent !important;
        margin-left: 0px;
    }
    .dd h3:after {
        margin: auto;
    }
    .promotions .promotion-panels h3 {
        font-size: 20px;
        line-height: 24px;
    }
    .login .primary-btn {
        /* made the underneath element invisible */
        /* top: 36px !important; */
        width: 295px;
    }
    .SB .col-50 {
        position: relative;
        left: 0px;
        margin-left: 0px;
        width: 100%;
    }
    .bk {
        background: url(/content/dam/aircanada/loyalty-content/images/icon/ae-sb-reward.svg)no-repeat bottom center;
        position: relative;
        height: 339px;
        background-position: 58% 100%;
        left: 0px;
        padding: 40px 20px;
    }
    :lang(fr) .bk {
        height: 372px;
    }
    .SB {
        max-width: 335px;
        padding: 0px 20px;
        box-shadow: 0px 4px 12px 0 rgb(0 0 0 / 20%);
        height: 339px;
        background-image: linear-gradient(to top, #d4e9e2, #ffffff, #ffffff);
        margin-top: 52px;
    }
    :lang(fr) .SB {
        height: 372px;
    }
    .accordion-toggle::after {
        margin: 0px -25px auto 20px;
    }
    .row.cc-faqs {
        width: calc(100% - 40px);
        margin: 20px auto 0 !important;
    }
    .promotions .promotion-panels .col-33 {width: 100%;}
    .promotions .promotion-panels .col-33 a {flex-direction: column;}
    .promotions .promotion-panels .col-33 h3:after {margin: 15px auto 0;}
}

.sb-signin-bonus {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 20px;
    box-shadow: 0 6px 19px -7px rgb(0 0 0 / 20%);
    margin-bottom: 30px;
}
.sb-signin-bonus img{
    width: 10%;
    margin: 0 20px 0 0;
    min-height: auto;
}
.sb-signin-bonus div{
    text-align: left;
}
.sb-signin-bonus div p{
    margin-bottom: 10px;
}

@media only screen and (max-width: 767px) {
	.sb-signin-bonus {
		display: flex;
		flex-direction: column;
	}
	.sb-signin-bonus img{
		min-width: 80px;
		margin: 0 0 20px 0;
		min-height: auto;
	}
	.sb-signin-bonus div{
		text-align: center;
	}
	.sb-signin-bonus div .red-pill{
		margin-left: auto;
		margin-right: auto;
	}
}

