.pf-productleasing[hidden] {
  display: none !important;
}

.pf-productleasing {
  margin-top: 14px;
  margin-bottom: 16px;
  clear: both;
}

.pf-productleasing-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding-left: 22px;
  padding-right: 22px;
  white-space: normal;
  text-align: center;
}

.pf-productleasing-button[disabled] {
  opacity: 0.75;
  cursor: wait;
}

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

.pf-productleasing-modal {
  position: fixed;
  z-index: 99999;
  inset: 0;
}

.pf-productleasing-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.pf-productleasing-modal-box {
  position: relative;
  width: min(520px, calc(100% - 32px));
  margin: 12vh auto 0;
  padding: 26px 28px 24px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 12px 42px rgba(0, 0, 0, 0.25);
  text-align: left;
}

.pf-productleasing-modal-title {
  margin: 0 36px 12px 0;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.25;
}

.pf-productleasing-modal-message {
  font-size: 15px;
  line-height: 1.5;
}

.pf-productleasing-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  font-size: 30px;
  line-height: 30px;
  cursor: pointer;
}

.pf-productleasing-modal-ok {
  margin-top: 18px;
}

.pf-productleasing-modal-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  .pf-productleasing {
    margin-top: 12px;
  }

  .pf-productleasing-button {
    width: 100%;
  }

  .pf-productleasing-modal-box {
    margin-top: 8vh;
    padding: 22px 20px 20px;
  }
}

/* PF_ProductLeasing — pozycja obok ceny */
.pf-productleasing-price-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.pf-productleasing-price-row .pf-productleasing,
.pf-productleasing-next-to-price {
  margin: 0;
  clear: none;
}

.pf-productleasing-price-row .current-price,
.pf-productleasing-price-row .product-price,
.pf-productleasing-price-row .price {
  margin-bottom: 0;
}

.pf-productleasing-button,
.pf-productleasing-button.btn,
.pf-productleasing-button.btn-primary {
  background: #0074c8;
  border-color: #0074c8;
  color: #fff;
}

.pf-productleasing-button:hover,
.pf-productleasing-button:focus,
.pf-productleasing-button.btn:hover,
.pf-productleasing-button.btn:focus,
.pf-productleasing-button.btn-primary:hover,
.pf-productleasing-button.btn-primary:focus {
  background: #005f9f;
  border-color: #005f9f;
  color: #fff;
}

@media (max-width: 767px) {
  .pf-productleasing-price-row {
    display: block;
  }

  .pf-productleasing-price-row .pf-productleasing {
    margin-top: 10px;
  }
}

/* PF_ProductLeasing — guzik w linii leasingowej */
.pf-special-leasing-line {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pf-special-leasing-line .pf-productleasing,
.pf-productleasing-in-special-line {
  display: inline-flex;
  align-items: center;
  margin: 0 0 0 10px;
  clear: none;
  vertical-align: middle;
}

.pf-special-leasing-line .pf-productleasing-button,
.pf-productleasing-in-special-line .pf-productleasing-button,
.pf-productleasing-in-special-line .pf-productleasing-button.btn,
.pf-productleasing-in-special-line .pf-productleasing-button.btn-primary {
  min-height: 26px;
  padding: 4px 10px;
  font-size: 11px;
  line-height: 1.2;
  background: #0074c8;
  border-color: #0074c8;
  color: #fff;
  border-radius: 3px;
}

.pf-special-leasing-line .pf-productleasing-button:hover,
.pf-special-leasing-line .pf-productleasing-button:focus,
.pf-productleasing-in-special-line .pf-productleasing-button:hover,
.pf-productleasing-in-special-line .pf-productleasing-button:focus,
.pf-productleasing-in-special-line .pf-productleasing-button.btn:hover,
.pf-productleasing-in-special-line .pf-productleasing-button.btn:focus,
.pf-productleasing-in-special-line .pf-productleasing-button.btn-primary:hover,
.pf-productleasing-in-special-line .pf-productleasing-button.btn-primary:focus {
  background: #005f9f;
  border-color: #005f9f;
  color: #fff;
}

@media (max-width: 767px) {
  .pf-special-leasing-line {
    display: block;
  }

  .pf-special-leasing-line .pf-productleasing,
  .pf-productleasing-in-special-line {
    display: flex;
    margin: 8px 0 0;
  }

  .pf-special-leasing-line .pf-productleasing-button,
  .pf-productleasing-in-special-line .pf-productleasing-button {
    width: auto;
  }
}

/* PF_ProductLeasing — finalizacja akcji AJAX */
.pf-productleasing-button {
  cursor: pointer;
}

.pf-productleasing-button[disabled] {
  opacity: 0.75;
  cursor: wait;
}

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

.pf-productleasing-modal {
  position: fixed;
  z-index: 99999;
  inset: 0;
}

.pf-productleasing-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.pf-productleasing-modal-box {
  position: relative;
  width: min(520px, calc(100% - 32px));
  margin: 12vh auto 0;
  padding: 26px 28px 24px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 12px 42px rgba(0, 0, 0, 0.25);
  text-align: left;
}

.pf-productleasing-modal-title {
  margin: 0 36px 12px 0;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.25;
}

.pf-productleasing-modal-message {
  font-size: 15px;
  line-height: 1.5;
}

.pf-productleasing-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  font-size: 30px;
  line-height: 30px;
  cursor: pointer;
}

.pf-productleasing-modal-ok {
  margin-top: 18px;
}

.pf-productleasing-modal-open {
  overflow: hidden;
}
