

/* MOBILE */
@media (max-width: 768px) {

.my_creator {
  
  display: block;
  justify-content: space-between; /* tekst po lewej, przycisk po prawej */
  align-items: center;
  background: #f0f0f0;
  padding: 0.3rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  max-width: 800px;
  margin: 0.2rem auto; /* wycentrowanie na stronie */
}

#SeatFillingSection.option-card, 
#BackFillingSection.option-card,
#coverSection.option-card {
  max-width: 800px;
  margin: 5px auto;
  padding: 10px;
  border-radius: 16px;
}

h2.interactive {
  font-size: 20px;
}

  .filling-options {
    gap: 20px;
  }

  .filling-item ,
  .back-filling-item ,
  .cover-item{
    width: 150px;
    padding: 10px;
  }

  .options div {
  padding: 0.1rem;
  cursor: pointer;
}


 
.options {
  
  margin-top: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  /*background: #fff;*/
  padding: 0.1rem;
  /* układ w poziomie */
  justify-content: center;    /* wyśrodkowanie */
  gap: 0.1rem;                  /* odstęp między opcjami */
  display: block;
}
.options label {
  display: flex;
  flex-direction: column;     /* obrazek nad podpisem */

  align-items: center;
  gap: 1px;
  padding: 0.1rem;
  cursor: pointer;
}


.options img {
  width: 100px;
  height: auto;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 3px;
}
.options span {
  font-size: 11px
}
  

  .filling-item span, 
    .back-filling-item span
    {
    font-size: 14px;
  }

/* Uchwyt suwaka */
.dimension-slider::-webkit-slider-thumb {
  
  width: 18px;
  height: 18px;
}

.filling-options {

  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: nowrap;   /* ZAWSZE jedna linia */
}

.unit {
  background-color: #106330;
  color: white;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.9rem;
  margin-left: 6px;

}

.dimensions-title {
  font-size: 18px;
  color: #333;
  margin-bottom: 3px;
  text-align: left;
}

#dimensionForm label {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: 600;
  color: #333;
  
}
.slider-cell {
  display: flex;
  flex-direction: column;
  gap: 1px; /* odstęp między label a suwakiem */
  width: 250px;
}

#dimensionForm input {
  margin-top: 0.1rem;
  padding: 0.2rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  width: 20px;
  text-align: center;
  font-size: 18px;

}
#dimensionForm table {
    width: 100%;
}


#dimensionForm {
  
  
  padding: 0.2rem;
  width: 100%;
  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%;
}




  #PreviewSectionStyle .preview-columns {
    flex-direction: column !important;
    gap: 20px !important;
  }

  .preview-left,
  .preview-right {
    flex: 1 1 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .preview-right {
 
  gap: 0px !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: 1px !important;
    max-width: 80px !important;
  }

  .color-swatch {
    width: 50px !important;
    height: 50px !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-card {
  max-width: 1000px;
  margin: 0px auto;
  padding: 5px;
  background: #fff;
  border-radius: 11px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
  font-family: 'Segoe UI', sans-serif;
}
    #previewSection .preview-columns {
    flex-direction: column !important;
    gap: 5px !important;
  }

  #dimensionForm td {
    font-size: 14px;
  }

  #dimensionForm input {
    width: 70px;
  }
   .filling-options {
    flex-wrap: wrap;      /* pozwól łamać linię */
    
    align-items: center;
  }

  .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;
  }
  .added-item-card {
        flex-direction: column;
        align-items: flex-start;
    }

 
.added-item-info {
        font-size: 1.2rem;
        line-height: 1.35;
}

    .added-item-card-left {
        flex-direction: column;
        align-items: flex-start;
 

    }

    .qty-controls {
        margin-left: 0;
        margin-top: 12px;
        flex-direction: row;
        justify-content: flex-start;
        gap: 10px;
         align-self: flex-start;
    }
    .preview-card {
 
  margin: 0px auto;
  padding: 5px !important;
  
  border-radius: 11px;
  box-shadow: 0 3px 24px rgba(0,0,0,0.1);
  font-family: 'Segoe UI', sans-serif;
}
}
