.location_pad {
    width: 20px;
    min-width: 20px;
    max-width: 20px;
}

.location_button {
    margin: 4vh 3% 0 17%;
    cursor: pointer;
    display: flex;
    flex-flow: column;
    width: 80%;
}

.location_button_margin {
    margin-bottom: 30vh;
}

.location_header_button {
    cursor: pointer;
    width: 80%;
    margin: 10px 10%;
}

.location_header_name {
    font-size: 1.5vmax;
    font-weight: 600;
    text-align: center;
}

.locations_list {
    display: flex;
    flex-flow: column;
}

.location_logo {
    margin-top: 0;
    margin-left: -14%;
    width: 28%;
    text-align: center;
}

.min_order_image {
    width: 5vw;
    height: 5vw;
}

.location_logo_image {
    border-radius: 5px;
    border: 2px solid black;
    width: 95%;
    height: 90%;
    max-width: 100px;
    max-height: 100px;
}

.location_logo_left {
    width: 72%;
}

.location_logo_right {
    width: 35%;
}

/* For the locations slider */
.logo_image {
    width: 100%;
    height: 100%;
}

.location_name {
    font-size: 2vmax;
    font-weight: 1000;
    text-align: left;
    padding-left: 5px;
    width: 60%;
}

.location_summary {
    padding-left: 5px;
    text-align: left;
    text-overflow: ellipsis;
    white-space: normal;
    overflow: hidden;
    width: 80%;
}

.location_address {
    font-size: 1.5vmax;
    width: 40%;
    text-align: right;
    padding-right: 5px;
}

.location_transport {
    padding-left: 5px;
    width: 25vw;
}

.basket_title {
    font-size: 6vh;
    font-weight: 800;
    margin-left: 20px;
    height: 8vh;
    min-height: 8vh;
    max-height: 8vh;
}

.rounded_button {
    border: none;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 40px;
    background-color: black;
    color: white;
}    
    
.basket_block {
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
    padding: 5px;
}

.basket_allergen_button {
    font-size: 2vmax;
}

.cat_area {
    width: 40%;
    padding: 5px;
}

.items_area {
    width: 60%;
    padding: 5px;
}

.menu_info {
    margin: 0px 20px 0px 0px;
}

.cats_container {
    padding: 5px;
}

.menu_block {
    padding: 0 5px;
}

.location_delivery {
    text-align: right;
    font-size: 1.5vmax;
}

.search_input, .clear_search {
    font-size: 26px;
    padding: 2px 5px;
    border-width: 0px;
    text-align: center;
    border-radius: 5px;
    background-color: black;
    color: white;
}

.search_input::placeholder {
    color: rgba(255, 255, 255, 0.8);
}

.search_input {
    margin: 0 5px;
    width: 200px;
}

.clear_search {
    margin-right: 5px;
}

.order_buttons {
    width: 100%;
    flex-wrap: wrap;
}

.order_header {
    font-size: 3vmax;   
}

.order_button {
    background: none;
    border: none;
}

.itemextras_qnts {
    width: 50%;
    padding-left: 5%;
    text-align: left;
    font-family: sans-serif;
    line-height: 3vmax;
    font-size: 3vmax;
    color: blue;
}

.answer_names {
    width: 100%;
    text-align: center;
    height: 11vh;
    display: -webkit-box;       /* required for the line clamp */
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;      /* number of lines to show */
    line-clamp: 4;
    overflow: hidden;
}

.itemextras_amount {
    width: 100%;
    text-align: center;
    font-size: 1.5vmax;
}

.order_button_img {
    border-radius: 5px;
    width: 3vmax;
    height: 3vmax;
}

.spacer {
    height: 3px;
}

.items_for_cat {
    margin-bottom: 30px;
}

.item_cat_header {
    font-size: 2vmax;
}

.item_cat_header_desc {
    font-size: 1.5vmax;
    padding: 5px 10px 0 10px;
}

.add_items {
    width: 25%;
}

.add_items_button {
    font-size: 2vw;
}

.item_info {
    margin-bottom: 10px;
    cursor: pointer;
}

.item_number {
    width: 10%;
    font-size: 2vmax;
}

.item_name {
    font-size: 1.6vmax;
    font-weight: bold;
    text-align: center;
    padding: 10px 15px;
}

.item_name_build {
    font-size: 1.6vmax;
    font-weight: bold;
    text-align: left;
    padding: 10px 15px;
}

.item_name_search {
    font-size: 1.6vmax;
    font-weight: bold;
    text-align: left;
    padding: 10px 15px;
    width: 69%;
    margin-left: 1%;
}

.item_name_search div {
    display: flex;
}

.item_description {
    font-size: 1.5vmax;
}

.item_cost {
    font-size: 2vmax;
    text-align: center;
    padding: 1px 5px;
}

.item_cost_build {
    font-size: 2vmax;
    text-align: right;
    padding: 1px 5px;
}

.item_description_build {
    font-size: 1.5vmax;
}

.item_cost_search {
    font-size: 2vmax;
    text-align: right;
    padding: 1px 5px;
    margin-right: 1%;
    width: 29%;
}

.order_headers {
    border-radius: 5px;
    text-align: center;
    font-size: 1.6vw;
}

.order_header_no {
    margin: 10px 0 10px 0;
}

.order_header_items {
    margin: 10px 2% 10px 2%;
}

.order_items {
    height: 50vh;
    min-height: 50vh;
    max-height: 50vh;
    overflow-y: auto;
}

/* width */
.order_items::-webkit-scrollbar {
    width: 5px;
}

/* Track */
.order_items::-webkit-scrollbar-track {
    background: gray; 
}

/* Handle */
.order_items::-webkit-scrollbar-thumb {
    background: black; 
}

.order_header_items div {
    border-radius: 5px;
    text-align: center;
}

.no_items_container {
    font-size: 3vmax;
    padding-top: 50px;
}

.order_header_cost {
    margin: 10px 0;
}

.order_qnt, .small_order_qnt {
    width: 20%;
    text-align: right;
    padding-left: 2%;
}

.order_qnt {
    font-size: 3vmax;
}

.small_order_qnt {
    font-size: 1.5vmax;
}

.order_qnt_new {
    width: 15%;
    text-align: right;
    font-size: 1.5vmax;
    padding-left: 0%;
}

.extras_order_col1, .small_extras_order_col1, .order_id, .small_order_id.order_header_no {
    width: 10%;
}

.order_header_items, .order_item_container, .small_order_item_container, .extras_item_container, .small_extras_item_container {
    width: 70%;
}

.order_header_cost, .order_cost, .small_order_cost, .extras_order_cost, .small_extras_order_cost {
    width: 20%;
}

.allergen_container {
    min-width: 30%;
}

.order_buttons_container {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.order_id, .small_order_id {
    text-align: center;
}

.order_id {
    font-size: 3vmax;
}

.small_order_id {
    font-size: 1.5vmax;
    width: 10%;
}

.order_name, .small_order_name {
    text-align: left;
    width: 80%;
}

.order_name {
    font-size: 3vmax;
}

.small_order_name {
    font-size: 1.5vmax;
}

.order_name_new {
    text-align: left;
    width: 55%;
    font-size: 1.5vmax;
}

.order_cost, .small_order_cost {
    text-align: right;
    padding-left: 2%;
}

.order_cost {
    font-size: 3vmax;
}

.small_order_cost {
    font-size: 1.5vmax;
    width: 22%;
}

.order_cost_new {
    text-align: right;
    font-size: 1.5vmax;
    padding-left: 1%;
    width: 30%;
}

.order_total_amount, .small_order_total_amount {
    font-weight: 800;
    margin: 1px 0;
}

.order_total_amount {
    font-size: 3vmax;
}

.small_order_total_amount {
    font-size: 2vmax;
}

.order_comment {
    border-bottom: 2px solid black;
    width: 100%;
    height: 30px;
    padding: 10px 0;
}

.order_comment textarea {
    resize: none;
    background: none;
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    font-size: 2vmax;
    color: black;
}

.extras_container {
    width: 100%;
}

.extras_order_qnt, .small_extras_order_qnt {
    width: 20%;
    text-align: right;
    font-size: 1.5vw;
    padding-left: 5%;
}

.extras_order_name, .small_extras_order_name {
    text-align: left;
    width: 75%;
    font-size: 2vw;
}

.extras_order_cost, .small_extras_order_cost {
    text-align: right;
}

.extras_order_cost {
    font-size: 2.3vmax;
}

.small_extras_order_cost {
    font-size: 1.2vmax;
}

.order_payment_type input {
    visibility: hidden;
    position: absolute;
}

.order_payment_type img {
    width: 120px;
    height: 120px;
}

.order_payment_type > input + img { /* IMAGE STYLES */
    cursor:pointer;
    border:2px solid transparent;
}

.order_payment_type label > input { /* HIDE RADIO */
  visibility: hidden; /* Makes input not-clickable */
  position: absolute; /* Remove input from document flow */
}
.order_payment_type label > input + img { /* IMAGE STYLES */
  cursor:pointer;
  border:2px solid transparent;
}

.order_payment_type_label {
    font-size: 2vmax;
    text-align: center;
}

.order_payment_type_label div {
    border-radius: 5px;
    text-align: center;
}

.order_payment_type {
    margin-top: 10px;
    flex-grow: 1;
    justify-content: flex-end;
    margin-right: 50px;
    gap: 40px;
}

.action_order_button_cancel, .action_order_button_submit {
    font-size: 28px;
    border-radius: 10px;
    padding: 3px 10px;
    border: none;
}

.action_order_button_submit:disabled {
    color: gray;
    background-color: rgb(73, 73, 239);;
}

.cat_title, .items_title {
    width: 100%;
    font-size: 2vw;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 20px;
}

.items_title {
    margin-left: 20%;
    margin-right: 20%;
    width: 60%;
}

.itemextras_order_item, .itemextras_order_cost, .itemextras_order_desc, 
.itemextras_order_question,
.itemextras_order_total, .itemextras_order_item_title, .itemextras_order_question_req {
    font-size: 2vw;
}

.itemextras_order_question_highlighted {
    font-size: 3vmax;
    color: red;
}

.itemextras_order_button {
    font-size: 2.2vmax;
}

.itemextras_order_question {
    width: 70%;
}

.itemextras_order_question_req {
    width: 30%;
}

.itemextras_order_question_container {
    margin-top: 20px;
}

.itemextras_order_add_order {
    font-size: 2.5vw;
    width: 76%;
}

.itemextras_order_total {
    width: 24%;
    padding-right: 1%;
    font-size: 2.2vmax;
}

.itemextras_order_item {
    width: 96%;
}

.itemextras_order_submit {
    margin: 4% 4% 4% 60%;
    width: 36%;
}

.itemextras_order_item_header {
    width: 59%;
}

.itemextras_order_item_header_add {
    margin: 4% 4% 0 1%;
    width: 36%;
}

.itemextras_dels, .custom_extras_dels {
    width: 50%;
    text-align: right;
    padding-right: 5%;
}

.extras_order_qnt, .extras_order_name, .itemextras_order_cost {
    font-size: 2.3vmax;
}

.small_extras_order_qnt, .small_extras_order_name {
    font-size: 1.2vmax;
}

.basket_new_item {
    animation-name: basketNewItemsFrames;
    animation-iteration-count: 1;
    animation-timing-function: ease-out;
    animation-duration: 1s;
}

.custom_extras_names {
    width: 64%;
    font-size: 2.2vmax;
}

.custom_extras_costs {
    width: 26%;
    padding-right: 1%;
    font-size: 2.2vmax;
}

@keyframes basketNewItemsFrames {
    0% {
        color:black;
    }
    /*10% {
        color:white;
    }
    20% {
        color:black;
    }
    30% {
        color:white;
    }
    40% {
        color:black;
    }*/
    50% {
        color:white;
        background-color: rgba(85, 55, 0, 0.8);
    }
    /*60% {
        color:black;
    }
    70% {
        color:white;
    }
    80% {
        color:black;
    }
    90% {
        color:white;
    }*/
    100% {
        color:black;
        background-color: rgba(255, 165, 0, 0.8);
    }
 }

 @media only screen and (max-width: 1000px) {
    .order_payment_type img {
        width: 90px;
        height: 90px;
    }

    .order_payment_type {
        gap: 25px;
    }
}

@media only screen and (max-width: 900px) {
    .search_input, .clear_search {
        font-size: 24px;
    }

    .search_input {
        width: 170px;
    }

    .order_payment_type img {
        width: 70px;
        height: 70px;
    }

    .order_payment_type {
        gap: 20px;
    }
}

@media only screen and (max-width: 800px) {
    
}

@media only screen and (max-width: 800px) {
    .order_qnt_new, .order_name_new, .order_cost_new {
        font-size: 2vmax;
    }
}

@media only screen and (max-width: 500px) {
    .location_summary {
        width: 98%;
    }

    .logo_image {
        width: 100%;
        max-width: 32px;
        height: 100%;
        max-height: 32px;
    }

    .itemextras_order_item, .itemextras_order_cost, .itemextras_order_desc, 
    .itemextras_order_total, .itemextras_order_item_title, .itemextras_order_question_req {
        font-size: 4vw;
    }

    .custom_extras_names {
        width: 60%;
    }

    .itemextras_amount {
        width: 20%;
        padding-right: 1%;
    }

    .custom_extras_costs {
        width: 22%;
    }

    .itemextras_order_submit {
        margin: 4% 4% 4% 43%;
        width: 50%;
    }

    .itemextras_order_add_order {
        font-size: 4.5vw;
        width: 76%;
    }

    .order_headers {
        font-size: 3.6vw;
    }

    .order_comment textarea {
        font-size: 5vw;
    }

    .order_total_amount {
        font-size: 2vmax;
    }
}

@media (orientation: landscape) {
    @media only screen and (max-height: 420px) {
        .order_header_no, .order_header_items, .order_header_cost, 
        .order_comment {
            margin-top: 0;
        }

        .order_items {
            height: 40vh;
            min-height: 40vh;
            max-height: 40vh;
            overflow-y: auto;
        }
    }

    @media only screen and (max-height: 280px) {
        .order_items {
            height: 35vh;
            min-height: 35vh;
            max-height: 35vh;
            overflow-y: auto;
        }

        .order_buttons {
            margin-top: 4vh;
        }

        .action_order_button_cancel, .action_order_button_submit {
            font-size: 3vw;
        }
    }
}

@media only screen and (min-width: 950px) {
    .answer_names {
        height: 13vh;
        -webkit-line-clamp: 5;      /* number of lines to show */
        line-clamp: 5;
    }
}

@media only screen and (min-width: 1000px) {
    .answer_names {
        -webkit-line-clamp: 4;      /* number of lines to show */
        line-clamp: 4;
    }
}

@media only screen and (min-width: 1100px) {
    .answer_names {
        height: 12vh;
    }
}

@media only screen and (min-width: 1200px) {
    .answer_names {
        -webkit-line-clamp: 3;      /* number of lines to show */
        line-clamp: 3;
    }
}
