/**
 * Zapytania o produkt — przycisk i okno.
 * Przycisk wygląda jak „Dodaj do koszyka” w szablonie Optima.
 *
 * @author    Mariusz
 * @license   AFL-3.0
 */
.hlinq { display: block; width: 100%; clear: both; margin: 0 0 12px; }

.hlinq .hlinq-btn,
.hlinq-modal .hlinq-btn,
.hlinq-modal .hlinq-submit {
  position: relative;
  box-shadow: none;
  width: 100%;
  height: 3rem;
  overflow: hidden;
  background: #fff;
  color: #323232;
  border: 1px solid #323232;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 22.5px;
  cursor: pointer;
  transition: all 200ms linear;
}
.hlinq .hlinq-btn:hover,
.hlinq .hlinq-btn:focus,
.hlinq-modal .hlinq-btn:hover,
.hlinq-modal .hlinq-submit:hover,
.hlinq-modal .hlinq-submit:focus {
  border-color: var(--maincolor, #323232);
  background: var(--maincolor, #323232);
  color: #fff;
}
.hlinq .hlinq-btn .material-icons { font-size: 18px; margin: 0; line-height: 1; }

/* Okno */
html.hlinq-lock, html.hlinq-lock body { overflow: hidden; }
.hlinq-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.hlinq-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); }
.hlinq-dialog {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .25);
  color: #323232;
  text-align: left;
}
.hlinq-body { padding: 28px 28px 24px; }
.hlinq-x {
  position: absolute; top: 8px; right: 10px;
  width: 36px; height: 36px; border: 0; background: transparent;
  font-size: 28px; line-height: 1; color: #777; cursor: pointer;
}
.hlinq-x:hover { color: #000; }
.hlinq-title { margin: 0 32px 8px 0; font-size: 22px; font-weight: 700; text-transform: none; }
.hlinq-lead { margin: 0 0 12px; font-size: 14px; color: #555; }
.hlinq-product { margin: 0 0 16px; padding: 8px 12px; background: #f6f6f6; border-radius: 4px; font-size: 13px; }
.hlinq-product span { color: #777; }

.hlinq-form { margin: 0; }
.hlinq-row { display: flex; gap: 12px; }
.hlinq-row .hlinq-field { flex: 1 1 0; min-width: 0; }
.hlinq-field { margin-bottom: 12px; }
.hlinq-modal label { text-align: left; float: none; width: auto; padding: 0; }
.hlinq-field > label { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 600; color: #323232; }
.hlinq-req { color: #c0392b; }
.hlinq-field input[type="text"],
.hlinq-field input[type="email"],
.hlinq-field input[type="tel"],
.hlinq-field textarea {
  display: block; width: 100%; box-sizing: border-box;
  padding: 10px 12px; border: 1px solid #d0d0d0; border-radius: 3px;
  background: #fff; color: #323232; font-size: 15px; font-family: inherit;
}
.hlinq-field textarea { resize: vertical; min-height: 96px; }
.hlinq-field input:focus, .hlinq-field textarea:focus { outline: none; border-color: #323232; }
.hlinq-invalid input, .hlinq-invalid textarea { border-color: #c0392b; }
.hlinq-err { display: block; min-height: 0; margin-top: 3px; font-size: 12px; color: #c0392b; }
.hlinq-err:empty { display: none; }

.hlinq-modal .hlinq-consent label { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; font-size: 12px; line-height: 1.45; color: #555; cursor: pointer; }
.hlinq-consent input { flex: 0 0 auto; margin: 2px 0 0; width: 16px; height: 16px; }
.hlinq-consent a { text-decoration: underline; }

.hlinq-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.hlinq-alert { margin: 0 0 12px; padding: 8px 12px; border-radius: 3px; background: #fdecea; color: #a93226; font-size: 13px; }
.hlinq-submit.hlinq-loading { opacity: .6; pointer-events: none; }

.hlinq-done { text-align: center; padding: 8px 0 0; }
.hlinq-done-icon { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; background: #2e9e5b; color: #fff; font-size: 30px; line-height: 56px; }
.hlinq-done p { font-size: 15px; margin: 0 0 18px; }

.hlinq-modal [hidden] { display: none !important; }

@media (max-width: 575px) {
  .hlinq-modal { padding: 0; align-items: flex-end; }
  .hlinq-dialog { max-width: none; max-height: 92vh; border-radius: 10px 10px 0 0; }
  .hlinq-body { padding: 22px 16px 18px; }
  .hlinq-row { display: block; }
}
