/* ---CHECKOUT PAGE--- */

.checkout_section {
    padding: 5% 15%;
}

.checkout_section hr {
    height: 2px;
    margin: 15px 0;
    border: 0;
    border-radius: 2px;
    background: var(--primary);
    opacity: .5;
}

.checkout_section label {
    color: var(--primary);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 5px;
}

.checkout_section input {
    width: 100%;
    color: var(--primary);
    font-weight: 600;
    padding: 10px;
    border: 0;
    border-radius: 5px;
    background: white;
    transition: .25s;
}

.checkout_section input:hover,
.checkout_section input:focus-visible {
    box-shadow: 0px 2px 10px 0 #0000001b;
}

.checkout_section ::placeholder {
    color: var(--primary);
    opacity: .5;
}

.checkout_section .input_error {
    display: none;
    color: #ff2e00;
    font-size: 12px;
    font-weight: 500;
    margin-top: 5px;
}

.checkout_section .input_error.active {
    display: block;
}

.checkout_section ::-webkit-scrollbar {
    width: 5px;
}

.checkout_section ::-webkit-scrollbar-track {
    background: transparent;
}

.checkout_section ::-webkit-scrollbar-thumb {
    background: white;
    border-radius: 4px;
}

.checkout_section .checkout_contain {
    display: grid;
    grid-template-columns: 60% 40%;
}

@media (max-width: 996px) {
    .checkout_section {
        padding: 30px 20px;
    }
    .checkout_section label {
        font-size: 13px;
    }
    .checkout_section input {
        font-size: 12px;
    }
    .checkout_section .checkout_contain {
        grid-template-columns: 100%;
    }
}

/* ---Checkout Form--- */

.checkout_section .checkout_content {
    margin-right: 20px;
}

.checkout_section .checkout_title {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.checkout_section .checkout_title a {
    display: flex;
    align-items: center;
}

.checkout_section .checkout_title a:hover {
    transform: translateX(-3px);
}

.checkout_section .checkout_title svg {
    transform-origin: left;
    transform: scale(1.3);
}

.checkout_section .checkout_title h2 {
    font-size: 25px;
    font-weight: 700;
    margin-left: 10px;
}

.checkout_section .checkout_steps {
    padding: 30px;
    background: #efefef;
    border-radius: 20px;
}

.checkout_section .checkout_content .title_contain {
    width: 100%;
    display: flex;
    align-items: center;
}

.checkout_section .checkout_content .title_contain .icon_title {
    display: flex;
    justify-content: center;
    align-items: center;
}

.checkout_section .checkout_content .title_contain h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 10px;
}

.checkout_section .step_condition {
    display: none;
    color: #adadad;
    font-weight: 500;
    transition: .25s;
}

.checkout_section .step_condition:hover {
    cursor: pointer;
    color: var(--primary);
}

.checkout_section .step_condition .edit_contain {
    display: flex;
    align-items: center;
    color: var(--primary);
    transition: .25s;
}

.checkout_section .step_condition .edit_contain:hover {
    color: #adadad
}

.checkout_section .step_condition svg {
    margin-right: 3px;
}

.checkout_section .step_condition path {
    stroke: var(--primary);
    transition: .25s;
}

.checkout_section .step_condition:hover path{
    stroke: #adadad;
}

.checkout_section .step_done .step_condition {
    display: block;
    margin-left: auto;
}

.checkout_section .step_content {
    max-height: 0;
    overflow: hidden;
    padding: 0 30px;
    opacity: 0;
    transition: .5s;
}

.checkout_section .step_active .step_content {
    max-height: 10000px;
    padding: 15px 30px;
    opacity: 1;
}

.checkout_section .buttons_contain {
    display: flex;
    flex-wrap: wrap;
}

.checkout_section .buttons_contain button {
    width: 150px;
    color: var(--primary);
    font-weight: 600;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 10px;
    margin-right: 10px;
    border: 0;
    border-radius: 5px;
    background: white;
    box-shadow: 0px 2px 10px 0 #0000001b;
}

.checkout_section .buttons_contain .active_button,
.checkout_section .buttons_contain button:hover {
    color: white;
    background: var(--primary);
}

.checkout_section .delivery_contain {
    margin-top: 15px;
}

.checkout_section .delivery_input {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.checkout_section .inputs_contain {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.checkout_section .inputs_contain>div {
    width: calc(100% / 3 - 10px);
}

.checkout_section #mapContainer {
    margin: 20px 0;
    border-radius: 10px;
    border: 5px solid white;
    box-shadow: 0px 2px 10px 0 #0000001b;
    overflow: hidden;
}

.checkout_section .instructions_contain .title_contain {
    display: flex;
    align-items: center;
    width: fit-content;
    cursor: pointer;
}

.checkout_section .instructions_contain p {
    color: var(--primary);
    font-size: 15px;
    font-weight: 600;
    margin-right: 10px;
}

.checkout_section .instructions_contain button {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    border: 2px solid var(--primary);
}

.checkout_section .instructions_contain .title_contain:hover button {
    background: var(--primary);
}

.checkout_section .instructions_contain svg {
    transform: scale(.7);
}

.checkout_section .instructions_contain path {
    fill: var(--primary);
}

.checkout_section .instructions_contain .title_contain:hover path {
    fill: white;
}

.checkout_section .instructions_contain .textarea_contain {
    width: 100%;
    height: 0;
    overflow: hidden;
    transition: .25s;
}

.checkout_section .instructions_contain_open .textarea_contain {
    height: 100px;
}

.checkout_section .instructions_contain textarea {
    color: var(--primary);
    font-weight: 600;
    max-width: 100%;
    min-width: 100%;
    min-height: 80px;
    max-height: 80px;
    padding: 10px;
    border: 0;
    border-radius: 5px;
    box-shadow: 0px 0px 5px 0 #6d8dad46;
    transition: .25s;
}

.checkout_section .instructions_contain textarea:hover,
.checkout_section .instructions_contain textarea:focus-visible {
    box-shadow: 0px 2px 10px 0 #0000001b;
}

.checkout_section .pickup_contain {
    display: none;
    margin-top: 20px;
}

.checkout_section .pickup_contain h2 {
    color: var(--primary);
    font-size: 15px;
    font-weight: 600;
}

.checkout_section .pickup_contain p {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 15px;
}

.checkout_section .continue_contain {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.checkout_section .continue_contain .checkout_spiner {
    opacity: 0;
}

.checkout_section .continue_contain button {
    width: 200px;
    color: white;
    font-size: 16px;
    font-weight: 500;
    padding: 10px;
    border: 0;
    border-radius: 10px 0 10px 0;
    background: var(--primary);
    box-shadow: 0px 2px 10px 0 #0000001b;
}

.checkout_section .continue_contain button:hover {
    color: var(--primary);
    background: white;
}

.checkout_section .personal_contain {
    margin-bottom: 15px;
}

.checkout_section .personal_contain .row_contain {
    display: flex;
    justify-content: space-between;
}

.checkout_section .personal_contain .input_contain {
    width: calc(100% / 2 - 10px);
    margin-bottom: 10px;
}

.checkout_section .card_contain {
    margin-top: 15px;
    display: none;
}

.checkout_section .card_active {
    display: block;
}

.checkout_section .payments .step_content .title_contain {
    display: block;
    margin-top: 20px;
}

.checkout_section .payments .step_content .title_contain h2 {
    font-size: 16px;
    margin: 0;
}

.checkout_section .card_form {
    margin: 15px 0;
}

.checkout_section .card_form .input_contain {
    margin-bottom: 10px;
}

.checkout_section .card_form .row_contain {
    display: flex;
    justify-content: space-between;
}

.checkout_section .card_form .row_contain .input_contain {
    width: calc(100% / 2 - 10px);
    margin-bottom: 10px;
}

.checkout_section .cash_contain {
    display: none;
}

.checkout_section .tip_contain {
    display: none;
}

.checkout_section .tip_contain.active {
    display: block;
}

.checkout_section .tip_contain .value_contain {
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.checkout_section .tip_contain .range_value {
    color: var(--primary);
    font-size: 25px;
    font-weight: 600;
    margin-left: 5px;
}

.checkout_section .tip_contain .percentage {
    color: var(--primary);
    font-size: 25px;
    font-weight: 600;
}

.checkout_section .tip_contain input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
}

.checkout_section .tip_contain input[type="range"]:hover {
    box-shadow: none;
}

.checkout_section .tip_contain input[type="range"]::-webkit-slider-runnable-track {
    background: #cccccc;
    height: 8px;
    border-radius: 8px;
}

.checkout_section .tip_contain input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 30px;
    border-radius: 5px;
    transform: translateY(-11px);
    background: var(--primary);
    cursor: pointer;
    transition: .25s;
}

.checkout_section .tip_contain input[type="range"]::-webkit-slider-thumb:hover {
    filter: brightness(1.2);
    box-shadow: 0px 2px 10px 0 #0000001b;
}

.checkout_section .custom_tip {
    margin: 25px 0;
}

.checkout_section .custom_tip button {
    width: 130px;
    color: white;
    font-weight: 500;
    font-size: 12px;
    padding: 8px;
    margin-bottom: 20px;
    border: 0;
    border-radius: 5px;
    background: var(--primary);
    box-shadow: 0px 2px 10px 0 #0000001b;
}

.checkout_section .custom_tip button:hover {
    color: var(--primary);
    background: white;
}

.checkout_section .custom_tip .amount_input {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    max-height: 0;
    overflow: hidden;
    transition: .25s;
}

.checkout_section .custom_tip_active .amount_input {
    max-height: 100px;
}

.checkout_section .custom_tip label {
    font-size: 20px;
    margin-right: 5px;
}

.checkout_section .custom_tip input[type=number] {
    width: 150px;
}

.checkout_section .custom_tip input[type=number]::-webkit-inner-spin-button,
.checkout_section .custom_tip input[type=number]::-webkit-outer-spin-button {
    appearance: none;
    -webkit-appearance: none;
}

.checkout_section .review_order .step_content p {
    margin-bottom: 30px;
}

@media (max-width: 996px) {
    .checkout_section .checkout_content {
        margin-right: 0;
    }
    .checkout_section .checkout_title {
        margin-bottom: 20px;
    }
    .checkout_section .checkout_title h2 {
        font-size: 20px;
    }
    .checkout_section .checkout_steps {
        padding: 25px;
    }
    .checkout_section .checkout_content .title_contain h2 {
        font-size: 18px;
    }
    .checkout_section .step_content {
        padding: 0 10px;
    }
    .checkout_section .step_active .step_content {
        padding: 20px 10px;
    }
    .checkout_section .buttons_contain button {
        width: 100px;
        font-size: 14px;
    }
    .checkout_section .instructions_contain p {
        font-size: 13px;
        margin-right: 5px;
    }
    .checkout_section .instructions_contain svg {
        transform: scale(.6);
    }
    .checkout_section .instructions_contain textarea {
        font-size: 13px;
        font-weight: 500;
    }
    .checkout_section .pickup_contain p {
        font-size: 13px;
    }
    .checkout_section .continue_contain {
        margin-top: 20px;
    }
    .checkout_section .continue_contain button {
        font-size: 14px;
    }
    .checkout_section .personal_contain .row_contain {
        flex-direction: column;
    }
    .checkout_section .personal_contain .input_contain {
        width: 100%;
    }
    .checkout_section .payments .step_content .title_contain h2 {
        font-size: 14px;
    }
    .checkout_section .payments .step_content .title_contain p {
        font-size: 13px;
    }
    .checkout_section .card_form .row_contain {
        flex-direction: column;
    }
    .checkout_section .card_form .row_contain .input_contain {
        width: 100%;
    }
    .checkout_section .tip_contain .range_value {
        font-size: 20px;
    }
    .checkout_section .tip_contain .percentage {
        font-size: 20px;
    }
    .checkout_section .tip_contain input[type="range"]::-webkit-slider-thumb {
        width: 15px;
        height: 25px;
        transform: translateY(-8px);
    }
    .checkout_section .review_order .step_content p {
        font-size: 13px;
    }
}

/* ---Your Order--- */

.checkout_section .order_contain {
    height: fit-content;
    margin: 40px 0 0 20px;
    border-radius: 20px;
    box-shadow: 0px 5px 20px 0px #6d8dad45;
}

.checkout_section .order_contain .title_contain {
    padding: 30px 30px 15px 30px;
}

.checkout_section .order_contain .title_contain h2 {
    font-size: 22px;
    font-weight: 700;
}

.checkout_section .order_contain .product_item {
    display: flex;
    padding: 0 30px 10px 30px;
}

.checkout_section .order_contain .media_contain {
    width: 50px;
    height: 50px;
    margin-right: 10px;
    border-radius: 5px;
    overflow: hidden;
}

.checkout_section .order_contain .media_contain img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.checkout_section .order_contain .info_contain h2 {
    font-size: 15px;
    font-weight: 600;
}

.checkout_section .order_contain .info_contain p {
    font-size: 14px;
    font-weight: 500;
}

.checkout_section .order_contain .price_contain {
    margin-left: auto;
}

.checkout_section .order_contain .price_contain p {
    font-size: 15px;
    font-weight: 500;
    margin: 0;
}

.checkout_section .order_contain hr {
    margin: 15px 30px;
}

.checkout_section .order_contain .total_contain {
    padding: 0 30px 30px 30px;
}

.checkout_section .order_contain .total_contain>div {
    display: flex;
    justify-content: space-between;
}

.checkout_section .order_contain .total_contain p {
    font-size: 15px;
    font-weight: 500;
}

.checkout_section .order_contain .checkout_total_contain p {
    color: var(--primary);
    font-size: 20px;
    font-weight: 600;
}

.checkout_section .order_contain .back_button {
    display: flex;
    justify-content: flex-end;
}

.checkout_section .order_contain .back_button a {
    width: 200px;
    color: white;
    font-weight: 600;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    padding: 10px 5px;
    border: 0;
    border-radius: 20px 0 20px 0;
    background: var(--primary);
    box-shadow: -3px -3px 20px 0 #0000001b;
}

.checkout_section .order_contain .back_button a:hover {
    color: var(--primary);
    background: white;
}

@media (max-width: 996px) {
    .checkout_section .order_contain {
        margin: 40px 0 0 0;
    }
    .checkout_section .order_contain .title_contain {
        padding: 30px 30px 15px 30px;
    }
    .checkout_section .order_contain .title_contain h2 {
        font-size: 20px;
    }
    .checkout_section .order_contain .product_item {
        padding: 0 30px 10px 30px;
    }
    .checkout_section .order_contain .product_item:last-child {
        padding: 0 30px 0 30px;
    }
    .checkout_section .order_contain .info_contain h2 {
        font-size: 14px;
    }
    .checkout_section .order_contain .info_contain p {
        font-size: 13px;
    }
    .checkout_section .order_contain .price_contain p {
        font-size: 14px;
    }
    .checkout_section .order_contain .total_contain p {
        font-size: 14px;
    }
    .checkout_section .order_contain .checkout_total_contain p {
        font-size: 18px;
    }
    .checkout_section .order_contain .back_button a {
        font-size: 14px;
    }
}

.checkout_spiner {
    width: 56px;
    height: 56px;
    display: grid;
    border: 4px solid #0000;
    border-radius: 50%;
    border-right-color: var(--primary);
    animation: spinner-a4dj62 1s infinite linear;
}

.checkout_spiner::before,
.checkout_spiner::after {
    content: "";
    grid-area: 1/1;
    margin: 2px;
    border: inherit;
    border-radius: 50%;
    animation: spinner-a4dj62 2s infinite;
}

.checkout_spiner::after {
    margin: 8px;
    animation-duration: 3s;
}

@keyframes spinner-a4dj62 {
    100% {
        transform: rotate(1turn);
    }
}

.paypal_contain {
    padding: 20px 0;
}

.paypal_contain h2 {
    font-size: 14px;
    font-weight: 500;
}