/**
 * Pixel Diagnostics - front.
 * Kolory i rozmiary tekstu ustawione jawnie na elementach modułu:
 * globalna reguła `p` w hummingbird nadpisuje dziedziczenie.
 */

.pxd-footer {
  text-align: center;
  padding: 0.5rem 0;
}

/* Stopka kasy: copyright po lewej, link po prawej w jednej linii (na wąskim ekranie link zawija się pod spód). */
.checkout-footer .footer-copyrights__wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: 1rem;
}

.checkout-footer .footer-copyrights__wrapper .footer-copyrights p {
  margin-bottom: 0;
}

.checkout-footer .footer-copyrights__wrapper .pxd-footer {
  padding: 0;
  text-align: right;
}

.pxd-footer__link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 0.8125rem;
  color: inherit;
  opacity: 0.75;
  text-decoration: underline;
  cursor: pointer;
}

.pxd-footer__link:hover,
.pxd-footer__link:focus {
  opacity: 1;
}

.pxd-btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid #1d1d1b;
  border-radius: 4px;
  background: #fff;
  color: #1d1d1b;
  font-size: 0.875rem;
  line-height: 1.3;
  cursor: pointer;
}

.pxd-btn--primary {
  background: #1d1d1b;
  color: #fff;
}

.pxd-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* Pasek ratunkowy przy zawieszonej kasie */
.pxd-rescue {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 100000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  max-width: 760px;
  margin: 0 auto;
  padding: 1rem 2.5rem 1rem 1rem;
  background: #fff8e1;
  border: 1px solid #f0c36d;
  border-radius: 6px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
  color: #1d1d1b;
  font-size: 0.875rem;
  line-height: 1.4;
}

.pxd-rescue__text {
  flex: 1 1 280px;
  color: #1d1d1b;
  font-size: 0.875rem;
}

.pxd-rescue__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pxd-rescue__close {
  position: absolute;
  top: 0.35rem;
  right: 0.5rem;
  border: 0;
  background: none;
  font-size: 1.4rem;
  line-height: 1;
  color: #1d1d1b;
  cursor: pointer;
}

/* Okno zgłoszenia */
.pxd-dialog {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 100001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.5);
}

.pxd-dialog__box {
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding: 1.5rem;
  background: #fff;
  border-radius: 8px;
  color: #1d1d1b;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.pxd-dialog__title {
  margin: 0 0 0.75rem;
  color: #1d1d1b;
  font-size: 1.25rem;
  line-height: 1.3;
}

.pxd-dialog__box p,
.pxd-dialog__intro {
  margin: 0 0 0.75rem;
  color: #1d1d1b;
  font-size: 0.875rem;
  line-height: 1.45;
}

.pxd-dialog__label {
  display: block;
  margin-bottom: 0.35rem;
  color: #1d1d1b;
  font-size: 0.875rem;
  font-weight: 600;
}

.pxd-dialog__textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.5rem;
  border: 1px solid #c4c4c4;
  border-radius: 4px;
  color: #1d1d1b;
  font-size: 0.9375rem;
  font-family: inherit;
  resize: vertical;
}

.pxd-dialog__result {
  margin-top: 0.75rem;
}

.pxd-dialog__box .pxd-dialog__thanks {
  font-weight: 600;
}


.pxd-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.pxd-dialog__consent {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0.75rem;
  color: #1d1d1b;
  font-size: 0.8125rem;
  line-height: 1.4;
  cursor: pointer;
}

.pxd-dialog__consent input {
  flex: 0 0 auto;
  margin-top: 0.15rem;
}

/* Pole-pułapka na boty - poza ekranem, nie display:none (część botów to pomija) */
.pxd-dialog__hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
}
