.my_creator {
  
  display: block;
  justify-content: space-between; /* tekst po lewej, przycisk po prawej */
  align-items: center;
  background: #f0f0f0;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  max-width: 800px;
  margin: 2rem auto; /* wycentrowanie na stronie */
}
.header {
  justify-content:center !important;
  display: flex;
  align-items: center !important;
  background: #ffffff;
  padding: 1rem;
  max-width: 800px;
  margin: 0.2rem auto; /* wycentrowanie na stronie */
  text-align: center !important;
}

.header h2 {
  font-size: 30px;
  font-weight: 500;
  color: #222;
  font-family: "Inter", sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.2;



}

.header h2.interactive,
.color-section h3.interactive 
 {
 
  position: relative;
  padding-left: 50px; /* nie potrzebujemy miejsca z lewej */
  padding-right: 50px; /* miejsce na strzałkę po prawej */
}


/* Strzałka po lewej */
.header h2.interactive::before ,
.color-section h3.interactive::before {
  content: "⬇︎"; /* możesz zmienić na ↓ ⇩ ⬇︎ ⟱ */

  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 35px;
  color: #0078ff;
  animation: bounceDown 1.2s infinite ease-in-out;
}

/* Strzałka po prawej */
.header h2.interactive::after,
.color-section h3.interactive::after {
  content: "⬇︎";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 30px;
  color: #0078ff;
  animation: bounceDown 1.2s infinite ease-in-out;
}

@keyframes bounceDown {
  0%   { transform: translateY(-70%); }
  50%  { transform: translateY(-40%); }
  100% { transform: translateY(-70%); }
}






.my-header  {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
  text-align: center;
}

.toggle-btn {
  background-color: #007acc;
  color: white;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
}

.toggle-btn:hover {
  background-color: #005fa3;
}




.options div {
  padding: 0.5rem;
  cursor: pointer;
}


 
.options {
  
  margin-top: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  /*background: #fff;*/
  padding: 0.5rem;
  /* układ w poziomie */
  justify-content: center;    /* wyśrodkowanie */
  gap: 1rem;                  /* odstęp między opcjami */
  display: block;
}

.options.hidden {
  display: none;
}
.hidden { 
   display: none !important;
}

.options label {
  display: flex;
  flex-direction: column;     /* obrazek nad podpisem */

  align-items: center;
  gap: 1px;
  padding: 0.5rem;
  cursor: pointer;
}

.section img:hover {
  background: #f0f0f0;
}

.options img {
  width: 80px;
  height: auto;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 4px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 6px;                   /* odstęp między kropką a tekstem */
}

.section-title {
  margin: 1rem 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #007acc;
  border-bottom: 1px solid #ccc;
  padding-bottom: 0.3rem;
}

.section {
  
  display: flex;            
  flex-wrap: wrap;

  justify-content: flex-start;
  gap: 0.1rem;
  margin-bottom: 0.1rem;

}

.section label {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}
.section label:hover {
  background: #f0f8ff; /* lekki niebieski */
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0,122,204,0.3);
}
.section label:hover span {
  
  font-weight: 600;
  text-decoration: underline;
}
.section label:hover input[type="radio"] {
  accent-color: #007acc; /* nowoczesne przeglądarki */
  transform: scale(1.1); /* lekkie powiększenie */
  transition: transform 0.2s ease;
}


.section img {
  width: 100px;
  height: auto;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 4px;
  margin-bottom: 0.5rem;
}

#previewSection.preview-card {
  max-width: 1000px;
  margin: 0px auto;
  padding: 30px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
  font-family: 'Segoe UI', sans-serif;
}

#previewSection .preview-columns {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

#previewSection .preview-left {
  flex: 1 1 55%;
  text-align: center;
}



#previewSection .preview-image img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.dimensions-title {
  font-size: 24px;
  color: #333;
  margin-bottom: 10px;
  text-align: left;
}


#dimensionForm label {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: 600;
  color: #333;
}

#dimensionForm input {
  margin-top: 0.3rem;
  padding: 0.4rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  width: 40px;
  text-align: center;
  font-size: 14px;

}

#dimensionForm {
  
  
  padding: 0.2rem;
  width: 90%;
  min-width: 250px;
  
}
#dimensionForm h3 {
  margin-top: 0;
}
#dimensionForm label {
  display: block;
  margin: 0.5rem 0;
  font-family:'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
  font-size: 0.8rem;
  width: 100%;
}
.preview-content {
  
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}
.preview-image {
    text-align: left !important;
}
.preview-image img {
  width: 95%;
  max-width: 500px;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 8px;

}
.section-header {
  display: flex;
  align-items: center;
  text-align: left !important;
  justify-content:space-between;
  gap: 10px;
}

.preview-form form {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  align-items: flex-start;
}
.preview-form  {
  margin-right: 0px;
  padding: 0px;
}
.preview-form h2 {
  text-align: center;
  color: #a53232;
}
.preview-form  td {
  padding-right: 0.5rem;
 text-align: left;
 font-family:'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
  font-size: 0.8rem;
}

.preview-form label {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  color: #333;
}

.preview-form input {
  margin-top: 0.3rem;
  padding: 0.4rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 50px;
  text-align: center;
}

.unit {
  background-color: #106330;
  color: white;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.9rem;
  margin-left: 6px;

}

.fabric-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  padding: 10px;
}

.fabric-item {
  background: #fff;
  border-radius: 10px;
  overflow: hidden; /* KLUCZOWE — blokuje powiększenie w środku */
  cursor: pointer;
  text-align: center;
  border: 2px solid transparent;
  transition: border-color 0.25s ease;
}

.section-header {
  display: flex;
  align-items: left;
  justify-content: space-between;
}



/* Powiększenie zdjęcia bez zmiany obrysu */
.fabric-item:hover img {
  transform: scale(1.12); /* możesz zmienić na 1.1–1.2 */
}
.fabric-item:hover {
  border-color: #333;
}

.fabric-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease; /* płynne powiększenie */
}


.fabric-item span {
  display: block;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.color-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
  gap: 8px;
}



.color-item {
  cursor: pointer;
  text-align: center;
  position: relative;
  padding: 4px;
  border-radius: 8px;
  background: #f9f9f9;
  border: 1px solid #ddd;
  transition: 0.2s;
  max-width: 70px;
}

.color-item:hover {
  transform: scale(1.05);
}

.color-swatch {
  width: 24px;
  height: 24px;
  border-radius: 3px;
  margin: 0 auto 3px;
  border: 2px solid #ccc;
  background: #eee;
}



/* ✅ aktywny kafelek */
.color-item.active {
  outline: 3px solid #4CAF50;
}


.color-item.active::after {
  content: "✔";
  position: absolute;
  top: 5px;
  right: 10px;
  font-size: 1rem;
  color: #4CAF50;
  font-weight: bold;
}


.preview-card {
  max-width: 1000px;
  margin: 40px auto;
  padding: 30px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
  font-family: 'Segoe UI', sans-serif;
}
.preview-columns {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.preview-left {
  flex: 1 1 40%;
  text-align: center;
}


.preview-header h2 {
  font-size: 24px;
  color: #333;
  margin-bottom: 5px;
}

.preview-header h3 {
  font-size: 18px;
  color: #666;
}
#fabricPreviewImage {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.preview-right {
  flex: 1 1 55%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}



.preview-right h2 {
  font-size: 22px;
  color: #333;
  margin-bottom: 5px;
}

.preview-right h3 {
  font-size: 18px;
  color: #666;
  margin-bottom: 10px;
}


.color-section h2 {
  font-size: 20px;
  color: #444;
  margin-bottom: 10px;
  text-align: center;
}
.color-section h3 {
  font-size: 18px;
  color: #444;
  margin-bottom: 10px;
}


.style-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.style-links a {
  padding: 10px 18px;
  background: #e8ecf0;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-size: 16px;
  transition: 0.2s ease;
}

.style-links a:hover {
  background: #005fa3;
}
.color-item span {
  font-size: 11px;
  font-weight: 500;
  color: #333;
  display: block;
  margin-top: 4px;
  word-break: break-word;
  line-height: 1.2;
  text-align: center;

}

/* --- SEAT FILLING SECTION --- */

#SeatFillingSection.option-card, 
#BackFillingSection.option-card,
#coverSection.option-card {
  max-width: 1000px;
  margin: 40px auto;
  padding: 30px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
  font-family: 'Segoe UI', sans-serif;
}





#SeatFillingSection .option-title,
#BackFillingSection .option-title
 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #333;
}

.filling-options,
.cover-options {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: nowrap;   /* ZAWSZE jedna linia */
}


.filling-item,
.back-filling-item,
.cover-item {
  flex: 1;                 /* każdy rośnie równomiernie */
  max-width: 150px;        /* ale nie większy niż 200px */
  min-width: 120px;        /* i nie mniejszy niż 120px */
  padding: 15px;
  border-radius: 12px;
  background: #f8f8f8;
  text-align: center;
  cursor: pointer;
  transition: 0.2s ease;
  border: 4px solid transparent;
}

.filling-item,
.back-filling-item 
{  max-width: 250px; }

.filling-item img,
.back-filling-item img,
.cover-item img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 10px;
}

.filling-item span,
.back-filling-item span {
  display: block;
  font-size: 16px;
  color: #333;
  font-weight: 500;
}

/* ACTIVE STATE */
.filling-item.active, 
.back-filling-item.active, 
.cover-item.active{
  border-color: #106330;
  background: #e8f5ee;
  box-shadow: 0 0 0 5px rgba(16, 99, 48, 0.2);
}

/* MOBILE */
@media (max-width: 768px) {
  .filling-options {
    gap: 20px;
  }

  .filling-item ,
  .back-filling-item ,
  .cover-item{
    width: 150px;
    padding: 10px;
  }

  

  .filling-item span, 
    .back-filling-item span
    {
    font-size: 14px;
  }
}
.default-note ,
.default-back-note
{
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #666;
  opacity: 0.8;
  text-align: center;
}



#PreviewSectionStyle .preview-columns {
  display: flex !important;
  flex-direction: row !important;
  gap: 40px;
  flex-wrap: nowrap;
}
#previewSection .preview-columns {
  display: flex !important;
  flex-direction: row !important;
  gap: 40px !important;
  flex-wrap: nowrap !important;
}

#configurator {
  position: relative;
  padding-bottom: 150px; /* żeby nic nie nachodziło na pasek */
}

.bottom-bar {
  position: sticky;
  bottom: 50px; /* odległość od dołu ekranu */
  
  width: 90%;
  max-width: 600px;
  margin: 0 auto;

  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  padding: 15px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;

  z-index: 50;
}


.qty-input {
  width: 80px;
  padding: 10px;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.add-btn {
  flex: 1;
  padding: 12px 20px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.2s ease;
}

.add-btn:hover {
  background: #333;
}
.add-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.add-btn[disabled] {
  position: relative;
}

/* dymek */
.add-btn[disabled]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 120%; /* nad przyciskiem */
  left: 50%;
  transform: translateX(-50%);
  
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

/* strzałka */
.add-btn[disabled]::before {
  content: "";
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.85) transparent transparent transparent;
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* pokazanie dymka przy hover */
.add-btn[disabled]:hover::after,
.add-btn[disabled]:hover::before {
  opacity: 1;
}

.added-items {
  background: #f4f4f4;
  border-top: 3px solid #ccc;
  padding: 20px;
  margin-top: 40px;
}

.added-items h2 {
  margin-bottom: 15px;
  font-size: 22px;
  color: #333;
}

.added-item-card {
  background: white;
  border: 1px solid #ddd;
  padding: 15px;
  margin-bottom: 12px;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.added-item-info {
  font-size: 14px;
  color: #444;
}

.remove-btn {
  background: #d9534f;
  color: white;
  border: none;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
}

.remove-btn:hover {
  background: #c9302c;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-controls button {
  width: 28px;
  height: 28px;
  border: none;
  background: #eee;
  font-size: 18px;
  cursor: pointer;
  border-radius: 4px;
}

.qty-value {
  min-width: 20px;
  text-align: center;
  font-weight: bold;
}
.shape-thumb {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 4px;
  background: #fff;
  border: 1px solid #ddd;
}



.floating-actions {
  position: fixed;
  right: -300px; /* start poza ekranem */
  bottom: 40px;
  display: flex;
  gap: 12px;
  transition: right 0.6s ease;
  z-index: 999;
}

.floating-actions.show {
  right: 40px; /* wjeżdża na ekran */
}

.action-btn {
  padding: 14px 22px;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  background: #0078ff;
  color: white;
}

.action-btn.secondary {
  background: #444;
}



.img-wrapper {
  position: relative;
  display: inline-block;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  font-size: 16px;
  pointer-events: none;
}

.img-wrapper:hover .overlay {
  opacity: 1;
}


/* SEKCJA */
.section_quote_form {
  margin-top: 40px;
  padding: 20px;
}

/* FORMULARZ */
.quote-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 400px;
}

.quote-form label {
  display: flex;
  flex-direction: column;
  font-weight: 500;
}

.quote-form input,
.quote-form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
}

#quoteSendBtn {
  padding: 12px;
  background: #0078ff;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 18px;
  cursor: pointer;
}

#quoteSendBtn:hover {
  background: #005fcc;
}

.note {
  margin-top: 10px;
  font-size: 14px;
  opacity: 0.7;
}

/* STRZAŁKI W NAGŁÓWKU */
h3.interactive {
  font-size: 24px;
  font-weight: 600;
  position: relative;
  padding: 0 32px;
}

h3.interactive::before,
h3.interactive::after {
  content: "⬇";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: #0078ff;
  animation: bounceDown 1.2s infinite ease-in-out;
}

h3.interactive::before {
  left: 0;
}

h3.interactive::after {
  right: 0;
}

@keyframes bounceDown {
  0%   { transform: translateY(-50%); }
  50%  { transform: translateY(-40%); }
  100% { transform: translateY(-50%); }
}


.color-swatch {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.color-swatch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



/* Kontener na input + jednostkę + suwak */


.slider-cell {
  display: flex;
  flex-direction: column;
  gap: 1px; /* odstęp między label a suwakiem */
}
.dimension-label {
  font-size: 18px !important;
  font-weight: 400; /* jeśli chcesz pogrubić */
}

/* Suwak */
.dimension-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 80% !important;
  height: 1px;
  
  cursor: pointer;
  border: none !important;
  outline: none;
  background: transparent;
  margin-top: 0px !important; /* <<< CENTROWANIE */
  padding-top: 0px !important;
}


.dimension-slider:focus {
  outline: none;
  border: none;
}

.dimension-slider::-webkit-slider-runnable-track {
  -webkit-appearance: none !important;
  appearance: none !important;
  height: 2px;
  background: #a52323;
   border: none;
  outline: none;

}

.dimension-slider::-moz-range-track {
  -webkit-appearance: none !important;
  appearance: none !important;  
  height: 2px;
  background: #a02121;
   border: none;
  outline: none;

}

/* Uchwyt suwaka */
.dimension-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  background: #6d0909;
  border-radius: 1%;
  cursor: pointer;
   border: none;
  outline: none;
  margin-top: -6px !important; /* <<< CENTROWANIE */


}

.dimension-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: #6d0909;
  border-radius: 1%;
  cursor: pointer;
   border: none;
  outline: none;
 margin-top: -6px !important; /* <<< CENTROWANIE */
}





/* --- MOBILE: jedna kolumna --- */
@media (max-width: 768px) {

  #PreviewSectionStyle .preview-columns {
    flex-direction: column !important;
    gap: 20px !important;
  }

  .preview-left,
  .preview-right {
    flex: 1 1 100% !important;
    max-width: 100% !important;
  }

  .preview-left {
    text-align: center !important;
  }

  #fabricPreviewImage {
    max-width: 100% !important;
    margin: 0 auto !important;
  }

  .style-links {
    justify-content: center !important;
  }

  .color-gallery {
    grid-template-columns: repeat(auto-fit, minmax(40px, 1fr)) !important;
    gap: 6px !important;
  }

  .color-item {
    padding: 2px !important;
    max-width: 50px !important;
  }

  .color-swatch {
    width: 24px !important;
    height: 24px !important;
    border-radius: 4px !important;
    margin-bottom: 3px !important;
  }

  .color-item span {
    font-size: 9px !important;
    line-height: 1.1 !important;
    margin-top: 2px !important;
    word-break: break-word;
  }

  .color-item.active::after {
    font-size: 14px !important;
    top: 2px !important;
    right: 4px !important;
  }
    #previewSection .preview-columns {
    flex-direction: column !important;
    gap: 20px;
  }

  #dimensionForm td {
    font-size: 14px;
  }

  #dimensionForm input {
    width: 70px;
  }
   .filling-options {
    flex-wrap: wrap;      /* pozwól łamać linię */
    flex-direction: column;
    align-items: center;
  }

  .filling-item,
   .back-filling-item,
  .cover-item {
    width: 100%;
    max-width: 300px;     /* możesz zmienić */
    min-width: unset;
  }



}