#napis_koszyk{
    width: 100%;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 15px 0 0;
    background-color: #7B90A5;
    
}
main>div{
    background-color: #7B90A5;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    min-height: 80vh;
}


#Produkty_koszyka{
    width: 60%;
    min-width: 200px;
    height: 40%;
    min-height: 500px;
    max-height: 600px;
    overflow-y: auto;    /* ← automatyczny scroll pionowy */
    overflow-x: hidden;
    background-color: #78A4CF;
    margin: 20px;
    padding-top: 5px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    

}
.produkt{
    width: 95%;
    height: 100px;
    max-height: 200px;
    background-color: #66B0FA;
    border-radius: 5px;
    border: 1px solid white;
    margin: 5px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;

}
.produkt img{
    height: 90%;
    padding: 4px;
    border: 1px solid white;
    border-radius: 5px;
    margin: 0 4px;
}
.produkt>div{
    display: flex;
    width: 85px;
    justify-self: end;
    flex-direction: column;
    align-self: self-start;
    margin: 1%;
}
.produkt>div>button{
    background-color: #6D747A;
    border-radius: 5px;
    border: 1px solid white;
}
.usun_i_cena{
    height: 100%;
}
.produkt>a>h3{
    font-size: clamp(14px, 1vw + 0.5rem, 18px);
}
.produkt>a{
   text-decoration: none; 
}
.cena-produktu{
    white-space: nowrap;
    display: inline-block;
}
#podsumowanie_zakupow{
    color: black;
    width: 30%;
    padding-bottom: 20px;
    height: 50%;
    min-width: 200px;
    background-color: #cedadd;
    margin: 20px;
    border-radius: 10px;
}
#podsumowanie_zakupow *{
    color: black;
}
#podsumowanie_zakupow>h3{
    width: 100%;
    font-size: x-large;
    text-align: center;
    
}
#podsumowanie_zakupow>h4{
    width: 100%;
    text-align: center;
    
}
#podsumowanie_zakupow>p{
    width: 100%;
    text-align: center;
    
}
#podsumowanie_zakupow>div{
    width: 100%;
    text-align: center;
    
}
#podsumowanie_zakupow>div>button{
    background-color: #66B0FA;
    width: 100px;
    height: 40px;
    border-radius: 3px;
}
#przejdzDalej{
    color: white;
}
/* Loader kręcące się kółko */
.loader {
  border: 6px solid #f3f3f3; /* jasne tło */
  border-top: 6px solid #3498db; /* kolor kółka */
  border-radius: 50%;
  width: 40px;
  height: 40px;
  margin: 0 auto 10px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
#formularzZamowienia{
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

#form_wysylka_input{
    width: 90%;
    display: flex;
    flex-direction: column;
    margin: auto;
}
#form_wysylka_input>input{
    min-width: 100%;
    height: 35px;
    margin-bottom:13px;
    border-radius: 3px;
    border: none;
}

label[for]:has(+ input[required])::after {
    content: "*";
    color: #d32f2f;
    margin-left: 3px;
    font-weight: bold;
}
label[for]:has(+input:invalid) {
  border-left: 2px solid red;
  border-radius: 5px 0;
}
#zloz_zamowienie_botton ,#powrot{
    color: rgb(255, 255, 255);
    background-color: #66B0FA;
    max-width: 170px;
    width: 45%;
    height: 50px;
    border-radius: 5px;
}
#container_zloz_button{
    width: 100%;
    display: flex;
    justify-content: space-around;
    
}
label{
    font-size: 18px;
}

@media only screen and (max-width:887px) {
    main>div{
        flex-direction: column;
        justify-content: start;
        
    }

    #Produkty_koszyka{
        width: 95%;
        height: 40%;
        min-height: 400px;
        margin: 10px 10px 0;
    }
    #podsumowanie_zakupow{
        width: 95%;
        margin: 10px 10px 5px;
    }
}
@media only screen and (max-width:370px) {
    .produkt > a > h3 {
        font-size: 0.7em;
        line-height: 1.1;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }
    
    
    .produkt > a > h3 {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        max-height: none;
    }
    
    
    .produkt > a > h3 {
        word-break: break-word;
        overflow-wrap: anywhere;
    }
}

