div.prescription_box select {
    padding: 0 4px;
    height: 25px;
    border: 0;
    border-radius: 3px;
}

.prescription_box_container {
    background: rgb(255, 255, 255);
    padding: 20px;
    clip-path: polygon(1px 0.77%, 100.19% 0.32%, 98.08% 98.66%, 11px 95.08%);
}

.prescription_box_loader {
    position: absolute;
    top:0;
    left:0;
    width: 100%;
    height: 100%;
    display: none;
}

.prescription_box {
    display: table;
    width: 100%;
}

.thead {
    display: table-header-group;
    border-bottom: 2px solid #000;
}

.tbody {
    display: table-row-group;
}

.tr {
    display: table-row;
}

.td {
    display: table-cell;
}

.th {
    display: table-cell;
}

div.prescription_box:first-child > .tbody > .tr > .td {
    padding:0 8px;
}

div.prescription_box > .tbody > .tr > .td,
div.prescription_box > .thead > .tr > .th {
    padding: 8px 8px;
    max-width: 70px;
}

div.prescription_box > .thead > .tr > .th {
    color: #000;
    border-bottom: 1px solid #000;
}

.prescription_box .th,
.prescription_box .td {
    font-size: 1.3rem;
    vertical-align: middle;
    text-align: center;
}

div.prescription_box > .tbody select,
div.prescription_box > .tbody > .tr > .td.prescription_qty_box input {
    height: 30px;
    border-radius: 0;
    background-color: #eee;
}

.prescription_dropdown_box {
    width: 90px;
    max-width: 90px;
}

.prescription_qty_box {
    margin: 4px auto;
    display: flex;
    align-items: center;
}

.prescription_qty_box .control {
    margin: 10px 0;
    display: flex;
    align-items: center;
}

.prescription_qty_box button {
    border:0;
    background: #fff;
    margin:0;
    padding: 2px;
}

.prescription_qty_box input {
    max-width: 50px;
    padding: 0;
    font-size: 1.3rem;
    border:0;
    text-align: center;
    display: block;
    height: 30px;
}

div.prescription_box > .tbody > .tr:not(:last-child) {
    border-bottom: 1px solid #ececec;
}

.prescription_box .tr .prescription_action_box {
    display: none;
}

.prescription_box .tr:not(:first-child) .prescription_action_box {
    display: table-cell;
}

.prescription_action_box span {
    color: #da6565;
    width: 17px;
    height: 17px;
    border-radius: 20px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.prescr_title {
    display: none;
}

.prescription_availability.available span {
    background: #88de6b;
    color: #fff;
    width: 17px;
    height: 17px;
    border-radius: 20px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.prescription_availability.available span:before {
    content: "\e904";
    font-family: 'icomoon' !important;
    font-size: 1.2rem;
}

.prescription_availability.unavailable span {
    background: #da6565;
    color: #fff;
    width: 17px;
    height: 17px;
    border-radius: 20px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.prescription_availability.unavailable span:before {
    content: "\e91d";
    font-family: 'icomoon' !important;
    font-size: 1.2rem;
}

.prescription_availability h5 {
    display: none;
}

.prescription_availability {
    display: none;
}

.prescription_availability.opened {
    display: table-cell;
}

.popover .popover-body {
    font-size: 1.3rem;
}

div.prescription_box > .tfoot > .tr > .td {
    padding: 8px 4px;
    text-align: left;
}

.add_presc_row {
    padding: 8px;
    border-top: 1px solid #ececec;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.add_presc_row .total_box_lens_qty {
    display: block;
    font-size: 1.2rem;
    text-align: right;
}

.add_presc_row .total_box_lens_qty span {
    font-weight: 700;
}

.add_presc_row button {
    font-size: 1.3rem;
    font-weight: 300;
    background: #efd1b2;
    padding: 5px 15px;
    color: #000;
}

.add_presc_row button:hover {
    background-color: none;
    border: none;
}

.clm-container {
    padding: 0;
}

.wrapper {
    width: 100%;
}

.clm-title {
    font-size: 22px;
    font-weight: 600;
}

.clm__table {
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flex;
    display: -o-flex;
    display: flex;
    flex-wrap: wrap;
    margin: 2rem 0 5rem 0;
    padding: 0;
    background-color: #fff;
}

.clm__table .clm__table-row {
    position: relative;
    width: 100%;
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flex;
    display: -o-flex;
    display: flex;
}

.clm__table .clm__table-lens-row {
    margin-bottom: 5px;
    font-size: 1.4rem;
}

.clm__table .clm__table-lens-row:not(:first-child):not(:last-child) {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.clm__table .clm__table-lens-row {
    border-bottom: 1px solid #eee;
}

.clm__table .clm__table-row:nth-last-child(2),
.clm__table .clm__table-row:last-child {
    border-bottom: 0;
}

.clm__table .clm__table-lens-row:first-child .remove-box {
    display: none;
}

.clm__table .clm__table-row .clm__table-cell {
    box-sizing: border-box;
    flex: 1;
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flex;
    display: -o-flex;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.5rem;
    overflow: hidden;
    list-style: none;
}

.clm__table .clm__table-row .clm__table-cell .clm__table-cell--content label {
    width: 100%;
    max-width: 100px;
}

.clm__table .clm__table-row .clm__table-cell.qty-cell .qty {
    display: flex;
    align-items: center;
    justify-content: center;
}

.clm__table .clm__table-row .clm__table-cell.qty-cell .qty .count {
    color: #000;
    display: inline-block;
    vertical-align: top;
    padding: 0 2px;
    background: #f9f9f9;
    border: 1px solid #eee;
    max-width: 35px;
    text-align: center;
}

.clm__table .clm__table-row .clm__table-cell.qty-cell .qty .plus {
    cursor: pointer;
    color: black;
    width: 20px;
    height: 30px;
    font-size: 22px;
    margin-left: 0.5rem;
    text-align: center;
    border-radius: 1px;
    line-height: 1.2;
}

.clm__table .clm__table-row .clm__table-cell.qty-cell .qty .minus {
    cursor: pointer;
    color: black;
    font-size: 30px;
    width: 20px;
    height: 30px;
    margin-right: 0.5rem;
    text-align: center;
    border-radius: 1px;
    line-height: 1;
}

.clm__table .clm__table-row.clm__table-row--head {
    border-bottom: 1px solid #333;
}

.clm__table .clm__table-row.clm__table-row--footer {
    display: flex;
    justify-content: space-between;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
}

.clm__table .clm__table-row.clm__table-row--footer .label {
    color: #000;
    font-size: 11px;
    font-weight: 500;
}

.clm__table .clm__table-row.clm__table-row--footer .value {
    font-size: 18px;
}

.clm__table .clm__table-row.clm__table-row--footer .totals {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.clm__table .clm__table-row.clm__table-row--footer .total-lenses {
    text-align: center;
    margin-right: 2rem;
    padding-right: 1.5rem;
}

.clm__table .clm__table-row.clm__table-row--footer .total-lenses .value .symbol {
    font-size: 14px;
    margin-left: -0.5rem;
}

.clm__table .clm__table-row.clm__table-row--footer .total-cost .value {
    color: #D96310;
    font-weight: 600;
    text-align: left;
}

.clm__table .clm__table-row .clm__table-cell.column-heading {
    flex: 1;
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flex;
    display: -o-flex;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column-reverse;
    font-size: 13px;
    line-height: 14px;
    font-weight: 600;
    color: black;
    padding: 0.75rem 1rem;
}

.clm__table .clm__table-row .clm__table-cell.column-heading div {
    text-align: center;
}

.clm__table .clm__table-row .clm__table-cell.column-heading .short {
    font-size: 11px;
    font-weight: 400;
}

.clm__table .clm__table-row .clm__table-cell .clm__table-cell--heading {
    display: none;
}

.clm__table .clm__table-row .clm__table-cell .clm__table-cell--content {
    width: 100%;
    text-align: center;
}

.clm__table .clm__table-row .clm__table-cell .clm__table-cell--content select {
    width: 100%;
    background-color: #f9f9f9;
    border-color: #eee;
    padding: 0;
    padding-left: 0.75rem;
}

.clm__table .clm__table-row .clm__table-cell .clm__table-cell--content a {
    font-size: 2em;
    color: #333;
}

.clm__table--collapse .clm__table-row .clm__table-cell .remove-box {
    position: absolute;
    left: -1.5rem;
    width: 5rem;
    text-align: left;
    justify-content: flex-start;
    padding-left: 1rem;
    color: #D96310;
    display: none;
}

.clm__table--collapse .clm__table-row .clm__table-cell .remove-box:before,
.clm__table--collapse .clm__table-row .clm__table-cell .remove-box:after {
    position: absolute;
    left: 8px;
    top: -5px;
    content: ' ';
    height: 15px;
    width: 2px;
    background-color: #d96310;
}

.clm__table--collapse .clm__table-row .clm__table-cell .remove-box:before {
    transform: rotate(45deg);
}

.clm__table--collapse .clm__table-row .clm__table-cell .remove-box:after {
    transform: rotate(-45deg);
}

.add-box {
    display: flex;
    align-items: center;
    border: 1px solid #D96310;
    color: #D96310;
    height: 3.5rem;
    padding: 0.5rem 2rem;
    transition: all 300ms ease-in-out;
    white-space: nowrap;
}

.add-box:hover {
    background: #D96310;
    border-color: #D96310;
    color: #fff;
}

/* Responsive
==================================== */
@media only screen and (max-width: 767px) {
    /* Combined responsive styles */

    /* From first media query (clm__table styles) */
    .clm__table--collapse {
        display: block;
        width: 100%;
        box-shadow: none;
    }

    .clm__table--collapse .clm__table-row {
        box-sizing: border-box;
        position: relative;
        width: 100%;
        display: -webkit-box;
        display: flex;
        flex-wrap: wrap;
        margin-bottom: 2em;
    }

    .clm__table .clm__table-lens-row:not(:first-child):not(:last-child) {
        padding-top: 0;
        padding-bottom: 0;
    }

    .clm__table .clm__table-lens-row {
        padding: 0;
        border: 1px solid #eee;
        display: block;
        overflow: hidden;
    }

    .clm__table--collapse .clm__table-row .clm__table-cell {
        width: 100% !important;
        display: -webkit-box;
        display: flex;
        -webkit-box-align: center;
        align-items: center;
        padding: 0;
    }

    .clm__table--collapse .clm__table-row .clm__table-cell .clm__table-cell--heading {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        -webkit-box-flex: 1;
        flex: 1;
        max-width: 120px;
        min-width: 120px;
        color: #111;
        font-size: 1.3rem;
        text-align: left;
        letter-spacing: -0.5px;
        padding: 7px 10px 7px 7px;
        height: 100%;
        line-height: 1.2;
    }

    .clm__table .clm__table-row:nth-last-child(2),
    .clm__table .clm__table-row:last-child {
        border-bottom: 1px solid #eee;
    }

    .clm__table--collapse .clm__table-row .clm__table-cell .clm__table-cell--content {
        -webkit-box-flex: 2;
        flex: 2;
        padding: 10px;
    }

    .clm__table--collapse .clm__table-row .clm__table-cell:not(:last-child) .clm__table-cell--content {
        border-bottom: 1px solid #ddd;
    }

    .clm__table--collapse .topic-cell {
        color: #111;
        font-weight: 700;
        -webkit-box-ordinal-group: 0;
        order: -1;
    }

    .clm__table--collapse .topic-cell .clm__table-cell--content {
        padding-left: 0 !important;
    }

    .clm__table--collapse .clm__table-row--head {
        display: none;
    }

    .clm__table--collapse .clm__table-row--footer {
        border: none !important;
        padding: 0;
    }

    .clm__table-row--footer .add-box-container {
        width: 100%;
        margin-bottom: 35px;
    }

    .clm__table-row--footer .add-box-container .add-box {
        text-align: center;
        justify-content: center;
        font-weight: 600;
    }

    .clm__table .clm__table-row.clm__table-row--footer .totals {
        width: 100%;
        justify-content: center;
    }

    .clm__table--collapse .clm__table-row .clm__table-cell .remove-box {
        left: 3px;
    }

    /* From second media query (prescription_box styles) */
    .prescription_box .thead {
        display: none;
    }

    .prescription_dropdown_box,
    .prescription_text_box {
        display: flex;
        justify-content: space-between;
        text-align: left !important;
        max-width: 100% !important;
        width: 100% !important;
        height: 25px !important;
        margin: 10px 0;
    }

    .prescription_qty_box {
        display: flex;
        justify-content: space-between;
        text-align: left !important;
        max-width: 100% !important;
        width: 100% !important;
        height: 25px !important;
        margin: 10px 0 20px;
    }

    .prescription_availability {
        justify-content: space-between;
        text-align: left !important;
        max-width: 100% !important;
        width: 100% !important;
        height: 25px !important;
        margin: 10px 0;
    }

    .prescription_box .tr .prescription_action_box {
        display: none;
    }

    .prescription_box .tr:not(:first-child) .prescription_action_box {
        display: flex;
        justify-content: flex-end;
        text-align: right !important;
        max-width: 100% !important;
        width: 100% !important;
        height: 25px !important;
        margin: 10px 0 20px;
    }

    .prescr_title {
        display: block;
    }

    .prescription_box_container {
        padding: 10px 6px;
    }

    .prescription_qty_box .control {
        margin: 0;
    }

    .prescription_dropdown_box .select-wrapper {
        width: 50%;
    }

    .prescription_box .th,
    .prescription_box .td {
        font-size: 1.3rem !important;
    }

    .prescription_action_box {
        display: flex;
        justify-content: flex-end;
    }

    .prescription_availability {
        justify-content: center;
    }

    .prescription_availability h5 {
        display: inline-block;
        margin-left: 5px !important;
        color: #000 !important;
        font-size: 1.4rem;
        font-weight: 700;
    }

    .prescription_availability.opened {
        display: flex;
    }

    div.prescription_box > .tbody > .tr > .td {
        border-bottom: 0px;
    }
}

/* Keep the no-flexbox styles outside the media query */
.no-flexbox .clm__table {
    display: block;
}

.no-flexbox .clm__table.clm__table-cell {
    width: 100%;
}
