/* Oprawione.pl - kalkulator produktu 5027. Wyglad wzorowany na wersji /2026/. */
@font-face {
  font-family: 'Maven Pro';
  src: url('fonts/maven-pro-variable.ttf') format('truetype');
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}

.psm-info-tooltip {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px;
  width: 22px !important;
  min-width: 22px !important;
  height: 22px !important;
  min-height: 22px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: #3f6ee8 !important;
  color: #fff !important;
  font: italic 700 16px/1 Georgia, serif !important;
  text-transform: none !important;
  box-shadow: none !important;
  cursor: pointer;
  touch-action: manipulation;
}

.psm-info-tooltip::before {
  content: '';
  position: absolute;
  inset: -11px;
}

.psm-info-tooltip:focus-visible {
  outline: 2px solid #3f6ee8;
  outline-offset: 3px;
}

.psm-info-tooltip-bubble {
  position: fixed;
  z-index: 100000;
  box-sizing: border-box;
  width: max-content;
  max-width: min(360px, calc(100vw - 24px));
  padding: 12px;
  border-radius: 5px;
  background: #333;
  color: #fff;
  font: 400 14px/1.5 Arial, sans-serif;
  text-align: left;
  overflow-wrap: anywhere;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
}

.psm-info-tooltip-bubble[hidden] {
  display: none !important;
}

body.single-product.postid-5027 .summary > .price,
body.single-product.postid-5027 form.cart > .quantity,
body.single-product.postid-5027 form.cart > .single_add_to_cart_button,
body.single-product.postid-5027 form.cart .single_add_to_cart_button:not(#psm-rysunki-submit) {
  display: none !important;
}

/* Uklad produktu 5027:
   najpierw pasek 'Dodaj do zamowienia', potem H1 + opis na cala szerokosc,
   a nizej galeria po lewej i kalkulator po prawej. */
body.single-product.postid-5027 div.product {
  flex-wrap: wrap;
}

body.single-product.postid-5027 .summary.entry-summary > .product_title,
body.single-product.postid-5027 .summary.entry-summary > .woocommerce-product-details__short-description {
  display: none !important;
}

body.single-product.postid-5027 .psm-rysunki-product-header {
  display: block !important;
  float: none !important;
  clear: both !important;
  width: 100% !important;
  flex: 0 0 100%;
  max-width: 100% !important;
  margin: 0 auto 9px;
  padding: 17px 18px 5px;
  text-align: center;
  background: #fff !important;
}

body.single-product.postid-5027 .woocommerce-product-gallery,
body.single-product.postid-5027 .summary.entry-summary {
  margin-top: 0 !important;
  align-self: flex-start;
}

body.single-product.postid-5027 .summary.entry-summary form.cart {
  margin-top: 0 !important;
}

.psm-rysunki {
  --psm-blue: #2563eb;
  --psm-border: #dfe3eb;
  --psm-light: #f7f9fc;
  color: #1b263b;
  margin: 0 0 22px;
  font-family: inherit;
  font-size: inherit;
  line-height: 1.5;
}

.psm-rysunki,
.psm-rysunki * {
  box-sizing: border-box;
}

#psm-rysunki-refresh[hidden] {
  display: none !important;
}

.psm-rysunki button,
.psm-rysunki input,
.psm-rysunki textarea,
.psm-rysunki select {
  font: inherit;
}

/* Maven Pro Semibold tylko dla naglowka produktu 5027. */
.psm-rysunki__title {
  font-family: 'Maven Pro', sans-serif !important;
  font-weight: 600 !important;
  margin: 0 0 6px !important;
  text-align: center;
}

.psm-rysunki__title-blue {
  color: #3f6ee8;
}

.psm-rysunki__title-black {
  color: #222;
}

.psm-rysunki__intro {
  max-width: 930px;
  margin: 0 auto;
  color: #222;
  text-align: center;
  line-height: 1.35;
}

.psm-rysunki__intro p,
.psm-rysunki__intro ul {
  margin: 0 0 12px;
}

.psm-rysunki__intro .psm-rysunki__intro-notice {
  color: var(--e-global-color-primary, #3f6ee8);
  font-weight: 700;
}

.psm-rysunki__intro > :last-child {
  margin-bottom: 0;
}

.psm-rysunki__intro ul {
  padding-left: 1.25em;
  text-align: left;
  list-style: disc;
}

.psm-rysunki__intro li + li {
  margin-top: 8px;
}

.psm-rysunki__card {
  border: 1px solid #222;
  background: #fff;
  border-radius: 13px;
  padding: 20px;
  margin: 0 0 16px;
  box-shadow: 0 2px 8px rgba(16, 24, 40, .035);
}

.psm-rysunki__card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -20px -20px 20px;
  padding: 12px 16px;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(135deg, #333, #292929);
}

.psm-rysunki__card-head h3 {
  margin: 0;
  font-size: 19px;
  color: #fff;
  font-weight: 700;
}

.psm-rysunki__copies-card {
  margin-top: 20px;
  border: 1px solid #222;
  border-radius: 10px;
  background: #fff;
}

.psm-rysunki__copies-heading {
  margin: 0 !important;
  padding: 12px 16px;
  border-radius: 9px 9px 0 0;
  background: #333;
  color: #fff !important;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
}

.psm-rysunki__copies-content {
  min-width: 0;
  padding: 16px;
}

.psm-rysunki__copy-price {
  margin: 0 0 18px;
  font-weight: 600;
}

.psm-rysunki__copy-price strong {
  color: #3f6ee8;
}

.psm-rysunki__field-hint {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.5;
  color: #475569;
}

.psm-rysunki__advice {
  margin: 10px 0 16px;
  padding: 10px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #f5f6ff;
  color: #334155;
  font-size: 13px;
  line-height: 1.5;
}

.psm-rysunki__copies-total {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 20px;
}

.psm-rysunki__copies-total strong {
  color: #15803d;
  font-size: 22px;
}

.psm-rysunki .psm-rysunki__notes {
  display: block;
  box-sizing: border-box;
  width: 100% !important;
  min-height: 110px;
  margin: 0 0 24px;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: #111827;
  font-size: 16px;
  line-height: 1.5;
  resize: vertical;
}

/* Rodzaj wydruku jest niezalezny dla kazdego rysunku. */
.psm-rysunki__print-type {
  min-width: 0;
  margin: 0 0 28px;
  padding: 0;
  border: 0;
}

.psm-rysunki__print-type legend {
  float: none;
  width: 100%;
  margin: 0 0 12px;
  padding: 0;
  color: #1b263b;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

.psm-rysunki__print-type-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.psm-rysunki__print-type-options button {
  min-width: 0 !important;
  min-height: 46px;
  margin: 0 !important;
  padding: 12px 8px !important;
  border: 2px solid #dfe3eb !important;
  border-radius: 8px !important;
  background: #f5f7fa !important;
  color: #475569 !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  white-space: normal;
  cursor: pointer;
}

.psm-rysunki__print-type-options button.is-selected {
  border-color: var(--psm-blue) !important;
  background: #eff6ff !important;
  color: var(--psm-blue) !important;
}

/* Maly przycisk Usun jak w wersji 2026. Przy jednym rysunku JS go w ogole nie generuje. */
.psm-rysunki__remove {
  font-size: 13px !important;
  line-height: 1.2 !important;
  padding: 5px 9px !important;
  color: #fff !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 5px !important;
  text-decoration: none !important;
  cursor: pointer;
}

.psm-rysunki__remove:hover {
  background: rgba(255, 255, 255, .15) !important;
}

.psm-rysunki__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0 0 16px;
  border-radius: 9px;
  gap: 5px;
  padding: 4px;
  background: #f0f3f8;
}

.psm-rysunki__tabs button {
  border: 1px solid transparent !important;
  border-radius: 7px !important;
  padding: 12px 8px !important;
  background: transparent !important;
  color: #334155 !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
}

.psm-rysunki__tabs button.is-selected {
  background: #fff !important;
  color: #1d4ed8 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
}

.psm-rysunki__formats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 4px 0 16px;
}

.psm-rysunki__widths {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 8px 0 16px;
}

.psm-rysunki__tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 55px;
  gap: 4px;
  border: 1px solid var(--psm-border) !important;
  border-radius: 9px !important;
  padding: 13px 10px !important;
  color: #1b263b !important;
  background: #fff !important;
  text-align: center;
  line-height: 1.3 !important;
}

.psm-rysunki__tile strong {
  font-size: 17px;
}

.psm-rysunki__tile small {
  font-size: 12px;
  color: #64748b;
}

.psm-rysunki__tile:hover {
  border-color: #93c5fd !important;
}

.psm-rysunki__tile.is-selected {
  border: 2px solid var(--psm-blue) !important;
  background: #eff6ff !important;
}

.psm-rysunki__label {
  display: block;
  font-weight: 700;
  margin: 12px 0 8px;
  color: #334155;
}

.psm-rysunki .psm-rysunki__input {
  display: block;
  width: 100% !important;
  height: 44px !important;
  padding: 8px 12px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #111827 !important;
  font-size: 16px !important;
  text-align: center;
}

.psm-rysunki__length {
  max-width: 250px;
}

/* Wspolny licznik egzemplarzy prac i kompletow rysunkow, desktop i mobile. */
.psm-quantity-control {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 8px;
  width: 250px;
  max-width: 100%;
  box-sizing: border-box;
}

.psm-quantity-control > button,
.psm-quantity-control > input[type="number"] {
  box-sizing: border-box;
  width: 100% !important;
  min-width: 0 !important;
  height: 44px !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 0 6px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #1f2937 !important;
  font: inherit;
  font-size: 16px !important;
  line-height: 1.2 !important;
  text-align: center;
  box-shadow: none !important;
}

.psm-quantity-control > button {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600 !important;
  cursor: pointer;
  touch-action: manipulation;
}

.psm-quantity-control > button:hover {
  border-color: #3f6ee8 !important;
  background: #f8faff !important;
}

.psm-quantity-control > button:disabled {
  opacity: .6;
  cursor: wait;
}

.psm-quantity-control > input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.psm-quantity-control > input::-webkit-inner-spin-button,
.psm-quantity-control > input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.psm-quantity-control > button:focus-visible,
.psm-quantity-control > input:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 2px;
}

/* Liczba sztuk w jednym rysunku. */
.psm-rysunki__counter {
  display: flex;
  max-width: 250px;
  gap: 8px;
  align-items: stretch;
}

.psm-rysunki__counter button {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 46px;
  height: 44px;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  padding: 0 !important;
  background: #fff !important;
  color: #1f2937 !important;
  font-size: 22px !important;
  line-height: 1 !important;
}

.psm-rysunki__counter button:hover {
  background: #f1f5f9 !important;
}

.psm-rysunki__counter input {
  flex: 1;
  min-width: 70px;
}

.psm-rysunki__prices {
  background: var(--psm-light);
  border-radius: 9px;
  padding: 14px 15px;
  margin-top: 19px;
}

.psm-rysunki__prices > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 0;
}

.psm-rysunki__prices span {
  color: #64748b;
}

.psm-rysunki__prices strong {
  white-space: nowrap;
}

.psm-rysunki__prices .psm-rysunki__green {
  color: #16803c;
  font-size: 20px;
}

/* Dodaj kolejny rysunek - bialy, obrysowany jak w 2026. */
.psm-rysunki .psm-rysunki__dodaj {
  display: block !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
  border: 1px solid var(--psm-blue) !important;
  border-radius: 9px !important;
  background: #fff !important;
  padding: 13px !important;
  color: #1d4ed8 !important;
  font-weight: 700 !important;
  margin: 0 0 18px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.psm-rysunki .psm-rysunki__dodaj:hover {
  background: #eff6ff !important;
}

/* Podsumowanie jak w 2026 - kazdy rysunek osobno. */
.psm-rysunki__summary {
  border-radius: 12px;
  background: #f1faf4;
  border: 1px solid #d8eedf;
  padding: 19px;
  margin: 0;
}

.psm-rysunki__summary h3 {
  font-size: 18px;
  margin: 0 0 15px;
  color: #1b263b;
}

.psm-rysunki__summary-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #deebdf;
}

.psm-rysunki__summary-row > span {
  flex: 1;
  overflow-wrap: anywhere;
}

.psm-rysunki__summary-row small {
  display: block;
  color: #64748b;
  margin-top: 3px;
}

.psm-rysunki__summary-row > strong {
  flex: 0 0 auto;
  white-space: nowrap;
}

.psm-rysunki__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 16px;
  font-weight: 700;
}

.psm-rysunki__total strong {
  font-size: 29px;
  color: #15803d;
  white-space: nowrap;
}

.psm-rysunki__error {
  color: #b42318;
  font-weight: 700;
  margin: 12px 0;
}

/* Krotki przycisk Dodaj do koszyka. */
.psm-rysunki .psm-rysunki__submit {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-width: 150px;
  min-height: 42px;
  margin: 0 !important;
  padding: 10px 18px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #3f6ee8 !important;
  color: #fff !important;
  font-weight: 600 !important;
  cursor: pointer;
}

.psm-rysunki .psm-rysunki__submit:hover {
  background: #315fd6 !important;
}

.psm-rysunki .psm-rysunki__submit:disabled {
  opacity: .6;
  cursor: wait;
}

.psm-rysunki__footnote {
  color: #64748b;
  line-height: 1.5;
  margin: 12px 0 0;
}

.psm-rysunki button:focus-visible,
.psm-rysunki textarea:focus-visible,
.psm-rysunki input:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 2px;
}

@media (max-width: 600px) {
  .psm-rysunki__card {
    padding: 15px;
  }

  .psm-rysunki__card-head {
    margin: -15px -15px 20px;
    padding: 12px 15px;
  }

  .psm-rysunki__widths {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .psm-rysunki__total strong {
    font-size: 23px;
  }

  .psm-rysunki__summary-row {
    font-size: .9em;
  }
}


/* Drobne dopasowanie v3: wszystkie kafelki formatów mają identyczny wymiar. */
.psm-rysunki__formats .psm-rysunki__tile {
  width: 100% !important;
  height: 72px !important;
  min-height: 72px !important;
  padding: 8px 10px !important;
}

/* Przycisk koszyka w stylu pozostałych produktów; lekko odsunięty od podsumowania. */
.psm-rysunki .psm-rysunki__submit {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 42px !important;
  margin: 10px 0 0 0 !important;
  padding: 10px 18px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--e-global-color-primary, #3f6ee8) !important;
  color: #fff !important;
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  cursor: pointer !important;
}

.psm-rysunki .psm-rysunki__submit i {
  color: inherit !important;
  font-size: .95em !important;
}

/* v4 - wymuszenie identycznych obwódek i wymiarów kafelków A3/A2/A1/A0. */
.psm-rysunki__formats {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-auto-rows: 72px !important;
  align-items: stretch !important;
}

.psm-rysunki__formats .psm-rysunki__tile {
  appearance: none !important;
  -webkit-appearance: none !important;
  display: flex !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 72px !important;
  min-height: 72px !important;
  max-height: 72px !important;
  margin: 0 !important;
  padding: 8px 10px !important;
  align-self: stretch !important;
  box-sizing: border-box !important;
  border: 2px solid #dfe3eb !important;
  border-radius: 9px !important;
  box-shadow: none !important;
  transform: none !important;
}

.psm-rysunki__formats .psm-rysunki__tile:hover {
  border-color: #93c5fd !important;
}

.psm-rysunki__formats .psm-rysunki__tile.is-selected {
  border-color: var(--psm-blue) !important;
  background: #eff6ff !important;
}


/* v5 - identyczne obwodki i wymiary przyciskow szerokosci 297/420/594/841/914 mm. */
.psm-rysunki__widths {
  grid-auto-rows: 52px !important;
  align-items: stretch !important;
}

.psm-rysunki__widths .psm-rysunki__tile {
  appearance: none !important;
  -webkit-appearance: none !important;
  display: flex !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 52px !important;
  min-height: 52px !important;
  max-height: 52px !important;
  margin: 0 !important;
  padding: 8px 10px !important;
  align-self: stretch !important;
  box-sizing: border-box !important;
  border: 2px solid #dfe3eb !important;
  border-radius: 9px !important;
  box-shadow: none !important;
  transform: none !important;
}

.psm-rysunki__widths .psm-rysunki__tile:hover {
  border-color: #93c5fd !important;
}

.psm-rysunki__widths .psm-rysunki__tile.is-selected {
  border-color: var(--psm-blue) !important;
  background: #eff6ff !important;
}


/* Naglowek produktu - korekta mobilna. */
@media (max-width: 767px) {
  body.single-product.postid-5027 .psm-rysunki-product-header {
    margin-bottom: 10px;
    padding: 0;
  }

  .psm-rysunki__intro {
    margin-left: 8px;
    margin-right: 8px;
    text-align: left;
  }
}

/* Wspolny panel dostarczenia: produkty, koszyk i checkout. */
.psm-delivery-panel {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin: 18px 0 16px;
  padding: 18px;
  border: 1px solid #d9dde4;
  border-radius: 8px;
  background: #fafbfd;
  color: #1b263b;
  font-family: inherit;
}

.psm-delivery-panel *,
.psm-delivery-panel *::before,
.psm-delivery-panel *::after {
  box-sizing: border-box;
}

.psm-delivery-panel [hidden] {
  display: none !important;
}

.psm-delivery-panel h3 {
  display: block;
  margin: 0 0 16px;
  color: #111827;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.psm-delivery-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 72px;
  margin: 0 0 10px;
  padding: 13px 14px;
  border: 1px solid #d9dde4;
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
}

.psm-delivery-option:hover {
  border-color: #93b4e8;
}

.psm-delivery-option.is-selected {
  border-color: #38a5d8;
  background: #eff8fc;
}

.psm-delivery-option input[type="radio"] {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px;
  margin: 0 !important;
  accent-color: #3f6ee8;
}

.psm-delivery-main {
  min-width: 0;
  overflow-wrap: anywhere;
}

.psm-delivery-main strong,
.psm-delivery-main small {
  display: block;
}

.psm-delivery-main strong {
  color: #111827;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.psm-delivery-main small {
  margin-top: 4px;
  color: #6b7280;
  font-size: 14px;
}

.psm-delivery-price {
  color: #111827;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.psm-delivery-deadline {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0 10px;
  color: #374151;
  font-size: 14px;
  line-height: 1.5;
}

.psm-delivery-deadline > [aria-hidden] {
  flex: 0 0 auto;
}

.psm-deadline-text {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.psm-delivery-deadline strong {
  white-space: normal;
  color: #111827;
}

.psm-delivery-notice {
  margin: 0;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.5;
}

.psm-realizacja-global__status {
  margin: 6px 0 0;
  color: #4b5563;
  font-size: 12px;
}

.psm-realizacja-global__status:empty {
  display: none;
}

.psm-rysunki__fee-once {
  font-size: 11px;
  font-weight: 400;
  color: #6b7280;
}

/* Ostatnie slowo naglowka i ikonka podpowiedzi zawijaja sie razem. */
.psm-heading-help {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  vertical-align: baseline;
}

@media (max-width: 600px) {
  .psm-delivery-panel {
    padding: 13px;
  }

  .psm-delivery-option {
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 8px 10px;
    padding: 12px;
  }

  .psm-delivery-price {
    grid-column: 2;
    justify-self: start;
    font-size: 14px;
  }
}
