.primer-apple-pay-button {
  position: fixed;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1;
}

:root {
  --color-text-primary: #353652;
  --color-title: #2e2e2e;
  --color-text-secondary: #524e35;
  --color-text-white: #fff;
  --color-basic-bg: #fff;
  --color-black: #1E1E1E;
  --color-desc: rgba(30, 30, 30, 0.70);
  --btn-bg: linear-gradient(
    107deg,
    #73818a 12.42%,
    #6b8194 19.53%,
    #44466a 70.35%,
    #625c71 86.34%
  );
  --item-bg: linear-gradient(
    107deg,
    rgba(115, 129, 138, 0.1) 12.42%,
    rgba(107, 129, 148, 0.1) 19.53%,
    rgba(68, 70, 106, 0.1) 70.35%,
    rgba(98, 92, 113, 0.1) 86.34%
  );
  --font-family: 'SF Pro Display', sans-serif;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  border: none;
  outline: none;
  list-style-type: none;
  text-decoration: none;
  font-family: var(--font-family);
  color: var(--color-text-primary);
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

img {
  display: block;
}

.hidden {
  display: none;
}

html, body {
  overflow: hidden;
  height: 100%;
}

.tab__container {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  padding: 0 16px;
}

.title {
  color: var(--color-black);
  font-size: 38px;
  font-weight: 600;
  line-height: 41px;
  letter-spacing: 0.136px;
  text-align: center;
}

.title span {
  background: linear-gradient(180deg, #5890ff 0%, #3b52ff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.accent {
  background: linear-gradient(103deg, #6D99F7 2.3%, #5252FC 97.7%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.description {
  color: var(--color-desc);
}

.btn {
  position: relative;
  display: flex;
  color: var(--color-text-white);
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  line-height: 25px;
  letter-spacing: -0.09px;
  padding: 19.5px 0px;
  justify-content: center;
  align-items: center;

  border-radius: 20px;
  background: linear-gradient(180deg, #272336 0%, #181620 100%);
}

.btn:hover {
  opacity: 0.8;
}

/* Benefits */
.benefits {
  padding-bottom: 20px;
}

.benefits__list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin:20px 0 16px 0;
}

.benefits__item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: calc(25% - 60px / 4);
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.60);
  background: rgba(255, 255, 255, 0.60);
  box-shadow: 0 2px 8px 0 rgba(157, 153, 188, 0.20);
  backdrop-filter: blur(10px);
  padding: 12px;

  .description {
    margin-top: 4px;
   }
}

.benefits__item-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  flex-grow: 0;
  border-radius: 100px;
  background: #FFF;
  box-shadow: 0 2px 8px 0 rgba(157, 153, 188, 0.20);
  backdrop-filter: blur(10px);
}

.benefits__item-title {
  font-size: 17px;
  font-weight: 500;
  line-height: 22px;
  letter-spacing: -0.073px;
  color: var(--color-black);
}


/* Popup */

.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0;
  background: rgba(0, 0, 0, 0.5);
}

.popup.active {
  opacity: 1;
  z-index: 10;
}

.popup-content {
  position: absolute;
  max-width: 335px;
  width: 100%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: #fff;
  backdrop-filter: blur(20px);
  padding: 16px 12px;
}

.popup__icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 12px;
}

.title-secondary {
  color: var(--color-black);
  text-align: center;
  font-size: 28px;
  font-weight: 500;
  line-height: 34px;
  letter-spacing: 0.106px;
}

.popup-text {
  color: var(--color-desc);
  text-align: center;
  font-size: 17px;
  line-height: 22px;
  letter-spacing: -0.073px;

  margin: 8px 0 24px 0;
}

/* Upsale page */

.tab__upsale {
  opacity: 0;
  padding: 16px 0 0;
  transition: .3s;
}

.tab__upsale.show{
  opacity: 1;
}



body:has(.tab__upsale.show) {
  background: #F2E9F3;
}

#upsale-arrow-animation {
  height: 100px;
  top: 550px;
  position: absolute;
  display: flex;
  width: 90%;
}

.banner__title {
  margin-top: 20px;
}



/* Recommendation */

.recommendation {
  margin-bottom: 50px;
}

.recommendation__cover {
  width: 100%;
  margin-top: 30px;
}

.recommendation__cover img {
  display: block;
  width: 100%;
}

/* Upsale button block */

.upsale-btn-block {
  position: fixed;
  width: 100%;
  bottom: 0;
  left: 0;
  padding: 5px 16px;
  background: #F2E9F3;
}

.upsale-btn-block__price {
  color: var(--color-black);
  font-size: 17px;
  text-align: center;
  font-weight: 400;
  line-height: 22px;
  letter-spacing: -0.073px;
  margin-bottom: 8px;
}

.upsale__price {
  color: var(--color-black);
  font-weight: 700;
}

.upsale-btn-block__skip {
  width: 100%;
  max-width: 164px;
  margin: 8px auto 0 auto;

  color:#B50000;
  padding: 11px;
  text-align: center;
  font-size: 17px;
  line-height: 22px;
  letter-spacing: -0.073px;
  cursor: pointer;

  border-radius: 30px;
  background: rgba(181, 0, 0, 0.15);
}

.btn__discount {
  position: absolute;
  right: 16px;
  top: 0px;
}

.btn-louder {
  display: none;
  animation: rotate 3s linear infinite;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.upsale-btn.louder .btn-louder {
  display: flex;
}

.upsale-btn.louder .btn__text {
  display: none;
}

.btn__text {
  color: #fff;
}

span.through {
  display: inline-block;
  text-decoration-line: line-through;
  color: var(--color-desc);
}

/* Media */

@media (max-width: 1024px) {
  .benefits__item {
    width: calc(50% - 20px / 2);
  }
}

@media (max-width: 768px) {
  .benefits__list {
    gap: 7px;
  }

  .benefits__item {
    width: 100%;
  }
}


/* Banner timer */

.banner__top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
  span {
    color: var(--color-black);
    font-size: 17px;
    font-weight: 500;
    line-height: 22px;
    letter-spacing: -0.073px;
  }
  .banner__logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    overflow: hidden;
     img {
      width: 100%;
      height: 100%;
      object-fit: cover;
     }
  }
}

.banner__time {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.banner__time-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.banner__time-label {
  color:  var(--color-black);
}

.banner__time-value {
  color: var(--color-black);
  font-size: 22px;
  font-weight: 500;
  line-height: 28px;
  letter-spacing: -0.057px;
}

.banner__time-btn {
  flex: 1;
  color: var(--color-text-white);
  font-size: 17px;
  font-weight: 600;
  line-height: 22px;
  letter-spacing: -0.073px;
}

.banner__unlock-cover {
  display: flex;
  align-items: center;
  margin-top: 20px;

  .banner__unlock-cover-item {
    flex: 1;
    display: flex;
    justify-content: center;
     img {
      width: 100%;
      height: auto;
      object-fit: contain;
     }
   }
   .banner__unlock-cover-item:first-child {
    margin-right: 10px;
  }
}


.banner__detection {
    margin-bottom: 32px ;
  .banner__detection-title {
    margin: 32px 0 4px 0;
  }

  .banner__detection-description {
    text-align: center;
  }

  .banner__detection-cover {
    width: 100%;
    max-width: 240px;
    margin: 20px auto 0 auto;
     img {
      width: 100%;
      height: auto;
      object-fit: contain;
     }
  }
}

.banner__unlock-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  margin: 20px 0 20px 0;
}

.banner__unlock-info-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px;

  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.60);
  background: rgba(255, 255, 255, 0.60);
  box-shadow: 0 2px 8px 0 rgba(157, 153, 188, 0.20);
  backdrop-filter: blur(10px);
}

.banner__unlock-info-value {
  min-width: 73px;
  text-align: center;
  font-size: 34px;
  font-weight: 600;
  line-height: 41px;
  letter-spacing: 0.136px;

  background: linear-gradient(103deg, #6D99F7 2.3%, #5252FC 97.7%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.protect {
  background:linear-gradient(103deg, #736DF7 2.3%, #B652FC 97.7%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.privacy {
  background: linear-gradient(103deg, #55BEE8 2.3%, #52A1FC 97.7%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.banner__unlock-info-label {
  color: var(--color-black);
  font-size: 20px;
  line-height: 25px;
  letter-spacing: -0.09px;
}


.banner__trusted-title {
  color: var(--color-black);
  text-align: center;
  font-size: 28px;
  font-weight: 600;
  line-height: 34px; 
  letter-spacing: 0.106px;
}

.banner__trusted-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;

   img {
    width: 100%;
    height: 100%;
    object-fit: contain;
   }
}


@media (max-width: 390px) {
  .tab__upsale {
    padding: 20px 0 0;
  }

  .banner__top {
    .banner__logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
  }
  }

  .title {
    font-size: 34px;
    line-height: 41px;
    letter-spacing: 0.136px;
  }

  .banner__time-label {
    font-size: 16px;
  }

  .banner__time-value {
    font-size: 22px;
    line-height: 28px;
    letter-spacing: -0.057px;
  }

  .banner__time-btn { 
    padding: 15px 0;
    font-size: 17px;
    line-height: 22px;
    letter-spacing: -0.073px;
  }

  .banner__unlock-info-item {
    padding: 7px;
  }

  .banner__unlock-info-label {
    font-size: 15px;
    line-height: normal;
  }

  .banner__unlock-info-value {
    min-width: 60px;
    font-size: 28px;
    letter-spacing: 0.106px;
  }

  .upsale-btn-block__skip {
    padding-top: 9px;
  }

  .banner__risk {
    border-radius: 16px;
    padding: 14px 18px 18px 18px;
  }

  .upsale-btn {
    padding: 17.5px 0;
  }


  .banner__risk-title {
    font-size: 17px;
    line-height: 22px;
    letter-spacing: -0.073px;
    margin-bottom: 10px;
  }

  .upsale-btn-block__price {
    text-align: center;
    font-size: 17px;
    line-height: 22px;
    letter-spacing: -0.073px;
  }

  .banner__unlock-cover {
    gap: 10px;
  }

  span.through {
    display: inline-block;
    text-decoration-line: line-through;
    color: var(--color-desc);
    font-weight: 600;
  }

  .upsale-btn-block__skip {
    font-size: 16px;
    line-height: 21px;
  }
}

@media (max-width: 375px) {

  .tab__upsale {
    padding: 30px 0 0;
  }

  .banner__title {
    margin: 12px 0 0;
  }

  .title {
    font-size: 28px;
    line-height: 34px;
    letter-spacing: 0.106px;
  }

  .banner__time-label {
    font-size: 16px;
  }

  .banner__time-value {
    font-size: 20px;
    line-height: 25px;
    letter-spacing: -0.09px;
  }



  .banner__time-btn { 
    padding: 13px 0;
    font-size: 17px;
    line-height: 22px;
    letter-spacing: -0.073px;
  }

  .banner__unlock-info-item {
    padding: 7px;
    border-radius: 12px;
  }

  .banner__unlock-info {
      margin: 12px 0;
  }

  .banner__unlock-info-label {
    font-size: 14px;
    line-height: normal;
    letter-spacing: normal;
  }

  .banner__unlock-info-value {
    min-width: 43px;
    font-size: 20px;
    letter-spacing: 0.136px;
    line-height: 25px;
  }

  .upsale-btn-block__skip {
    padding-top: 9px;
  }

  .banner__risk {
    border-radius: 16px;
    padding: 14px 18px 18px 18px;
  }

  .upsale-btn {
    padding: 15.5px 0;
  }

  .banner__risk-title {
    font-size: 17px;
    line-height: 22px;
    letter-spacing: -0.073px;
    margin-bottom: 10px;
  }

  .upsale-btn-block__price {
    text-align: center;
    font-size: 17px;
    line-height: 22px;
    letter-spacing: -0.073px;
  }

  span.through {
    display: inline-block;
    text-decoration-line: line-through;
    color: var(--color-desc);
    font-weight: 600;
  }

  .upsale-btn-block__skip {
    font-size: 16px;
    line-height: 21px;
  }
}