/* Liovela B2B V58 - opakowania w podsumowaniu + tabela pod klienta
   Autor: Modyfikator stworzony przez gumis */

/* Ukrycie pustego bloku Dane zamówienia, który został po poprzednich wersjach */
body.lv-b2b-checkout-page .lv-checkout-shell-v52 > section.lv-checkout-section:nth-of-type(3),
body.lv-b2b-checkout-page .lv-checkout-shell-v52 .lv-checkout-section:has(.lv-address-grid) {
  display: none !important;
}

/* Podsumowanie pełna szerokość, komentarz pod spodem */
body.lv-b2b-checkout-page .lv-summary-wrap {
  display: block !important;
  grid-template-columns: none !important;
}

body.lv-b2b-checkout-page .lv-order-summary-box,
body.lv-b2b-checkout-page .lv-comment-box {
  width: 100% !important;
  max-width: 100% !important;
}

body.lv-b2b-checkout-page .lv-comment-box {
  margin-top: 26px !important;
  padding-top: 22px !important;
  border-top: 1px solid rgba(195, 180, 144, .45) !important;
}

body.lv-b2b-checkout-page .lv-comment-box textarea {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 118px !important;
  resize: vertical !important;
}

body.lv-b2b-checkout-page .lv-submit-area {
  display: flex !important;
  justify-content: flex-end !important;
  margin-top: 20px !important;
}

/* Nowa tabela V58 */
.lv58-summary {
  width: 100%;
  overflow-x: auto;
}

.lv58-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #d8dee8;
  border-radius: 12px;
  overflow: hidden;
  font-size: 14px;
}

.lv58-table th,
.lv58-table td {
  border-bottom: 1px solid #e1e5ec;
  padding: 13px 12px;
  vertical-align: top;
}

.lv58-table th {
  background: #fffdf8;
  font-weight: 900;
  color: #1f1b16;
  text-align: left;
  white-space: nowrap;
}

.lv58-table tr:last-child td {
  border-bottom: 0;
}

.lv58-qty {
  width: 78px;
  font-weight: 900;
  color: #f47b38;
  white-space: nowrap;
}

.lv58-name {
  font-weight: 900;
  color: #f47b38;
  line-height: 1.35;
}

.lv58-variant,
.lv58-pack {
  font-weight: 800;
  color: #2b221c;
}

.lv58-pack {
  color: #7b5d2a;
}

.lv58-meta {
  margin-top: 5px;
  color: #554a40;
  font-size: 12px;
  line-height: 1.35;
}

.lv58-price {
  text-align: right !important;
  white-space: nowrap;
  font-weight: 800;
}

.lv58-total td {
  background: #fffdf8;
  font-weight: 900;
}

.lv58-hidden,
.lv56-summary,
.lv55-summary,
.lv-v55-summary-wrap {
  display: none !important;
}

.lv58-comment textarea {
  min-height: 120px !important;
}

/* Stopka bez rozjazdu po checkout */
body.lv-b2b-checkout-page footer,
body.lv-b2b-checkout-page #footer,
body.lv-b2b-checkout-page .footer,
body.lv-b2b-checkout-page .liovela-footer,
body.lv-b2b-checkout-page .b2b-footer {
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
  margin-left: auto !important;
  margin-right: auto !important;
  transform: none !important;
}

body.lv-b2b-checkout-page footer .container,
body.lv-b2b-checkout-page #footer .container,
body.lv-b2b-checkout-page .footer .container,
body.lv-b2b-checkout-page .liovela-footer .container,
body.lv-b2b-checkout-page .b2b-footer .container {
  width: calc(100vw - 80px) !important;
  max-width: 1560px !important;
  min-width: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 15px !important;
  padding-right: 15px !important;
  box-sizing: border-box !important;
}

body.lv-b2b-checkout-page footer img,
body.lv-b2b-checkout-page #footer img,
body.lv-b2b-checkout-page .footer img,
body.lv-b2b-checkout-page .liovela-footer img,
body.lv-b2b-checkout-page .b2b-footer img,
body.lv-b2b-checkout-page footer iframe,
body.lv-b2b-checkout-page #footer iframe,
body.lv-b2b-checkout-page .footer iframe,
body.lv-b2b-checkout-page .liovela-footer iframe,
body.lv-b2b-checkout-page .b2b-footer iframe {
  max-width: 100% !important;
  height: auto !important;
}

@media (max-width: 991px) {
  .lv58-table {
    font-size: 13px;
  }

  .lv58-table thead {
    display: none;
  }

  .lv58-table,
  .lv58-table tbody,
  .lv58-table tr,
  .lv58-table td {
    display: block;
    width: 100%;
  }

  .lv58-table tr {
    border-bottom: 1px solid #e1e5ec;
  }

  .lv58-table td {
    border-bottom: 0;
  }

  .lv58-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: #7d6c5e;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .lv58-price {
    text-align: left !important;
  }

  body.lv-b2b-checkout-page footer .container,
  body.lv-b2b-checkout-page #footer .container,
  body.lv-b2b-checkout-page .footer .container,
  body.lv-b2b-checkout-page .liovela-footer .container,
  body.lv-b2b-checkout-page .b2b-footer .container {
    width: calc(100vw - 30px) !important;
  }
}

/* LIOVELA_B2B_V39C_TARGROCH_INVOICE_SHIPPING_START
   Przywrócenie i styl sekcji: Dane do faktury / Dane do wysyłki jak Targroch.
   Autor: Modyfikator stworzony przez gumis
*/
body.lv-b2b-checkout-page .lv-checkout-shell-v52 > section.lv-checkout-section:nth-of-type(3),
body.lv-b2b-checkout-page .lv-checkout-shell-v52 .lv-checkout-section:has(.lv-tg-order-data-section),
body.lv-b2b-checkout-page .lv-checkout-shell-v52 .lv-tg-order-data-section {
  display: block !important;
  visibility: visible !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 24px !important;
  margin: 0 0 22px !important;
  overflow: visible !important;
}
body.lv-b2b-checkout-page .lv-checkout-shell-v52 .lv-address-grid {
  display: grid !important;
  visibility: visible !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
}
body.lv-b2b-checkout-page .lv-checkout-shell-v52 .lv-tg-block {
  margin-top: 18px !important;
}
body.lv-b2b-checkout-page .lv-checkout-shell-v52 .lv-tg-block h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px !important;
  color: #0f6f38 !important;
  font-weight: 900 !important;
}
body.lv-b2b-checkout-page .lv-checkout-shell-v52 .lv-tg-green-icon {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0f7f3f;
}
body.lv-b2b-checkout-page .lv-checkout-shell-v52 .lv-tg-invoice-card,
body.lv-b2b-checkout-page .lv-checkout-shell-v52 .lv-tg-shipping-card,
body.lv-b2b-checkout-page .lv-checkout-shell-v52 .lv-tg-other-address {
  min-height: 126px;
  border: 2px solid #69bd45 !important;
  border-radius: 10px !important;
  background: #fff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px !important;
  color: #65b441 !important;
  font-size: 20px;
  font-weight: 900;
  text-align: center;
  line-height: 1.35;
}
body.lv-b2b-checkout-page .lv-checkout-shell-v52 .lv-tg-invoice-card {
  max-width: 760px;
}
body.lv-b2b-checkout-page .lv-checkout-shell-v52 .lv-tg-card-content {
  color: #69bd45 !important;
  font-weight: 900;
}
body.lv-b2b-checkout-page .lv-checkout-shell-v52 .lv-tg-edit-note {
  max-width: 760px;
  margin-top: 14px;
  color: #82786e;
  font-size: 18px;
  font-weight: 600;
}
body.lv-b2b-checkout-page .lv-checkout-shell-v52 .lv-tg-edit-note a {
  color: #0f7f3f !important;
  font-weight: 900;
  text-decoration: none !important;
}
body.lv-b2b-checkout-page .lv-checkout-shell-v52 .lv-tg-info-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d8e3d2;
  border-radius: 50%;
  color: #69bd45;
  font-weight: 900;
  margin-right: 8px;
}
body.lv-b2b-checkout-page .lv-checkout-shell-v52 .lv-tg-shipping-grid {
  display: grid !important;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr) !important;
  gap: 18px !important;
  max-width: 1180px;
}
body.lv-b2b-checkout-page .lv-checkout-shell-v52 .lv-tg-other-address {
  cursor: pointer;
  font-size: 18px;
}
body.lv-b2b-checkout-page .lv-checkout-shell-v52 .lv-checkout-edit-panel,
body.lv-b2b-checkout-page .lv-checkout-shell-v52 .lv-invoice-panel,
body.lv-b2b-checkout-page .lv-checkout-shell-v52 .lv-shipping-panel {
  visibility: visible !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 18px !important;
  margin-top: 18px !important;
  overflow: visible !important;
}
@media (max-width: 900px) {
  body.lv-b2b-checkout-page .lv-checkout-shell-v52 .lv-tg-shipping-grid {
    grid-template-columns: 1fr !important;
  }
  body.lv-b2b-checkout-page .lv-checkout-shell-v52 .lv-tg-invoice-card {
    max-width: none;
  }
}
/* LIOVELA_B2B_V39C_TARGROCH_INVOICE_SHIPPING_END */


/* LIOVELA_B2B_V39D_CONFIRM_ENABLE_START */
body.lv-b2b-checkout-page .lv-submit-area {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 10px !important;
}
body.lv-b2b-checkout-page .lv-final-confirm-box {
  width: min(100%, 760px);
  text-align: right;
}
body.lv-b2b-checkout-page .lv-final-terms {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #2a211a;
  margin: 0 0 8px;
}
body.lv-b2b-checkout-page .lv-final-terms input {
  width: 18px;
  height: 18px;
  accent-color: #0f7b3b;
}
body.lv-b2b-checkout-page .lv-final-terms a {
  color: #0f7b3b;
  font-weight: 900;
  text-decoration: none;
}
body.lv-b2b-checkout-page .lv-final-notice {
  font-size: 12px;
  line-height: 1.35;
  color: #5f554d;
  max-width: 560px;
  margin-left: auto;
}
body.lv-b2b-checkout-page .lv-final-error {
  font-size: 12px;
  color: #b91c1c;
  font-weight: 800;
  margin-top: 6px;
}
body.lv-b2b-checkout-page .lv-submit-area button.lv-confirm-ready,
body.lv-b2b-checkout-page .lv-submit-area .btn.lv-confirm-ready,
body.lv-b2b-checkout-page .lv-submit-area #button-confirm.lv-confirm-ready {
  background: #f47b38 !important;
  border-color: #f47b38 !important;
  color: #fff !important;
  opacity: 1 !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  min-width: 220px;
  min-height: 54px;
  border-radius: 12px;
  font-weight: 900;
}
body.lv-b2b-checkout-page .lv-submit-area button:disabled,
body.lv-b2b-checkout-page .lv-submit-area .btn.disabled {
  opacity: .55 !important;
  cursor: not-allowed !important;
}
/* LIOVELA_B2B_V39D_CONFIRM_ENABLE_END */


/* Liovela B2B V39E - zapisywanie danych i osoba kontaktowa */
body.lv-b2b-checkout-page .lv-panel-actions {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

body.lv-b2b-checkout-page .lv-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  background: #ef7432;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(239,116,50,.16);
}

body.lv-b2b-checkout-page .lv-btn-primary:hover {
  filter: brightness(.97);
}

body.lv-b2b-checkout-page .lv-btn-primary[disabled] {
  opacity: .65;
  cursor: wait;
}

body.lv-b2b-checkout-page .lv-save-status {
  font-size: 13px;
  font-weight: 800;
  color: #7b6d60;
}

body.lv-b2b-checkout-page .lv-save-status.is-ok {
  color: #147b2e;
}

body.lv-b2b-checkout-page .lv-save-status.is-error {
  color: #b42318;
}

body.lv-b2b-checkout-page .lv-contact-person-panel {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid rgba(195,180,144,.55);
  border-radius: 16px;
  background: #fffaf3;
}

body.lv-b2b-checkout-page .lv-contact-person-panel h4 {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 900;
  color: #251b15;
}

body.lv-b2b-checkout-page .lv-contact-select-wrap {
  display: block;
  margin-bottom: 14px;
}

body.lv-b2b-checkout-page .lv-contact-select-wrap span {
  display: block;
  margin-bottom: 6px;
  font-weight: 800;
}

body.lv-b2b-checkout-page .lv-contact-summary {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(195,180,144,.6);
  color: #4a3b2c;
  line-height: 1.45;
}

body.lv-b2b-checkout-page .lv-preflight-status {
  margin-bottom: 10px;
  text-align: right;
}


/* Liovela B2B V39F - save buttons, visible contact, clickable methods */
.lv-address-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.lv-address-actions .lv-save-card-data {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 10px;
}
.lv-visible-save-status,
.lv-method-status,
.lv-visible-contact-status {
  width: 100%;
  margin-top: 6px;
}
.lv-visible-contact-panel {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #ead7bd;
}
.lv-visible-contact-panel h4 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 900;
  color: #251b13;
}
.lv-visible-contact-panel .lv-visible-save-contact {
  margin-top: 12px;
}
.lv-method-card {
  cursor: pointer;
  user-select: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.lv-method-card:hover,
.lv-method-card.is-active {
  border-color: #f26d2d !important;
  box-shadow: 0 0 0 2px rgba(242,109,45,.14);
}
.lv-method-card.is-active:after {
  content: '✓';
  margin-left: auto;
  font-weight: 900;
  color: #16823a;
  font-size: 18px;
}


/* LIOVELA_B2B_V39G_STYLE_START */
.lv-v39g-save,
.lv-v39g-save-contact {
  margin-left: 10px;
  margin-top: 10px;
}
.lv-v39g-contact {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #f47b38;
  border-radius: 14px;
  background: rgba(255,255,255,.55);
}
.lv-v39g-contact h4 {
  margin: 0 0 12px;
  font-weight: 900;
}
.lv-v39g-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0;
}
.lv-v39g-contact label span {
  display: block;
  font-weight: 800;
  margin-bottom: 6px;
}
.lv-v39g-contact input,
.lv-v39g-contact select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #ead7bd;
  border-radius: 10px;
  padding: 0 12px;
  background: #fff;
}
.lv-v39g-submit-status {
  text-align: right;
  margin: 8px 0 12px;
  font-weight: 800;
}
.lv-method-card { cursor: pointer; }
.lv-method-card.is-active {
  border-color: #f47b38 !important;
  box-shadow: 0 0 0 2px rgba(244,123,56,.16) !important;
}
@media (max-width: 767px) {
  .lv-v39g-contact-grid { grid-template-columns: 1fr; }
}
/* LIOVELA_B2B_V39G_STYLE_END */

/* LIOVELA_B2B_V42B_TARGROCH_DATA_CARDS_START */
body.lv-b2b-checkout-page .lv-v42b-card{border:1px solid #efcfae;background:#fffaf4;border-radius:16px;padding:18px!important;box-shadow:0 8px 26px rgba(85,55,20,.045)}
body.lv-b2b-checkout-page .lv-v42b-card h3{display:flex;align-items:center;gap:10px;margin:0 0 14px;font-weight:900;color:#2b2017}.lv-v42b-selected{border:2px solid #f47b3d;border-radius:14px;background:#fff;padding:16px 18px;margin:10px 0 12px;min-height:96px;display:flex;flex-direction:column;justify-content:center;text-align:center;color:#2b2017}.lv-v42b-card-label{font-weight:900;color:#bd6a18;margin-bottom:6px}.lv-v42b-summary{line-height:1.55;font-size:15px}.lv-v42b-summary strong{color:#c88723;font-size:17px}.lv-v42b-muted{color:#9b8571}.lv-v42b-info{font-size:13px;color:#7b6a56;margin:0 0 12px;padding-left:3px}.lv-v42b-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}.lv-v42b-field{display:flex;flex-direction:column;gap:6px;margin:0}.lv-v42b-field span{font-weight:800;color:#38281b;font-size:13px}.lv-v42b-field input{height:42px;border:1px solid #ead0b4;border-radius:10px;background:#fff;padding:0 12px;color:#2b2017;outline:0}.lv-v42b-field input:focus{border-color:#f47b3d;box-shadow:0 0 0 3px rgba(244,123,61,.12)}.lv-v42b-actions{grid-column:1/-1;display:flex;align-items:center;gap:12px;margin-top:4px}.lv-v42b-save,.lv-v42b-save-contact{border:0;border-radius:12px;background:#f47b3d;color:#fff;font-weight:900;padding:12px 18px;min-width:190px;box-shadow:0 10px 22px rgba(244,123,61,.18)}.lv-v42b-save:hover,.lv-v42b-save-contact:hover{background:#dd682d}.lv-v42b-status{font-weight:800;font-size:13px}.lv-v42b-status.is-ok{color:#8a641b}.lv-v42b-status.is-error{color:#c93524}.lv-v42b-choice{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:6px 0 14px}.lv-v42b-choice-card{border:2px solid #ead0b4;background:#fff;border-radius:14px;min-height:74px;font-weight:900;color:#876134}.lv-v42b-choice-card.is-active{border-color:#f47b3d;background:#fff4ea;color:#c05b21}.lv-v42b-contact{border-top:1px solid #ead0b4;margin-top:16px;padding-top:16px}.lv-v42b-contact h4{margin:0 0 12px;font-weight:900;color:#2b2017}.lv-v42b-contact-select label{display:flex;flex-direction:column;gap:6px;font-weight:800;color:#38281b}.lv-v42b-contact-select select{height:42px;border:1px solid #ead0b4;border-radius:10px;background:#fff;padding:0 12px}.lv-v42b-contact-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:991px){.lv-v42b-form,.lv-v42b-contact-grid,.lv-v42b-choice{grid-template-columns:1fr}.lv-v42b-save,.lv-v42b-save-contact{width:100%}.lv-v42b-actions{align-items:stretch;flex-direction:column}}
/* LIOVELA_B2B_V42B_TARGROCH_DATA_CARDS_END */


/* LIOVELA_B2B_V42C_CHECKOUT_DATA_CARDS_FINAL_START */
.lv-v42c-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:16px}.lv-v42c-card{background:#fffaf3;border:1px solid #ead5b9;border-radius:18px;padding:20px 22px;box-shadow:0 10px 28px rgba(53,36,17,.04)}.lv-v42c-card h3{display:flex;align-items:center;gap:10px;margin:0 0 16px;font-size:18px;font-weight:900;color:#21160f}.lv-v42c-summary-title{font-weight:800;color:#7e5c2d;margin-bottom:8px}.lv-v42c-summary{min-height:98px;padding:18px;border:2px solid #d09a34;border-radius:14px;background:#fff;text-align:center;display:flex;flex-direction:column;justify-content:center;line-height:1.65;color:#342414}.lv-v42c-summary strong{font-weight:900;color:#c78f28}.lv-v42c-info{margin:12px 0 14px;padding:10px 12px;border-radius:12px;background:#fff3e3;color:#7b5a30;font-weight:700}.lv-v42c-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.lv-v42c-field{display:block;margin:0}.lv-v42c-field span{display:block;margin:0 0 6px;font-weight:900;color:#21160f}.lv-v42c-field input,.lv-v42c-field select{width:100%;height:46px;border:1px solid #ead5b9;border-radius:10px;background:#fff;padding:0 12px;color:#21160f}.lv-v42c-field input:focus,.lv-v42c-field select:focus{outline:none;border-color:#ed7435;box-shadow:0 0 0 3px rgba(237,116,53,.12)}.lv-v42c-actions{display:flex;align-items:center;gap:12px;margin-top:14px}.lv-v42c-save,.lv-v42c-save-contact{border:0;border-radius:12px;background:#ef7636;color:#fff;font-weight:900;padding:12px 18px;min-height:44px}.lv-v42c-save:hover,.lv-v42c-save-contact:hover{background:#d9652d}.lv-v42c-status{font-weight:800;color:#7d6040}.lv-v42c-status.is-ok{color:#2f8b57}.lv-v42c-status.is-error{color:#bf2b2b}.lv-v42c-choice{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0 0 14px}.lv-v42c-choice-card{min-height:82px;border:2px solid #ead5b9;border-radius:14px;background:#fff;color:#7d6040;font-weight:900;padding:14px;text-align:center}.lv-v42c-choice-card.is-active{border-color:#ef7636;background:#fff3e9;color:#ef7636}.lv-v42c-contact{margin-top:18px;padding-top:16px;border-top:1px solid #ead5b9}.lv-v42c-contact h4{margin:0 0 12px;font-size:18px;font-weight:900;color:#21160f}.lv-v42c-contact-grid{margin-top:12px}.lv-v42c-muted{color:#9a8062}.lv-v42c-card .lv-step-badge{background:#ef7636;color:#fff;display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50%;font-weight:900}
@media(max-width:991px){.lv-v42c-grid{grid-template-columns:1fr}.lv-v42c-form-grid{grid-template-columns:1fr}.lv-v42c-choice{grid-template-columns:1fr}}
/* LIOVELA_B2B_V42C_CHECKOUT_DATA_CARDS_FINAL_END */
