html,
body {
    margin: 0;
    padding: 0;
    font-size: 3.8vw;
}


/* Typography */

.hw-extra-main h1,
.hw-extra-main h2,
.hw-extra-main h3,
.hw-extra-main p,
.hw-extra-lead,
.hw-extra-small {
    margin: 0 0 .75rem 0;
}

@media only screen and (min-width: 415px) {
    html,
    body {
        font-size: 16px;
    }
}

.hw-extra-modal tr,
.hw-extra-modal th,
.hw-extra-modal td {
    border: 1px solid black;
    text-align: center;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

.hw-extra-main {
    max-width: 414px;
    margin: 0 auto;
}

.hw-extra-h1,
.hw-extra-h2,
.hw-extra-h3 {
    font-weight: 700;
}

.hw-extra-h1 {
    font-size: 2.875rem;
    /*font-size: 46px;*/
}

.hw-extra-h2 {
    font-size: 2rem;
}

.hw-extra-h3 {
    font-size: 1.5rem;
}

.hw-extra-h1,
.hw-extra-h2,
.hw-extra-h2 {
    line-height: 1.2;
}

.hw-extra-lead {
    font-size: 1.25rem;
    /*font-size: 20px;*/
}

.hw-extra-p {
    font-size: 1rem;
    /*font-size: 16px;*/
}

.hw-extra-small {
    /*font-size: 13px;*/
    font-size: 0.875rem;
}

a.hw-extra-small {
    color: #1e1e1e;
}

.hw-extra-lead,
.hw-extra-p {
    line-height: 1.25;
}

.hw-extra-huawei-font.bold {
    font-weight: 700;
}


/* Buttons */

.hw-extra-btn {
    display: inline-block;
    font-size: 0.813rem;
    line-height: 3rem;
    font-weight: 700;
    border-radius: 3rem;
    text-decoration: none;
    padding: 0 1.5rem;
    min-width: 7.5rem;
    text-align: center;
}

.hw-extra-btn.btn-small {
    line-height: 2rem;
}

.hw-extra-btn.btn-dark {
    color: #fff;
    background: #1e1e1e;
}

.hw-extra-btn.btn-light {
    color: #1e1e1e;
    background: #fff;
}

.hw-extra-btn.btn-claimed {
    color: #fff;
    background: #7F7F7F;
}

.hw-extra-btn.btn-outline {
    border: 2px solid #777777;
    color: #1e1e1e;
    line-height: 2.875rem;
}


/* Keep Ratio */

.hw-extra-keep-ratio {
    position: relative;
    width: 100%;
}

.hw-extra-keep-ratio:before {
    content: "";
    display: block;
    width: 100%;
}

.hw-extra-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


/* Hero KV */

.hw-extra-kv {
    background: url(/content/dam/huawei-cbg-site/weu/ie/e-commerce/offer/my-huawei-promotion/img/hw_extra_key_visual.jpg) top center no-repeat;
    background-size: cover;
    text-align: center;
}

.kv-ratio:before {
    padding-top: 154%;
    /* aspect-ratio 640:414px */
}

.hw-extra-kv .hw-extra-inner {
    padding: 0rem;
}

.hw-extra-kv .hw-extra-share {
    width: 32px;
    height: 32px;
    background: url(/content/dam/huawei-cbg-site/weu/ie/e-commerce/offer/my-huawei-promotion/img/share_icon.svg) top center no-repeat;
    display: block;
    position: absolute;
    top: 1rem;
    right: 1rem;
    opacity: .4;
}

.hw-extra-modal-content .hw-extra-p.claimed-container {
    margin-top: 20px;
    width: 80%;
    margin-left: 10%;
}

.hw-extra-kv .hw-extra-h1 {
    text-transform: uppercase;
    margin-bottom: .5rem;
}

.hw-extra-kv .hw-extra-h2 {
    text-transform: uppercase;
    font-size: 2.25rem;
    margin-bottom: 0;
    margin-top: 2rem;
}

.hw-extra-kv .hw-extra-lead {
    margin-bottom: 1rem;
}

.hw-extra-kv a.hw-extra-small {
    position: absolute;
    z-index: 100;
    display: block;
    width: 100%;
    left: 0;
    bottom: 0;
    margin-bottom: 1.5rem;
}

.hw-extra-kv a.hw-extra-small:hover,
.hw-extra-kv a.hw-extra-small:active {
    opacity: .7;
}

.hw-extra-slide-gif {
    display: block;
    position: absolute;
    overflow: hidden;
    bottom: 10%;
    left: 50%;
    width: 56px;
    height: 56px;
    margin-left: -28px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 10px 21px -8px rgba(0, 0, 0, 0.15);
}

.hw-extra-slide-gif img {
    width: 100%;
    height: auto;
}


/* Sections */

.hw-extra-section {
    padding: 3.5rem 1.5rem 1.5rem 1.5rem;
    text-align: center;
}


/* Cards */

.hw-extra-card {
    background: #FFFFFF;
    box-shadow: 0 69px 60px -49px rgba(0, 0, 0, 0.15);
    padding: 1.5rem;
    border-radius: 1rem;
    margin: 1.5rem 0;
    border: 1px solid #C5C5C5;
}

.hw-extra-card.card-ratio:before {
    padding-top: 125%;
    /* aspect-ratio */
}

.hw-extra-card .hw-extra-inner {
    padding: 1.5rem;
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flex;
    display: -o-flex;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hw-extra-card .hw-extra-h3 {
    margin-top: 1rem;
}

.hw-extra-card .hw-extra-p {
    display: inline-block;
    max-height: 3rem;
}

.hw-extra-pillow {
    flex-grow: 1;
    position: relative;
    z-index: 80;
    width: 100%;
    height: 100%;
}

.hw-extra-pillow img {
    position: absolute;
    height: 100%;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
}

.hw-extra-card .hw-extra-btn {
    display: block;
    margin-bottom: 1rem;
    position: relative;
    z-index: 90;
}

.hw-extra-card.battery-card {
    border-color: #B2ECB8;
}

.hw-extra-card.warranty-card {
    border-color: #FFCE64;
}

.hw-extra-card.screen-card {
    border-color: #B2D5EC;
}

.hw-extra-card.music-card {
    border-color: #C1C5FE;
}

.hw-extra-card.video-card {
    border-color: #FEB786;
}

.hw-extra-card.cloud-card {
    border-color: #96C8FF;
}

.hw-extra-section-launch {
    background-image: linear-gradient(135deg, #FBEFEB 0%, #F9EFED 32%, #E0EAFF 100%);
}

.hw-extra-section-launch .hw-extra-card {
    border-color: white;
}


/* Offer Card */

.hw-extra-offer-card {
    padding-left: 2rem;
    padding-right: 2rem;
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flex;
    display: -o-flex;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hw-extra-offer-card.light {
    background: rgba(255, 255, 255, .35);
}

.hw-extra-section-launch .hw-extra-offer-card .hw-extra-h3 {
    font-weight: 400;
}

.hw-extra-offer-card img {
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

.hw-extra-section.hw-extra-section-ms {
    padding-left: 0;
    padding-right: 0;
}


/* Carousel */

.hw-extra-carousel {
    margin-bottom: 2rem;
}

.hw-extra-carousel .hw-extra-card {
    text-align: center;
    margin: 1rem 0 4rem 0;
}

.hw-extra-carousel .hw-extra-card .hw-extra-h3,
.hw-extra-carousel .hw-extra-card .hw-extra-p {
    width: 100%;
}

.hw-extra-carousel .slick-slide {
    margin: 0 8px;
}

.hw-extra-carousel .slick-dots {
    padding: 0;
    margin: 0;
    list-style: none;
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flex;
    display: -o-flex;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    position: absolute;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
}

.hw-extra-carousel .slick-dots li {
    width: 6px;
    height: 6px;
    background: #000;
    opacity: .6;
    border-radius: 50%;
    margin: 0 8px;
    transition: all .25s ease-in;
}

.hw-extra-carousel .slick-dots li.slick-active {
    width: 10px;
    height: 10px;
    opacity: 1;
}

.hw-extra-carousel .slick-dots li button {
    display: none;
}


/* Modal */

.hw-extra-modal {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: scale(1.1);
    transition: visibility 0s linear 0.25s, opacity 0.25s 0s, transform 0.25s;
    z-index: 101;
}

.hw-extra-modal-content {
    position: absolute;
    top: 6rem;
    left: 49.9%;
    transform: translateX(-50%);
    background-color: white;
    padding: 2.5rem;
    width: 100%;
    max-width: 419px;
    height: calc(100% - 3rem);
    border-radius: 1rem;
    overflow-y: auto;
}

.hw-extra-modal.modal-full .hw-extra-modal-content {
    top: 0;
    height: 100%;
    border-radius: 0;
}

.hw-extra-modal .close-button {
    width: 2rem;
    height: 2rem;
    background: url(/content/dam/huawei-cbg-site/weu/ie/e-commerce/offer/my-huawei-promotion/img/close.svg) no-repeat;
    text-align: center;
    cursor: pointer;
    position: absolute;
    top: 2.5rem;
    right: 2.5rem;
    opacity: .6;
    transition: opacity .25s ease-out;
}

.hw-extra-modal .close-button:hover {
    opacity: 1;
}

html.show-modal,
html.show-modal body {
    overflow: hidden;
}

.hw-extra-modal.show-modal {
    opacity: 1;
    visibility: visible;
    transform: scale(1.0);
    transition: visibility 0s linear 0s, opacity 0.25s 0s, transform 0.25s;
}

.hw-extra-modal.terms .hw-extra-modal-content {
    padding-top: 5.5rem;
}

.claimed-modal video {
    width: 100%;
    height: auto;
    margin: 1rem 0 2rem 0;
}

.hw-extra-small-pillow {
    width: 100px;
    margin-left: -1rem;
}

.hw-extra-small-pillow img {
    width: 100%;
    height: auto;
}

.hw-extra-loading {
    position: absolute;
    text-align: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hw-extra-error {
    text-align: center;
    background: rgba(255, 0, 41, 0.10);
    border-radius: 16px;
    margin-top: 5rem;
    width: 100%;
    height: calc(100% - 5rem);
}

.hw-extra-error img {
    width: 14rem;
    margin-top: -5rem;
    margin-bottom: 3rem;
}