/* Search Bar CSS */
.search-bar-pharmacy {
    width: 300px;
    height: 40px;
    background-color: unset;
    border: 1px solid #2F857E;
    display: flex;
    border-radius: 45px;
    overflow: hidden;
    align-items: center;
    /* Ensures the border-radius is applied properly */
}

.pharmacy-search-width {
    width: 480px;
}


.search-bar-pharmacy input[type="text"] {
    flex: 1;
    padding: 10px;
    color: #2F857E;
    border: none;
    outline: none;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    background: unset;
}

.search-bar-pharmacy button[type="submit"] {
    background-color: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 5px;
}

.fa-search {
    color: #2F857E;
    font-size: 20px;
}

.search-bar-pharmacy input[type="text"]::placeholder {
    color: #2F857E;
    opacity: 50%;
}

.upper-content {
    display: flex;
}

.cart {
    position: relative;
    height: 50px;
    width: 45px;
    margin-left: 250px;
    cursor: pointer;
}

.cart img {
    height: 30px;
    width: 30px;
    margin-left: 30px;
}

/*.cart::before {*/
/*    content:  attr(--product-count);*/
/*    position: absolute;*/
/*    display: flex;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*    font-size: 12px;*/
/*    font-weight: 700;*/
/*    color: white;*/
/*    top: 0;*/
/*    right: 0;*/
/*    width: 15px;*/
/*    !* Adjust the size of the circle as needed *!*/
/*    height: 15px;*/
/*    !* Adjust the size of the circle as needed *!*/
/*    background-color: #EA002F;*/
/*    border-radius: 50%;*/
/*    !* Makes it round *!*/
/*}*/

.cartnumber{
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: white;
    top: 0;
    right: 0;
    width: 15px;
    /* Adjust the size of the circle as needed */
    height: 15px;
    /* Adjust the size of the circle as needed */
    background-color: #EA002F;
    color: white;
    border-radius: 50%;
    /* Makes it round */

}

.left-upper-content>div {
    margin-bottom: 10px;
}

.heading {
    margin-bottom: 10px;
}


/* Table Design */
.main-table {
    border-collapse: collapse;
    width: 800px;
}


.main-table tbody tr {
    border-bottom: 1px solid #2F857E;
}

.main-table td {
    color: #2F857E;
    /*padding: 10px 200px 10px 0px;*/
    padding: 10px 20px 10px 0px;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;

}

/* Apply custom padding for the last <td> in each row */
.main-table td:last-child {
    padding-right: 0;
}

.main-table .table-last-row {
    border: none;
}

.main-table .fa-plus {
    background-color: #2F857E;
    color: white;
    border-radius: 5px;
    width: 20px;
    height: 20px;
    font-size: 16px;
    padding: 2px;
    margin-left: 5px;
}

.main-table .medicine-name {
    font-size: 16px;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
}


/* Model design */

.model-content-pharmacy {
    height: 650px;
    width: 800px;
    border: 3px solid white;
    overflow-y: scroll;
    border-radius: 50px;
    padding: 30px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    background-color: rgba(41, 105, 126, 0.5);

}

.model-upper-content {
    display: flex;
}

.paragraph {
    margin-left: 10px;
}

.paragraph p {
    color: white;
}


/* CSS for .appointment-picture */
.pharmacy-model-profile {
    height: 120px;
    width: 130px;
    background-color: white;
    border-radius: 25px;

}

.pharmacy-model-profile img {
    margin-top: 5px;
    margin-left: 5px;
    border-radius: 25px;
    width: 120px;
    height: 80px;
    object-fit: cover;
}

.pharmacy-model-profile p {
    margin-top: 5px;
    text-align: center;
}

/* Model Table Desing */


.model-table {
    border-collapse: collapse;
    margin-top: 20px;
}

/*.model-table th {*/
/*    color: white;*/
/*    !*padding: 10px 60px 16px 0px;*!*/
/*    font-size: 14px;*/
/*}*/

/*model table scrollbar */
.model-scroller {
    width: 100%;
    overflow-y: auto;
    /*height: max-content;*/
    /*border: 2px solid black;*/
    max-height: 21vmax;
    /*overflow-y: auto;*/
    width: fit-content;
}

.model-table {

    border-collapse: collapse;
}

/*.model-table thead {*/
/*    position: sticky;*/
/*    top: 0;*/
/*    !*background-color: #f4f4f4; !* Set the background color for the header *!*!*/
/*    z-index: 1;*/
/*}*/

/*.model-table  th {*/
/*    background-color: #f2f2f2;*/
/*    position: sticky;*/
/*    top: 0;*/
/*}*/

/*.model-table th, .model-table td {*/

/*    border: 1px solid #ddd; !* Set the border color for cells *!*/
/*}*/

/*.model-table tbody {*/
/*    max-height: 300px; !* Set the maximum height for the tbody to enable scrolling *!*/
/*    overflow-y: auto;*/
/*    display: block;*/
/*    width: max-content;*/

/*}*/

.model-scroller::-webkit-scrollbar-track {
    background-color: #f1f1f1;
}

.model-scroller::-webkit-scrollbar-thumb {
    background-color: #2F857E;
    border-radius: 6px;

}

.model-scroller::-webkit-scrollbar {
    width: 5px;
    height: 40px;



}
.model-scroller::-webkit-scrollbar-track {

    height: 10px;


}
.model-scroller::-webkit-scrollbar-track-piece {

    height: 10px;
}

.model-table td {
    color: white;
    padding: 10px 60px 16px 0px;
    font-size: 14px;
}

/*.model-table td {*/
/*    color: white;*/
/*    padding: 10px 80px 10px 0px;*/
/*    font-size: 14px;*/
/*}*/

/* Apply custom padding for the last <td> in each row */
.model-table td:last-child {
    padding-right: 0;
}

.model-table .table-last-row {
    border: none;
}

.model-table .table-bold {
    font-size: 16px;
    font-weight: 700;
}

.model-table .table-bold-sub {
    font-size: 16px;
    font-weight: 700;
    border-top: 1px solid white;
}

.fa-minus,
.fa-plus {
    background-color: #2F857E;
    color: white;
    border-radius: 5px;
    width: 20px;
    height: 20px;
    font-size: 16px;
    padding: 2px;
    font-weight: bold;
    text-align: center;
    border: none;
    margin: 5px;
}

.customer-details {
    background-color: white;
    border: 1px solid #888;
    padding: 10px 30px;
    border-radius: 25px;
    width: 500px;
    position: relative;
}

.change-address {
    display: flex;
    position: absolute;
    top: 0;
    right: 0;
    margin-top: 10px;
    margin-right: 20px;
    cursor: pointer;
}

.change-address img {
    margin-right: 5px;
    width: 14px;
    height: 14px;
    align-items: center;
}

.down-content {
    display: flex;
    flex-direction: column;
    /* Display elements vertically */
    justify-content: center;
    /* Center elements horizontally */
    align-items: center;
    /* Center elements vertically */
}


.payment-button {
    background-color: white;
    /* Remove horizontal padding and add vertical padding */
    color: #2f857e;
    font-size: 16px;
    height: 40px;
    width: 300px;
    cursor: pointer;
    border-radius: 25px;
    display: flex;
    /* Use flexbox for button layout */
    justify-content: space-between;
    /* Space between text and arrow */
    align-items: center;
    /* Center vertically */
    padding-left: 20px;
    /* Add left padding */
    padding-right: 20px;
    /* Add right padding */
    border: none;
    outline: none;
    margin-top: 20px;
}

#table-scroller {
    height: max-content;
    /*max-height: 16vmax;*/
    max-height: 307px;
    overflow-y: auto;
    width: fit-content;
    /*scrollbar-width: thin; !* For Firefox *!*/
}

#table-scroller::-webkit-scrollbar {
    width: 5px; /* Adjust as needed */
}

#table-scroller::-webkit-scrollbar-thumb {
    background-color: #2F857E; /* Customize the color of the scrollbar thumb */
    border-radius: 6px; /* Optional: round the corners of the thumb */
}

#table-scroller::-webkit-scrollbar-track {
    background-color: #f1f1f1; /* Customize the color of the scrollbar track */
}

/* Design For Increment and Decrement input */

.quantity {
    display: flex;
    justify-content: center;
    font-size: 16px;
    gap: 10px;
    padding: 10px;
}


#counter {
    border-radius: 14px;
    border: 1px solid #2F857E;
    color: #2F857E;
    font-size: 14px;
    /*!* font-size: 16px; *!*/
    /*padding: 5px 14px;*/
    padding: 5px;
    font-weight: 300;
    width: 50px;
    /*border-radius: 14px;*/
    /*border: 1px solid #2F857E;*/
    /*color: #2F857E;*/
    /*font-size: 16px;*/
    /*!* font-size: 16px; *!*/
    /*padding: 5px 20px;*/
    /*font-weight: 300;*/
}


#increment {
    border: 1px solid #2F857E;
    color: white;
    background-color: #2F857E;
    font-size: 16px;
    width: 25px;
    font-weight: 700;
    border-radius: 7px;
    /*border: 1px solid #2F857E;*/
    /*color: white;*/
    /*background-color: #2F857E;*/
    /*font-size: 20px;*/
    /*width: 25px;*/
    /*font-weight: 700;*/
    /*border-radius: 7px;*/
}

#decrement {
    border: 1px solid #2F857E;
    color: white;
    background-color: #2F857E;
    font-size: 16px;
    width: 25px;
    font-weight: 700;
    border-radius: 7px;
}

#increments {
    border: 1px solid #2F857E;
    color: white;
    background-color: #2F857E;
    font-size: 16px;
    width: 25px;
    font-weight: 700;
    border-radius: 7px;
    /*border: 1px solid #2F857E;*/
    /*color: white;*/
    /*background-color: #2F857E;*/
    /*font-size: 20px;*/
    /*width: 25px;*/
    /*font-weight: 700;*/
    /*border-radius: 7px;*/
}

#decrements {
    border: 1px solid #2F857E;
    color: white;
    background-color: #2F857E;
    font-size: 16px;
    width: 25px;
    font-weight: 700;
    border-radius: 7px;
}

.confirmorder-button {
    background-color: #2f857e;
    color: white ;
    font-size: 16px;
    height: 40px;
    width: 300px;
    cursor: pointer;
    border-radius: 25px;
    /*display: flex;*/
    /*justify-content: space-between;*/
    align-items: center;
    text-align: center;
    padding-left: 20px;
    padding-right: 20px;
    border: none;
    outline: none;
    margin-top: 20px;
}

@media screen and (max-width: 600px) {
    .cart {
        position: relative;
        height: 50px;
        width: 45px;
        margin-left: 0;
        cursor: pointer;
        transform: translate(-355%, -15%);

    }

    /* Table Design */
    .main-table {
        width: 100%;
    }
    .main-table td {
        padding: 10px 30px 10px 0px;
    }

    /* Apply custom padding for the last <td> in each row */
    .main-table td:last-child {
        padding-right: 0;
    }

    .main-table .table-last-row {
        border: none;
    }

    /*model-content-1*/
    .model-content1 {
        width: 400px;
    }

    /* Model design */

    .model-content-pharmacy {
        height: 665px;
        width: 500px;
        border: 3px solid white;
        overflow-y: scroll;
        border-radius: 50px;
        padding: 30px;
        overflow: hidden;
        backdrop-filter: blur(10px);
        background-color: rgba(41, 105, 126, 0.5);

    }

    .model-upper-content {
        display: flex;
    }

    .paragraph {
        margin-left: 10px;
    }

    .paragraph p {
        color: white;
    }

    /*model table */
    .model-table td {
        color: white;
        /*padding: 10px 30px 10px 0px;*/
        padding: 10px 15px 10px 0px;
        font-size: 14px;
    }

    .customer-details {
        background-color: white;
        /*border: 1px solid #888;*/
        border: none;
        border-radius: 25px;
        width: 450px;
        position: relative;
    }
    #table-scroller {
        max-height: 80vh;
        overflow: auto;
        width: 100%;
        /*scrollbar-width: thin; !* For Firefox *!*/
    }

    .pharmacy-search-width {
        width: 420px;
    }

    .search-bar-pharmacy {
        width: 100%;
    }
    .left-upper-content{
        padding-top: 60px!important;
    }
    form{
        margin-bottom: 95px;
    }
    .upper-content{
        justify-content: center;
    }
    .message-input{
        width: 100%;
    }

}