/* Ad Reward Modal */
.ad-reward-modal .modal-dialog.ad-reward-modal__dialog {
  width: 784px;
  max-width: calc(100% - 2rem);
  margin: 1rem auto;
}

.ad-reward-modal .modal-dialog.ad-reward-modal__dialog .modal-content.ad-reward-modal__content {
  background: url(../../images/ad_modal/modal_bg.jpg) center/cover no-repeat;
  border: none;
  border-radius: 10px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  width: 100%;
  max-width: 100%;
}

.ad-reward-modal__inner {
  padding: 40px;
  color: #fff;
}

.ad-reward-modal__header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.ad-reward-modal__badge {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 999px;
  background: rgb(119 55 3);
  font-weight: bold;
  letter-spacing: 1px;
  line-height: 1.2;
  text-transform: uppercase;
}

.ad-reward-modal__header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
  margin-top: -30px;
}

.ad-reward-modal__dismiss-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  user-select: none;
}

.ad-reward-modal__dismiss-label input[type='checkbox'] {
  width: 14px;
  height: 14px;
  margin: 0;
  cursor: pointer;
}

.ad-reward-modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 33px;
  height: 33px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.ad-reward-modal__close:hover {
  background: rgba(0, 0, 0, 0.5);
}

.ad-reward-modal__close img {
  display: block;
  width: 33px;
  height: 33px;
}

.ad-reward-modal__title {
  margin: 0 0 18px;
  font-size: 32px;
  color: #fff;
  font-weight: normal;
  line-height: 1;
  text-shadow: 0px 3px 7px rgba(0, 0, 0, 0.44);
}

.ad-reward-modal__desc {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 28px;
}

.ad-reward-modal__desc-line {
  flex-shrink: 0;
  width: 4px;
  min-height: 48px;
  margin-top: 2px;
  border-radius: 999px;
  background: var(--color-default);
}

.ad-reward-modal__desc p {
  margin: 0;
  max-width: 520px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
}

.ad-reward-modal__goods {
  display: flex;
  gap: 5px;
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 4px;
  justify-content: space-between;
}

.ad-reward-modal__goods-item {
  flex: 0 0 153px;
  width: 153px;
  height: 153px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  overflow: hidden;
}

.ad-reward-modal__goods-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ad-reward-modal__footer {
  display: flex;
  align-items: flex-end;
  gap: 28px;
}

.ad-reward-modal__social {
  flex: 1;
  min-width: 0;
  width: 100%;
}

.ad-reward-modal__social-title {
  margin: 0 0 24px;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 0.12em;
}

.ad-reward-modal__social-list {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 100%;
}

.ad-reward-modal__social-group {
  display: flex;
  gap: 20px;
}

.ad-reward-modal__social-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.ad-reward-modal__social-item:hover {
  transform: translateY(-2px);
}

.ad-reward-modal__social-item img {
  display: block;
}

.ad-reward-modal__gift-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
}

.ad-reward-modal__cta {
  position: relative;
  flex: 0 0 305px;
  max-width: 100%;
  padding-right: 28px;
}

.ad-reward-modal__cta::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 1px;
  height: 72px;
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-50%);
}

.ad-reward-modal__cta-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  color: #fff;
  text-align: center;
}

.ad-reward-modal__cta-sub {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.58);
  text-align: center;
}

@media screen and (max-width: 767px) {
  .ad-reward-modal .modal-dialog.ad-reward-modal__dialog .modal-content.ad-reward-modal__content {
    background: url(../../images/ad_modal/modal_bg_phone.jpg) center/cover no-repeat;
    margin-bottom: 75px;
  }

  .ad-reward-modal__inner {
    padding: 15px;
  }

  .ad-reward-modal__header {
    flex-wrap: wrap;
    margin-bottom: 15px;
  }

  .ad-reward-modal__badge {
    padding: 6px 10px;
  }

  .ad-reward-modal__header-actions {
    position: absolute;
    bottom: -75px;
    left: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .ad-reward-modal__title {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .ad-reward-modal__desc {
    margin-bottom: 15px;
  }

  .ad-reward-modal__desc-line {
    min-height: 54px;
  }

  .ad-reward-modal__desc p {
    font-size: 14px;
    line-height: 1.4;
  }

  .ad-reward-modal__goods {
    margin-bottom: 10px;
  }

  .ad-reward-modal__goods-item {
    width: 70px;
    height: 70px;
    flex: 0 0 70px;
    border-radius: 10px;
  }

  .ad-reward-modal__footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .ad-reward-modal__footer .ad-reward-modal__social {
    width: 100%;
  }

  .ad-reward-modal__footer .ad-reward-modal__social-title {
    font-size: 12px;
    margin-bottom: 15px;
  }

  .ad-reward-modal__social-list .ad-reward-modal__social-item:not(.ad-reward-modal__social-item--telegram) img {
    width: 30px;
    height: 30px;
  }

  .ad-reward-modal__social-list .ad-reward-modal__social-item--telegram img:not(.ad-reward-modal__gift-badge) {
    width: 50px;
    height: 50px;
  }

  .ad-reward-modal__social-list {
    flex-wrap: wrap;
  }

  .ad-reward-modal__cta {
    order: 10;
    flex: 1 1 100%;
    width: 100%;
    padding-right: 0;
    text-align: center;
  }

  .ad-reward-modal__footer .ad-reward-modal__cta-title {
    line-height: 1.2;
    font-size: 12px;
    font-weight: normal;
  }

  .ad-reward-modal__cta::after {
    display: none;
  }
}
