/* «Дізнатись ціну»: кнопки, модальне вікно, повні характеристики товару */

/* ─── Кнопка ─── */
.eg-pr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold, #ffbf2f) 0%, var(--gold-deep, #f0b800) 100%);
  color: #09090D;
  font-family: var(--font, 'DM Sans', sans-serif);
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: transform .15s, box-shadow .2s, filter .2s;
  -webkit-tap-highlight-color: transparent;
}
.eg-pr-btn:hover { box-shadow: 0 6px 24px rgba(255, 191, 47, .28); filter: brightness(1.04); color: #09090D; }
.eg-pr-btn:active { transform: scale(.98); }
.eg-pr-btn:focus-visible { outline: 2px solid var(--gold-light, #ffd060); outline-offset: 2px; }
.eg-pr-btn svg { flex-shrink: 0; }

.eg-pr-btn--card { padding: 9px 14px; font-size: 13px; }
.eg-pr-btn--single { flex: 1; min-width: 0; padding: 15px 20px; font-size: 15px; }

.eg-sp-btn-call {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface2);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  transition: border-color .2s, color .2s;
}
.eg-sp-btn-call:hover { border-color: var(--gold); color: var(--gold); }
.eg-sp-btn-tg { padding-left: 16px; padding-right: 16px; }
h2.eg-sp-section-title { margin-top: 0; font-family: var(--font); line-height: 1.3; }
.eg-sp-specs-section { scroll-margin-top: 90px; }
.eg-sp-price-request-note { font-size: 13px; line-height: 1.5; color: var(--muted); margin: 6px 0 0; max-width: 420px; }

/* Фільтр «Ціна» в каталозі не має сенсу, коли ціни приховані */
.eg-sidebar-section:has(.eg-price-form) { display: none; }

/* ─── Модальне вікно ─── */
html.eg-pr-lock { overflow: hidden; }

.eg-pr {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity .18s ease;
}
.eg-pr[hidden],
.eg-pr [hidden] { display: none !important; }
.eg-pr.is-open { opacity: 1; }

.eg-pr__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 9, .74);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.eg-pr__dialog {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 34px 30px 28px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: var(--bg2, #0E0E16);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
  color: var(--text, #F4F4F6);
  font-family: var(--font, 'DM Sans', sans-serif);
  transform: translateY(12px) scale(.98);
  transition: transform .18s ease;
}
.eg-pr.is-open .eg-pr__dialog { transform: none; }

.eg-pr__x {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .05);
  color: var(--muted, rgba(244, 244, 246, .45));
  cursor: pointer;
  transition: background .2s, color .2s;
}
.eg-pr__x:hover { background: rgba(255, 255, 255, .1); color: var(--text, #F4F4F6); }
/* Базові стилі hello-elementor дають кнопкам padding .5rem 1rem — у кружечку
   36px іконці лишалось ~4px, і хрестик ставав крапкою */
.eg-pr__x { padding: 0; }
.eg-pr__x svg { flex-shrink: 0; }

.eg-pr__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold, #ffbf2f);
  background: rgba(255, 191, 47, .08);
  border: 1px solid rgba(255, 191, 47, .24);
}
.eg-pr__badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold, #ffbf2f); }

.eg-pr__title {
  margin: 14px 0 6px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
  color: var(--text, #F4F4F6);
}
.eg-pr__product {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--gold-light, #ffd060);
}
.eg-pr__product:empty { display: none; }
.eg-pr__sub { margin: 0 0 20px; font-size: 14px; line-height: 1.6; color: var(--muted, rgba(244, 244, 246, .45)); }

.eg-pr__form { display: grid; gap: 12px; }
.eg-pr__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.eg-pr__field { display: grid; gap: 6px; }
.eg-pr__field > span { font-size: 12px; font-weight: 600; color: rgba(244, 244, 246, .7); }
.eg-pr__field b { color: var(--gold, #ffbf2f); font-weight: 700; }
.eg-pr__field input,
.eg-pr__field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: var(--surface, #13131F);
  color: var(--text, #F4F4F6);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.4;
  transition: border-color .2s, box-shadow .2s;
}
.eg-pr__field textarea { resize: vertical; min-height: 64px; }
.eg-pr__field input::placeholder,
.eg-pr__field textarea::placeholder { color: rgba(244, 244, 246, .3); }
.eg-pr__field input:focus,
.eg-pr__field textarea:focus {
  outline: none;
  border-color: rgba(255, 191, 47, .6);
  box-shadow: 0 0 0 3px rgba(255, 191, 47, .12);
}
.eg-pr__field input[aria-invalid="true"] { border-color: #ff6b6b; }

.eg-pr__error {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: #ffb4b4;
  background: rgba(255, 90, 90, .08);
  border: 1px solid rgba(255, 90, 90, .25);
}

.eg-pr__submit {
  width: 100%;
  margin-top: 4px;
  padding: 14px 20px;
  border: none;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--gold, #ffbf2f) 0%, var(--gold-deep, #f0b800) 100%);
  color: #09090D;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: box-shadow .2s, transform .15s, opacity .2s;
}
.eg-pr__submit:hover { box-shadow: 0 6px 28px rgba(255, 191, 47, .32); }
.eg-pr__submit:active { transform: scale(.98); }
.eg-pr__submit:disabled { opacity: .6; cursor: progress; }

.eg-pr__alt { margin: 4px 0 0; text-align: center; font-size: 13px; color: var(--muted, rgba(244, 244, 246, .45)); }
.eg-pr__alt a { color: var(--gold, #ffbf2f); font-weight: 700; text-decoration: none; white-space: nowrap; }
.eg-pr__alt a:hover { text-decoration: underline; }

.eg-pr__done { text-align: center; padding-top: 8px; }
.eg-pr__ok {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  color: #2ecc71;
  background: rgba(46, 204, 113, .1);
  border: 1px solid rgba(46, 204, 113, .3);
}

/* ─── Повні характеристики на сторінці товару ─── */
.eg-sp-specs {
  columns: 2 380px;
  column-gap: 20px;
}
.eg-sp-specs-group {
  break-inside: avoid;
  margin: 0 0 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
}
.eg-sp-specs-h {
  margin: 0;
  padding: 14px 16px 10px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--gold);
}
.eg-sp-specs-list { margin: 0; }
.eg-sp-specs-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  padding: 9px 16px;
  border-top: 1px solid var(--border);
}
.eg-sp-specs-row dt { font-size: 13px; line-height: 1.45; color: var(--muted); }
.eg-sp-specs-row dd { margin: 0; font-size: 13px; line-height: 1.45; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.eg-sp-specs-note { margin: 0; font-size: 12px; line-height: 1.6; color: var(--muted); }

@media (max-width: 620px) {
  .eg-pr { align-items: flex-end; padding: 0; }
  .eg-pr__dialog { max-width: none; max-height: 92vh; border-radius: 20px 20px 0 0; padding: 30px 20px 22px; }
  .eg-pr__title { font-size: 23px; }
  .eg-sp-buttons { flex-wrap: wrap; }
  .eg-pr-btn--single { flex-basis: 100%; }
  .eg-sp-btn-call { flex: 1; }
  .eg-sp-btn-tg { flex: 0 0 auto; }
}
@media (max-width: 480px) {
  .eg-sp-specs-row { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .eg-pr, .eg-pr__dialog { transition: none; }
  .eg-pr-btn:active, .eg-pr__submit:active { transform: none; }
}
