/* =====================================================================
   ODDK / Edito – nowoczesna warstwa sklepu
   Wszystkie reguły są ograniczone do .shop-ui, aby nie zmieniać wyglądu
   pozostałych modułów istniejącego serwisu.
   ===================================================================== */

.shop-ui {
  --shop-primary: #0d6efd;
  --shop-primary-dark: #0a58ca;
  --shop-primary-soft: #eaf3ff;
  --shop-success: #198754;
  --shop-success-soft: #eaf7ef;
  --shop-warning: #d97706;
  --shop-warning-soft: #fff5df;
  --shop-danger: #dc3545;
  --shop-danger-soft: #fff0f2;
  --shop-text: #1f2937;
  --shop-muted: #6b7280;
  --shop-border: #e5e7eb;
  --shop-border-strong: #d1d5db;
  --shop-surface: #ffffff;
  --shop-surface-soft: #f8fafc;
  --shop-shadow: 0 8px 24px rgba(15, 23, 42, .08);
  --shop-shadow-hover: 0 16px 38px rgba(15, 23, 42, .13);
  --shop-radius: 14px;
  --shop-radius-sm: 9px;
  box-sizing: border-box;
  width: 100%;
  color: var(--shop-text);
  font-size: 15px;
  line-height: 1.55;
}

.shop-ui *,
.shop-ui *::before,
.shop-ui *::after { box-sizing: border-box; }

.shop-ui img { max-width: 100%; }
.shop-ui a { color: var(--shop-primary); text-decoration: none; }
.shop-ui a:hover { color: var(--shop-primary-dark); text-decoration: none; }

.shop-ui h2,
.shop-ui h3,
.shop-ui h4 { color: #111827; line-height: 1.25; }
.shop-ui h2 { margin: 0 0 8px; font-size: 28px; font-weight: 700; }
.shop-ui h3 { margin: 0; font-size: 18px; font-weight: 700; }
.shop-ui h4 { margin: 0 0 12px; font-size: 17px; font-weight: 700; }

/* Breadcrumb */
.shop-ui .shop-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 0 0 18px;
  padding: 10px 14px;
  border: 1px solid var(--shop-border);
  border-radius: var(--shop-radius-sm);
  background: var(--shop-surface-soft);
  color: var(--shop-muted);
  font-size: 13px;
}
.shop-ui .shop-breadcrumb a { font-weight: 600; }

/* Toolbar katalogu — kompaktowy i dyskretny */
.shop-ui .shop-toolbar {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  width: auto;
  max-width: 100%;
  gap: 12px;
  margin: 0 0 14px;
  padding: 6px 8px;
  border: 1px solid #e1e6ec;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .035);
}
.shop-ui .shop-toolbar-group {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}
.shop-ui .shop-toolbar-group + .shop-toolbar-group {
  padding-left: 12px;
  border-left: 1px solid #e8ecf1;
}
.shop-ui .shop-toolbar-label {
  margin-right: 2px;
  color: #727b87;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .035em;
}
.shop-ui .shop-toolbar .shop-btn-sm {
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 650;
}
.shop-ui .shop-toolbar .shop-btn-secondary {
  border-color: #d9e0e7;
  background: #f8fafc;
  color: #334155 !important;
}
.shop-ui .shop-toolbar .shop-btn-secondary:hover {
  border-color: #bfd0e3;
  background: #eef5ff;
  color: var(--shop-primary-dark) !important;
}

/* Przyciski */
.shop-ui .shop-btn,
.shop-ui button.shop-btn,
.shop-ui a.shop-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: var(--shop-primary);
  color: #fff !important;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.shop-ui .shop-btn:hover {
  background: var(--shop-primary-dark);
  color: #fff !important;
  box-shadow: 0 5px 14px rgba(13, 110, 253, .22);
  transform: translateY(-1px);
}
.shop-ui .shop-btn-secondary {
  border-color: var(--shop-border-strong);
  background: #fff;
  color: var(--shop-text) !important;
}
.shop-ui .shop-btn-secondary:hover {
  border-color: #b8c0cb;
  background: var(--shop-surface-soft);
  color: #111827 !important;
  box-shadow: none;
}
.shop-ui .shop-btn-light {
  border-color: var(--shop-primary-soft);
  background: var(--shop-primary-soft);
  color: var(--shop-primary-dark) !important;
}
.shop-ui .shop-btn-light:hover {
  border-color: #cfe2ff;
  background: #dcecff;
  color: var(--shop-primary-dark) !important;
  box-shadow: none;
}
.shop-ui .shop-btn-danger {
  border-color: #f4c7cd;
  background: #fff;
  color: var(--shop-danger) !important;
}
.shop-ui .shop-btn-danger:hover {
  border-color: var(--shop-danger);
  background: var(--shop-danger);
  color: #fff !important;
  box-shadow: 0 5px 14px rgba(220, 53, 69, .18);
}
.shop-ui .shop-btn-sm { min-height: 32px; padding: 6px 10px; font-size: 13px; }

/* Katalog – wspólne */
.shop-ui .shop-catalog,
.shop-ui .shop-catalog-grid,
.shop-ui .shop-product,
.shop-ui .shop-collection,
.shop-ui .shop-collections,
.shop-ui .shop-box {
  width: 100%;
  margin: 0;
}

.shop-ui .shop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.shop-ui .shop-product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100% !important;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--shop-border);
  border-radius: var(--shop-radius);
  background: var(--shop-surface);
  box-shadow: 0 3px 12px rgba(15, 23, 42, .05);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.shop-ui .shop-product-card:hover {
  transform: translateY(-3px);
  border-color: #cbd5e1;
  box-shadow: var(--shop-shadow-hover);
}
.shop-ui .shop-card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 220px;
  padding: 18px;
  background: #f8fafc;
  overflow: hidden;
}
.shop-ui .shop-card-media img {
  width: auto;
  max-width: 100%;
  max-height: 184px;
  object-fit: contain;
  transition: transform .25s ease;
}
.shop-ui .shop-product-card:hover .shop-card-media img { transform: scale(1.025); }
.shop-ui .shop-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 17px 18px 18px;
}
.shop-ui .shop-card-title { margin-bottom: 7px; }
.shop-ui .shop-card-title a { color: #111827; }
.shop-ui .shop-card-title a:hover { color: var(--shop-primary); }
.shop-ui .shop-card-code { margin-top: 4px; color: #8a94a3; font-size: 12px; }
.shop-ui .shop-card-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 15px;
}
.shop-ui .shop-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }

.shop-ui .shop-product-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid var(--shop-border);
  border-radius: var(--shop-radius);
  background: var(--shop-surface);
  box-shadow: 0 2px 10px rgba(15, 23, 42, .04);
  transition: box-shadow .18s ease, transform .18s ease;
}
.shop-ui .shop-product-row:hover { box-shadow: var(--shop-shadow); transform: translateY(-1px); }
.shop-ui .shop-row-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 125px;
  padding: 10px;
  border-radius: 10px;
  background: #f8fafc;
}
.shop-ui .shop-row-media img { max-height: 120px; object-fit: contain; }
.shop-ui .shop-row-content { min-width: 0; }
.shop-ui .shop-row-side { min-width: 165px; text-align: right; }
.shop-ui .shop-row-description { margin-top: 8px; color: #4b5563; }
.shop-ui .shop-row-description p:first-child { margin-top: 0; }
.shop-ui .shop-row-description p:last-child { margin-bottom: 0; }

/* Cena i statusy */
.shop-ui .shop-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  margin: 0;
  padding: 0;
  background: transparent;
  color: #111827;
}
.shop-ui .shop-price strong,
.shop-ui .shop-price-main {
  color: #111827;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.shop-ui .shop-price small { color: var(--shop-muted); font-size: 11px; }
.shop-ui .shop-old-price { color: #9ca3af; font-size: 13px; }
.shop-ui .shop-old-price del { text-decoration-thickness: 1px; }
.shop-ui .shop-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin: 0;
  padding: 4px 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}
.shop-ui .shop-badge-promo { border-color: #fed7aa; background: #fff7ed; color: #c2410c; }
.shop-ui .shop-badge-new { border-color: #bfdbfe; background: #eff6ff; color: #1d4ed8; }
.shop-ui .shop-badge-best { border-color: #fde68a; background: #fffbeb; color: #a16207; }
.shop-ui .shop-muted { color: var(--shop-muted); }

/* Pager */
.shop-ui .pager {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--shop-border);
  text-align: center;
}
.shop-ui .pager a,
.shop-ui .pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 34px;
  margin: 2px;
  padding: 5px 9px;
  border: 1px solid var(--shop-border);
  border-radius: 8px;
  background: #fff;
}

/* Karta produktu */
.shop-ui .shop-product-detail { border: 0; background: transparent; box-shadow: none; 
}


.shop-ui .shop-product-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 8px;
}
.shop-ui .shop-product-title-wrap { min-width: 0; }
.shop-ui .shop-product-header h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(20px, 2.4vw, 24px);
  font-weight: 600;
  letter-spacing: -.025em;
}
.shop-ui .shop-product-lead {
  max-width: 760px;
  margin: 7px 0 0;
  color: #5f6b7a;
  font-size: 15px;
  line-height: 1.55;
}
.shop-ui .shop-product-header > .shop-badges {
  flex: 0 0 auto;
  justify-content: flex-end;
  margin: 3px 0 0;
}
/* Szczegóły produktu: panel zakupowy jest opływany przez treść opisu. */
.shop-ui .shop-product-content {
  min-width: 0;
}
.shop-ui .shop-product-flow::after {
  display: block;
  clear: both;
  content: "";
}
.shop-ui .shop-product-panel {
  float: right;
  position: relative;
  z-index: 5;
  min-width: 245px;
  margin: 0 0 24px 28px;
  padding: 14px 18px 18px;
  border: 1px solid var(--shop-border);
  border-radius: 16px;
  background: #fff;
z-index: 5;
}



/* Miniatura produktu jest częścią prawego panelu: nad ceną/koszykiem,
   dzięki czemu nie tworzy osobnej sekcji na dole opisu. */
.shop-ui .shop-panel-media {
  margin: 0 0 13px;
  padding: 0 0 13px;
  border-bottom: 1px solid var(--shop-border);
  text-align: center;
}
.shop-ui .shop-panel-media .shop-main-photo {
  display: flex;
  width: 100%;
  height: 145px;
  min-height: 0;
  align-items: center;
  justify-content: center;
  padding: 7px;
  overflow: hidden;
  border-radius: 11px;
  background: #f8fafc;
}
.shop-ui .shop-panel-media .shop-main-photo img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 131px;
  object-fit: contain;
}
.shop-ui .shop-panel-media .shop-no-photo {
  min-height: 110px;
  padding: 12px;
}
.shop-ui .shop-panel-media .shop-gallery {
  margin-top: 10px;
  padding-top: 10px;
}
.shop-ui .shop-panel-media .shop-gallery-list {
  justify-content: center;
}
.shop-ui .shop-panel-media .shop-gallery-thumb {
  width: 52px;
  height: 52px;
}
.shop-ui .shop-product-meta {
  display: grid;
  margin: 0;
  padding: 0 0 13px;
  border-bottom: 1px solid var(--shop-border);
}
.shop-ui .shop-meta-row {
  display: grid;
  grid-template-columns: minmax(100px, 42%) 1fr;
  gap: 10px;
  padding: 7px 0;
  color: #465366;
  line-height: 1.4;
}
.shop-ui .shop-meta-row + .shop-meta-row { border-top: 1px dashed #edf0f4; }
.shop-ui .shop-meta-label {
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
}
.shop-ui .shop-meta-value {
  min-width: 0;
  color: #243044;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.shop-ui .shop-purchase-box {
  margin-top: 15px;
}
.shop-ui .shop-purchase-price {
  padding: 15px 16px;
  border: 1px solid #e6ebf1;
  border-radius: 12px;
  background: linear-gradient(180deg, #fbfcfe 0%, #f7f9fc 100%);
}
.shop-ui .shop-price-label {
  display: block;
  margin-bottom: 5px;
  color: #677386;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .045em;
}
.shop-ui .shop-price-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}
.shop-ui .shop-price-line strong {
  color: #0f172a;
  font-size: clamp(22px, 2.1vw, 27px);
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: -.03em;
}
.shop-ui .shop-price-line small {
  color: #8490a1;
  font-size: 11px;
}
.shop-ui .shop-promo-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin: 11px 0 0;
}
.shop-ui .shop-old-price { color: #8d98a8; font-size: 13px; }
.shop-ui .shop-old-price del { color: #8d98a8; }
.shop-ui .shop-availability {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 7px;
  margin: 12px 0 0;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 13px;
}
.shop-ui .shop-availability-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
}
.shop-ui .shop-availability-available { background: #eef9f2; color: #17643f; }
.shop-ui .shop-availability-available .shop-availability-dot { background: #22a06b; }
.shop-ui .shop-availability-unavailable { background: #fff1f2; color: #9f2735; }
.shop-ui .shop-availability-unavailable .shop-availability-dot { background: #dc3545; }
.shop-ui .shop-availability-order { background: #fff7e8; color: #9a5b08; }
.shop-ui .shop-availability-order .shop-availability-dot { background: #e59b18; }
.shop-ui .shop-options-info {
  margin-top: 15px;
  padding: 14px;
  border: 1px solid var(--shop-border);
  border-radius: 10px;
  background: #fbfcfe;
}
.shop-ui .shop-options-info h4 { margin-bottom: 8px; font-size: 15px; }
.shop-ui .shop-option {
  margin: 10px 0 0;
  padding: 10px;
  border: 1px solid var(--shop-border);
  border-radius: 8px;
  background: #fff;
}
.shop-ui .shop-option-value { display: inline-flex; margin: 6px 6px 0 0; }
.shop-ui .shop-options-select { display: grid; gap: 12px; margin: 16px 0 0; }
.shop-ui .shop-options-select label { display: grid; gap: 6px; color: #374151; font-weight: 700; }
.shop-ui select,
.shop-ui input[type="text"],
.shop-ui input[type="email"],
.shop-ui input[type="number"],
.shop-ui textarea {
  width: 100%;
  min-height: 39px;
  padding: 8px 10px;
  border: 1px solid var(--shop-border-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--shop-text);
  font: inherit;
  outline: none;
}
.shop-ui select:focus,
.shop-ui input:focus,
.shop-ui textarea:focus {
  border-color: #86b7fe;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, .12);
}
.shop-ui .shop-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 18px 0 0;
}
.shop-ui .shop-actions .shop-btn { margin: 0; }
.shop-ui .shop-btn-buy { min-width: 155px; }
.shop-ui .shop-description {
  margin-top: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #374151;
  box-shadow: none;
}
.shop-ui .shop-description::before { content: none; }
.shop-ui .shop-description h3 {
  margin: 0 0 12px;
  color: #111827;
  font-size: 18px;
  font-weight: 800;
}
/* W szczegółach produktu etykieta "Opis produktu" pozostaje w szablonie,
 * ale nie zajmuje już miejsca. Dzięki temu lewa treść i prawy panel startują
 * dokładnie na tej samej wysokości. */
.shop-ui .shop-product-detail .shop-description {
  position: relative;
}
.shop-ui .shop-product-detail .shop-description > h3 {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.shop-ui .shop-product-detail .shop-description-content {
  position: static;
  top: auto;
  margin-bottom: 0;
}
.shop-ui .shop-description-content { color: #3f4b5e; }
.shop-ui .shop-description-content p:first-child { margin-top: 0; }
.shop-ui .shop-description-content p:last-child { margin-bottom: 0; }
.shop-ui .shop-gallery {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--shop-border);
  text-align: left;
}
.shop-ui .shop-gallery-title {
  margin-bottom: 9px;
  color: #657084;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.shop-ui .shop-gallery-list { display: flex; flex-wrap: wrap; gap: 8px; }
.shop-ui .shop-gallery-thumb {
  display: inline-flex;
  width: 72px;
  height: 72px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 5px;
  overflow: hidden;
  border: 1px solid var(--shop-border);
  border-radius: 9px;
  background: #fff;
}
.shop-ui .shop-gallery-thumb:hover { border-color: #9ec5fe; box-shadow: 0 0 0 2px rgba(13, 110, 253, .07); }
.shop-ui .shop-gallery-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.shop-ui .shop-secondary-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #edf0f4;
  color: var(--shop-muted);
  font-size: 13px;
}
.shop-ui .shop-secondary-links a { margin: 0; font-weight: 650; }

/* Koszyk */
.shop-ui .shop-cart-shell { display: grid; gap: 18px; }
.shop-ui .shop-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--shop-border);
  border-radius: var(--shop-radius);
  background: #fff;
  box-shadow: 0 3px 14px rgba(15, 23, 42, .04);
}
.shop-ui .shop-table {
  width: 100%;
  min-width: 720px;
  border: 0;
  border-collapse: collapse;
  background: #fff;
}
.shop-ui .shop-table th,
.shop-ui .shop-table td {
  padding: 13px 12px;
  border: 0;
  border-bottom: 1px solid var(--shop-border);
  text-align: left;
  vertical-align: middle;
}
.shop-ui .shop-table th {
  background: #f8fafc;
  color: #4b5563;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .025em;
}
.shop-ui .shop-table tbody tr:last-child td { border-bottom: 0; }
.shop-ui .shop-table tbody tr:hover td { background: #fcfdff; }
.shop-ui .shop-cart-product { display: flex; align-items: center; gap: 10px; font-weight: 700; color: #111827; }
.shop-ui .shop-cart-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  padding: 4px;
  border-radius: 9px;
  background: #f8fafc;
}
.shop-ui .shop-cart-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.shop-ui .shop-cart-table { table-layout: fixed; min-width: 860px; }
.shop-ui .shop-cart-table .shop-col-index { width: 48px; }
.shop-ui .shop-cart-table .shop-col-photo { width: 86px; }
.shop-ui .shop-cart-table .shop-col-product { width: auto; }
.shop-ui .shop-cart-table .shop-col-price { width: 150px; }
.shop-ui .shop-cart-table .shop-col-qty { width: 120px; }
.shop-ui .shop-cart-table .shop-col-value { width: 165px; }
.shop-ui .shop-cart-table .shop-col-action { width: 110px; }
.shop-ui .shop-cart-col-price small { display: block; margin-top: 2px; }
.shop-ui .shop-cart-col-value strong { white-space: nowrap; }
.shop-ui .shop-cart-col-action { text-align: center; }
.shop-ui .shop-cart-col-product { min-width: 0; overflow-wrap: anywhere; }
.shop-ui .shop-qty {
  display: block;
  width: 78px !important;
  min-width: 0;
  margin: 0 auto 0 0;
  padding: 8px 9px;
  border: 1px solid #cfd7e3;
  border-radius: 9px;
  background: #fff;
  color: #111827;
  font: inherit;
  font-weight: 700;
  text-align: center;
  outline: none;
}
.shop-ui .shop-qty:focus {
  border-color: var(--shop-primary);
  box-shadow: 0 0 0 3px rgba(13,110,253,.12);
}
.shop-ui .shop-qty:disabled { background: #f3f4f6; color: #6b7280; }
.shop-ui .shop-summary {
  margin-left: auto;
  width: min(100%, 390px);
  padding: 18px;
  border: 1px solid var(--shop-border);
  border-radius: var(--shop-radius);
  background: #fff;
  box-shadow: 0 3px 14px rgba(15, 23, 42, .05);
}
.shop-ui .shop-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--shop-border);
  background: transparent;
}
.shop-ui .shop-total:last-child { border-bottom: 0; }
.shop-ui .shop-total strong { color: #111827; font-size: 18px; }
.shop-ui fieldset {
  margin: 16px 0;
  padding: 14px 16px;
  border: 1px solid var(--shop-border);
  border-radius: var(--shop-radius-sm);
  background: #fff;
}
.shop-ui legend { padding: 0 7px; color: #374151; font-weight: 800; }
.shop-ui fieldset label { display: inline-flex; align-items: center; gap: 8px; margin: 5px 14px 5px 0; }
.shop-ui .shop-address {
  margin: 16px 0;
  padding: 16px;
  border: 1px solid var(--shop-border);
  border-radius: var(--shop-radius-sm);
  background: var(--shop-surface-soft);
}
.shop-ui .shop-checkout-info { display: grid; gap: 10px; margin: 16px 0; }
.shop-ui .shop-success-box {
  padding: 22px;
  border: 1px solid #b7dfc6;
  border-radius: var(--shop-radius);
  background: var(--shop-success-soft);
  color: #176b45;
  font-size: 17px;
  font-weight: 700;
}
.shop-ui .shop-empty-cart {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 34px 24px;
  border: 1px solid var(--shop-border);
  border-radius: var(--shop-radius);
  background: #fff;
  box-shadow: 0 3px 14px rgba(15, 23, 42, .04);
  text-align: center;
}
.shop-ui .shop-empty-cart-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  background: #eef5ff;
  font-size: 25px;
}
.shop-ui .shop-empty-cart h3 { margin: 2px 0 0; color: #111827; font-size: 20px; }
.shop-ui .shop-empty-cart p { margin: 0 0 6px; color: #687386; }

/* Blok koszyka */
.shop-cart-block {
  box-sizing: border-box;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(15, 23, 42, .06);
}
.shop-cart-block .shop-cart-block-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.shop-cart-block .shop-cart-count { display: inline-flex; min-width: 27px; height: 27px; align-items: center; justify-content: center; border-radius: 999px; background: #eaf3ff; color: #0a58ca; font-size: 12px; font-weight: 800; }
.shop-cart-block ul { margin: 8px 0 10px; padding: 0; list-style: none; }
.shop-cart-block li { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; border-bottom: 1px solid #edf0f3; }
.shop-cart-block li:last-child { border-bottom: 0; }
.shop-cart-block .shop-cart-block-total { display: flex; justify-content: space-between; margin: 9px 0; padding-top: 8px; border-top: 1px solid #e5e7eb; font-weight: 800; }
.shop-cart-block .shop-cart-block-link { display: block; padding: 8px 10px; border-radius: 8px; background: #0d6efd; color: #fff !important; text-align: center; font-weight: 700; text-decoration: none !important; }
.shop-cart-block .shop-cart-block-link:hover { background: #0a58ca; }

/* Drobne zabezpieczenia legacy */
.shop-ui hr { border: 0; border-top: 1px solid var(--shop-border); }
.shop-ui del { color: #9ca3af; }
.shop-ui .shop-spacer { display: none; }

@media (max-width: 1050px) {
  .shop-ui .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop-ui .shop-product-row { grid-template-columns: 140px minmax(0, 1fr); }
  .shop-ui .shop-row-side { grid-column: 2; min-width: 0; text-align: left; }
}

@media (max-width: 760px) {
  .shop-ui { font-size: 14px; }
  .shop-ui .shop-product-header { margin-bottom: 12px; }
  .shop-ui h2 { font-size: 24px; }
  .shop-ui .shop-toolbar { align-items: stretch; }
  .shop-ui .shop-toolbar-group { width: 100%; }
  .shop-ui .shop-toolbar .shop-btn { flex: 1 1 auto; }
  .shop-ui .shop-grid { grid-template-columns: 1fr; }
  .shop-ui .shop-product-flow { display: flex; flex-direction: column; }
  .shop-ui .shop-description { order: 1; }
  .shop-ui .shop-product-panel { float: none; width: auto; min-width: 0; order: 2; margin: 18px 0 0; }




  .shop-ui .shop-product-row { grid-template-columns: 110px minmax(0, 1fr); gap: 13px; padding: 12px; }
  .shop-ui .shop-row-side { grid-column: 1 / -1; }
  .shop-ui .shop-row-media { min-height: 95px; }
  .shop-ui .shop-row-media img { max-height: 90px; }
  .shop-ui .shop-product-panel,
  .shop-ui .shop-description,
  .shop-ui .shop-collection-description { padding: 16px; }
  .shop-ui .shop-meta-row { display: block; }
  .shop-ui .shop-meta-row strong { display: block; margin-bottom: 2px; }
  .shop-ui .shop-actions .shop-btn { width: 100%; }
  .shop-ui .shop-summary { width: 100%; }
}

@media (max-width: 480px) {
  .shop-ui .shop-product-row { grid-template-columns: 1fr; }
  .shop-ui .shop-row-media { min-height: 160px; }
  .shop-ui .shop-row-media img { max-height: 150px; }
  .shop-ui .shop-thumb { min-height: 150px; }
  .shop-ui .shop-toolbar-group { display: grid; grid-template-columns: 1fr 1fr; }
  .shop-ui .shop-toolbar-label { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .shop-ui .shop-toolbar {
    display: flex;
    width: 100%;
    gap: 7px;
  }
  .shop-ui .shop-toolbar-group + .shop-toolbar-group {
    padding-left: 0;
    border-left: 0;
  }
}

/* Dopracowanie karty produktu */
.shop-ui .shop-no-photo {
  display: flex;
  min-height: 315px;
  align-items: center;
  justify-content: center;
  border: 1px dashed #d8dee8;
  border-radius: 12px;
  background: #fafbfc;
  color: #8a95a5;
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 760px) {
  .shop-ui .shop-product-header { display: block; }
  .shop-ui .shop-product-header > .shop-badges { justify-content: flex-start; margin-top: 10px; }
  .shop-ui .shop-panel-media .shop-main-photo { height: 190px; }
  .shop-ui .shop-panel-media .shop-main-photo img { max-height: 176px; }
  .shop-ui .shop-panel-media .shop-no-photo { min-height: 140px; }
  .shop-ui .shop-meta-row { display: block; padding: 8px 0; }
  .shop-ui .shop-meta-label { display: block; margin-bottom: 3px; }
  .shop-ui .shop-collection-body { grid-template-columns: 1fr; }
  .shop-ui .shop-collection-thumb { width: 100%; height: 150px; }
}

.shop-ui .shop-success-box{padding:28px;border:1px solid #dbe5ef;border-radius:16px;background:#fff;box-shadow:0 8px 24px rgba(15,23,42,.06);text-align:center}
.shop-ui .shop-success-box h3{margin:0 0 10px;font-size:24px;color:#0f172a}
.shop-ui .shop-success-box p{margin:8px 0 16px;color:#475569;line-height:1.6}
.shop-ui .shop-order-number{display:inline-block;margin:8px 0 16px;padding:9px 14px;border-radius:10px;background:#eff6ff;color:#0f4fbf;font-weight:700}

/* Koszyk: automatyczne przeliczanie / stan ładowania */
#shop-cart-root {
  position: relative;
  transition: opacity .16s ease;
}
#shop-cart-root.shop-cart-loading {
  opacity: .62;
  cursor: progress;
}
#shop-cart-root.shop-cart-loading::after {
  content: "Przeliczanie…";
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 5;
  padding: 6px 10px;
  border: 1px solid #dbe5f0;
  border-radius: 999px;
  background: rgba(255,255,255,.96);
  color: #536273;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 3px 12px rgba(15,23,42,.08);
}
.shop-ui .shop-cart-auto-note {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  margin-top: -4px;
  color: #6b7280;
  font-size: 12px;
}
.shop-ui .shop-cart-auto-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #22c55e;
}
.shop-ui .shop-cart-remove {
  white-space: nowrap;
  cursor: pointer;
}
@media (max-width: 720px) {
  .shop-ui .shop-cart-auto-note { justify-content: flex-start; }
}

/* Koszyk: stabilny układ responsywny */
@media (max-width: 900px) {
  .shop-ui .shop-cart-table { min-width: 760px; table-layout: fixed; }
  .shop-ui .shop-cart-table .shop-col-price { width: 135px; }
  .shop-ui .shop-cart-table .shop-col-value { width: 145px; }
  .shop-ui .shop-cart-table .shop-col-action { width: 96px; }
}
@media (max-width: 640px) {
  .shop-ui .shop-cart-shell { gap: 14px; }
  .shop-ui .shop-table-wrap { border-radius: 10px; }
  .shop-ui .shop-cart-auto-note { margin-top: 0; }
}

/* Podsumowanie zamówienia */
.shop-ui .shop-checkout-data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 2px 0 4px;
}
.shop-ui .shop-checkout-card {
  padding: 18px;
  border: 1px solid var(--shop-border);
  border-radius: var(--shop-radius);
  background: #fff;
  box-shadow: 0 3px 14px rgba(15, 23, 42, .04);
}
.shop-ui .shop-checkout-card h3 {
  margin: 0 0 14px;
  color: #1f2937;
  font-size: 17px;
}
.shop-ui .shop-checkout-data-row {
  display: grid;
  grid-template-columns: minmax(120px, .8fr) minmax(0, 1.2fr);
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid #eef1f4;
  align-items: start;
}
.shop-ui .shop-checkout-data-row:last-of-type { border-bottom: 0; }
.shop-ui .shop-checkout-data-row span { color: var(--shop-muted); }
.shop-ui .shop-checkout-data-row strong {
  color: #111827;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.shop-ui .shop-checkout-edit { margin: 14px 0 0; }
.shop-ui .shop-checkout-edit a { font-weight: 650; }
.shop-ui .shop-order-notes {
  margin: 0;
  padding: 16px 18px;
  border: 1px solid var(--shop-border);
  border-radius: var(--shop-radius-sm);
  background: var(--shop-surface-soft);
}
.shop-ui .shop-order-notes textarea {
  display: block;
  width: 100% !important;
  max-width: none !important;
  height: 140px !important;
  min-height: 140px !important;
  margin-top: 10px;
  box-sizing: border-box;
  resize: vertical;
}
.shop-ui .shop-payu-error-detail {
  display: inline-block;
  margin-top: 8px;
  color: #8a1c1c;
  font-size: 13px;
  line-height: 1.45;
}
.shop-ui .shop-total-netto {
  margin-top: -4px;
  padding: 0 0 8px;
  text-align: right;
  font-size: 12px;
}
.shop-ui .shop-total-final strong { font-size: 20px; }
.shop-ui .shop-checkout-info {
  padding: 14px 16px;
  border: 1px solid var(--shop-border);
  border-radius: var(--shop-radius-sm);
  background: #fff;
}

@media (max-width: 760px) {
  .shop-ui .shop-checkout-data-grid { grid-template-columns: 1fr; }
  .shop-ui .shop-checkout-data-row { grid-template-columns: 1fr; gap: 3px; }
}

/* PayU - dynamiczny status płatności */
.shop-ui .shop-payu-status {
	position: relative;
}
.shop-ui .shop-payu-indicator {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 28px;
	margin: 6px 0 4px;
}
.shop-ui .shop-payu-spinner {
	width: 18px;
	height: 18px;
	border: 3px solid #dbeafe;
	border-top-color: #1473e6;
	border-radius: 50%;
	animation: shopPayuSpin .9s linear infinite;
}
.shop-ui .shop-payu-status.is-paid .shop-payu-spinner,
.shop-ui .shop-payu-status.is-failed .shop-payu-spinner {
	animation: none;
	border: 0;
	width: auto;
	height: auto;
}
.shop-ui .shop-payu-status.is-paid .shop-payu-spinner::before {
	content: "✓";
	font-size: 28px;
	font-weight: 700;
	color: #16a34a;
}
.shop-ui .shop-payu-status.is-failed .shop-payu-spinner::before {
	content: "!";
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #fee2e2;
	color: #b91c1c;
	font-weight: 700;
}
.shop-ui .shop-payu-hint {
	font-size: 13px;
	color: #6b7280;
	margin-top: 10px;
}
.shop-ui .shop-payu-status.is-paid .shop-payu-hint {
	color: #15803d;
}
.shop-ui .shop-payu-status.is-failed .shop-payu-hint {
	color: #b91c1c;
}
@keyframes shopPayuSpin { to { transform: rotate(360deg); } }

/* Nawigacja koszyka i linki produktów */
.shop-ui .shop-cart-product-link { color: inherit !important; text-decoration: none !important; }
.shop-ui .shop-cart-product-link:hover { color: var(--shop-primary) !important; text-decoration: underline !important; }
.shop-ui a.shop-cart-thumb { text-decoration: none !important; }
.shop-ui .shop-actions-between { justify-content: space-between; align-items: center; }
.shop-ui .shop-actions-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
@media (max-width: 720px) {
  .shop-ui .shop-actions-between, .shop-ui .shop-actions-right { width: 100%; flex-direction: column; align-items: stretch; }
  .shop-ui .shop-actions-right { margin-left: 0; }
}

/* Widok Lista: jednakowa wysokosc produktow i odpornosc na opisy HTML */
@media (min-width: 1051px) {
  .shop-ui .shop-product-row {
    height: 220px;
    min-height: 220px;
    align-items: stretch;
    overflow: hidden;
  }
  .shop-ui .shop-row-media {
    height: 100%;
    min-height: 0;
  }
  .shop-ui .shop-row-media img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 150px;
  }
  .shop-ui .shop-row-content {
    display: flex;
    min-width: 0;
    height: 100%;
    flex-direction: column;
    overflow: hidden;
  }
  .shop-ui .shop-row-content h3 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .shop-ui .shop-row-content .shop-muted,
  .shop-ui .shop-row-content .shop-card-code {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .shop-ui .shop-row-description {
    display: -webkit-box;
    min-height: calc(1.55em * 3);
    max-height: calc(1.55em * 3);
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-height: 1.55;
  }
  .shop-ui .shop-row-content .shop-badges {
    margin-top: auto;
    margin-bottom: 0;
    padding-top: 8px;
  }
  .shop-ui .shop-row-side {
    display: flex;
    height: 100%;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
  }
}

/* =====================================================================
   Koszyk – rozbudowany widok (24.09.2026)
   Wyłącznie #shop-cart-root: bez wpływu na katalog, kartę produktu
   i finalizację zamówienia. Funkcjonalność formularza pozostaje bez zmian.
   ===================================================================== */
#shop-cart-root {
  --cart-accent: #1677ff;
  --cart-accent-dark: #0b5ed7;
  --cart-accent-soft: #eef6ff;
  --cart-ink: #172033;
  --cart-muted: #6e7b8d;
  --cart-line: #e1e8f0;
  --cart-surface-soft: #f7faff;
}

#shop-cart-root .shop-cart-shell {
  gap: 22px;
}

/* Etapy zamówienia */
#shop-cart-root .shop-cart-steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr) 44px minmax(0, 1fr);
  align-items: center;
  margin: 0;
  padding: 16px 20px;
  border: 1px solid var(--cart-line);
  border-radius: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #f7faff 100%);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .045);
}
#shop-cart-root .shop-cart-step {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
  color: #8792a3;
}
#shop-cart-root .shop-cart-step-number {
  display: inline-flex;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid #d8e0ea;
  border-radius: 50%;
  background: #fff;
  color: #79869a;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 2px 7px rgba(15, 23, 42, .05);
}
#shop-cart-root .shop-cart-step-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}
#shop-cart-root .shop-cart-step-copy strong {
  color: #647186;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
#shop-cart-root .shop-cart-step-copy small {
  overflow: hidden;
  color: #96a0ae;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#shop-cart-root .shop-cart-step.is-active .shop-cart-step-number {
  border-color: var(--cart-accent);
  background: linear-gradient(135deg, #2384ff 0%, #0d6efd 100%);
  color: #fff;
  box-shadow: 0 5px 14px rgba(13, 110, 253, .25);
}
#shop-cart-root .shop-cart-step.is-active .shop-cart-step-copy strong {
  color: var(--cart-ink);
}
#shop-cart-root .shop-cart-step.is-active .shop-cart-step-copy small {
  color: #5c6c81;
}
#shop-cart-root .shop-cart-step-line {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: #e6ebf2;
}

/* Karta produktów */
#shop-cart-root .shop-cart-products-card {
  overflow: hidden;
  border: 1px solid var(--cart-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .055);
}
#shop-cart-root .shop-cart-products-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 17px 20px 15px;
  border-bottom: 1px solid var(--cart-line);
  background: linear-gradient(90deg, #ffffff 0%, #f7faff 100%);
}
#shop-cart-root .shop-cart-products-head h3,
#shop-cart-root .shop-cart-panel-head h3,
#shop-cart-root .shop-cart-summary-head h3 {
  margin: 2px 0 0;
  color: var(--cart-ink);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.012em;
}
#shop-cart-root .shop-cart-products-head p,
#shop-cart-root .shop-cart-panel-head p {
  max-width: 520px;
  margin: 0;
  color: var(--cart-muted);
  font-size: 12px;
  line-height: 1.45;
  text-align: right;
}
#shop-cart-root .shop-cart-kicker {
  display: block;
  color: var(--cart-accent-dark);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: .09em;
  text-transform: uppercase;
}
#shop-cart-root .shop-cart-products-card .shop-table-wrap {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
#shop-cart-root .shop-cart-table {
  min-width: 900px;
}
#shop-cart-root .shop-cart-table .shop-col-index { width: 52px; }
#shop-cart-root .shop-cart-table .shop-col-photo { width: 102px; }
#shop-cart-root .shop-cart-table .shop-col-price { width: 155px; }
#shop-cart-root .shop-cart-table .shop-col-qty { width: 125px; }
#shop-cart-root .shop-cart-table .shop-col-value { width: 170px; }
#shop-cart-root .shop-cart-table .shop-col-action { width: 112px; }
#shop-cart-root .shop-cart-table th {
  padding-top: 12px;
  padding-bottom: 12px;
  background: #f7f9fc;
  color: #536175;
  font-size: 11px;
  letter-spacing: .055em;
}
#shop-cart-root .shop-cart-table td {
  padding-top: 17px;
  padding-bottom: 17px;
}
#shop-cart-root .shop-cart-table tbody tr {
  transition: background-color .16s ease;
}
#shop-cart-root .shop-cart-table tbody tr:hover td {
  background: #fbfdff;
}
#shop-cart-root .shop-cart-thumb {
  width: 76px;
  height: 76px;
  padding: 6px;
  border: 1px solid #e7edf4;
  border-radius: 12px;
  background: linear-gradient(145deg, #fff 0%, #f5f8fc 100%);
  box-shadow: 0 3px 9px rgba(15, 23, 42, .045);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
#shop-cart-root .shop-cart-thumb:hover {
  border-color: #b9d7ff;
  box-shadow: 0 6px 16px rgba(13, 110, 253, .10);
  transform: translateY(-1px);
}
#shop-cart-root .shop-cart-product {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
}
#shop-cart-root .shop-cart-col-price .shop-cart-price {
  display: block;
  color: #263247;
  font-weight: 750;
}
#shop-cart-root .shop-cart-col-price small {
  margin-top: 4px;
  color: #8490a1;
  font-size: 10px;
}
#shop-cart-root .shop-cart-col-value strong {
  color: #101828;
  font-size: 14px;
  font-weight: 850;
}
#shop-cart-root .shop-qty {
  width: 84px !important;
  min-height: 44px;
  padding: 9px 10px;
  border-color: #cfd9e6;
  border-radius: 10px;
  background: #fbfdff;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, .025);
}
#shop-cart-root .shop-qty:hover:not(:disabled) {
  border-color: #9ec5fe;
  background: #fff;
}
#shop-cart-root .shop-cart-remove {
  min-height: 36px;
  padding: 7px 12px;
  border-color: #f2d3d7;
  border-radius: 9px;
  background: #fff7f8;
  font-size: 12px;
  font-weight: 800;
}

/* Dwie główne karty: opcje + podsumowanie */
#shop-cart-root .shop-cart-lower {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, .75fr);
  gap: 22px;
  align-items: stretch;
}
#shop-cart-root .shop-cart-options-card,
#shop-cart-root .shop-cart-summary-card {
  min-width: 0;
  border: 1px solid var(--cart-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .055);
}
#shop-cart-root .shop-cart-options-card {
  overflow: hidden;
}
#shop-cart-root .shop-cart-panel-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--cart-line);
  background: linear-gradient(90deg, #f6faff 0%, #ffffff 75%);
}
#shop-cart-root .shop-cart-panel-head > div {
  min-width: 0;
}
#shop-cart-root .shop-cart-panel-head p {
  margin-top: 3px;
  text-align: left;
}
#shop-cart-root .shop-cart-panel-icon {
  position: relative;
  display: inline-flex;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid #cfe3ff;
  border-radius: 12px;
  background: #eaf4ff;
}
#shop-cart-root .shop-cart-panel-icon::before {
  width: 20px;
  height: 14px;
  border: 2px solid #1875e8;
  border-radius: 3px;
  content: "";
}
#shop-cart-root .shop-cart-panel-icon::after {
  position: absolute;
  width: 18px;
  height: 2px;
  margin-top: -5px;
  background: #1875e8;
  content: "";
}
#shop-cart-root .shop-cart-options-body {
  display: grid;
  gap: 15px;
  padding: 18px 20px 20px;
}
#shop-cart-root .shop-cart-options-body fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
#shop-cart-root .shop-cart-options-body legend {
  display: block;
  width: 100%;
  margin: 0 0 10px;
  padding: 0;
  color: #344054;
  font-size: 12px;
  font-weight: 850;
}
#shop-cart-root .shop-payment-list {
  display: grid;
  gap: 9px;
}
#shop-cart-root .shop-payment-option {
  display: flex;
  width: 100%;
  min-height: 50px;
  align-items: center;
  gap: 11px;
  margin: 0;
  padding: 11px 14px;
  border: 1px solid #dce5ef;
  border-radius: 11px;
  background: #fbfdff;
  color: #263247;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}
#shop-cart-root .shop-payment-option:hover {
  border-color: #acd0ff;
  background: #f6faff;
}
#shop-cart-root .shop-payment-option:has(input:checked) {
  border-color: #7db7ff;
  background: #eef6ff;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, .07);
}
#shop-cart-root .shop-payment-option input[type="radio"] {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 0;
  accent-color: var(--cart-accent);
}
#shop-cart-root .shop-cart-options-body > label {
  display: grid;
  gap: 7px;
  margin: 0;
  color: #344054;
  font-size: 12px;
  font-weight: 800;
}
#shop-cart-root .shop-cart-options-body > label select {
  margin-top: 0;
  background: #fbfdff;
}

/* Podsumowanie */
#shop-cart-root .shop-cart-summary-card {
  position: relative;
  overflow: hidden;
  padding: 0 20px 18px;
  background: linear-gradient(160deg, #ffffff 0%, #f8fbff 100%);
}
#shop-cart-root .shop-cart-summary-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, #0d6efd 0%, #4da0ff 100%);
  content: "";
}
#shop-cart-root .shop-cart-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 21px 0 15px;
  border-bottom: 1px solid var(--cart-line);
}
#shop-cart-root .shop-cart-summary-badge {
  display: inline-flex;
  min-width: 0;
  min-height: 27px;
  height: auto;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 5px 10px;
  border: 1px solid #d5e7ff;
  border-radius: 999px;
  background: #eef6ff;
  color: #1768c8;
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: .03em;
  white-space: nowrap;
}
#shop-cart-root .shop-summary {
  width: 100%;
  margin: 0;
  padding: 8px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
#shop-cart-root .shop-summary .shop-total {
  padding: 11px 0;
  border-bottom-color: #e8edf3;
  color: #405069;
  font-size: 13px;
}
#shop-cart-root .shop-summary .shop-total strong {
  color: #142033;
  font-size: 16px;
  font-weight: 850;
}
#shop-cart-root .shop-summary .shop-total-products {
  padding-bottom: 4px;
  border-bottom: 0;
}
#shop-cart-root .shop-cart-netto {
  margin: 0;
  padding: 2px 0 11px;
  border-bottom: 1px solid #e8edf3;
  color: #7a8798;
  font-size: 11px;
  line-height: 1.4;
  text-align: right;
}
#shop-cart-root .shop-summary .shop-total-discount {
  color: #16794b;
}
#shop-cart-root .shop-summary .shop-total-discount strong {
  color: #16794b;
}
#shop-cart-root .shop-summary .shop-total-final-cart {
  margin-top: 8px;
  padding: 14px 14px;
  border: 1px solid #d3e7ff;
  border-radius: 11px;
  background: #edf6ff;
  color: #124c91;
}
#shop-cart-root .shop-summary .shop-total-final-cart span {
  font-weight: 850;
}
#shop-cart-root .shop-summary .shop-total-final-cart strong {
  color: #0b4fa3;
  font-size: 22px;
  letter-spacing: -.02em;
}
#shop-cart-root .shop-cart-auto-note {
  justify-content: flex-start;
  gap: 8px;
  margin: 13px 0 0;
  padding: 10px 11px;
  border: 1px solid #dcefe5;
  border-radius: 9px;
  background: #f3fbf6;
  color: #527061;
  font-size: 11px;
  line-height: 1.4;
}
#shop-cart-root .shop-cart-auto-dot {
  width: 8px;
  height: 8px;
  flex-basis: 8px;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, .10);
}

/* Pasek akcji */
#shop-cart-root .shop-cart-actions-bar {
  margin: 0;
  padding: 15px 16px;
  border: 1px solid var(--cart-line);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 7px 20px rgba(15, 23, 42, .045);
}
#shop-cart-root .shop-cart-actions-bar .shop-btn {
  min-height: 44px;
  padding: 10px 17px;
  border-radius: 10px;
}
#shop-cart-root .shop-cart-back::before {
  margin-right: 1px;
  content: "←";
  font-size: 17px;
  line-height: 1;
}
#shop-cart-root .shop-cart-next {
  min-width: 210px;
  box-shadow: 0 7px 16px rgba(13, 110, 253, .18);
}
#shop-cart-root .shop-cart-next::after {
  margin-left: 2px;
  content: "→";
  font-size: 17px;
  line-height: 1;
}

/* Responsywność rozbudowanego koszyka */
@media (max-width: 900px) {
  #shop-cart-root .shop-cart-table { min-width: 800px; }
  #shop-cart-root .shop-cart-table .shop-col-photo { width: 94px; }
  #shop-cart-root .shop-cart-table .shop-col-price { width: 135px; }
  #shop-cart-root .shop-cart-table .shop-col-value { width: 145px; }
  #shop-cart-root .shop-cart-table .shop-col-action { width: 96px; }
}
@media (max-width: 980px) {
  #shop-cart-root .shop-cart-lower {
    grid-template-columns: 1fr;
  }
  #shop-cart-root .shop-cart-summary-card {
    width: 100%;
  }
}
@media (max-width: 760px) {
  #shop-cart-root .shop-cart-steps {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 13px 14px;
  }
  #shop-cart-root .shop-cart-step {
    display: none;
  }
  #shop-cart-root .shop-cart-step.is-active {
    display: flex;
  }
  #shop-cart-root .shop-cart-step-line {
    display: none;
  }
  #shop-cart-root .shop-cart-products-head {
    display: block;
    padding: 15px 16px;
  }
  #shop-cart-root .shop-cart-products-head p {
    margin-top: 6px;
    text-align: left;
  }
  #shop-cart-root .shop-cart-panel-head {
    padding: 15px 16px;
  }
  #shop-cart-root .shop-cart-options-body {
    padding: 15px 16px 17px;
  }
  #shop-cart-root .shop-cart-summary-card {
    padding-right: 16px;
    padding-left: 16px;
  }
  #shop-cart-root .shop-cart-actions-bar {
    padding: 13px;
  }
  #shop-cart-root .shop-cart-next {
    width: 100%;
    min-width: 0;
  }
}



/* Koszyk UI update 2026-09-24: etapy na każdym kroku + mocniejszy przycisk Usuń */
#shop-cart-root .shop-cart-step.is-done .shop-cart-step-number {
  border-color: #9bc2ff;
  background: linear-gradient(135deg, #eef5ff 0%, #dbeafe 100%);
  color: #0d5fd0;
  box-shadow: 0 4px 12px rgba(13, 110, 253, .12);
}
#shop-cart-root .shop-cart-step.is-done .shop-cart-step-copy strong {
  color: #36506f;
}
#shop-cart-root .shop-cart-step.is-done .shop-cart-step-copy small {
  color: #6b7f99;
}
#shop-cart-root .shop-cart-step-line.is-done {
  background: linear-gradient(90deg, #9bc2ff 0%, #0d6efd 100%);
}
#shop-cart-root .shop-cart-remove,
#shop-cart-root .shop-btn.shop-btn-danger.shop-cart-remove,
#shop-cart-root button.shop-btn.shop-btn-danger.shop-cart-remove {
  min-width: 92px;
  min-height: 38px;
  padding: 7px 13px;
  border: 1px solid #df5463;
  border-radius: 10px;
  background: linear-gradient(180deg, #fff6f7 0%, #feecef 100%);
  color: #b42318 !important;
  box-shadow: 0 3px 10px rgba(180, 35, 24, .08);
}
#shop-cart-root .shop-cart-remove::before {
  content: "✕";
  display: inline-block;
  margin-right: 6px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}
#shop-cart-root .shop-cart-remove:hover,
#shop-cart-root .shop-btn.shop-btn-danger.shop-cart-remove:hover,
#shop-cart-root button.shop-btn.shop-btn-danger.shop-cart-remove:hover,
#shop-cart-root .shop-cart-remove:focus {
  border-color: #c83c4b;
  background: linear-gradient(180deg, #fce8eb 0%, #f9d8de 100%);
  color: #8f1d16 !important;
  box-shadow: 0 8px 18px rgba(180, 35, 24, .14);
}
#shop-cart-root .shop-cart-remove:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(223, 84, 99, .18), 0 8px 18px rgba(180, 35, 24, .14);
}
#shop-cart-root.shop-cart-loading .shop-cart-remove {
  opacity: .88;
}
#shop-cart-root .shop-empty-cart,
#shop-cart-root .shop-success-box,
#shop-cart-root #shop-payu-return {
  margin-top: 2px;
}


/* Koszyk UI update 2026-09-24 v3: wizualne ujednolicenie kroku 2 */
#shop-cart-root .shop-checkout-shell {
  gap: 20px;
}
#shop-cart-root .shop-checkout-products-card .shop-table-wrap {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
#shop-cart-root .shop-checkout-products {
  min-width: 760px;
}
#shop-cart-root .shop-checkout-lower {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, .75fr);
  gap: 22px;
  align-items: start;
}
#shop-cart-root .shop-checkout-main {
  display: grid;
  gap: 22px;
  min-width: 0;
}
#shop-cart-root .shop-checkout-section-card {
  overflow: hidden;
  border: 1px solid var(--cart-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .055);
}
#shop-cart-root .shop-checkout-section-body {
  padding: 18px 20px 20px;
}
#shop-cart-root .shop-checkout-section-body > .shop-checkout-data-grid {
  margin: 0;
}
#shop-cart-root .shop-checkout-section-body > .shop-order-notes {
  margin-top: 18px;
  border: 1px solid #e6edf5;
  border-radius: 14px;
  background: #f8fbff;
}
#shop-cart-root .shop-checkout-section-body > .shop-checkout-info {
  gap: 12px;
  margin: 0;
}
#shop-cart-root .shop-checkout-section-body > .shop-checkout-info > div {
  padding: 12px 14px;
  border: 1px solid #e6edf5;
  border-radius: 12px;
  background: #fbfdff;
  color: #334155;
}
#shop-cart-root .shop-checkout-summary-card .shop-summary {
  padding: 14px 18px 10px;
}
#shop-cart-root .shop-checkout-summary-card .shop-total-netto {
  padding-left: 18px;
  padding-right: 18px;
}
#shop-cart-root .shop-checkout-note {
  padding: 14px 18px 18px;
  border-top: 1px solid var(--cart-line);
  color: #647186;
  font-size: 12px;
  line-height: 1.55;
}
#shop-cart-root .shop-checkout-note strong {
  color: #1b2b42;
}
@media (max-width: 980px) {
  #shop-cart-root .shop-checkout-lower {
    grid-template-columns: 1fr;
  }
}


/* Koszyk UI 24.09.2026 v4: klikalne, identyczne etapy + zielone potwierdzenie */
#shop-cart-root a.shop-cart-step,
#shop-cart-root button.shop-cart-step {
  width: 100%;
  margin: 0;
  padding: 4px 6px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: inherit;
  text-align: left;
  text-decoration: none !important;
  appearance: none;
  cursor: pointer;
  box-shadow: none;
}
#shop-cart-root a.shop-cart-step:hover,
#shop-cart-root button.shop-cart-step:hover {
  background: rgba(22, 119, 255, .045);
  text-decoration: none !important;
}
#shop-cart-root a.shop-cart-step:hover .shop-cart-step-number,
#shop-cart-root button.shop-cart-step:hover .shop-cart-step-number {
  border-color: #9ec5fe;
  box-shadow: 0 5px 13px rgba(13, 110, 253, .12);
  transform: translateY(-1px);
}
#shop-cart-root .shop-cart-step-number {
  transition: border-color .16s ease, background-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}
#shop-cart-root .shop-cart-step.is-confirmed .shop-cart-step-number {
  border-color: #22a06b;
  background: linear-gradient(135deg, #2fbd7f 0%, #16945e 100%);
  color: #fff;
  font-size: 17px;
  box-shadow: 0 5px 14px rgba(22, 148, 94, .24);
}
#shop-cart-root .shop-cart-step.is-confirmed .shop-cart-step-copy strong {
  color: #17643f;
}
#shop-cart-root .shop-cart-step.is-confirmed .shop-cart-step-copy small {
  color: #4b7b64;
}
#shop-cart-root .shop-cart-step-line.is-done {
  background: linear-gradient(90deg, #9bc2ff 0%, #0d6efd 100%);
}
#shop-cart-root .shop-cart-step.is-confirmed + .shop-cart-step-line,
#shop-cart-root .shop-cart-step-line.is-confirmed {
  background: #22a06b;
}

/* Krok 2 i 3 korzystają dokładnie z tej samej skali, promieni i odstępów co koszyk. */
#shop-cart-root .shop-checkout-shell,
#shop-cart-root .shop-cart-shell {
  gap: 22px;
}
#shop-cart-root .shop-checkout-products-card,
#shop-cart-root .shop-cart-products-card,
#shop-cart-root .shop-checkout-section-card,
#shop-cart-root .shop-cart-options-card,
#shop-cart-root .shop-cart-summary-card {
  border-radius: 18px;
}
#shop-cart-root .shop-checkout-products-card .shop-cart-products-head,
#shop-cart-root .shop-cart-products-card .shop-cart-products-head {
  min-height: 72px;
}
#shop-cart-root .shop-checkout-section-card .shop-cart-panel-head,
#shop-cart-root .shop-cart-options-card .shop-cart-panel-head {
  min-height: 74px;
}
#shop-cart-root .shop-checkout-data-grid {
  gap: 16px;
}
#shop-cart-root .shop-checkout-card {
  border-radius: 14px;
  box-shadow: none;
}
#shop-cart-root .shop-checkout-card h3 {
  font-size: 17px;
}
#shop-cart-root .shop-checkout-data-row {
  min-height: 42px;
  align-items: center;
}
#shop-cart-root .shop-checkout-products td,
#shop-cart-root .shop-checkout-products th {
  vertical-align: middle;
}
#shop-cart-root .shop-checkout-products .shop-cart-thumb {
  width: 76px;
  height: 76px;
}

@media (max-width: 760px) {
  #shop-cart-root a.shop-cart-step,
  #shop-cart-root button.shop-cart-step {
    display: none;
  }
  #shop-cart-root a.shop-cart-step.is-active,
  #shop-cart-root button.shop-cart-step.is-active,
  #shop-cart-root .shop-cart-step.is-confirmed {
    display: flex;
  }
}


/* Koszyk UI 24.09.2026 v5: spójne podsumowanie + etap 3 bez klikania */
#shop-cart-root .shop-checkout-summary-card .shop-summary {
  padding: 8px 0 0;
}
#shop-cart-root .shop-checkout-summary-card .shop-total-products {
  padding-bottom: 4px;
  border-bottom: 0;
}
#shop-cart-root .shop-checkout-summary-card .shop-cart-netto {
  margin: 0;
  padding: 2px 0 11px;
  border-bottom: 1px solid #e8edf3;
  color: #7a8798;
  font-size: 11px;
  line-height: 1.4;
  text-align: right;
}
#shop-cart-root .shop-checkout-summary-card .shop-total {
  padding: 11px 0;
  border-bottom-color: #e8edf3;
  color: #405069;
  font-size: 13px;
}
#shop-cart-root .shop-checkout-summary-card .shop-total strong {
  color: #142033;
  font-size: 16px;
  font-weight: 850;
}
#shop-cart-root .shop-checkout-summary-card .shop-total-discount {
  color: #16794b;
}
#shop-cart-root .shop-checkout-summary-card .shop-total-discount strong {
  color: #16794b;
}
#shop-cart-root .shop-checkout-summary-card .shop-total-final-cart {
  margin-top: 8px;
  padding: 14px 14px;
  border: 1px solid #d3e7ff;
  border-radius: 11px;
  background: #edf6ff;
  color: #124c91;
}
#shop-cart-root .shop-checkout-summary-card .shop-total-final-cart span {
  font-weight: 850;
}
#shop-cart-root .shop-checkout-summary-card .shop-total-final-cart strong {
  color: #0b4fa3;
  font-size: 22px;
  letter-spacing: -.02em;
}
#shop-cart-root .shop-checkout-summary-card .shop-total-shipping strong {
  font-size: 16px;
}
#shop-cart-root .shop-checkout-summary-card .shop-cart-auto-note,
#shop-cart-root .shop-checkout-summary-card .shop-checkout-note {
  justify-content: flex-start;
  gap: 8px;
  margin: 13px 0 0;
  padding: 10px 11px;
  border: 1px solid #dcefe5;
  border-radius: 9px;
  background: #f3fbf6;
  color: #527061;
  font-size: 11px;
  line-height: 1.5;
}
#shop-cart-root .shop-checkout-summary-card .shop-checkout-note strong {
  color: #365746;
}
#shop-cart-root .shop-cart-step[aria-current="step"] {
  cursor: default;
}
#shop-cart-root .shop-cart-steps .shop-cart-step:not(.shop-cart-step-link),
#shop-cart-root .shop-cart-steps span.shop-cart-step {
  cursor: default;
}


/* Koszyk UI 24.09.2026 v6: etap 3 dopiero po płatności */
#shop-cart-root .shop-cart-steps .shop-cart-step:not(.shop-cart-step-link) {
  user-select: none;
}
#shop-cart-root .shop-cart-steps .shop-cart-step:not(.shop-cart-step-link):hover {
  background: transparent;
}
#shop-cart-root .shop-cart-steps .shop-cart-step:not(.shop-cart-step-link):hover .shop-cart-step-number {
  transform: none;
}


/* Koszyk UI 24.09.2026 v7: bezpieczna płatność online */
#shop-cart-root .shop-payment-security {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 11px 13px;
  border: 1px solid #dcefe5;
  border-radius: 11px;
  background: linear-gradient(180deg, #f7fcf9 0%, #f1faf5 100%);
}
#shop-cart-root .shop-payment-security-icon {
  position: relative;
  display: inline-flex;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2fbd7f 0%, #16945e 100%);
  box-shadow: 0 6px 16px rgba(22, 148, 94, .16);
}
#shop-cart-root .shop-payment-security-icon::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 14px;
  width: 14px;
  height: 10px;
  border: 2px solid #fff;
  border-top: 0;
  border-radius: 2px;
  box-sizing: border-box;
}
#shop-cart-root .shop-payment-security-icon::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 8px;
  width: 10px;
  height: 8px;
  border: 2px solid #fff;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  box-sizing: border-box;
}
#shop-cart-root .shop-payment-security-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}
#shop-cart-root .shop-payment-security-copy strong {
  color: #1e5f42;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
}
#shop-cart-root .shop-payment-security-copy small {
  color: #5d7a6b;
  font-size: 11px;
  line-height: 1.45;
}
#shop-cart-root .shop-payment-security-inline {
  margin-top: 2px;
}


/* Koszyk UI 24.09.2026 v9: kompaktowy poziomy układ adresu i faktury */
#shop-cart-root .shop-checkout-data-grid-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
#shop-cart-root .shop-checkout-data-grid-compact .shop-checkout-card {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #e1e8f0;
  border-radius: 14px;
  background: #fff;
}
#shop-cart-root .shop-checkout-card-head {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 14px;
  border-bottom: 1px solid #e8edf3;
  background: linear-gradient(90deg, #fbfdff 0%, #f6faff 100%);
}
#shop-cart-root .shop-checkout-card-title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}
#shop-cart-root .shop-checkout-card-title h3 {
  margin: 0;
  color: #172033;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.25;
}
#shop-cart-root .shop-checkout-card-icon {
  position: relative;
  display: inline-flex;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border: 1px solid #cfe2ff;
  border-radius: 9px;
  background: #eef6ff;
}
#shop-cart-root .shop-checkout-card-icon-shipping::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  width: 14px;
  height: 10px;
  border: 2px solid #1677ff;
  border-radius: 2px;
  box-sizing: border-box;
}
#shop-cart-root .shop-checkout-card-icon-shipping::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 19px;
  width: 4px;
  height: 4px;
  border: 2px solid #1677ff;
  border-radius: 50%;
  box-sizing: border-box;
  box-shadow: 8px 0 0 -2px #eef6ff, 8px 0 0 0 #1677ff;
}
#shop-cart-root .shop-checkout-card-icon-invoice::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  width: 13px;
  height: 17px;
  border: 2px solid #1677ff;
  border-radius: 2px;
  box-sizing: border-box;
}
#shop-cart-root .shop-checkout-card-icon-invoice::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 11px;
  width: 8px;
  height: 2px;
  background: #1677ff;
  box-shadow: 0 4px 0 #1677ff;
}
#shop-cart-root .shop-checkout-change {
  display: inline-flex;
  min-height: 31px;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border: 1px solid #cfe2ff;
  border-radius: 8px;
  background: #fff;
  color: #0d6efd !important;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none !important;
  white-space: nowrap;
  transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}
#shop-cart-root .shop-checkout-change:hover {
  border-color: #8fbeff;
  background: #f4f9ff;
  box-shadow: 0 4px 10px rgba(13,110,253,.08);
}
#shop-cart-root .shop-checkout-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  padding: 7px 14px 11px;
}
#shop-cart-root .shop-checkout-fields .shop-checkout-data-row {
  display: grid;
  grid-template-columns: 1fr;
  align-content: center;
  gap: 2px;
  min-height: 52px;
  padding: 7px 10px;
  border: 0;
  border-bottom: 1px solid #edf1f5;
}
#shop-cart-root .shop-checkout-fields .shop-checkout-data-row:nth-child(odd) {
  border-right: 1px solid #edf1f5;
}
#shop-cart-root .shop-checkout-fields .shop-checkout-data-row span {
  color: #7a8798;
  font-size: 11px;
  line-height: 1.2;
}
#shop-cart-root .shop-checkout-fields .shop-checkout-data-row strong {
  color: #172033;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.3;
}
#shop-cart-root .shop-checkout-fields .shop-checkout-data-row:nth-last-child(-n+2) {
  border-bottom: 0;
}
#shop-cart-root .shop-order-notes-compact {
  margin-top: 14px !important;
  padding: 13px 14px !important;
}
#shop-cart-root .shop-order-notes-compact label {
  display: block;
  margin-bottom: 7px;
  color: #344054;
  font-size: 12px;
}
#shop-cart-root .shop-order-notes-compact textarea {
  height: 96px !important;
  min-height: 96px !important;
  margin-top: 0 !important;
  padding: 10px 12px;
  border-radius: 10px;
}
@media (max-width: 980px) {
  #shop-cart-root .shop-checkout-data-grid-compact {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  #shop-cart-root .shop-checkout-fields {
    grid-template-columns: 1fr;
  }
  #shop-cart-root .shop-checkout-fields .shop-checkout-data-row,
  #shop-cart-root .shop-checkout-fields .shop-checkout-data-row:nth-child(odd) {
    border-right: 0;
    border-bottom: 1px solid #edf1f5;
  }
  #shop-cart-root .shop-checkout-fields .shop-checkout-data-row:last-child {
    border-bottom: 0;
  }
  #shop-cart-root .shop-checkout-card-head {
    padding: 10px 12px;
  }
}


/* Koszyk UI 24.09.2026 v10: ikony / clipart przy PayU */
#shop-cart-root .shop-payment-option {
  position: relative;
  min-height: 64px;
  gap: 12px;
}
#shop-cart-root .shop-payment-main {
  display: grid;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}
#shop-cart-root .shop-payment-name {
  color: #263247;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
}
#shop-cart-root .shop-payment-note {
  color: #6d7d91;
  font-size: 11px;
  line-height: 1.35;
}
#shop-cart-root .shop-payment-mark {
  position: relative;
  display: inline-flex;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid #d9e8ff;
  border-radius: 11px;
  background: linear-gradient(180deg, #f8fbff 0%, #edf5ff 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}
#shop-cart-root .shop-payment-mark::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 12px;
  border: 2px solid #2384ff;
  border-radius: 3px;
  box-sizing: border-box;
  top: 10px;
  left: 8px;
}
#shop-cart-root .shop-payment-mark::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 2px;
  background: #2384ff;
  border-radius: 999px;
  top: 14px;
  left: 10px;
}
#shop-cart-root .shop-payment-mark-bolt {
  position: absolute;
  right: -3px;
  bottom: -4px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2fbd7f 0%, #16945e 100%);
  box-shadow: 0 4px 10px rgba(22, 148, 94, .18);
}
#shop-cart-root .shop-payment-mark-bolt::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 3px;
  width: 5px;
  height: 8px;
  background: #fff;
  clip-path: polygon(45% 0, 100% 0, 62% 42%, 100% 42%, 25% 100%, 42% 58%, 5% 58%);
}
#shop-cart-root .shop-payment-badges {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  margin-left: auto;
}
#shop-cart-root .shop-payment-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid #d8e7fb;
  border-radius: 999px;
  background: #f4f8ff;
  color: #4470a8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  white-space: nowrap;
}
#shop-cart-root .shop-payment-badge.is-secure {
  border-color: #cfe7da;
  background: #f3fbf6;
  color: #28704d;
}
#shop-cart-root .shop-payment-option:has(input:checked) .shop-payment-mark {
  border-color: #93c5fd;
  background: linear-gradient(180deg, #f2f8ff 0%, #e8f2ff 100%);
}
#shop-cart-root .shop-payment-option:has(input:checked) .shop-payment-name {
  color: #16325c;
}
@media (max-width: 760px) {
  #shop-cart-root .shop-payment-option {
    align-items: flex-start;
  }
  #shop-cart-root .shop-payment-badges {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
    padding-left: 30px;
  }
}


/* Koszyk UI 24.09.2026 v11: jednolita typografia tabeli w kroku 2 */
#shop-cart-root .shop-checkout-products th {
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}
#shop-cart-root .shop-checkout-products td {
  font-size: 14px;
  line-height: 1.4;
}
#shop-cart-root .shop-checkout-products td .shop-cart-product,
#shop-cart-root .shop-checkout-products td .shop-cart-product-link,
#shop-cart-root .shop-checkout-products td > strong {
  font-size: 14px;
  line-height: 1.4;
}
#shop-cart-root .shop-checkout-products td small,
#shop-cart-root .shop-checkout-products td .shop-muted {
  font-size: 10px;
  line-height: 1.35;
}
#shop-cart-root .shop-checkout-products td:nth-child(1),
#shop-cart-root .shop-checkout-products td:nth-child(4),
#shop-cart-root .shop-checkout-products td:nth-child(5),
#shop-cart-root .shop-checkout-products td:nth-child(6) {
  font-size: 14px;
}


/* Koszyk UI 24.09.2026 v12: spójny układ płatności i dostawy w kroku 2 */
#shop-cart-root .shop-payment-option-static {
  min-height: 58px;
  cursor: default;
  border-color: #dce5ef;
  background: #fbfdff;
  box-shadow: none;
}
#shop-cart-root .shop-payment-option-static:hover {
  border-color: #dce5ef;
  background: #fbfdff;
}
#shop-cart-root .shop-checkout-payment-review,
#shop-cart-root .shop-checkout-static-grid {
  display: grid;
  gap: 12px;
}
#shop-cart-root .shop-checkout-static-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
#shop-cart-root .shop-checkout-static-field {
  display: grid;
  gap: 8px;
}
#shop-cart-root .shop-checkout-static-label {
  display: block;
  color: #344054;
  font-size: 12px;
  font-weight: 850;
}
#shop-cart-root .shop-checkout-static-value {
  min-height: 48px;
  padding: 13px 15px;
  border: 1px solid #dce5ef;
  border-radius: 11px;
  background: #fbfdff;
  color: #263247;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}
#shop-cart-root .shop-payment-option .shop-payment-badges {
  display: none;
}
@media (max-width: 760px) {
  #shop-cart-root .shop-checkout-static-grid {
    grid-template-columns: 1fr;
  }
}

/* Koszyk UI 24.09.2026 v16: dodatkowi uczestnicy kursu */
#shop-cart-root .shop-course-participants-row > td {
  padding: 0 14px 16px;
  border-top: 0;
  background: #fff;
}
#shop-cart-root .shop-course-participants {
  overflow: hidden;
  border: 1px solid #dbe8f7;
  border-radius: 13px;
  background: linear-gradient(180deg, #fbfdff 0%, #f7fbff 100%);
  box-shadow: 0 6px 18px rgba(36, 91, 151, .05);
}
#shop-cart-root .shop-course-participants-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 15px;
  border-bottom: 1px solid #e6edf6;
  background: #f5f9ff;
}
#shop-cart-root .shop-course-participants-head > div {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}
#shop-cart-root .shop-course-participants-head h4 {
  margin: 0;
  color: #253750;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.3;
}
#shop-cart-root .shop-course-participants-head p {
  margin: 2px 0 0;
  overflow: hidden;
  color: #63758c;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#shop-cart-root .shop-course-participants-head > small {
  max-width: 440px;
  color: #6f8197;
  font-size: 11px;
  line-height: 1.45;
  text-align: right;
}
#shop-cart-root .shop-course-participants-icon {
  position: relative;
  display: inline-flex;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid #cfe2ff;
  border-radius: 10px;
  background: #eaf3ff;
}
#shop-cart-root .shop-course-participants-icon::before,
#shop-cart-root .shop-course-participants-icon::after {
  content: "";
  position: absolute;
  border: 2px solid #2f80ed;
  border-radius: 50%;
  box-sizing: border-box;
}
#shop-cart-root .shop-course-participants-icon::before {
  left: 10px;
  top: 6px;
  width: 10px;
  height: 10px;
}
#shop-cart-root .shop-course-participants-icon::after {
  left: 7px;
  top: 18px;
  width: 16px;
  height: 9px;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
}
#shop-cart-root .shop-course-participants-list {
  display: grid;
  gap: 10px;
  padding: 12px 14px 14px;
}
#shop-cart-root .shop-course-participant {
  padding: 11px 12px 12px;
  border: 1px solid #e2eaf3;
  border-radius: 11px;
  background: #fff;
}
#shop-cart-root .shop-course-participant-head {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-bottom: 8px;
}
#shop-cart-root .shop-course-participant-head strong {
  color: #263b57;
  font-size: 12px;
  font-weight: 850;
}
#shop-cart-root .shop-course-participant-head span {
  color: #8090a3;
  font-size: 10px;
  font-weight: 650;
}
#shop-cart-root .shop-course-participant-fields {
  display: grid;
  grid-template-columns: minmax(105px,.9fr) minmax(125px,1fr) minmax(190px,1.45fr) minmax(205px,1.45fr) minmax(120px,.9fr);
  gap: 10px;
  align-items: end;
}
#shop-cart-root .shop-course-participant-fields label {
  display: grid;
  gap: 5px;
  min-width: 0;
  margin: 0;
}
#shop-cart-root .shop-course-participant-fields label > span {
  color: #607188;
  font-size: 10px;
  font-weight: 800;
}
#shop-cart-root .shop-course-participant-fields input {
  width: 100%;
  height: 38px;
  min-width: 0;
  padding: 0 10px;
  border: 1px solid #d5dfeb;
  border-radius: 8px;
  outline: 0;
  background: #fff;
  color: #253247;
  font-size: 12px;
  font-weight: 650;
  box-sizing: border-box;
  transition: border-color .15s ease, box-shadow .15s ease;
}
#shop-cart-root .shop-course-participant-fields input:focus {
  border-color: #73adf5;
  box-shadow: 0 0 0 3px rgba(47,128,237,.10);
}
#shop-cart-root .shop-course-review-card {
  margin-bottom: 16px;
}
#shop-cart-root .shop-course-review-card .shop-course-participants-icon {
  margin-top: 1px;
}
#shop-cart-root .shop-course-review-list {
  display: grid;
  gap: 10px;
}
#shop-cart-root .shop-course-review-person {
  display: grid;
  grid-template-columns: minmax(210px,.9fr) minmax(0,1.8fr);
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid #e0e8f2;
  border-radius: 10px;
  background: #fbfdff;
}
#shop-cart-root .shop-course-review-person-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
#shop-cart-root .shop-course-review-number {
  display: inline-flex;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eaf3ff;
  color: #236fce;
  font-size: 11px;
  font-weight: 900;
}
#shop-cart-root .shop-course-review-person-title strong {
  display: block;
  color: #263247;
  font-size: 13px;
  font-weight: 850;
}
#shop-cart-root .shop-course-review-person-title small {
  display: block;
  margin-top: 2px;
  color: #75859a;
  font-size: 10px;
}
#shop-cart-root .shop-course-review-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 8px 14px;
  align-items: center;
  color: #4d6078;
  font-size: 11px;
  line-height: 1.45;
}
#shop-cart-root .shop-course-review-details b {
  color: #34465c;
  font-weight: 800;
}
@media (max-width: 1080px) {
  #shop-cart-root .shop-course-participant-fields {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
  #shop-cart-root .shop-course-participant-address,
  #shop-cart-root .shop-course-participant-email {
    grid-column: auto;
  }
  #shop-cart-root .shop-course-review-person {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 680px) {
  #shop-cart-root .shop-course-participants-head {
    align-items: flex-start;
    flex-direction: column;
  }
  #shop-cart-root .shop-course-participants-head > small {
    max-width: none;
    text-align: left;
  }
  #shop-cart-root .shop-course-participant-fields,
  #shop-cart-root .shop-course-review-details {
    grid-template-columns: 1fr;
  }
}


/* Koszyk UI 25.09.2026 v23: większy odstęp przed sekcją uczestników */
#shop-cart-root .shop-course-participants-row > td {
  padding: 14px 14px 18px;
}
#shop-cart-root .shop-course-participants {
  margin-top: 2px;
}


/* Koszyk UI 25.09.2026 v26: bardziej czytelny podgląd uczestników */
#shop-cart-root .shop-course-review-list {
  gap: 14px;
}
#shop-cart-root .shop-course-review-person {
  grid-template-columns: minmax(240px, .95fr) minmax(0, 2fr);
  gap: 18px;
  padding: 16px 18px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fcfdff 0%, #f7fbff 100%);
  box-shadow: 0 6px 18px rgba(36, 91, 151, .05);
}
#shop-cart-root .shop-course-review-number {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  font-size: 18px;
}
#shop-cart-root .shop-course-review-person-title {
  gap: 14px;
}
#shop-cart-root .shop-course-review-person-title strong {
  font-size: 16px;
  line-height: 1.25;
}
#shop-cart-root .shop-course-review-person-title small {
  margin-top: 4px;
  font-size: 13px;
  color: #6480a4;
}
#shop-cart-root .shop-course-review-details {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 14px;
  align-items: stretch;
  color: #263247;
  font-size: 14px;
  line-height: 1.5;
}
#shop-cart-root .shop-course-review-details span {
  display: block;
  padding: 12px 14px;
  border: 1px solid #dbe8f7;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
#shop-cart-root .shop-course-review-details b {
  display: block;
  margin-bottom: 4px;
  color: #36506f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}


/* Koszyk UI 25.09.2026 v27: bardziej zwarty i spójny układ kroku 2 */
#shop-cart-root .shop-checkout-lower-balanced {
  grid-template-columns: minmax(0, 1.55fr) minmax(340px, .78fr);
  gap: 20px;
  align-items: start;
}
#shop-cart-root .shop-checkout-main-address {
  display: block;
  min-width: 0;
}
#shop-cart-root .shop-checkout-side {
  display: grid;
  gap: 20px;
  min-width: 0;
  align-content: start;
}
#shop-cart-root .shop-checkout-address-section,
#shop-cart-root .shop-checkout-payment-section,
#shop-cart-root .shop-checkout-side .shop-checkout-summary-card {
  margin: 0;
}
#shop-cart-root .shop-checkout-side .shop-checkout-summary-card {
  width: 100%;
}
#shop-cart-root .shop-checkout-payment-section .shop-cart-panel-head {
  min-height: 68px;
  padding: 15px 18px;
}
#shop-cart-root .shop-checkout-payment-section .shop-checkout-section-body {
  padding: 14px 16px 16px;
}
#shop-cart-root .shop-checkout-payment-section .shop-payment-security {
  margin-top: 10px;
}
#shop-cart-root .shop-checkout-address-section .shop-checkout-section-body {
  padding-bottom: 16px;
}
#shop-cart-root .shop-checkout-address-section .shop-order-notes-compact {
  margin-top: 14px;
}
@media (max-width: 1100px) {
  #shop-cart-root .shop-checkout-lower-balanced {
    grid-template-columns: 1fr;
  }
  #shop-cart-root .shop-checkout-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}
@media (max-width: 760px) {
  #shop-cart-root .shop-checkout-side {
    grid-template-columns: 1fr;
  }
}


/* Karta produktu 26.09.2026: wybierany układ treści i panelu zakupu */
.shop-ui .shop-product-layout-1 .shop-product-panel {
  float: right;
  margin: 0 0 24px 28px;
}
.shop-ui .shop-product-layout-2 .shop-product-panel {
  float: left;
  margin: 0 28px 24px 0;
}
.shop-ui .shop-product-layout-3,
.shop-ui .shop-product-layout-4 {
  display: flex;
  flex-direction: column;
}
.shop-ui .shop-product-layout-3 .shop-product-panel,
.shop-ui .shop-product-layout-4 .shop-product-panel {
  float: none;
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: minmax(180px,.8fr) minmax(220px,1fr) minmax(260px,1fr);
  gap: 18px;
  margin: 0;
  box-sizing: border-box;
  align-items: start;
}
.shop-ui .shop-product-layout-3 .shop-product-panel {
  order: 1;
  margin-bottom: 24px;
}
.shop-ui .shop-product-layout-3 .shop-description { order: 2; }
.shop-ui .shop-product-layout-4 .shop-description { order: 1; }
.shop-ui .shop-product-layout-4 .shop-product-panel {
  order: 2;
  margin-top: 24px;
}
.shop-ui .shop-product-layout-3 .shop-panel-media,
.shop-ui .shop-product-layout-4 .shop-panel-media {
  margin: 0;
  padding: 0 18px 0 0;
  border-right: 1px solid var(--shop-border);
  border-bottom: 0;
}
.shop-ui .shop-product-layout-3 .shop-product-meta,
.shop-ui .shop-product-layout-4 .shop-product-meta {
  min-height: 100%;
  padding: 0 18px 0 0;
  border-right: 1px solid var(--shop-border);
  border-bottom: 0;
}
.shop-ui .shop-product-layout-3 .shop-purchase-box,
.shop-ui .shop-product-layout-4 .shop-purchase-box {
  margin-top: 0;
}

@media (max-width: 900px) {
  .shop-ui .shop-product-layout-3 .shop-product-panel,
  .shop-ui .shop-product-layout-4 .shop-product-panel {
    grid-template-columns: minmax(170px,.8fr) minmax(0,1.2fr);
  }
  .shop-ui .shop-product-layout-3 .shop-purchase-box,
  .shop-ui .shop-product-layout-4 .shop-purchase-box {
    grid-column: 1 / -1;
    padding-top: 16px;
    border-top: 1px solid var(--shop-border);
  }
  .shop-ui .shop-product-layout-3 .shop-product-meta,
  .shop-ui .shop-product-layout-4 .shop-product-meta {
    padding-right: 0;
    border-right: 0;
  }
}

@media (max-width: 760px) {
  .shop-ui .shop-product-layout-1,
  .shop-ui .shop-product-layout-2,
  .shop-ui .shop-product-layout-3,
  .shop-ui .shop-product-layout-4 {
    display: flex;
    flex-direction: column;
  }
  .shop-ui .shop-product-layout-1 .shop-product-panel,
  .shop-ui .shop-product-layout-2 .shop-product-panel,
  .shop-ui .shop-product-layout-3 .shop-product-panel,
  .shop-ui .shop-product-layout-4 .shop-product-panel {
    float: none;
    display: block;
    width: auto;
    min-width: 0;
    margin-left: 0;
    margin-right: 0;
  }
  .shop-ui .shop-product-layout-1 .shop-description,
  .shop-ui .shop-product-layout-2 .shop-description,
  .shop-ui .shop-product-layout-4 .shop-description { order: 1; }
  .shop-ui .shop-product-layout-1 .shop-product-panel,
  .shop-ui .shop-product-layout-2 .shop-product-panel,
  .shop-ui .shop-product-layout-4 .shop-product-panel { order: 2; margin-top: 18px; margin-bottom: 0; }
  .shop-ui .shop-product-layout-3 .shop-product-panel { order: 1; margin-top: 0; margin-bottom: 18px; }
  .shop-ui .shop-product-layout-3 .shop-description { order: 2; }
  .shop-ui .shop-product-layout-3 .shop-panel-media,
  .shop-ui .shop-product-layout-4 .shop-panel-media {
    margin: 0 0 13px;
    padding: 0 0 13px;
    border-right: 0;
    border-bottom: 1px solid var(--shop-border);
  }
  .shop-ui .shop-product-layout-3 .shop-product-meta,
  .shop-ui .shop-product-layout-4 .shop-product-meta {
    min-height: 0;
    padding: 0 0 13px;
    border-right: 0;
    border-bottom: 1px solid var(--shop-border);
  }
  .shop-ui .shop-product-layout-3 .shop-purchase-box,
  .shop-ui .shop-product-layout-4 .shop-purchase-box {
    padding-top: 0;
    border-top: 0;
  }
}


/* Karta produktu 26.09.2026 v32: dodatkowe układy z tekstem opływającym koszyk */
/* Układy 1 i 2 pozostają klasycznymi dwiema kolumnami bez opływania. */
.shop-ui .shop-product-layout-1,
.shop-ui .shop-product-layout-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 28px;
  align-items: start;
}
.shop-ui .shop-product-layout-1 .shop-description {
  grid-column: 1;
  grid-row: 1;
}
.shop-ui .shop-product-layout-1 .shop-product-panel {
  float: none;
  grid-column: 2;
  grid-row: 1;
  width: auto;
  min-width: 0;
  margin: 0;
}
.shop-ui .shop-product-layout-2 {
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
}
.shop-ui .shop-product-layout-2 .shop-product-panel {
  float: none;
  grid-column: 1;
  grid-row: 1;
  width: auto;
  min-width: 0;
  margin: 0;
}
.shop-ui .shop-product-layout-2 .shop-description {
  grid-column: 2;
  grid-row: 1;
}

/* Układ 5: panel po prawej, tekst oblewa panel z lewej i wykorzystuje pełną szerokość poniżej. */
.shop-ui .shop-product-layout-5 {
  display: block;
}
.shop-ui .shop-product-layout-5 .shop-product-panel {
  float: right;
  width: clamp(270px, 31%, 350px);
  min-width: 0;
  margin: 0 0 22px 28px;
}
/* Układ 6: panel po lewej, tekst oblewa panel z prawej i wykorzystuje pełną szerokość poniżej. */
.shop-ui .shop-product-layout-6 {
  display: block;
}
.shop-ui .shop-product-layout-6 .shop-product-panel {
  float: left;
  width: clamp(270px, 31%, 350px);
  min-width: 0;
  margin: 0 28px 22px 0;
}
.shop-ui .shop-product-layout-5 .shop-description,
.shop-ui .shop-product-layout-6 .shop-description {
  display: block;
  min-width: 0;
}

@media (max-width: 900px) {
  .shop-ui .shop-product-layout-1,
  .shop-ui .shop-product-layout-2 {
    grid-template-columns: minmax(0, 1fr) minmax(250px, 300px);
    gap: 20px;
  }
  .shop-ui .shop-product-layout-2 {
    grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
  }
  .shop-ui .shop-product-layout-5 .shop-product-panel,
  .shop-ui .shop-product-layout-6 .shop-product-panel {
    width: min(300px, 38%);
  }
}

@media (max-width: 760px) {
  .shop-ui .shop-product-layout-1,
  .shop-ui .shop-product-layout-2,
  .shop-ui .shop-product-layout-5,
  .shop-ui .shop-product-layout-6 {
    display: flex;
    flex-direction: column;
  }
  .shop-ui .shop-product-layout-1 .shop-description,
  .shop-ui .shop-product-layout-2 .shop-description,
  .shop-ui .shop-product-layout-5 .shop-description,
  .shop-ui .shop-product-layout-6 .shop-description {
    order: 1;
  }
  .shop-ui .shop-product-layout-1 .shop-product-panel,
  .shop-ui .shop-product-layout-2 .shop-product-panel,
  .shop-ui .shop-product-layout-5 .shop-product-panel,
  .shop-ui .shop-product-layout-6 .shop-product-panel {
    float: none;
    order: 2;
    width: auto;
    min-width: 0;
    margin: 18px 0 0;
  }
}


/* Sklep 26.09.2026 v34: Zapowiedź i odliczanie do premiery */
.shop-ui .shop-availability-preview { background:#f4f0ff; color:#6741a5; }
.shop-ui .shop-availability-preview .shop-availability-dot { background:#8a63d2; }
.shop-ui .shop-premiere-countdown { margin-top:12px;padding:14px;border:1px solid #ddd2f4;border-radius:13px;background:linear-gradient(180deg,#faf8ff 0%,#f5f1ff 100%);color:#40345a; }
.shop-ui .shop-premiere-countdown-head { display:flex;align-items:center;gap:10px;margin-bottom:12px; }
.shop-ui .shop-premiere-countdown-head > div { display:grid;gap:2px; }
.shop-ui .shop-premiere-countdown-head strong { font-size:14px;font-weight:850;color:#5e3f99; }
.shop-ui .shop-premiere-countdown-head small { font-size:11px;color:#74658e; }
.shop-ui .shop-premiere-clock { position:relative;width:30px;height:30px;flex:0 0 30px;border:2px solid #8a63d2;border-radius:50%;background:#fff;box-sizing:border-box; }
.shop-ui .shop-premiere-clock:before { content:"";position:absolute;left:13px;top:6px;width:2px;height:8px;background:#8a63d2;border-radius:2px; }
.shop-ui .shop-premiere-clock:after { content:"";position:absolute;left:13px;top:13px;width:7px;height:2px;background:#8a63d2;border-radius:2px; }
.shop-ui .shop-premiere-units { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px; }
.shop-ui .shop-premiere-units span { display:grid;gap:2px;padding:8px 5px;border:1px solid #e5dcf6;border-radius:9px;background:#fff;text-align:center; }
.shop-ui .shop-premiere-units b { color:#4f3387;font-size:19px;line-height:1.1;font-weight:900; }
.shop-ui .shop-premiere-units small { color:#81749a;font-size:9px;text-transform:uppercase;letter-spacing:.04em; }
.shop-ui .shop-premiere-countdown.is-finished { border-color:#bfe3cf;background:#f2fbf6; }
.shop-ui .shop-premiere-countdown.is-finished .shop-premiere-countdown-head strong { color:#177048; }
@media (max-width:520px){.shop-ui .shop-premiere-units{grid-template-columns:repeat(2,minmax(0,1fr));}}


/* Karta produktu 26.09.2026 v37: stabilne opływanie panelu zakupowego.
 * Dotyczy wyłącznie wariantów 5 i 6. Panel jest prawdziwym floatem, a
 * techniczne wrappery HTML z edytora nie tworzą osobnej kolumny/BFC.
 * Dzięki temu linie tekstu biegną obok panelu, a po jego zakończeniu od razu
 * wykorzystują pełną szerokość karty produktu. */
.shop-ui .shop-product-layout-5,
.shop-ui .shop-product-layout-6 {
  display: block !important;
  overflow: visible !important;
  min-width: 0;
}
.shop-ui .shop-product-layout-5::after,
.shop-ui .shop-product-layout-6::after {
  display: block;
  clear: both;
  content: "";
}
.shop-ui .shop-product-layout-5 .shop-product-panel {
  float: right !important;
  width: clamp(270px, 31%, 350px);
  min-width: 0;
  margin: 0 0 22px 28px;
  clear: none !important;
}
.shop-ui .shop-product-layout-6 .shop-product-panel {
  float: left !important;
  width: clamp(270px, 31%, 350px);
  min-width: 0;
  margin: 0 28px 22px 0;
  clear: none !important;
}

/* Wrapper "Opis produktu" oraz dwa typowe wrappery CKEditora mają być
 * przezroczyste dla układu. To kluczowe: gdy pozostają zwykłymi blokami,
 * przeglądarka potrafi utrzymać całą sekcję w szerokości bocznej kolumny. */
.shop-ui .shop-product-layout-5 .shop-description,
.shop-ui .shop-product-layout-6 .shop-description,
.shop-ui .shop-product-layout-5 .shop-description-content,
.shop-ui .shop-product-layout-6 .shop-description-content {
  display: contents !important;
}
.shop-ui .shop-product-layout-5 .shop-description > h3,
.shop-ui .shop-product-layout-6 .shop-description > h3 {
  display: none !important;
}
.shop-ui .shop-product-layout-5 .shop-description-content > div[style*="width:100%"],
.shop-ui .shop-product-layout-5 .shop-description-content > div[style*="width: 100%"],
.shop-ui .shop-product-layout-6 .shop-description-content > div[style*="width:100%"],
.shop-ui .shop-product-layout-6 .shop-description-content > div[style*="width: 100%"] {
  display: contents !important;
}
.shop-ui .shop-product-layout-5 .shop-description-content > div[style*="width:100%"] > div[style*="width:100%"],
.shop-ui .shop-product-layout-5 .shop-description-content > div[style*="width:100%"] > div[style*="width: 100%"],
.shop-ui .shop-product-layout-5 .shop-description-content > div[style*="width: 100%"] > div[style*="width:100%"],
.shop-ui .shop-product-layout-5 .shop-description-content > div[style*="width: 100%"] > div[style*="width: 100%"],
.shop-ui .shop-product-layout-6 .shop-description-content > div[style*="width:100%"] > div[style*="width:100%"],
.shop-ui .shop-product-layout-6 .shop-description-content > div[style*="width:100%"] > div[style*="width: 100%"],
.shop-ui .shop-product-layout-6 .shop-description-content > div[style*="width: 100%"] > div[style*="width:100%"],
.shop-ui .shop-product-layout-6 .shop-description-content > div[style*="width: 100%"] > div[style*="width: 100%"] {
  display: contents !important;
}

/* Właściwe sekcje znajdujące się wewnątrz spłaszczonych wrapperów
 * mają w kodzie źródłowym czasem width:100%. Przy floacie taki box nie mieści
 * się obok panelu i przeglądarka zrzuca go pod panel. Dlatego tylko dla tych
 * dwóch wrapperów zdejmujemy sztywne width:100%, pozostawiając resztę stylu. */
.shop-ui .shop-product-layout-5 .shop-description-content > div[style*="width:100%"] > div[style*="width:100%"] > div,
.shop-ui .shop-product-layout-5 .shop-description-content > div[style*="width:100%"] > div[style*="width: 100%"] > div,
.shop-ui .shop-product-layout-5 .shop-description-content > div[style*="width: 100%"] > div[style*="width:100%"] > div,
.shop-ui .shop-product-layout-5 .shop-description-content > div[style*="width: 100%"] > div[style*="width: 100%"] > div,
.shop-ui .shop-product-layout-6 .shop-description-content > div[style*="width:100%"] > div[style*="width:100%"] > div,
.shop-ui .shop-product-layout-6 .shop-description-content > div[style*="width:100%"] > div[style*="width: 100%"] > div,
.shop-ui .shop-product-layout-6 .shop-description-content > div[style*="width: 100%"] > div[style*="width:100%"] > div,
.shop-ui .shop-product-layout-6 .shop-description-content > div[style*="width: 100%"] > div[style*="width: 100%"] > div {
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box;
}

/* Właściwe sekcje opisu nie mogą tworzyć nowego BFC ani mieć wymuszonej
 * szerokości bocznej kolumny. Pozostają zwykłymi blokami w tym samym
 * kontekście floata. */
.shop-ui .shop-product-layout-5 .shop-description-content div,
.shop-ui .shop-product-layout-5 .shop-description-content section,
.shop-ui .shop-product-layout-5 .shop-description-content article,
.shop-ui .shop-product-layout-5 .shop-description-content ol,
.shop-ui .shop-product-layout-5 .shop-description-content ul,
.shop-ui .shop-product-layout-5 .shop-description-content li,
.shop-ui .shop-product-layout-6 .shop-description-content div,
.shop-ui .shop-product-layout-6 .shop-description-content section,
.shop-ui .shop-product-layout-6 .shop-description-content article,
.shop-ui .shop-product-layout-6 .shop-description-content ol,
.shop-ui .shop-product-layout-6 .shop-description-content ul,
.shop-ui .shop-product-layout-6 .shop-description-content li {
  max-width: none !important;
  min-width: 0 !important;
  clear: none !important;
}
.shop-ui .shop-product-layout-5 .shop-description-content > div:not([style*="width"]),
.shop-ui .shop-product-layout-6 .shop-description-content > div:not([style*="width"]),
.shop-ui .shop-product-layout-5 .shop-description-content section,
.shop-ui .shop-product-layout-6 .shop-description-content section,
.shop-ui .shop-product-layout-5 .shop-description-content article,
.shop-ui .shop-product-layout-6 .shop-description-content article,
.shop-ui .shop-product-layout-5 .shop-description-content ol,
.shop-ui .shop-product-layout-6 .shop-description-content ol,
.shop-ui .shop-product-layout-5 .shop-description-content ul,
.shop-ui .shop-product-layout-6 .shop-description-content ul {
  width: auto !important;
  overflow: visible !important;
}

/* Wyróżniony pierwszy box w przykładowych opisach celowo zachowuje własne
 * overflow:hidden – dzięki temu jest estetycznym prostokątem obok panelu. */
.shop-ui .shop-product-layout-5 .shop-description-content > div[style*="width"] > div[style*="width"] > div:first-child,
.shop-ui .shop-product-layout-6 .shop-description-content > div[style*="width"] > div[style*="width"] > div:first-child {
  overflow: hidden !important;
}

@media (max-width: 900px) {
  .shop-ui .shop-product-layout-5 .shop-product-panel,
  .shop-ui .shop-product-layout-6 .shop-product-panel {
    width: min(300px, 38%);
  }
}
@media (max-width: 760px) {
  .shop-ui .shop-product-layout-5,
  .shop-ui .shop-product-layout-6 {
    display: flex !important;
    flex-direction: column;
  }
  .shop-ui .shop-product-layout-5 .shop-description,
  .shop-ui .shop-product-layout-6 .shop-description,
  .shop-ui .shop-product-layout-5 .shop-description-content,
  .shop-ui .shop-product-layout-6 .shop-description-content,
  .shop-ui .shop-product-layout-5 .shop-description-content > div[style*="width"],
  .shop-ui .shop-product-layout-6 .shop-description-content > div[style*="width"] {
    display: block !important;
    width: auto !important;
  }
  .shop-ui .shop-product-layout-5 .shop-description,
  .shop-ui .shop-product-layout-6 .shop-description { order: 1; }
  .shop-ui .shop-product-layout-5 .shop-product-panel,
  .shop-ui .shop-product-layout-6 .shop-product-panel {
    float: none !important;
    order: 2;
    width: auto;
    min-width: 0;
    margin: 18px 0 0;
  }
}


/* Karta produktu 26.09.2026 v38: mocne wyróżnienie promocji */
.shop-ui .shop-promo-line {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 12px 0 0;
  padding: 8px 11px;
  border: 1px solid #fdba74;
  border-radius: 10px;
  background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%);
  box-shadow: 0 5px 14px rgba(194, 65, 12, .08);
}
.shop-ui .shop-badge-promo {
  min-height: 28px;
  padding: 5px 11px;
  border-color: #ea580c;
  background: #ea580c;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .01em;
  box-shadow: 0 4px 10px rgba(234, 88, 12, .18);
}
.shop-ui .shop-old-price {
  color: #9a3412;
  font-size: 15px;
  font-weight: 800;
}
.shop-ui .shop-old-price del {
  color: #b91c1c;
  font-size: 16px;
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-decoration-color: #dc2626;
}


/* Karta produktu 26.09.2026 v39: wyśrodkowanie promocji, dostępności i CTA */
.shop-ui .shop-product-panel .shop-promo-line {
  display: flex;
  width: fit-content;
  max-width: 100%;
  justify-content: center;
  margin: 12px auto 0;
  padding: 6px 9px;
  border-color: #fed7aa;
  background: #fffaf4;
  box-shadow: none;
}
.shop-ui .shop-product-panel .shop-badge-promo {
  min-height: 24px;
  padding: 3px 9px;
  border-color: #fdba74;
  background: #fff3e6;
  color: #c65a0a;
  font-size: 12px;
  font-weight: 850;
  box-shadow: none;
}
.shop-ui .shop-product-panel .shop-old-price {
  color: #8a6f60;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}
.shop-ui .shop-product-panel .shop-old-price del {
  color: #a76b55;
  font-size: 14px;
  font-weight: 800;
  text-decoration-thickness: 1.5px;
  text-decoration-color: #c9876c;
}
.shop-ui .shop-product-panel .shop-availability {
  display: flex;
  width: fit-content;
  max-width: 100%;
  justify-content: center;
  margin: 12px auto 0;
  text-align: center;
}
.shop-ui .shop-product-panel .shop-actions {
  justify-content: center;
}
.shop-ui .shop-product-panel .shop-actions .shop-btn-buy {
  margin-left: auto;
  margin-right: auto;
}


/* Karta produktu 26.09.2026 v40: Promocja nad aktualną ceną, stara cena pod nią */
.shop-ui .shop-product-panel .shop-promo-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 8px;
  margin: 0;
}
.shop-ui .shop-product-panel .shop-promo-block .shop-badge-promo {
  align-self: center;
  margin: 0 0 1px;
}
.shop-ui .shop-product-panel .shop-purchase-price-promo {
  width: 100%;
  margin: 0;
}
.shop-ui .shop-product-panel .shop-promo-block .shop-old-price {
  display: block;
  width: 100%;
  margin: 0;
  text-align: center;
}


/* Karta produktu 26.09.2026 v41: etykieta Promocja po prawej */
.shop-ui .shop-product-panel .shop-promo-block .shop-badge-promo {
  align-self: flex-end;
  margin-right: 0;
}


/* Koszyk UI 26.09.2026 v48: czytelniejsze opisy + wartość VAT w podsumowaniu */
#shop-cart-root .shop-cart-col-price small,
#shop-cart-root .shop-checkout-products td small,
#shop-cart-root .shop-checkout-products td .shop-muted,
#shop-cart-root .shop-cart-netto,
#shop-cart-root .shop-cart-netto small,
#shop-cart-root .shop-payment-note,
#shop-cart-root .shop-payment-security-copy small,
#shop-cart-root .shop-cart-panel-head p {
  font-size: 12px;
  line-height: 1.45;
}
#shop-cart-root .shop-summary .shop-total-vat,
#shop-cart-root .shop-checkout-summary-card .shop-total-vat {
  padding: 8px 0;
  color: #56667c;
  font-size: 12px;
  border-bottom-color: #e8edf3;
}
#shop-cart-root .shop-summary .shop-total-vat strong,
#shop-cart-root .shop-checkout-summary-card .shop-total-vat strong {
  color: #31435b;
  font-size: 14px;
  font-weight: 800;
}

/* Koszyk UI 01.10.2026 v49: porzadek w podsumowaniu wartosci */
#shop-cart-root .shop-cart-summary-head {
  min-width: 0;
}
#shop-cart-root .shop-cart-summary-head > div {
  min-width: 0;
}
#shop-cart-root .shop-cart-summary-badge {
  padding-right: 10px;
  padding-left: 10px;
}
#shop-cart-root .shop-summary .shop-total-products,
#shop-cart-root .shop-checkout-summary-card .shop-total-products {
  padding-bottom: 4px;
  border-bottom: 0;
}
#shop-cart-root .shop-cart-netto,
#shop-cart-root .shop-checkout-summary-card .shop-cart-netto {
  margin: 0;
  padding: 2px 0 11px;
  border-bottom: 1px solid #e8edf3;
  line-height: 1.4;
}



/* Potwierdzenie zamowienia - link do historii w osobnej, wycentrowanej linii */
.komunikat .shop-order-history-link {
    display: block;
    margin-top: 6px;
    text-align: center;
}

/* Koszyk UI 01.10.2026 v49: sposob dostawy w kroku 1 jak w podsumowaniu */
#shop-cart-root .shop-cart-col-product .shop-muted small {
  font-size: 12px;
  line-height: 1.45;
  font-weight: 400;
}

/* Koszyk UI 01.10.2026 v50: jednolita typografia tabel produktu w kroku 1 i 2 */
#shop-cart-root .shop-cart-table th,
#shop-cart-root .shop-checkout-products th {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: .045em;
}

#shop-cart-root .shop-cart-table td,
#shop-cart-root .shop-checkout-products td {
  font-size: 14px;
  line-height: 1.4;
}

#shop-cart-root .shop-cart-table .shop-cart-product,
#shop-cart-root .shop-cart-table .shop-cart-product-link,
#shop-cart-root .shop-checkout-products .shop-cart-product,
#shop-cart-root .shop-checkout-products .shop-cart-product-link {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
}

#shop-cart-root .shop-cart-table .shop-cart-col-product .shop-muted,
#shop-cart-root .shop-cart-table .shop-cart-col-product .shop-muted small,
#shop-cart-root .shop-checkout-products td .shop-muted,
#shop-cart-root .shop-checkout-products td .shop-muted small {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
}

#shop-cart-root .shop-cart-table .shop-cart-price,
#shop-cart-root .shop-checkout-products td:nth-child(4) {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

#shop-cart-root .shop-cart-table .shop-cart-col-price small,
#shop-cart-root .shop-checkout-products td:nth-child(4) small {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
}

#shop-cart-root .shop-cart-table .shop-qty,
#shop-cart-root .shop-checkout-products td:nth-child(5) {
  font-size: 14px;
  line-height: 1.4;
}

#shop-cart-root .shop-cart-table .shop-cart-col-value strong,
#shop-cart-root .shop-checkout-products td:nth-child(6) strong {
  font-size: 16px;
  font-weight: 850;
  line-height: 1.35;
}

/* Koszyk 02.10.2026: wybór innego uczestnika przy zakupie jednego miejsca */
#shop-cart-root .shop-course-participants-single {
  background: #fff;
}
#shop-cart-root .shop-course-participant-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 14px 16px;
  cursor: pointer;
  background: #f8fbff;
}
#shop-cart-root .shop-course-participant-toggle-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
#shop-cart-root .shop-course-participant-toggle-box {
  position: relative;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border: 1px solid #aebed2;
  border-radius: 5px;
  background: #fff;
  box-sizing: border-box;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
#shop-cart-root .shop-course-participant-toggle-input:focus + .shop-course-participant-toggle .shop-course-participant-toggle-box {
  box-shadow: 0 0 0 3px rgba(47,128,237,.12);
}
#shop-cart-root .shop-course-participant-toggle-input:checked + .shop-course-participant-toggle .shop-course-participant-toggle-box {
  border-color: #1677ff;
  background: #1677ff;
}
#shop-cart-root .shop-course-participant-toggle-input:checked + .shop-course-participant-toggle .shop-course-participant-toggle-box::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
#shop-cart-root .shop-course-participant-toggle-copy {
  display: grid;
  gap: 2px;
}
#shop-cart-root .shop-course-participant-toggle-copy strong {
  color: #253750;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.3;
}
#shop-cart-root .shop-course-participant-toggle-copy small {
  color: #6f8197;
  font-size: 11px;
  line-height: 1.4;
}
#shop-cart-root .shop-course-participant-single-fields {
  display: none;
  border-top: 1px solid #e6edf6;
}
#shop-cart-root .shop-course-participant-toggle-input:checked ~ .shop-course-participant-single-fields {
  display: block;
}
