/* --- Podstawowe Style --- */
.blaty-container {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(390px, 2fr);
  gap: 40px;
  max-width: 1430px;
  margin: 0 auto;
  font-family: 'Segoe UI', sans-serif;
  padding: 20px;
  font-size: 15px;
}

/* ZMIANA: .blaty-left z dodanym flexem */
.blaty-left {
  width: 100%; 
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important; 
}

/* NOWOŚĆ: Pływający lewy panel tylko na większych ekranach (od 900px szerokości) */
@media (min-width: 900px) {
  .blaty-left {
    position: sticky !important;
    top: 40px; /* Odległość od górnej krawędzi ekranu przy scrollowaniu */
    align-self: start; /* ZAPOBIEGA rozciąganiu się kolumny do wysokości formularza, co jest kluczowe dla sticky */
    max-height: calc(100vh - 60px); /* Zabezpieczenie: jeśli ktoś ma bardzo niski monitor, panel zyska własny delikatny scroll */
    overflow-y: auto;
  }
  
  /* Ładniejszy, cienki pasek scrolla dla lewego panelu (jeśli ekran jest bardzo niski) */
  .blaty-left::-webkit-scrollbar {
    width: 6px;
  }
  .blaty-left::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
  }
}

.blaty-right {
  width: 100%;
}.blaty-right {
  width: 100%;
}

.blaty-box {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(0,0,0,0.05);
  padding: 20px;
  width: 100%;
  max-width: 600px;
  margin-bottom: 24px;
  box-sizing: border-box;
  /* margin: auto nie jest potrzebne, bo flex centruje */
}

.blaty-left .blaty-box,
.blaty-left .svg-container,
.blaty-left .blaty-svg-title {
  max-width: 820px;
}
#decor-preview-image {
  width: 100%;
  max-width: 350px;
  height: auto;
  max-height: 250px;
  object-fit: contain;
  display: block;
  margin: 10px auto; /* Centruje wewnątrz boxa */
  border-radius: 6px;
}


/* --- Style Formularza (bez zmian) --- */
.blaty-form input[type="text"],
.blaty-form input[type="email"],
.blaty-form input[type="tel"],
.blaty-form input[type="number"],
.blaty-form select,
.blaty-form textarea {
  width: 100%;
  padding: 8px 10px;
  margin-top: 6px;
  margin-bottom: 12px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 15px;
  box-sizing: border-box;
}
.blaty-form label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 8px;
}
.blaty-form label.checkbox-label {
    flex-direction: row;
    align-items: center;
}
.blaty-form button {
  background: #0073aa;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
  width: 100%;
}
.blaty-form button:hover {
  background: #005f8d;
}
.blaty-form button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* --- Podgląd Ceny (bez zmian) --- */
.blaty-preview {
  font-size: 15px;
  margin-top: 20px;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 5px;
  line-height: 1.6;
}

/* --- Rysunek Techniczny (SVG) --- */
.blaty-svg-title {
  display: block;
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;
  width: 100%;
  max-width: 600px;
  margin: 20px 0 15px 0;
  box-sizing: border-box;
}
.svg-container {
  width: 100%;
  max-width: 820px;
  padding: 10px 0;
  box-sizing: border-box;
}
#tech-svg {
  width: 100%;
  height: auto;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  display: block;
}

/* --- Przycisku i Modal (Pop-up) (bez zmian) --- */
.blaty-modal-open-btn {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 10px;
  font-size: 16px;
  text-align: left;
  background: #f9f9f9;
  border: 1px solid #ccc;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.blaty-modal-open-btn:hover {
  background: #f1f1f1;
}
#selected-decor-thumb {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 15px;
  border: 1px solid #ddd;
}
.blaty-modal-overlay {
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}
.blaty-modal-content {
  background-color: #fefefe;
  margin: auto;
  border-radius: 8px;
  width: 100%;
  max-width: 900px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  animation: modal-fade-in 0.3s;
  display: flex;
  flex-direction: column;
}
.blaty-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 25px;
  border-bottom: 1px solid #e5e5e5;
}
.blaty-modal-header h3 {
  margin: 0;
  font-size: 20px;
}
.blaty-modal-close {
  font-size: 32px;
  font-weight: bold;
  color: #aaa;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 5px;
  line-height: 1;
}
.blaty-modal-close:hover {
  color: #333;
}
.blaty-modal-body {
  padding: 25px;
  max-height: 70vh;
  overflow-y: auto;
}
@keyframes modal-fade-in {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* --- Siatka wzorów (bez zmian) --- */
.decor-selector {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 20px;
  margin-top: 10px;
}
.decor-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  border: 2px solid #eee;
  border-radius: 8px;
  padding: 10px;
  transition: all 0.2s ease;
}
.decor-option:hover {
  border-color: #0073aa;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}
.decor-option img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 8px;
}
.decor-option span {
  font-size: 13px;
  text-align: center;
  font-weight: 500;
}
.decor-option input[type="radio"] {
  display: none;
}
.decor-option input[type="radio"]:checked + img + span {
  font-weight: bold;
  color: #0073aa;
}
.decor-option.selected {
    border-color: #0073aa;
    background-color: #f4faff;
    box-shadow: 0 0 10px rgba(0, 115, 170, 0.7);
}
/* Styl dla dodatkowych informacji o wzorze (bez zmian) */
.decor-preview-details-container {
  text-align: center;
  margin-top: 8px;
  font-size: 14px;
  color: #555;
  line-height: 1.4;
}
.decor-preview-details-container span {
  display: inline-block;
  margin: 0 5px;
}

/* --- Podstawowe Style --- */
.blaty-container {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(390px, 2fr);
  gap: 40px;
  max-width: 1430px;
  margin: 0 auto;
  font-family: 'Segoe UI', sans-serif;
  padding: 20px;
  font-size: 15px;
}

.blaty-left {
  width: 100%; 
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important; 
}
.blaty-right {
  width: 100%;
}

.blaty-box {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(0,0,0,0.05);
  padding: 20px;
  width: 100%;
  max-width: 600px; 
  margin-bottom: 24px;
  box-sizing: border-box;
}

.blaty-left .blaty-box,
.blaty-left .svg-container,
.blaty-left .blaty-svg-title {
  max-width: 820px;
}
#decor-preview-image {
  width: 100%;
  max-width: 350px;
  height: auto;
  max-height: 250px;
  object-fit: contain;
  display: block;
  margin: 10px auto; 
  border-radius: 6px;
}

/* --- Style Formularza --- */
.blaty-form input[type="text"],
.blaty-form input[type="email"],
.blaty-form input[type="tel"],
.blaty-form input[type="number"],
.blaty-form select,
.blaty-form textarea {
  width: 100%;
  padding: 8px 10px;
  margin-top: 6px;
  margin-bottom: 12px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 15px;
  box-sizing: border-box;
}
.blaty-form label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 8px;
}
.blaty-form label.checkbox-label {
    flex-direction: row;
    align-items: center;
}
.blaty-form button {
  background: #0073aa;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
  width: 100%;
}
.blaty-form button:hover {
  background: #005f8d;
}
.blaty-form button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* --- Podgląd Ceny --- */
.blaty-preview {
  font-size: 15px;
  margin-top: 20px;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 5px;
  line-height: 1.6;
}

/* --- Rysunek Techniczny (SVG) --- */
.blaty-svg-title {
  display: block;
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;
  width: 100%;
  max-width: 600px;
  margin: 20px 0 15px 0;
  box-sizing: border-box;
}
.svg-container {
  width: 100%;
  max-width: 820px;
  padding: 10px 0;
  box-sizing: border-box;
}
#tech-svg {
  width: 100%;
  height: auto;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  display: block;
}

/* --- Przycisku i Modal --- */
.blaty-modal-open-btn {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 10px;
  font-size: 16px;
  text-align: left;
  background: #f9f9f9;
  border: 1px solid #ccc;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.blaty-modal-open-btn:hover {
  background: #f1f1f1;
}
#selected-decor-thumb {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 15px;
  border: 1px solid #ddd;
}
.blaty-modal-overlay {
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}
.blaty-modal-content {
  background-color: #fefefe;
  margin: auto;
  border-radius: 8px;
  width: 100%;
  max-width: 900px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  animation: modal-fade-in 0.3s;
  display: flex;
  flex-direction: column;
}
.blaty-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 25px;
  border-bottom: 1px solid #e5e5e5;
}
.blaty-modal-header h3 {
  margin: 0;
  font-size: 20px;
}
.blaty-modal-close {
  font-size: 32px;
  font-weight: bold;
  color: #aaa;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 5px;
  line-height: 1;
}
.blaty-modal-close:hover {
  color: #333;
}
.blaty-modal-body {
  padding: 25px;
  max-height: 70vh;
  overflow-y: auto;
}
@keyframes modal-fade-in {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* --- Siatka wzorów --- */
.decor-selector {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 20px;
  margin-top: 10px;
}
.decor-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  border: 2px solid #eee;
  border-radius: 8px;
  padding: 10px;
  transition: all 0.2s ease;
}
.decor-option:hover {
  border-color: #0073aa;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}
.decor-option img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 8px;
}
.decor-option span {
  font-size: 13px;
  text-align: center;
  font-weight: 500;
}
.decor-option input[type="radio"] {
  display: none;
}
.decor-option input[type="radio"]:checked + img + span {
  font-weight: bold;
  color: #0073aa;
}
.decor-option.selected {
    border-color: #0073aa;
    background-color: #f4faff;
    box-shadow: 0 0 10px rgba(0, 115, 170, 0.7);
}
.decor-preview-details-container {
  text-align: center;
  margin-top: 8px;
  font-size: 14px;
  color: #555;
  line-height: 1.4;
}
.decor-preview-details-container span {
  display: inline-block;
  margin: 0 5px;
}

/* DODANE: Styl dla radio buttonów kształtu */
.radio-shape {
    background: #f4faff;
    border: 1px solid #cce5ff;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}
.radio-shape:hover {
    background: #e2f0ff;
}

/* --- Filtry w modalu --- */
.blaty-filter-bar {
    padding: 15px 25px;
    background: #f4faff;
    border-bottom: 1px solid #e5e5e5;
}
.filter-inputs {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}
.filter-inputs input {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}
.decor-max-info {
    display: block;
    font-size: 11px;
    color: #888;
    margin-top: 4px;
}

/* --- Sekcja dynamicznych otworów --- */
.add-hole-btn {
    background-color: #fff;
    color: #0073aa;
    border: 1px dashed #0073aa;
    font-weight: bold;
}
.add-hole-btn:hover {
    background-color: #f4faff;
    color: #005f8d;
}
.hole-item-box {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
.remove-hole-btn {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    width: auto !important;
}
.remove-hole-btn:hover {
    background-color: #c82333;
}

/* --- Blokada formularza --- */
.blaty-locked {
    opacity: 0.4;
    pointer-events: none;
    position: relative;
    user-select: none;
    transition: opacity 0.3s ease;
}
.blaty-lock-overlay {
    display: none; /* Domyślnie ukryte, kontrolowane przez klasę blaty-locked */
}
.blaty-locked .blaty-lock-overlay {
    display: block;
    position: absolute;
    top: 50px; /* Nieco niżej, żeby było na wysokości pierwszych wymiarów */
    left: 50%;
    transform: translateX(-50%);
    background: #d9534f;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 14px;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    width: 80%;
    text-align: center;
    /* Dzięki temu myszka "przenika" przez nakładkę i widzi pointer-events:none kontenera pod spodem */
    pointer-events: none; 
}
.blaty-pulse-btn {
    animation: blaty-pulse 2s infinite;
    border: 2px solid #0073aa;
}
@keyframes blaty-pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 115, 170, 0.4); }
    70% { box-shadow: 0 0 0 12px rgba(0, 115, 170, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 115, 170, 0); }
}
/* --- Przełącznik Wizualizacji --- */
.viz-switch-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #0073aa;
    background: #f4faff;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid #cce5ff;
}
.viz-switch-label input {
    display: none;
}
.viz-slider {
    width: 34px;
    height: 18px;
    background-color: #ccc;
    border-radius: 20px;
    margin-right: 10px;
    position: relative;
    transition: 0.3s;
}
.viz-slider::before {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: white;
    top: 2px;
    left: 2px;
    transition: 0.3s;
}
.viz-switch-label input:checked + .viz-slider {
    background-color: #0073aa;
}
.viz-switch-label input:checked + .viz-slider::before {
    transform: translateX(16px);
}

/* --- Zmniejszenie fontów w oknie wyboru wzoru (Modal) --- */

/* 1. Główny tytuł: "Wybierz wzór blatu" */
.blaty-modal-header h3 {
    font-size: 20px; /* Zmniejsz lub zwiększ według uznania */
    margin: 0;
}

/* 2. Pogrubione nagłówki sekcji: "Wybierz technologię:" i "Filtruj po..." */
.blaty-filter-bar strong {
    font-size: 14px; 
}

/* 3. Etykiety przycisków wyboru: "Wszystkie", "Blaty Kompaktowe...", "Blaty Laminowane" */
.blaty-filter-bar label {
    font-size: 13px; 
    cursor: pointer;
}

/* === v3.5 Premium Foundation / UX polish === */
.blaty-container {
  --blaty-primary: #0f749f;
  --blaty-primary-dark: #075475;
  --blaty-accent: #16a34a;
  --blaty-danger: #dc2626;
  --blaty-ink: #172033;
  --blaty-muted: #64748b;
  --blaty-line: rgba(15, 116, 159, 0.16);
  --blaty-soft: #f5f9fc;
  align-items: start;
}
.blaty-box {
  border: 1px solid rgba(15, 116, 159, 0.10);
  box-shadow: 0 18px 45px rgba(15, 35, 52, 0.08);
  border-radius: 18px;
}
.blaty-form strong,
.blaty-svg-title,
.blaty-box > strong {
  color: var(--blaty-ink);
  letter-spacing: -0.01em;
}
.blaty-form input[type="text"],
.blaty-form input[type="email"],
.blaty-form input[type="tel"],
.blaty-form input[type="number"],
.blaty-form select,
.blaty-form textarea {
  border: 1px solid rgba(100, 116, 139, 0.26);
  border-radius: 12px;
  min-height: 42px;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.blaty-form input:focus,
.blaty-form select:focus,
.blaty-form textarea:focus {
  outline: none;
  border-color: var(--blaty-primary);
  box-shadow: 0 0 0 4px rgba(15, 116, 159, 0.12);
}
.blaty-form button,
.blaty-modal-open-btn,
.add-hole-btn,
#calculate-btn,
#order-btn,
#submit-order-btn {
  border-radius: 14px !important;
  min-height: 44px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.blaty-form button:not(.remove-hole-btn):not(.blaty-modal-open-btn),
#calculate-btn,
#order-btn,
#submit-order-btn {
  box-shadow: 0 10px 24px rgba(7, 84, 117, 0.18);
}
#calculate-btn {
  background: linear-gradient(135deg, var(--blaty-primary), var(--blaty-primary-dark));
}
#order-btn,
#submit-order-btn {
  background: linear-gradient(135deg, #16a34a, #087f3d) !important;
}
.blaty-preview {
  background: linear-gradient(135deg, #f8fbfd, #eef7fb);
  border: 1px solid var(--blaty-line);
  border-radius: 16px;
  color: var(--blaty-ink);
}
.svg-container {
  background: linear-gradient(180deg, #fff, #f7fbfd);
  border: 1px solid var(--blaty-line);
  border-radius: 20px;
  padding: 14px;
  box-shadow: 0 18px 45px rgba(15, 35, 52, 0.08);
}
#tech-svg {
  box-shadow: none;
  border: 1px solid rgba(100, 116, 139, 0.15);
}
#decor-preview-image,
#selected-decor-thumb,
.decor-option img {
  background: #f8fafc;
}
.blaty-modal-overlay {
  background: rgba(3, 16, 28, 0.72);
  backdrop-filter: blur(8px);
}
.blaty-modal-content {
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.2);
  overflow: hidden;
}
.blaty-modal-header,
.blaty-filter-bar {
  background: linear-gradient(135deg, #f8fbfd, #edf7fb);
}
.decor-selector {
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
}
.decor-option {
  border-radius: 16px;
  border-color: rgba(100, 116, 139, 0.16);
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 35, 52, 0.045);
}
.decor-option:hover,
.decor-option.selected {
  border-color: var(--blaty-primary);
  box-shadow: 0 14px 32px rgba(15, 116, 159, 0.16);
}
.decor-max-info {
  color: var(--blaty-muted);
}
.radio-shape,
.checkbox-label {
  border-radius: 12px;
}
.radio-shape {
  border-color: var(--blaty-line);
  background: var(--blaty-soft);
}
.hole-item-box {
  border-radius: 16px;
  border-color: rgba(100, 116, 139, 0.16);
  box-shadow: 0 8px 20px rgba(15, 35, 52, 0.045);
}
.blaty-inline-message {
  padding: 13px 15px;
  border-radius: 14px;
  font-weight: 700;
  line-height: 1.45;
}
.blaty-inline-success { background:#ecfdf5; color:#047857; border:1px solid #a7f3d0; }
.blaty-inline-error { background:#fef2f2; color:#b91c1c; border:1px solid #fecaca; }
.blaty-inline-info { background:#eff6ff; color:#1d4ed8; border:1px solid #bfdbfe; }
.blaty-status-wrapper {
  border-radius: 22px !important;
  box-shadow: 0 18px 45px rgba(15, 35, 52, 0.10) !important;
}
@media (max-width: 760px) {
  .blaty-container {
    grid-template-columns: 1fr;
    padding: 12px;
    gap: 22px;
  }
  .blaty-box {
    max-width: 100%;
    border-radius: 16px;
    padding: 16px;
  }
  .decor-selector {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .blaty-modal-body { padding: 16px; }
}


/* v3.6.2 — UX dodawania otworów i wcięć */
.blaty-dynamic-add-toolbar {
  position: sticky;
  top: 12px;
  z-index: 8;
  padding: 8px 0 10px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.88));
  backdrop-filter: blur(6px);
  border-radius: 16px;
}
.blaty-dynamic-add-feedback {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1e40af;
  font-weight: 700;
  line-height: 1.35;
}
.blaty-dynamic-add-feedback.is-visible {
  display: flex;
}
.blaty-dynamic-add-feedback .blaty-jump-to-new-item {
  width: auto !important;
  min-height: 34px !important;
  padding: 7px 12px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #1d4ed8 !important;
  color: #fff !important;
  box-shadow: none !important;
  font-size: 12px !important;
  white-space: nowrap;
}
.hole-item-box.blaty-new-dynamic-item {
  border-color: #0ea5e9 !important;
  box-shadow: 0 0 0 4px rgba(14,165,233,.16), 0 18px 38px rgba(14,116,144,.14) !important;
  animation: blatyNewDynamicItem 1.25s ease-in-out 0s 2;
}
@keyframes blatyNewDynamicItem {
  0% { transform: translateY(0); background: #ffffff; }
  35% { transform: translateY(-3px); background: #f0f9ff; }
  100% { transform: translateY(0); background: #ffffff; }
}
@media (max-width: 760px) {
  .blaty-dynamic-add-toolbar {
    top: 0;
    padding: 8px;
    margin-left: -8px;
    margin-right: -8px;
  }
  .blaty-dynamic-add-toolbar .add-hole-btn {
    flex: 1 1 100%;
  }
  .blaty-dynamic-add-feedback {
    align-items: stretch;
    flex-direction: column;
  }
  .blaty-dynamic-add-feedback .blaty-jump-to-new-item {
    width: 100% !important;
  }
}


/* v3.7.0 — UX Pro: zwijane karty, mini-podsumowanie i kontrola przed wysyłką */
.blaty-dynamic-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid rgba(14, 116, 144, .16);
  border-radius: 16px;
  background: linear-gradient(135deg, #f8fbff, #eef8fb);
  color: #0f3349;
  font-size: 13px;
}
.blaty-dynamic-summary strong {
  margin-right: 4px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #005f8d;
}
.blaty-dynamic-summary span {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 5px 9px;
  background: #fff;
  border: 1px solid rgba(100,116,139,.14);
  border-radius: 999px;
}
.blaty-dynamic-summary b { color: #0073aa; }
.blaty-dynamic-summary.is-empty { opacity: .75; }
.hole-item-box.blaty-dyn-card {
  padding: 0;
  overflow: hidden;
}
.blaty-dyn-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px;
  background: linear-gradient(135deg, #ffffff, #f8fbff);
  border-bottom: 1px solid rgba(100,116,139,.12);
}
.blaty-dyn-card-titlewrap {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.blaty-dyn-title {
  color: #0073aa;
  font-size: 16px;
}
.blaty-dyn-desc {
  color: #64748b;
  font-size: 12px;
  line-height: 1.35;
}
.blaty-dyn-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}
.blaty-card-toggle {
  width: auto !important;
  min-height: 32px !important;
  padding: 6px 11px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #334155 !important;
  box-shadow: none !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}
.blaty-card-toggle:hover { background: #eef6fb !important; }
.blaty-dyn-body { padding: 16px; }
.hole-item-box.is-collapsed .blaty-dyn-body { display: none; }
.hole-item-box.is-collapsed .blaty-dyn-card-head { border-bottom: 0; }
.blaty-order-review-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, .62);
  backdrop-filter: blur(8px);
}
.blaty-order-review-dialog {
  width: min(1080px, 96vw);
  max-height: 92vh;
  overflow: auto;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 30px 90px rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.55);
}
.blaty-order-review-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  background: linear-gradient(135deg, #fff, #f8fbff);
  border-bottom: 1px solid #e2e8f0;
}
.blaty-review-eyebrow {
  color: #0073aa;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 5px;
}
.blaty-order-review-head h3 { margin: 0; color: #0f172a; font-size: 24px; }
.blaty-review-close {
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  border: 0 !important;
  background: #f1f5f9 !important;
  color: #334155 !important;
  font-size: 28px !important;
  line-height: 1 !important;
  box-shadow: none !important;
}
.blaty-order-review-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 22px;
}
.blaty-review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.blaty-review-grid > div,
.blaty-review-box,
.blaty-review-summary {
  padding: 13px 14px;
  border: 1px solid #dbe3ec;
  border-radius: 16px;
  background: #f8fbff;
}
.blaty-review-grid span,
.blaty-review-box span,
.blaty-review-summary span,
.blaty-review-preview-title {
  display: block;
  margin-bottom: 5px;
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.blaty-review-grid strong,
.blaty-review-box strong { color: #0f172a; font-size: 14px; line-height: 1.4; }
.blaty-review-box { margin-top: 10px; }
.blaty-review-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.blaty-review-metrics span {
  display: inline-flex;
  gap: 5px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #ecfeff;
  border: 1px solid #cffafe;
  color: #155e75;
  font-size: 12px;
  font-weight: 700;
}
.blaty-review-summary div { line-height: 1.55; color: #0f172a; }
.blaty-review-right {
  padding: 14px;
  border: 1px dashed #cbd5e1;
  border-radius: 18px;
  background: #fff;
}
.blaty-review-right img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 54vh;
  object-fit: contain;
}
.blaty-review-empty { padding: 30px; text-align: center; color: #64748b; }
.blaty-review-confirm {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 22px 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fffbea;
  border: 1px solid #fde68a;
  color: #854d0e;
  font-weight: 800;
}
.blaty-order-review-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 22px;
  background: rgba(255,255,255,.96);
  border-top: 1px solid #e2e8f0;
  backdrop-filter: blur(8px);
}
.blaty-review-back,
.blaty-review-send {
  width: auto !important;
  min-height: 44px !important;
  padding: 10px 16px !important;
  border-radius: 14px !important;
  font-weight: 900 !important;
}
.blaty-review-back { background: #f1f5f9 !important; color: #334155 !important; border: 1px solid #cbd5e1 !important; box-shadow: none !important; }
.blaty-review-send { background: #15803d !important; color: #fff !important; border: 0 !important; }
.blaty-review-send[disabled] { opacity: .45; cursor: not-allowed; }
@media (max-width: 860px) {
  .blaty-order-review-body { grid-template-columns: 1fr; }
  .blaty-review-grid { grid-template-columns: 1fr; }
  .blaty-order-review-modal { padding: 10px; }
  .blaty-order-review-head h3 { font-size: 20px; }
  .blaty-dyn-card-head { align-items: flex-start; flex-direction: column; }
  .blaty-dyn-actions { width: 100%; justify-content: space-between; }
}


.blaty-step-message {
  display: none;
  margin: 10px 0 14px;
  padding: 11px 13px;
  border-radius: 12px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-weight: 700;
  line-height: 1.45;
}
.blaty-step-message.is-visible { display: block; }
.blaty-help-note,
.blaty-mini-info,
.blaty-info-panel {
  margin: 10px 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fbff;
  border: 1px solid #dbeafe;
  color: #334155;
  font-size: 13px;
  line-height: 1.55;
}
.blaty-mini-info { background:#f0fdf4; border-color:#bbf7d0; color:#166534; }
.blaty-info-panel ul { margin: 8px 0 0 18px; padding: 0; }
.blaty-info-panel li { margin: 3px 0; }
@media (max-width: 980px) {
  .blaty-container { grid-template-columns: 1fr; max-width: 100%; }
  .blaty-left .blaty-box,
  .blaty-left .svg-container,
  .blaty-left .blaty-svg-title { max-width: 600px; }
}


/* === v3.8.1 layout polish overrides === */
.blaty-container {
  grid-template-columns: minmax(0, 1.55fr) minmax(380px, 1fr) !important;
  gap: 48px !important;
  max-width: min(1680px, calc(100vw - 40px)) !important;
  align-items: start;
}
.blaty-left {
  align-items: stretch !important;
}
.blaty-left .blaty-box,
.blaty-left .svg-container,
.blaty-left .blaty-svg-title,
.blaty-left > div[style*="max-width: 920px"],
.blaty-left > div[style*="max-width: 600px"] {
  width: 100% !important;
  max-width: 980px !important;
}
.blaty-right .blaty-box {
  max-width: 100% !important;
}
.svg-container {
  padding: 18px !important;
}
@media (max-width: 1320px) {
  .blaty-container {
    grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.95fr) !important;
    gap: 30px !important;
    max-width: min(1460px, calc(100vw - 28px)) !important;
  }
}
@media (max-width: 980px) {
  .blaty-container {
    grid-template-columns: 1fr !important;
    max-width: calc(100vw - 20px) !important;
  }
  .blaty-left .blaty-box,
  .blaty-left .svg-container,
  .blaty-left .blaty-svg-title,
  .blaty-right .blaty-box {
    max-width: 100% !important;
  }
}


/* === v3.9.0 Dopasowana wyspa === */
.blaty-island-section {
  margin: 22px 0;
}
.blaty-island-main-btn {
  width: 100%;
  border: 0;
  border-radius: 16px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #0f766e, #0ea5e9);
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .02em;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(14, 165, 233, .18);
}
.blaty-island-panel {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid #bfdbfe;
  border-radius: 22px;
  background: linear-gradient(180deg, #f8fbff, #ffffff);
  box-shadow: 0 18px 45px rgba(15, 35, 52, .08);
}
.blaty-island-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}
.blaty-island-head strong {
  display:block;
  font-size: 18px;
  color: #0f3557;
}
.blaty-island-head p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 13px;
}
.blaty-small-danger {
  border: 0;
  border-radius: 12px;
  padding: 10px 13px;
  background: #fee2e2;
  color: #991b1b;
  font-weight: 800;
  cursor: pointer;
}
.blaty-island-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.blaty-island-leg-box {
  margin-top: 12px;
  padding: 14px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.blaty-island-message {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.45;
}
.blaty-island-message.ok {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}
.blaty-island-message.warn {
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
}
.blaty-island-preview-wrap {
  margin-top: 16px;
}
.blaty-island-svg-container {
  margin-top: 10px;
  max-width: 100%;
}
#island-svg {
  width: 100%;
  height: auto;
  display: block;
  background: #fff;
  border: 1px solid rgba(100,116,139,.15);
  border-radius: 14px;
}
@media (max-width: 760px) {
  .blaty-island-grid {
    grid-template-columns: 1fr;
  }
  .blaty-island-head {
    flex-direction: column;
  }
}
