.wmr-action { margin: 18px 0 20px; clear: both; }
/* Registracijos mygtukas paveldi temos .button.alt stilių, o JS priderina
   jį prie konkretaus puslapyje esančio WooCommerce „Į krepšelį“ mygtuko. */
.wmr-action .wmr-open { cursor: pointer; max-width: 100%; }
.wmr-action .wmr-open:hover { filter: brightness(.94); }
.wmr-submit,
.wmr-done {
  display: inline-block; border: 0; border-radius: 8px; padding: 13px 23px;
  background: #1769aa; color: #fff; font-weight: 650;
  font-size: 15px; line-height: 1.4; cursor: pointer;
  transition: background-color 150ms ease;
}
.wmr-submit:hover,
.wmr-done:hover { background: #104d7e; color: #fff; }
.wmr-action .wmr-open:focus-visible,
.wmr-dialog button:focus-visible,
.wmr-dialog input:focus-visible,
.wmr-dialog textarea:focus-visible { outline: 3px solid #5b9fe1; outline-offset: 2px; }
body.wmr-modal-open { overflow: hidden; }
.wmr-overlay[hidden], .wmr-dialog [hidden] { display: none !important; }
.wmr-overlay { box-sizing: border-box; position: fixed; inset: 0; z-index: 999999;
  display: flex; align-items: center; justify-content: center; padding: 18px;
  background: rgba(14, 24, 38, .66); }
.wmr-overlay *, .wmr-overlay *::before, .wmr-overlay *::after { box-sizing: border-box; }
.wmr-dialog { width: min(100%, 740px); max-height: min(92vh, 980px); overflow: auto;
  background: #fff; border-radius: 14px; color: #1d2939;
  box-shadow: 0 24px 65px rgba(0,0,0,.25); font-size: 15px; line-height: 1.5;
  overscroll-behavior: contain; }
.wmr-dialog h2, .wmr-dialog h3, .wmr-dialog p { color: inherit; }
.wmr-header { position: sticky; top: 0; z-index: 2; background: #fff;
  padding: 22px 28px 16px; display: flex; align-items: flex-start; justify-content: space-between;
  gap: 15px; border-bottom: 1px solid #e4e7ec; }
.wmr-header h2 { font-size: 24px; font-weight: 700; line-height: 1.25; margin: 0 0 5px; }
.wmr-header .wmr-product-title { margin: 0; color: #667085; font-size: 14px; }
.wmr-close { border: 0 !important; background: transparent !important; color: #475467 !important;
  padding: 0 4px !important; font-size: 29px !important; font-weight: 400 !important;
  line-height: 1 !important; cursor: pointer; box-shadow: none !important; }
.wmr-form { padding: 22px 28px 28px; }
.wmr-section-head { margin-bottom: 14px; }
.wmr-section-head h3, .wmr-section h3 { font-size: 17px; line-height: 1.35; margin: 0 0 6px; font-weight: 700; }
.wmr-section-head p { color: #667085; margin: 0; font-size: 13px; }
.wmr-participant { padding: 18px; margin-bottom: 13px; border: 1px solid #e4e7ec;
  background: #fafbfc; border-radius: 10px; }
.wmr-participant-heading { display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; gap: 10px; }
.wmr-participant-heading strong { font-size: 15px; }
.wmr-remove, .wmr-add { background: transparent !important; box-shadow: none !important;
  border: 0 !important; padding: 4px 0 !important; font-size: 14px !important;
  font-weight: 600 !important; color: #1769aa !important; cursor: pointer; }
.wmr-remove { color: #b42318 !important; }
.wmr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.wmr-field { display: block; font-weight: 600;
  font-size: 13px; color: #344054; margin: 0; }
.wmr-field span[aria-hidden] { color: #c13737; }
.wmr-dialog .wmr-field input,
.wmr-dialog .wmr-field textarea { width: 100%; min-width: 0; margin: 0; padding: 10px 12px;
  font-size: 15px; line-height: 1.4; margin-top: 6px; border: 1px solid #cbd5e1; border-radius: 7px;
  box-shadow: none; background: #fff; color: #101828; font-family: inherit; }
.wmr-dialog .wmr-field input { min-height: 44px; }
.wmr-dialog .wmr-field input, .wmr-dialog .wmr-field textarea { margin-top: 6px; }
.wmr-dialog .wmr-field textarea { resize: vertical; }
.wmr-section { border-top: 1px solid #e4e7ec; padding-top: 19px; margin-top: 21px; }
.wmr-checkline { display: flex; align-items: flex-start; gap: 10px; margin: 10px 0;
  color: #344054; font-size: 14px; line-height: 1.5; cursor: pointer; }
.wmr-checkline input { flex: 0 0 auto; width: 17px; height: 17px; margin: 2px 0 0 !important; }
.wmr-contact-fields { border: 0; margin: 17px 0 0; min-width: 0; padding: 0; }
.wmr-privacy { margin: 19px 0 14px; color: #667085 !important; font-size: 12px; }
.wmr-privacy a { margin-left: 5px; }
.wmr-error { color: #a31616 !important; background: #fff1f0; border: 1px solid #fecaca;
  border-radius: 6px; padding: 10px; font-size: 14px; }
.wmr-submit { width: 100%; }
.wmr-submit[disabled] { opacity: .68; cursor: progress; }
.wmr-required { font-size: 12px; color: #667085 !important; text-align: center; margin: 11px 0 0; }
.wmr-success { text-align: center; padding: 46px 28px 52px; }
.wmr-success-icon { height: 60px; width: 60px; border-radius: 50%; background: #e6f6ed;
  color: #137d44; margin: 0 auto 18px; display: flex; align-items: center;
  justify-content: center; font-size: 34px; font-weight: 700; }
.wmr-success h3 { font-size: 25px; font-weight: 700; margin: 0 0 8px; }
.wmr-success p { margin: 0 auto 24px; max-width: 400px; }
.wmr-honeypot { position: absolute !important; left: -99999px !important;
  width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }
@media (max-width: 620px) {
  .wmr-overlay { padding: 8px; align-items: stretch; }
  .wmr-dialog { max-height: 100%; border-radius: 10px; }
  .wmr-header { padding: 18px; }
  .wmr-header h2 { font-size: 20px; }
  .wmr-form { padding: 17px; }
  .wmr-participant { padding: 13px; }
  .wmr-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .wmr-success { padding: 38px 20px; }
}

/* Telefone registracija yra atskiras mygtukas PO pirkimo formos. */
@media (max-width: 767px) {
  .wmr-action { display: block; width: 100%; margin: 12px 0 20px; }
  .wmr-action .wmr-open {
    width: 100% !important;
    max-width: 100%;
    justify-content: center;
    white-space: normal;
  }
}
