/* full-bleed bands like the reference page */
main > .section.cwap-mobile-app-container > div {
  max-width: none;
  padding: 0;
}

/* no gap above the carousel band, like the reference page */
main > .section.cwap-mobile-app-container {
  margin-top: 0;
}

.cwap-mobile-app {
  font-size: 14px;
  line-height: 22px;
  letter-spacing: 0.5px;
  color: #222;
}

/* carousel ("A sneak peak of What's Inside") */
.cwap-mobile-app .cwap-carousel {
  /* left inset of the heading, slides and dots; set per desktop width below */
  --cwap-inset: 18%;

  position: relative;
  padding-bottom: 31px;
  background: #fefcf7;
}

.cwap-mobile-app .cwap-carousel-heading {
  position: absolute;
  top: 150px;
  left: var(--cwap-inset);
  z-index: 1;
}

.cwap-mobile-app .cwap-carousel-heading > * {
  margin: 0;
  font-size: 40px;
  font-weight: 800;
  line-height: 44px;
  letter-spacing: 0.5px;
  color: #000;
}

.cwap-mobile-app .cwap-highlight {
  display: block;
  background: linear-gradient(270deg, #f8a12e, #be2a1d 50.07%, #45216c 98.1%);
  background-clip: text;
  font-size: 54px;
  font-style: normal;
  font-weight: 800;
  line-height: 64.8px;
  -webkit-text-fill-color: transparent;
}

.cwap-mobile-app .cwap-carousel-stage {
  position: relative;
}

.cwap-mobile-app .cwap-carousel-slides {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding-left: var(--cwap-inset);
  overflow: hidden;
  touch-action: pan-y;
}

.cwap-mobile-app .cwap-slide {
  display: flex;
  grid-area: 1 / 1;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.5s linear, visibility 0s linear 0.5s;
}

.cwap-mobile-app .cwap-slide.is-active {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.5s linear;
}

.cwap-mobile-app .cwap-slide-info {
  display: flex;
  flex: 0 0 355px;
  align-items: center;
  gap: 25px;
  box-sizing: border-box;
  padding-top: 80px;
}

/* white tile with a 1px brand-gradient border */
.cwap-mobile-app .cwap-slide-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 145px;
  height: 115px;
  border-radius: 10px;
  background: linear-gradient(90deg, #431a80, #ee4137, #feb940);
}

.cwap-mobile-app .cwap-slide-card::before {
  content: '';
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: 9px;
  background: #fff;
}

.cwap-mobile-app .cwap-slide-card picture {
  display: block;
}

.cwap-mobile-app .cwap-slide-card img {
  display: block;
  width: 37.4px;
  height: 38.3px;
  object-fit: contain;
}

.cwap-mobile-app .cwap-slide-label {
  font-size: 12px;
  font-weight: 700;
  line-height: 14.4px;
  letter-spacing: normal;
}

.cwap-mobile-app .cwap-slide-text {
  max-width: 185px;
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  line-height: 21.86px;
  letter-spacing: normal;
}

.cwap-mobile-app .cwap-slide-image picture {
  display: block;
}

.cwap-mobile-app .cwap-slide-image img {
  display: block;
  width: 666px;
  max-width: none;
  height: 594.48px;
}

.cwap-mobile-app .cwap-carousel-prev,
.cwap-mobile-app .cwap-carousel-next {
  display: none;
}

.cwap-mobile-app .cwap-carousel-dots {
  position: absolute;
  top: 465px;
  left: calc(var(--cwap-inset) + 5px);
  display: flex;
  align-items: center;
  gap: 10px;
}

.cwap-mobile-app .cwap-carousel-dot {
  width: 10px;
  height: 10px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50px;
  background: rgb(128 128 128 / 65%);
  cursor: pointer;
  transition: width 0.3s ease;
}

.cwap-mobile-app .cwap-carousel-dot[aria-current='true'] {
  width: 40px;
  background: #fcc666;
}

/* desktop left inset, as on the reference page: 15% up to 1280px wide,
   18% up to 1600px, 25% above */
@media (width >= 992px) and (width <= 1280px) {
  .cwap-mobile-app .cwap-carousel {
    --cwap-inset: 15%;
  }
}

@media (width >= 1601px) {
  .cwap-mobile-app .cwap-carousel {
    --cwap-inset: 25%;
  }
}

/* smaller desktops: the reference page zooms out in these steps */
@media (width >= 992px) and (width < 1100px) {
  .cwap-mobile-app .cwap-carousel {
    zoom: 0.7;
  }
}

@media (width >= 1100px) and (width < 1200px) {
  .cwap-mobile-app .cwap-carousel {
    zoom: 0.75;
  }
}

@media (width >= 1200px) and (width < 1280px) {
  .cwap-mobile-app .cwap-carousel {
    zoom: 0.8;
  }
}

@media (width >= 1280px) and (width < 1366px) {
  .cwap-mobile-app .cwap-carousel {
    zoom: 0.85;
  }
}

@media (width >= 1366px) and (width < 1440px) {
  .cwap-mobile-app .cwap-carousel {
    zoom: 0.9;
  }
}

/* the page is already zoomed (see syncPageZoom in the JS): don't zoom twice */
.cwap-mobile-app[data-page-zoomed] .cwap-carousel {
  zoom: 1;
}

/* download band ("Download our visualizer app now") */
.cwap-mobile-app .cwap-download {
  position: relative;
  box-sizing: border-box;
  height: 429px;
  padding: 35px 0;
  background: #fff;
}

.cwap-mobile-app .cwap-download-panel {
  display: flex;
  justify-content: flex-end;
  height: 100%;
  background: #000;
}

.cwap-mobile-app .cwap-download-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 45.5%;
  height: 100%;
}

.cwap-mobile-app .cwap-download-logo {
  display: block;
  margin-bottom: 24px;
}

.cwap-mobile-app .cwap-download-logo img {
  display: block;
  width: 247px;
  height: auto;
}

.cwap-mobile-app .cwap-download-label {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 800;
  line-height: 21.86px;
  letter-spacing: normal;
  color: #fff;
}

.cwap-mobile-app .cwap-download-stores {
  display: flex;
  column-gap: 10px;
}

.cwap-mobile-app .cwap-download-stores a {
  display: block;
}

.cwap-mobile-app .cwap-download-stores a:focus-visible {
  outline: 1px solid #fff;
}

.cwap-mobile-app .cwap-download-stores picture {
  display: block;
}

.cwap-mobile-app .cwap-download-stores img {
  display: block;
  width: 180px;
  height: auto;
}

.cwap-mobile-app .cwap-download-video {
  position: absolute;
  top: 0;
  left: 4.5%;
  width: 50%;
  height: 100%;
}

.cwap-mobile-app .cwap-download-player {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  object-fit: contain;
}

@media (width >= 992px) and (width <= 1199px) {
  .cwap-mobile-app .cwap-download {
    padding: 75px 0;
  }
}

@media (width >= 1200px) and (width <= 1440px) {
  .cwap-mobile-app .cwap-download {
    padding: 50px 0;
  }
}

@media (width <= 991px) {
  .cwap-mobile-app .cwap-carousel {
    padding: 20px;
  }

  .cwap-mobile-app .cwap-download {
    height: 586px;
    padding: 0;
  }

  .cwap-mobile-app .cwap-download-panel {
    height: 53%;
  }

  .cwap-mobile-app .cwap-download-text {
    width: 100%;
  }

  .cwap-mobile-app .cwap-download-logo {
    margin-bottom: 20px;
  }

  .cwap-mobile-app .cwap-download-stores img {
    width: 145px;
  }

  .cwap-mobile-app .cwap-download-video {
    position: relative;
    left: 0;
    display: flex;
    align-items: center;
    width: 100%;
    height: 47%;
  }

  .cwap-mobile-app .cwap-carousel-heading {
    position: static;
    margin: 30px 0 15px;
    padding-bottom: 29px;
    text-align: center;
  }

  .cwap-mobile-app .cwap-carousel-heading > * {
    font-size: 20px;
    line-height: 27.32px;
  }

  .cwap-mobile-app .cwap-highlight {
    font-size: 32px;
    line-height: 35.2px;
  }

  .cwap-mobile-app .cwap-carousel-slides {
    height: 520px;
    padding-left: 0;
  }

  .cwap-mobile-app .cwap-slide {
    flex-direction: column;
    align-items: center;
  }

  .cwap-mobile-app .cwap-slide-info {
    flex: none;
    justify-content: center;
    gap: 10px;
    height: 55px;
    padding-top: 0;
  }

  .cwap-mobile-app .cwap-slide-card {
    gap: 0 6px;
    width: 85px;
    height: 55px;
  }

  .cwap-mobile-app .cwap-slide-card img {
    width: 24px;
    height: 24px;
  }

  .cwap-mobile-app .cwap-slide-label {
    font-size: 10px;
    line-height: 18px;
    letter-spacing: 0.5px;
  }

  .cwap-mobile-app .cwap-slide-text {
    max-width: 108px;
    font-size: 12px;
    font-weight: 700;
    line-height: 14.4px;
  }

  .cwap-mobile-app .cwap-slide-image img {
    width: 520px;
    height: auto;
  }

  .cwap-mobile-app .cwap-carousel-prev,
  .cwap-mobile-app .cwap-carousel-next {
    position: absolute;
    top: 301.6px;
    z-index: 1;
    display: block;
    padding: 0;
    border: 0;
    background: transparent no-repeat 0 0;
    cursor: pointer;
    transform: translateY(-50%);
  }

  .cwap-mobile-app .cwap-carousel-prev {
    left: -5px;
    width: 26px;
    height: 26px;
    background-image: url('https://www.asianpaints.com/etc.clientlibs/apcolourcatalogue/clientlibs/clientlib-global/resources/images/round-black-prev-arrow.svg');
  }

  .cwap-mobile-app .cwap-carousel-next {
    right: -10px;
    width: 30px;
    height: 30px;
    background-image: url('https://www.asianpaints.com/etc.clientlibs/apcolourcatalogue/clientlibs/clientlib-global/resources/images/round-black-next-arrow.svg');
  }

  /* first/last slide (as on the reference) */
  .cwap-mobile-app .cwap-carousel-prev[aria-disabled='true'],
  .cwap-mobile-app .cwap-carousel-next[aria-disabled='true'] {
    opacity: 0.4;
    cursor: default;
  }

  .cwap-mobile-app .cwap-carousel-prev[hidden],
  .cwap-mobile-app .cwap-carousel-next[hidden] {
    display: none;
  }

  .cwap-mobile-app .cwap-carousel-dots {
    top: auto;
    bottom: 5px;
    left: 0;
    justify-content: center;
    gap: 5px;
    width: 100%;
  }

  .cwap-mobile-app .cwap-carousel-dot {
    width: 5.4px;
    height: 5.6px;
    border-radius: 6px;
    background: rgb(128 128 128 / 25%);
  }

  .cwap-mobile-app .cwap-carousel-dot[aria-current='true'] {
    width: 21.4px;
    background: #fcc666;
  }
}
