.pqr-menu-link {
  display: inline-block;
  padding: 10px 12px;
  white-space: nowrap;
}

.pqr-main-menu-item {
  display: inline-flex;
  align-items: center;
}

.pqr-footer-menu-link {
  display: inline-block;
  padding: 6px 0;
}

.pqr-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 11000;
}

.pqr-modal.is-open {
  display: grid;
  place-items: center;
  padding: 16px;
}

.pqr-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, .65);
}

.pqr-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 620px);
  max-height: min(90vh, 850px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 28px;
  border-radius: 10px;
  background: #fff;
  color: #222;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .25);
}

.pqr-modal__dialog h2 {
  margin: 0;
  margin-inline-end: 40px;
  margin-bottom: 8px;
}

.pqr-modal__close {
  position: absolute;
  top: 12px;
  inset-inline-end: 14px;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 30px;
  line-height: 1;
}

.pqr-modal__intro {
  margin-bottom: 16px;
}

.pqr-intro {
  color: var(--pqr-intro-color, #333);
}

.pqr-modal__product {
  display: grid;
  gap: 4px;
  margin-bottom: 16px;
  padding: 12px;
  border-inline-start: 4px solid #ed1c24;
  background: #f5f6f8;
}

.pqr-feedback {
  display: none;
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 4px;
}

.pqr-feedback.is-success,
.pqr-feedback.is-error {
  display: block;
}

.pqr-feedback.is-success {
  background: #e8f5e9;
  color: #1b5e20;
}

.pqr-feedback.is-error {
  background: #ffebee;
  color: #b71c1c;
}

.pqr-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 13px;
}

.lang-rtl .pqr-page,
.lang-rtl .pqr-page *,
.lang-rtl .pqr-modal,
.lang-rtl .pqr-modal * {
  direction: rtl !important;
}

.pqr-form__field {
  display: grid;
  grid-template-columns: minmax(120px, 25%) minmax(0, 1fr);
  align-items: center;
  column-gap: 16px;
  row-gap: 5px;
  margin: 0;
}

.pqr-form__field > span {
  text-align: start;
  font-weight: 600;
}

.pqr-form__field--top {
  align-items: start;
}

.pqr-form__field--top > span {
  padding-top: 10px;
}

.pqr-form input:not([type="checkbox"]),
.pqr-form textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #c9ced6;
  border-radius: 4px;
  background: #fff;
  color: #222;
}

.pqr-form input[type="file"] {
  min-height: 44px;
  height: auto;
  padding: 8px;
}

.pqr-form input[name="product_reference"],
.pqr-form input[name="customer_email"],
.pqr-form input[name="customer_phone"],
.pqr-form input[name="quantity"] {
  direction: ltr !important;
  text-align: left;
}

.pqr-form textarea {
  min-height: 100px;
  resize: vertical;
}

.pqr-form small {
  grid-column: 2;
  color: #555;
}

.pqr-form__consent {
  display: flex;
  align-items: start;
  justify-self: start;
  max-width: 100%;
  gap: 9px;
}

.pqr-form__consent > span {
  text-align: start;
}

.pqr-form__consent input {
  flex: 0 0 auto;
  margin: 4px 0 0;
}

.pqr-form__consent {
  grid-column: 1;
}

.pqr-form__submit {
  min-height: 44px;
  grid-column: 1;
  justify-self: start;
}

.pqr-form input:not([type="checkbox"]):focus-visible,
.pqr-form textarea:focus-visible {
  border-color: #b50909;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(181, 9, 9, .14);
}

.pqr-page[dir="rtl"] .pqr-form__field,
.pqr-modal[dir="rtl"] .pqr-form__field {
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  row-gap: 8px;
}

.pqr-page[dir="rtl"] .pqr-form__field > span,
.pqr-modal[dir="rtl"] .pqr-form__field > span {
  text-align: right;
  line-height: 1.7;
}

.pqr-page[dir="rtl"] .pqr-form__field--top > span,
.pqr-modal[dir="rtl"] .pqr-form__field--top > span {
  padding-top: 0;
}

.pqr-page[dir="rtl"] .pqr-form input[name="product_name"],
.pqr-page[dir="rtl"] .pqr-form input[name="customer_name"],
.pqr-page[dir="rtl"] .pqr-form input[name="customer_company"],
.pqr-page[dir="rtl"] .pqr-form textarea[name="customer_message"],
.pqr-modal[dir="rtl"] .pqr-form input[name="customer_name"],
.pqr-modal[dir="rtl"] .pqr-form input[name="customer_company"],
.pqr-modal[dir="rtl"] .pqr-form textarea[name="customer_message"] {
  direction: rtl;
  text-align: right;
}

.pqr-page[dir="rtl"] .pqr-form small,
.pqr-modal[dir="rtl"] .pqr-form small,
.pqr-page[dir="rtl"] .pqr-feedback,
.pqr-modal[dir="rtl"] .pqr-feedback {
  grid-column: 1;
  direction: rtl;
  text-align: right;
  line-height: 1.7;
}

.pqr-page[dir="rtl"] .pqr-form__consent,
.pqr-modal[dir="rtl"] .pqr-form__consent {
  justify-self: stretch;
}

.pqr-page[dir="rtl"] .pqr-form__consent > span,
.pqr-modal[dir="rtl"] .pqr-form__consent > span {
  line-height: 1.7;
}

.pqr-page[dir="rtl"] .pqr-form__consent input,
.pqr-modal[dir="rtl"] .pqr-form__consent input {
  accent-color: #b50909;
}

.pqr-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

body.pqr-modal-open {
  overflow: hidden;
}

@media (max-width: 575px) {
  .pqr-modal.is-open {
    padding: 8px;
  }

  .pqr-modal__dialog {
    max-height: 94vh;
    padding: 22px 16px 16px;
    -webkit-overflow-scrolling: touch;
  }

  .pqr-form__field {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
  }

  .pqr-form__field > span {
    text-align: start;
  }

  .pqr-form__field--top > span {
    padding-top: 0;
  }

  .pqr-form__submit {
    width: 100%;
    justify-self: stretch;
  }

  .pqr-form small,
  .pqr-form__consent,
  .pqr-form__submit {
    grid-column: 1;
  }
}
