.calc_page-text {
    color: #757575;
    margin-top: 200px;
}

.calc_gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
	justify-content: center; /* Centrowanie w poziomie */
    align-items: center;
    gap: 0px 50px;
    width: 90%;
    max-width: 600px;
    height: auto;
    margin-top: 150px;
}
.calc_gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0px;
    transition: transform 0.3s, opacity 0.3s;
    opacity: 0.7;
}
.calc_gallery a {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 0px;
}
.calc_gallery a:hover img {
    transform: scale(1.1);
    opacity: 1;
}

.calc_gallery_subpage {
    display: grid;
    grid-template-columns: 2;
    grid-template-rows: 2;
    justify-content: center; /* Centrowanie w poziomie */
    align-items: center;
    gap: 0px 50px;
    width: 90%;
    max-width: 600px;
    height: auto;
    margin-top: 150px;
}
.calc_gallery_subpage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0px;
    transition: transform 0.3s, opacity 0.3s;
    opacity: 0.7;
}
.calc_gallery_subpage a {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 0px;
}
.calc_gallery_subpage a:hover img {
    transform: scale(1.1);
    opacity: 1;
}

.calc_page-text {
    color: #757575;
    margin-top: 200px;
}
.calc_footer {
    width: 100%;
    background: #000;
    padding: 90px 0;
    margin-top:90px;
    text-align: center;
        }
calc_footer p{
    line-height: 20px;
    margin-top: 20px;
    color: #000;
}
.calc_footer a {
    font-size: 14px;
    color: #757575;

}
.sticker-color { 
    cursor: pointer;
    width: 75px;
    height: 75px;
    display: inline-block;
    margin: 5px;
    border: 0px solid #000;
}
.sticker-check { 
    outline: 2px solid red !important;
}

.filament-color { 
    cursor: pointer;
    width: 75px;
    height: 75px;
    display: inline-block;
    margin: 5px;
    border: 0px solid #000;
}

.filament-check { 
    outline: 2px solid red !important;
}

.mugs-wzor { 
    cursor: pointer;
    width: 300px;
    height: 150px;
    display: inline-block;
    margin: 5px;
    border: 0px solid #000;
}
.mugs-check { 
    outline: 2px solid red !important;
}

.cap-wzor { 
    cursor: pointer;
    width: 150px;
    height: 150px;
    display: inline-block;
    margin: 5px;
    border: 0px solid #000;
}
.cap-check { 
    outline: 2px solid red !important;
}

.preview-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px; padding: 0;
}

.preview-list li {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.preview-list img {
    max-width: 50px;
    max-height: 50px;
    margin-bottom: 5px;
}

.remove-btn {
    background-color: red;
    color: white;
    border: none;
    cursor: pointer;
    padding: 5px;
    width: 100%;
    text-align: center;
}

.calc_popup {
    display: none;
    max-width: 90%;  /* Żeby nie wychodziło poza ekran */
    max-height: 80vh;
    position: fixed;
    overflow-y: auto;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -45%);
    background-color: white;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    text-align: center;
    z-index: 10000;
}

.calc_popup button {
    margin-top: 10px;
}
.calc_popup img {
    max-width: 100px;
    display: block;
    margin: 0 auto 10px;
}

.calc_popup::-webkit-scrollbar {
    width: 8px;
}

.calc_popup::-webkit-scrollbar-track {
    background: #f1f1f1; /* Jasne tło */
    border-radius: 10px;
}

.calc_popup::-webkit-scrollbar-thumb {
    background: #888; /* Szary pasek */
    border-radius: 10px;
    transition: background 0.3s ease-in-out;
}

.calc_popup::-webkit-scrollbar-thumb:hover {
    background: red; /* Ciemniejszy przy najechaniu */
}

/* Stylizacja ikonki pytajnika */
.calc_tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
    font-size: 12px;
    border: 2px solid black;
    color: black;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px;
}

.calc_tooltip .calc_tooltip-text {
    visibility: hidden;
    width: 180px;
    background-color: white;
    color: black;
    text-align: center;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid red;
    font-size: 12px;

    position: absolute;
    z-index: 1;
    left: 120%; /* Ustawienie dymka po prawej stronie */
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.calc_tooltip:hover .calc_tooltip-text {
    visibility: visible;
    opacity: 0.8;
}

.calc_altcolor {
    position: relative;
    display: inline-block;
    cursor: pointer;
    font-size: 12px;
    width: 75px;
    height: 75px;
    text-align: center;
    line-height: 20px;
}

.calc_altwzor_mugs {
    position: relative;
    display: inline-block;
    cursor: pointer;
    font-size: 12px;
    width: 300px;
    height: 150px;
    text-align: center;
    line-height: 20px;
}

.calc_altwzor_mugs .calc_altwzor_mugs-text {
    visibility: hidden;
    width: 300px;
    background-color: white;
    color: black;
    text-align: center;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid black;
    font-size: 12px;

    position: absolute;
    z-index: 1;
    left: 0%; /* Ustawienie dymka po prawej stronie */
    top: 90%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.calc_altwzor_mugs:hover .calc_altwzor_mugs-text {
    visibility: visible;
    opacity: 0.8;
}

.calc_altcolor .calc_altcolor-text {
    visibility: hidden;
    width: 100px;
    background-color: white;
    color: black;
    text-align: center;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid black;
    font-size: 12px;

    position: absolute;
    z-index: 1;
    left: -15%; /* Ustawienie dymka po prawej stronie */
    top: 115%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.calc_altcolor:hover .calc_altcolor-text {
    visibility: visible;
    opacity: 0.8;
}

.calc_altwzor_cap {
    position: relative;
    display: inline-block;
    cursor: pointer;
    font-size: 12px;
    width: 150px;
    height: 150px;
    text-align: center;
    line-height: 20px;
}

.calc_altwzor_cap .calc_altwzor_cap-text {
    visibility: hidden;
    width: 150px;
    background-color: white;
    color: black;
    text-align: center;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid black;
    font-size: 12px;

    position: absolute;
    z-index: 1;
    left: 0%; /* Ustawienie dymka po prawej stronie */
    top: 90%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.calc_altwzor_cap:hover .calc_altwzor_cap-text {
    visibility: visible;
    opacity: 0.8;
}

.form-row {
      display: flex;
      flex-wrap: nowrap;
      align-items: center;
      margin-bottom: 8px;
      gap: 10px;
    }

.form-row label {
      flex: 0 0 200px;
      font-weight: 500;
      font-size: var(--font-size);
      margin: 0;
      padding: 0;
}

.form-row input,
.form-row select {
      flex: 1;
      padding: 2px 6px;
      font-size: var(--font-size);
      line-height: 1.2;
      height: var(--input-height);
      box-sizing: border-box;
}

@media (max-width: 480px) {
  .form-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .form-row input,
  .form-row select {
    width: 100%;
    height: 40px;
    margin-top: 0;
  }

  .form-row label {
    flex: none;       /* lub flex: 0 0 auto; */
    width: 100%;      /* label zajmuje całą szerokość */
    margin-bottom: 4px; 
  }

  .form-row {
    margin-bottom: 6px !important;
  }

  .calc_popup {
    width: 95% !important;
    max-width: none;
  }
}