/* ===================================================
   ВИДЖЕТ ЭКСПРЕСС-ОЦЕНКИ ПО ФОТО (PDR)
   Файл: wp-content/themes/InStyle/widget-photo-estimate.css
   =================================================== */

.pdr-estimate-wrapper {
  max-width: 1050px;
  width: 100%;
  margin: 20px auto 20px;
  padding: 0 10px;
  box-sizing: border-box;
  clear: both;
}

.pdr-estimate-card {
  background: #ffffff;
  border: 1px solid #dce4ec;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  padding: 32px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  box-sizing: border-box;
}

/* Описание оффера */
.pdr-estimate-text {
  flex: 1 1 60%;
  text-align: left;
}

.pdr-estimate-badge {
  display: inline-block;
  background: #ecfdf5;
  color: #047857;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid #a7f3d0;
  margin-bottom: 12px;
}

.pdr-estimate-title {
  font-size: 24px;
  line-height: 1.3;
  color: #1a4f8b;
  font-weight: 700;
  margin: 0 0 10px 0;
}

.pdr-estimate-desc {
  font-size: 15px;
  line-height: 1.55;
  color: #4b5563;
  margin: 0 0 16px 0;
}

.pdr-estimate-bullets {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.pdr-estimate-bullets li {
  position: relative !important;
  padding-left: 20px !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  color: #1e293b !important;
  margin-bottom: 6px !important;
  list-style: none !important;
}

.pdr-estimate-bullets li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: #1a4f8b;
  font-weight: 700;
}

/* Правая колонка действий */
.pdr-estimate-actions {
  flex: 0 0 240px;
  width: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
}

.pdr-actions-title {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  text-align: center;
  margin: 0;
  width: 100%;
}

.pdr-actions-buttons {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Полная изоляция от стилей темы для ссылок */
a.pdr-btn-base {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 12px 18px !important;
  line-height: 1.2 !important;
  height: auto !important;
  min-height: 44px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  float: none !important;
  clear: both !important;
  border-radius: 8px !important;
  border: none !important;
  outline: none !important;
  text-decoration: none !important;
  font-family: system-ui, -apple-system, sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease !important;
}

/* Фиксируем белый цвет текста, чтобы тема не красила в синий */
a.pdr-btn-base,
a.pdr-btn-base:visited,
a.pdr-btn-base:hover,
a.pdr-btn-base:active,
a.pdr-btn-base span,
a.pdr-btn-base .pdr-btn-text {
  color: #ffffff !important;
  text-decoration: none !important;
}

a.pdr-btn-base:hover {
  transform: translateY(-2px) !important;
  opacity: 0.95 !important;
}

.pdr-btn-svg {
  flex-shrink: 0 !important;
  display: block !important;
  fill: #ffffff !important;
  color: #ffffff !important;
}

/* 1. Кнопка MAX */
a.pdr-btn-max {
  background: linear-gradient(135deg, #00D4FF, #7B68EE, #8B00FF) !important;
  box-shadow: 0 4px 12px rgba(123, 104, 238, 0.35) !important;
}

/* 2. Кнопка WhatsApp */
a.pdr-btn-whatsapp {
  background: #25D366 !important;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35) !important;
}

.pdr-actions-note {
  font-size: 12px;
  color: #64748b;
  text-align: center;
  margin: 0;
  width: 100%;
}

/* Адаптив для мобильных устройств */
@media (max-width: 768px) {
  .pdr-estimate-card {
    flex-direction: column;
    padding: 24px 20px;
    gap: 22px;
  }

  .pdr-estimate-text {
    text-align: center;
  }

  .pdr-estimate-title {
    font-size: 20px;
  }

  .pdr-estimate-desc {
    font-size: 14px;
  }

  .pdr-estimate-bullets {
    text-align: left;
    display: inline-block;
  }

  .pdr-estimate-actions {
    width: 100%;
    flex: 1 1 100%;
  }
}