    .kosnicka-tabela,
    .kosnicka-sticky-tabela{
        color: #6d6d6d;
    }
    .kosnicka-tabela td{
        vertical-align: middle;
    }
    .kosnicka-tabela thead th{
        border-top: none;
        border-bottom: 2px solid #e30040;
        font-size: 0.8em;
        color: #010101;
    }
    .sticky-cart{
        position: static;
        top: auto;
        background:#F5F5F5;
  border-radius:5px;
  border:none;
  box-shadow:none;
  padding: 25px;
    }
    .kosnicka-sticky-tabela td{
        border: none;
    }
    .kosnicka-sticky-tabela tr:last-child{
        border-top: 1px solid #dee2e6;
    }
    .model-kosnicka{
        color: #202020;
        font-size: 1.2em;
    }
    .vkupna-suma-kosnicka,
    .fa-minus,
    .fa-plus{
        color: #e30040;
    }
    .odstrani-proizvod-kosnicka{
        color: #6d6d6d;
        font-size: 1.3em;
    }
    .poraka-greska{
        display: block;
        color: #e30040;
        font-size: 0.8em;
        padding-left: 0.5em;
    }
    #uslovi{
        position: absolute;
        opacity: 0.01;
    }
    .check-label-uslovi {
        
        font-size: 0.9em;
        padding-left: 0.5em;
    }
    label.check-label-uslovi:before {
        border: 1px solid #000;
        content: '';
        width: 1.5em;
        height: 1.5em;
        background: #f5f5f5;
        position: absolute;
        top: 50%;
        left: 0;
        -webkit-transform: translateY(-50%);
        -ms-transform: translateY(-50%);
        transform: translateY(-50%);
    }   
    .check-input-uslovi:checked+label.check-label-uslovi:after{
        position: absolute;
        content: '';
        width: 0.5em;
        height: 0.5em;
        top: 50%;
        -webkit-transform: translate(-2%,-50%);
        -ms-transform: translate(-2%,-50%);
        transform: translate(-2%,-50%);
        left: 0.4em;
        background: #e30040;
    }
    .check-input-uslovi:checked+label.check-label-uslovi::before {
        border: 1px solid #e30040;
    }
    label.check-label-uslovi:hover::before {
        border: 1px solid #e30040;
    }
    /*.label-uslovi{
        color: #e30040;
        background-color: #f5f5f5;
        width: 1.5em;
        height: 1.5em;
    }
    .label-uslovi:hover{
        border: 1px solid #e30040;
        cursor: pointer;
    }
    #uslovi:checked+.label-uslovi:after{
        width: 0.5em;
        height: 0.5em;
        top: 0.5em;
        left: 1.5em;
        background: #e30040;
        content: '';
        display: block;
        position: absolute;
        border-radius: 2px;
        align-items: center;
    }*/
    .div-detali{
        margin-left: 1em;
    }
    .input-group{
        flex-wrap: nowrap;
    }
    .input-group-prepend>a:focus,
    .input-group-append>a:focus,
    .form-control:focus{
        border-color: #d0d0d0;
        box-shadow: none;
    }
    .model-boja-kosnicka{
        border-radius: 1em;
        height: 1.5em;
        width: 1.5em;
        border: 1px solid #d0d0d0;
    }
    .prazna-kosnicka{
        margin-top: 5%;
        margin-bottom: 20%;
    }
    .prazna-kosnicka h4{
        letter-spacing: 0.1em;
    }
    .span-prikazi-kod:hover{
        cursor: pointer;
    }
    .input-kod-popust:focus{        
        background: #f5f5f5;
    }
    .td-proizvod{
        width: 40%;
    }
    .td-cena{
        width: 15%;
    }
    .td-kolicina{
        width: 20%;
    }
    .kosnicka-td-mobilen{
        display: none;
    }
    .div-kod-popust{
        border-top: 1px solid #dee2e6;
    }
    .div-input-kod-popust .input-kod-popust,
    .div-input-kod-popust .btn{
      height: 40px;      /* pick your height */
      line-height: 40px; /* helps the button text center */
      padding-top: 0;
      padding-bottom: 0;
      border-radius:5px;
    }
    @media (max-width: 767px){
        .table-responsive{
            overflow-x: hidden;
        }
        .kosnicka-tabela thead{
            display: none;
        }
        .kosnicka-tabela tr{
            display: block;
            position: relative;
        }
        .td-proizvod,
        .td-delete,
        .kosnicka-td-mobilen{
            display: block;
        }
        .td-proizvod{
            width: 100%;
            flex-wrap: nowrap;
            margin-left: 0;
            margin-right: 0;
        }
        .td-delete{
            position: absolute;
            top: 0;
            right: 0;
        }
        .td-cena,
        .td-kolicina,
        .td-vkupna-cena{
            display: none;
        }
        .div-td-mobilen{
            font-size: 0.9em;
            color: #010101;
            font-weight: 600;
        }
        .kosnicka-tabela td:not(:first-child){
            border: none;
        }
    }
    
    .prazna-kosnicka--center{
      height: 100%;              /* or set a fixed height like before */
      display: flex;
      flex-direction: column;
      align-items: center;       /* horizontal center */
      justify-content: center;   /* vertical center */
      text-align: center;
      min-height:320px;
    }
    
    .sticky-cart { position: sticky; top: 10px; }
    
    .prazna-kosnicka--center h4{ margin: 0; }

    .empty-bag-icon{ width:160px; height:160px; margin:40px 0 6px; }
    
a.btn-najava{ text-decoration:none; }
a.btn-najava:hover{ text-decoration:none; }

/* Mobile redesign */
@media (max-width: 767px){
  .container > .row > .col-md-8[style*="max-width:710px"]{
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    height: auto !important;
    border-radius: 0;
    padding: 10px 12px 14px;
    background: #fff !important;
  }

  #kosnicka.kosnicka-form h4{
    margin-top: 6px !important;
    margin-bottom: 12px;
    font-size: 18px;
    letter-spacing: 0;
  }

  #kosnicka .table-responsive[style*="height: 470px"]{
    height: auto !important;
    overflow: visible !important;
  }

  .kosnicka-tabela{
    margin: 0;
    border-collapse: separate;
    border-spacing: 0 10px;
  }

  .kosnicka-tabela tr{
    background: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 10px;
    padding: 8px 8px 10px;
    box-shadow: 0 1px 0 rgba(0,0,0,.03);
  }

  /* remove leftover table lines above the card content */
  .kosnicka-tabela td{
    border-top: 0 !important;
  }

  .td-proizvod{
    padding: 6px 8px !important;
    overflow: hidden;
  }

  .td-proizvod .row{
    align-items: center;
    margin: 0;
    flex-wrap: nowrap !important;
    min-width: 0;
  }

  .slika-kosnicka{
    width: 72px;
    min-width: 72px;
    max-width: 72px;
    height: 92px;
    max-width: none !important;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e9e9e9;
    background: #fff;
  }

  .div-detali{
    margin-left: 10px;
    min-width: 0;
    flex: 1 1 auto;
  }

  .model-kosnicka{
    font-size: 18px;
    line-height: 1.25;
    margin-bottom: 6px;
    font-weight: 600;
    color: #1f1f1f;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .model-boja-kosnicka{
    width: 16px;
    height: 16px;
  }

  .kosnicka-td-mobilen{
    padding: 4px 8px 2px !important;
  }

  .kosnicka-td-mobilen .row{
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    column-gap: 8px;
    align-items: start;
  }

  .kosnicka-td-mobilen .col-4{
    padding-left: 0;
    padding-right: 0;
    width: auto;
    max-width: none;
    min-width: 0;
    display: grid;
    grid-template-rows: 18px minmax(34px, auto);
    align-content: start;
  }

  .div-td-mobilen{
    font-size: 12px;
    color: #555;
    font-weight: 600;
    margin-bottom: 0;
    line-height: 1.2;
    height: 18px;
    display: flex;
    align-items: center;
  }

  .kosnicka-td-mobilen .cena-kosnicka{
    font-size: 18px;
    color: #2a2a2a;
    font-weight: 500;
    line-height: 34px;
    display: inline-block;
  }

  /* Make total the visual anchor, keep unit price quieter */
  .kosnicka-td-mobilen .col-1:nth-child(1) .cena-kosnicka,
  .kosnicka-td-mobilen .col-4:first-child .cena-kosnicka{
    font-size: 15px;
    font-weight: 400;
    color: #6a6a6a;
  }

  .kosnicka-td-mobilen .col-4:last-child .cena-kosnicka{
    font-size: 20px;
    font-weight: 700;
    color: #1d1d1d;
  }

  .kosnicka-td-mobilen .input-group{
    width: 112px;
    border: 1px solid #d7d7d7;
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
  }

  .kosnicka-td-mobilen .col-4:nth-child(2){
    display: grid;
    grid-template-rows: 18px 34px;
    align-items: start;
  }

  .kosnicka-td-mobilen .input-group .btn{
    min-width: 34px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 !important;
    border: 0 !important;
    background: transparent;
    color: #e30040;
    font-weight: 700;
  }

  .kosnicka-td-mobilen .input-group .form-control{
    height: 34px;
    border-radius: 0;
    border: 0;
    font-weight: 600;
    font-size: 14px;
    color: #2a2a2a;
    background: transparent !important;
    box-shadow: none !important;
    flex: 1 1 auto;
    min-width: 0;
  }

  .kosnicka-td-mobilen .col-4:nth-child(1),
  .kosnicka-td-mobilen .col-4:nth-child(3){
    align-items: start;
  }

  .td-delete{
    top: 8px;
    right: 8px;
    z-index: 3;
  }

  .delete-item{
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #dadada;
    color: #6f6f6f;
  }

  .odstrani-proizvod-kosnicka{
    font-size: 14px;
  }

  .container > .row > .col-md-4{
    width: 100%;
    max-width: 100%;
    margin-top: 12px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .sticky-cart{
    position: static !important;
    top: auto !important;
    border-radius: 10px;
    padding: 14px;
    background: #fff;
    border: 1px solid #ececec;
  }

  .kosnicka-sticky-tabela{
    margin-bottom: 10px;
  }

  .kosnicka-sticky-tabela td{
    padding: 8px 0;
    font-size: 14px;
  }

  .div-kod-popust{
    padding-top: 14px !important;
    margin-top: 2px;
  }

  .div-input-kod-popust{
    margin-top: 8px;
  }

  .div-input-kod-popust .input-kod-popust,
  .div-input-kod-popust .btn{
    height: 38px;
    line-height: 38px;
    font-size: 14px;
  }

  .check-label-uslovi{
    font-size: 13px;
    line-height: 1.35;
  }

  .btn-plakanje.btn-najava{
    width: 100%;
    min-height: 44px;
    margin-top: 8px;
    justify-content: center;
  }
}
