/* Премиум-размещение объявлений. Используется в:
 *   - templates/profile/my_ads.html
 *   - templates/ads/detail.html + products/detail.html + services/detail.html
 *   - templates/promotions/_launcher.html (модалка тарифов)
 *   - templates/promotions/mock_checkout.html (тестовая страница оплаты)
 *   - templates/promotions/success.html
 */

/* === Кнопка featured badge на детальной странице === */
.mkt-aside__featured-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #FFD66B, #FFA940);
  color: #6B4500;
  font-weight: 700;
  border-radius: 10px;
  margin-bottom: 8px;
  font-size: 0.92rem;
}

/* === Кнопка в кабинете my_ads === */
.profile-ad {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.profile-ad__promote {
  margin: 0 12px 12px 12px;
  align-self: flex-start;
}
.profile-ad__featured {
  margin-left: 8px;
  font-size: 1.1rem;
}

/* === Модалка тарифов (bottom-sheet на mobile, центр на desktop) === */
.promo-launcher {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.promo-launcher[hidden] {
  display: none;
}
.promo-launcher__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}
.promo-launcher__sheet {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: #FFFBEE;
  border-radius: 16px 16px 0 0;
  padding: 20px 18px 28px;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.25);
  animation: promo-sheet-up 0.22s ease-out;
}
@keyframes promo-sheet-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.promo-launcher__close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: #555;
  line-height: 1;
}
.promo-launcher__title {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #1B743E;
}
.promo-launcher__lead {
  margin: 0 0 16px;
  font-size: 0.9rem;
  color: #555;
}
.promo-launcher__plans {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.promo-launcher__loader {
  text-align: center;
  padding: 24px 0;
  color: #888;
}
.promo-plan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #e5e0d0;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
  text-align: left;
  width: 100%;
  font: inherit;
}
.promo-plan:hover {
  border-color: #1B743E;
  transform: translateY(-1px);
}
.promo-plan__label {
  font-weight: 600;
  color: #1B743E;
  margin-bottom: 4px;
}
.promo-plan__desc {
  font-size: 0.83rem;
  color: #666;
}
.promo-plan__price {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1B743E;
  white-space: nowrap;
  margin-left: 12px;
}

@media (min-width: 720px) {
  .promo-launcher {
    align-items: center;
  }
  .promo-launcher__sheet {
    border-radius: 16px;
    animation: promo-sheet-fade 0.18s ease-out;
  }
  @keyframes promo-sheet-fade {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
  }
}

/* === Mock-checkout страница === */
.promo-checkout {
  max-width: 520px;
  margin: 24px auto;
  padding: 0 16px;
}
.promo-checkout__card {
  background: #FFFBEE;
  border-radius: 16px;
  padding: 24px 20px 28px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}
.promo-checkout__badge {
  display: inline-block;
  padding: 4px 10px;
  background: #FFD66B;
  color: #6B4500;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.promo-checkout__title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1B743E;
  margin: 0 0 8px;
}
.promo-checkout__lead {
  color: #555;
  margin: 0 0 20px;
  font-size: 0.92rem;
}
.promo-checkout__details {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 16px;
  margin: 0 0 24px;
}
.promo-checkout__details dt {
  color: #888;
  font-weight: 500;
}
.promo-checkout__details dd {
  margin: 0;
  color: #333;
  font-weight: 600;
}
.promo-checkout__price {
  color: #1B743E;
  font-size: 1.2rem;
}
.promo-checkout__rid {
  font-family: monospace;
  font-size: 0.78rem;
  color: #888;
  word-break: break-all;
}
.promo-checkout__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* === Success page === */
.promo-success {
  max-width: 480px;
  margin: 48px auto;
  padding: 0 16px;
  text-align: center;
}
.promo-success__card {
  background: #FFFBEE;
  border-radius: 16px;
  padding: 36px 24px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}
.promo-success__icon {
  font-size: 3.5rem;
  margin-bottom: 12px;
}
.promo-success__title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1B743E;
  margin: 0 0 8px;
}
.promo-success__desc {
  color: #555;
  margin: 0 0 24px;
  font-size: 0.92rem;
}
