.orders {
    position: relative;
}
.orders .wrapper {
    max-width: 800px;
    margin: 0 auto;
}
.orders h2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}
.orders .all-history-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    font-size: 16px;
    font-weight: 400;
    text-decoration: none;
    color: #E6E6E6;
    background-color: #84246B;
    border-radius: 4px;
    padding: 8px 12px;
    transition: 0.2s;
}
.orders .all-history-btn svg {
    width: 18px;
    height: 18px;
    margin-right: 8px;
}
.orders .all-history-btn:hover {
    background-color: #a02c81;
}
.orders .today__list {
    position: relative;
    padding: 16px;
    border: 1px solid #84246B;
    background-color: #E2E2E2;
}
.orders .today__list button {
    position: absolute;
    right: 16px;
    bottom: 16px;
    background-color: #84246B;
    color: #E6E6E6;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.1s;
}
.orders .today__list button:hover {
    background-color: #A02C81;
}
.orders .today__date {
    font-size: 19px;
    margin: 12px 0;
    color: #84246B;
}
.orders table {
    width: 100%;
    text-align: center;
    border-collapse: collapse;
    margin-bottom: 24px;
    background-color: #E6E6E6;
}
.orders table th, .orders table td {
    font-size: 16px;
    padding: 6px 12px;
    border: 1px solid #84246B;
}
.orders .orders-sum {
    font-size: 18px;
    font-weight: 600;
    color: #84246B;
    padding-bottom: 4px;
}
.orders .mark-done-btn, .orders .order-complete {
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    color: #E6E6E6;
    background-color: #84246B;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    transition: 0.2s;
}
.orders .mark-done-btn:hover {
    background-color: #A02C81;
}
.orders .order-complete {
    background-color: #333333 !important;
    cursor: default !important;
}

/* ACCORDIONS */
.orders .accordion {
    position: relative;
    padding-bottom: 40px;
    margin-bottom: 40px;
    border-bottom: 1px dashed #84246B;
}
.orders .accordion input{
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    opacity:0;
    visibility: 0;
}
.orders .accordion h1 {
    position: relative;
    background-color: #84246B;
    color: #E2E2E2;
    font-size: 18px;
    line-height: 50px;
    padding: 0 16px;
}
.orders .accordion svg {
    position: absolute;
    right: 0;
}
.orders .accordion label {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
}
div.p {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s linear;
    background-color: #E6E6E6;
    border: 1px solid #84246B;
}
div.p p {
    font-size: 17px;
    padding: 4px 16px;
}
div.p p:first-of-type {
    padding-top: 18px;
}
div.p p:last-of-type {
    padding-bottom: 18px;
}
.orders .accordion input:checked ~ h1 ~ div.p {
    max-height: 300px;
}

@media screen and (max-width: 960px) {
    .orders h2 {
        margin-bottom: 40px;
    }
    .orders .all-history-btn {
        font-size: 14px;
        padding: 6px 12px;
    }
    .orders .all-history-btn svg {
        width: 16px;
        height: 16px;
    }

    .orders .today__list button {
        padding: 6px 12px;
    }
    .orders .today__date {
        font-size: 16px;
    }
    .orders table {
        margin-bottom: 20px;
    }
    .orders table th, .orders table td {
        font-size: 14px;
        padding: 6px;
    }
    .orders .orders-sum {
        font-size: 14px;
    }
    .orders .mark-done-btn, .orders .order-complete {
        font-size: 13px;
        padding: 6px 12px;
    }

    /* ACCORDIONS */
    .orders .accordion {
        padding-bottom: 30px;
        margin-bottom: 30px;
    }
    .orders .accordion h1 {
        font-size: 16px;
        line-height: 36px;
        padding: 0 12px;
    }
    div.p p {
        font-size: 14px;
        padding: 4px 12px;
    }
    div.p p:first-of-type {
        padding-top: 12px;
    }
    div.p p:last-of-type {
        padding-bottom: 12px;
    }
}