/* Modern checkout layout. Existing field names and checkout behaviour are untouched. */

#order.orderContainer {
    color: #252525;
}

#order .checkoutTitle {
    box-sizing: border-box;
    height: auto;
    min-height: 70px;
    padding: 22px 24px;
    border: 1px solid #e5e5e5;
    border-bottom: 0;
    background: #fff;
    line-height: 1.4;
    font-size: 20px;
    letter-spacing: .01em;
    text-transform: none;
}

#order .checkoutCard {
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    background: #fff;
}

/* Search suggestions must be allowed to extend beyond the delivery card. */
#order .checkoutDelivery {
    position: relative;
    z-index: 20;
    overflow: visible;
}

#order .checkoutDelivery > tbody,
#order .checkoutDelivery > tbody > tr,
#order .checkoutDelivery > tbody > tr > td {
    overflow: visible;
}

#order .checkoutPayment {
    position: relative;
    z-index: 1;
}

#order .checkoutCard > tbody > tr > td {
    border-color: #e8e8e8;
}

#order .checkoutCard input,
#order .checkoutCard select,
#order .checkoutCard textarea {
    border: 1px solid #d9d9d9;
    border-radius: 5px;
    color: #252525;
    transition: border-color .18s ease, box-shadow .18s ease;
}

#order .checkoutCard input:focus,
#order .checkoutCard select:focus,
#order .checkoutCard textarea:focus {
    border-color: #ff9601;
    box-shadow: 0 0 0 3px rgba(255, 150, 1, .12);
}

#order .checkoutCard .label,
#order .checkoutCard .label2 {
    color: #323232;
    font-family: 'robotobold', Arial, sans-serif;
    font-size: 14px;
}

#order .checkoutCard label {
    color: #929292;
    font-size: 12px;
}

#order .checkoutPayment .deliveries {
    width: 100%;
    margin: 0;
}

#order .checkoutPayment .label2 {
    margin-left: 0;
}

#order .checkoutPayment .accordion-group {
    box-sizing: border-box;
    margin: 0;
    overflow: hidden;
    border: 1px solid #dedede;
    border-radius: 6px;
    background: #fff;
    transition: border-color .18s ease, box-shadow .18s ease;
}

#order .checkoutPayment .accordion-group.open {
    border-color: #ff9601;
    box-shadow: 0 0 0 2px rgba(255, 150, 1, .1);
}

#order .checkoutPayment .accordion-style-2 .accordion-heading {
    background: #f7f7f7;
}

#order .checkoutPayment .accordion-style-2 .accordion-heading .accordion-toggle {
    box-sizing: border-box;
    min-height: 48px;
    padding: 15px 16px;
    color: #292929;
    line-height: 18px;
}

#order .checkoutPayment .accordion-style-2 .accordion-inner {
    padding: 15px 16px;
    color: #555;
    line-height: 1.5;
}

#order .checkoutPayment .accordion-inner p {
    margin: 0 0 8px;
}

#order .checkoutPayment .accordion-inner p:last-child {
    margin-bottom: 0;
}

#order .checkoutPayment .deliveries .open .box {
    border-color: #ff9601;
    background: #ff9601;
}

#order .checkoutPayment i.box {
    width: 10px;
    height: 10px;
    margin-right: 7px;
    border-radius: 50%;
    box-shadow: none;
}

#order .orderLine.bottom {
    box-sizing: border-box;
    background: #1b1b1b;
    color: #fff;
}

#order .orderLine.bottom #allOrderSum {
    color: #ff9601;
    font-size: 20px;
}

#order #orderMake {
    box-sizing: border-box;
    background: #ff9601;
    font-family: 'robotobold', Arial, sans-serif;
    transition: background-color .18s ease, transform .18s ease;
}

#order #orderMake:hover {
    background: #e98700;
}

#order .np-checkout-fields,
#order .regular-address-group {
    margin-top: 16px;
}

#order .np-field {
    position: relative;
    margin-top: 16px;
}

#order .np-checkout-fields .np-field:first-child {
    margin-top: 0;
}

#order .np-control {
    position: relative;
}

#order .np-control input[readonly] {
    padding-right: 92px;
    background: #f7f7f7;
    color: #3c3c3c;
    cursor: default;
}

#order .np-selection-change {
    position: absolute;
    z-index: 2;
    top: 50%;
    right: 8px;
    box-sizing: border-box;
    min-width: 72px;
    height: 32px;
    padding: 0 10px;
    border: 0;
    border-radius: 4px;
    background: #ececec;
    color: #444;
    font: 12px/32px 'robotobold', Arial, sans-serif;
    text-align: center;
    transform: translateY(-50%);
    cursor: pointer;
}

#order .np-selection-change:hover,
#order .np-selection-change:focus {
    background: #ff9601;
    color: #fff;
}

#order .np-dropdown {
    position: absolute;
    z-index: 120;
    top: calc(100% + 5px);
    right: 0;
    left: 0;
    box-sizing: border-box;
    max-height: 260px;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .16);
}

#order .np-dropdown.is-dropup {
    top: auto;
    bottom: calc(100% + 5px);
}

#order .np-dropdown[hidden],
#order .np-checkout-fields[hidden],
#order .regular-address-group[hidden],
#order .np-selection-change[hidden] {
    display: none !important;
}

#order .np-dropdown-option {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-height: 42px;
    padding: 11px 14px;
    border: 0;
    border-bottom: 1px solid #ededed;
    background: #fff;
    color: #292929;
    font: 13px/1.45 Arial, sans-serif;
    text-align: left;
    cursor: pointer;
}

#order .np-dropdown-option:last-child {
    border-bottom: 0;
}

#order .np-dropdown-option:hover,
#order .np-dropdown-option:focus,
#order .np-dropdown-option.is-active {
    outline: 0;
    background: #fff3e2;
    color: #1f1f1f;
}

#order .np-dropdown-message {
    padding: 13px 14px;
    color: #777;
    font-size: 13px;
    line-height: 1.45;
}

#order .np-dropdown-message.is-error {
    color: #b52d2d;
}

#order .np-control input:disabled {
    background: #f1f1f1;
    color: #999;
    cursor: not-allowed;
}

@media (min-width: 1024px) {
    #order.orderContainer {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 20px;
        box-sizing: border-box;
        padding: 24px;
        border: 1px solid #e5e5e5;
        background: #f5f5f5;
    }

    #order .checkoutTitle {
        grid-column: 1 / -1;
        margin: -24px -24px 0;
        border: 0;
        border-bottom: 1px solid #e5e5e5;
    }

    #order .checkoutPersonal {
        grid-column: 1;
    }

    #order .checkoutDelivery {
        grid-column: 2;
    }

    #order .checkoutPayment,
    #order > .orderLine.bottom {
        grid-column: 1 / -1;
    }

    #order .checkoutCard {
        display: table;
        box-sizing: border-box;
        height: 100%;
        border: 1px solid #e3e3e3;
        border-radius: 8px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, .045);
    }

    #order .checkoutCard > tbody,
    #order .checkoutCard > tbody > tr {
        display: block;
        width: 100%;
    }

    #order .checkoutCard > tbody > tr > td {
        display: block;
        box-sizing: border-box;
        width: 100%;
        border: 0;
    }

    #order .checkoutCard > tbody > tr > td:first-child {
        padding: 20px 24px 12px;
        text-align: left;
    }

    #order .checkoutCard > tbody > tr > td:first-child:empty {
        display: none;
    }

    #order .checkoutCard > tbody > tr > td:first-child span {
        margin: 0;
        color: #222;
        text-align: left;
        text-transform: none;
        font-size: 18px;
    }

    #order .checkoutCard > tbody > tr > td:last-child {
        padding: 0 24px 24px;
    }

    #order .checkoutCard .userProp li {
        margin-top: 16px;
        overflow: visible;
    }

    #order .checkoutCard .label,
    #order .checkoutCard .label2 {
        display: block;
        float: none;
        width: auto;
        margin: 0 0 7px;
    }

    #order .checkoutCard input,
    #order .checkoutCard select,
    #order .checkoutCard textarea,
    #order .checkoutCard .locDesk {
        box-sizing: border-box;
        width: 100%;
    }

    #order .checkoutCard input,
    #order .checkoutCard select {
        height: 48px;
    }

    #order .checkoutCard textarea {
        min-height: 96px;
        margin-top: 0;
    }

    #order .checkoutPayment > tbody > tr:first-child > td:last-child {
        padding-bottom: 20px;
    }

    #order .checkoutPayment > tbody > tr:last-child > td:last-child {
        padding-top: 0;
    }

    #order .checkoutPayment .deliveries {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
        margin: 0;
    }

    #order > .orderLine.bottom {
        display: flex;
        align-items: center;
        min-height: 86px;
        height: auto;
        margin: 0;
        padding: 16px 20px;
        border: 0;
        border-radius: 8px;
        line-height: normal;
    }

    #order > .orderLine.bottom #sum {
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100%;
        float: none;
    }

    #order > .orderLine.bottom #orderMake {
        order: 10;
        width: 250px;
        min-width: 250px;
        height: 54px;
        margin: 0 0 0 auto;
    }

    #order > .orderLine.bottom .label,
    #order > .orderLine.bottom .price,
    #order > .orderLine.bottom #countOrderItems,
    #order > .orderLine.bottom #allDevilerySum {
        margin-right: 10px;
    }
}

@media (max-width: 1100px) and (min-width: 1024px) {
    #order .checkoutPayment .deliveries {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1023px) {
    #order .checkoutTitle {
        border-bottom: 1px solid #e5e5e5;
        font-size: 18px;
    }

    #order .checkoutCard {
        border-bottom: 1px solid #eee;
    }

    #order .checkoutPayment .accordion-group {
        margin: 10px 0;
    }

    #order .orderLine.bottom {
        color: #fff;
    }
}

@media (max-width: 700px) {
    #order .checkoutTitle {
        min-height: 0;
        padding: 14px 16px;
        font-size: 16px;
    }

    #order .checkoutCard > tbody > tr > td:last-child {
        padding-top: 16px;
        padding-bottom: 16px;
    }

    #order .checkoutCard .userProp li {
        margin-top: 14px;
        overflow: visible;
    }

    #order .checkoutCard .userProp li:first-child {
        margin-top: 0;
    }

    #order .checkoutCard .label,
    #order .checkoutCard .label2 {
        margin-bottom: 4px;
    }

    #order .checkoutCard label {
        line-height: 1.3;
    }

    #order .checkoutCard input,
    #order .checkoutCard select {
        height: 46px;
        margin-top: 7px;
        margin-bottom: 0;
    }

    #order .checkoutDelivery .deliSelect {
        margin-top: 0;
    }

    #order .checkoutDelivery .np-control {
        width: 90%;
        margin-right: auto;
        margin-left: auto;
    }

    #order .checkoutDelivery .np-control input {
        width: 100%;
        margin-right: 0;
        margin-left: 0;
    }

    #order .np-selection-change {
        right: 7px;
        min-width: 68px;
        padding-right: 8px;
        padding-left: 8px;
    }

    #order .np-checkout-fields,
    #order .regular-address-group,
    #order .np-field {
        margin-top: 12px;
    }

    #order .orderLine.bottom {
        padding: 20px 5%;
    }

    #order #orderMake {
        width: 100%;
        margin: 0 0 16px;
    }

    #order .np-dropdown {
        max-height: 220px;
    }

    #order .np-dropdown-option {
        min-height: 46px;
        font-size: 14px;
    }
}

/* Checkout totals: delivery + COD fee + final payable amount */
#order > .checkoutSummary.orderLine.bottom {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 0;
    height: auto;
    margin: 0;
    padding: 18px 20px;
    border: 0;
    border-radius: 8px;
    background: #1b1b1b;
    line-height: normal;
}

#order > .checkoutSummary .checkoutSummary__details {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 620px;
}

#order > .checkoutSummary .checkoutSummary__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 22px;
    padding: 5px 0;
    color: #d7d7d7;
    font-size: 14px;
    line-height: 1.35;
}

#order > .checkoutSummary .checkoutSummary__label {
    min-width: 0;
}

#order > .checkoutSummary .checkoutSummary__label small {
    color: #aaa;
    font-size: 11px;
    font-weight: 400;
}

#order > .checkoutSummary .checkoutSummary__value {
    flex: 0 0 auto;
    color: #fff;
    font-family: 'robotobold', Arial, sans-serif;
    text-align: right;
    white-space: nowrap;
}

#order > .checkoutSummary .checkoutSummary__row--muted {
    color: #aaa;
}

#order > .checkoutSummary .checkoutSummary__row--muted .checkoutSummary__value {
    color: #cfcfcf;
}

#order > .checkoutSummary .checkoutSummary__row--commission {
    margin-top: 4px;
    padding-top: 9px;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

#order > .checkoutSummary .checkoutSummary__row--commission[hidden] {
    display: none !important;
}

#order > .checkoutSummary .checkoutSummary__free {
    color: #8ecb72;
}

#order > .checkoutSummary .checkoutSummary__row--total {
    margin-top: 5px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, .18);
    color: #fff;
    font-family: 'robotobold', Arial, sans-serif;
    font-size: 17px;
}

#order > .checkoutSummary .checkoutSummary__row--total .checkoutSummary__value {
    color: #ff9601;
    font-size: 22px;
}

#order > .checkoutSummary #orderMake {
    flex: 0 0 250px;
    order: initial;
    width: 250px;
    min-width: 250px;
    height: 54px;
    margin: 0 0 0 auto;
}

@media (max-width: 700px) {
    #order > .checkoutSummary.orderLine.bottom {
        display: block;
        margin: 0;
        padding: 16px;
        border-radius: 0;
    }

    #order > .checkoutSummary .checkoutSummary__details {
        max-width: none;
        margin-bottom: 16px;
        padding: 12px 14px;
        border-radius: 7px;
        background: #252525;
    }

    #order > .checkoutSummary .checkoutSummary__row {
        gap: 12px;
        padding: 6px 0;
        font-size: 13px;
    }

    #order > .checkoutSummary .checkoutSummary__row--total {
        margin-top: 6px;
        padding-top: 12px;
        font-size: 15px;
    }

    #order > .checkoutSummary .checkoutSummary__row--total .checkoutSummary__value {
        font-size: 20px;
    }

    #order > .checkoutSummary #orderMake {
        width: 100%;
        min-width: 0;
        margin: 0;
    }
}
