.background-checkout {
    background-color: white;
}

.logodiv-checkout {
    padding-top: 20px;
    display: flex;
    justify-content: center;
}

.red-back {
    background-color: #D82B2B;
    width: 85%;
    border-radius: 170px;
    max-width: 1000px;
    height: auto;
    margin: 0 auto;
    margin-top: 20px;
    padding: 20px;
}

.shopping-bag {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.shipping {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.progress-container {
    width: 40%;
    margin: 20px auto;
}

.steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.step-label {
    color: gray;
    font-size: 16px;
}

.step-label.active {
    color: black;
}

.progress-bar {
    position: relative;
    width: 100%;
    height: 10px;
    background: #e5e5e5;
    border-radius: 20px;
    border: 0.5px solid black;
}

.progress-fill {
    height: 10px;
    background: #d82b2b;
    border-radius: 20px;
    transition: width 0.3s ease;
}


/* Default (desktop) */
.step-label {
    font-size: 16px;
}

.progress-bar,
.progress-fill {
    height: 10px;
}


.orders {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 30px 10px;
}

.order-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    border-radius: 170px;
    padding: 15px 25px;
}

.pizza-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

.order-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.order-name {
    /*font-weight: bold;*/
    margin: 0px;
}

.order-extra {
    font-size: 12px;
    color: gray;
    display: flex;
    justify-content: center;
    margin: 0px;
}

.order-price {
    margin-right: 20px;
    gap: 5px;
}

.order-quantity {
    display: flex;
    align-items: center;
    margin-right: 30px;
    flex-direction: column;
    gap: 5px;
}

.order-quantity-2 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-quantity-2 button {
    border: 1px solid black;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-weight: bold;
    background: none;
    cursor: pointer;
}

.order-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    /*margin-top: 20px;*/
}

.order-buttons-confirm {
    display: flex;
    justify-content: center;
}

.order-buttons-payment {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.clear-cart-btn:hover {
    background-color: #181a2b; /* Slightly darker on hover */
    transform: scale(1.05);
}

.clear-cart-btn:active {
    transform: scale(0.95);
}

.clear-cart-div {
    display: flex;
    justify-content: center;
}

.back-btn,
.continue-btn,
.continue-btn-confirm,
.back-btn-confirm,
.clear-cart-btn {
    font-family: 'Rubik Dirt', sans-serif;
    font-size: 22px;
    padding: 12px 32px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}


.clear-cart-btn {
    background-color: #2c2f48; /* Coral/orange color to stand out */
    color: white;
    font-size: 15px;
    padding: 8px 32px
}


/* BACK BUTTON */
.back-btn {
    background: linear-gradient(135deg, #f87171, #f43f5e);
    color: #fff;
}

.back-btn:hover {
    transform: scale(1.05) rotate(-2deg);
    box-shadow: 0 6px 14px rgba(244, 63, 94, 0.4);
}

.back-btn-confirm {
    background: white;
    color: red;
    opacity: 80%;
}

.back-btn-confirm:hover {
    transform: scale(1.05) rotate(-2deg);
    box-shadow: 0 6px 14px rgba(244, 63, 94, 0.4);
}

/* CONTINUE BUTTON */
.continue-btn {
    background: linear-gradient(135deg, #ffffff, #ffe4e6);
    color: #d62828;
}

.continue-btn:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 6px 14px rgba(214, 40, 40, 0.4);
}

.continue-btn-confirm {
    background-color: red;
    color: white;
}

.continue-btn-confirm:hover {
    transform: scale(1.05) rotate(2deg);
}


/* FUN ripple effect */
.back-btn::after,
.continue-btn::after,
.continue-btn-confirm::after,
.back-btn-confirm::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.back-btn:active::after,
.continue-btn:active::after {
    width: 250px;
    height: 250px;
}

/*---*/
/* Info container */
.info-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 5px 30px;
    transition: all 0.3s ease;
}

.info-box {
    flex: 1;
    padding: 30px;
    border-radius: 50px;
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* When not selected */
.info-box.unselected {
    opacity: 0.8;
    background-color: #FFA2A2;
    transform: scale(0.95);
}

/* Old info (left) pops out left */
.old-info.selected {
    transform: scale(1.05) translateX(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

/* New info (right) pops out right */
.new-info.selected {
    transform: scale(1.05) translateX(10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    z-index: 2;
}


/* Inputs inside unselected look dimmed */
.info-box.unselected input {
    background-color: rgba(255, 255, 255, 0.4);
    color: #999;
}


.shipping-title {
    font-weight: lighter;
    color: white;
    display: flex;
    justify-content: center;
    margin: 0px;
}

.info-heading {
    display: flex;
    justify-content: center;
    margin: 0px 0px 20px 0px;
    color: #D82B2B;
    font-weight: lighter;
    font-size: x-large;
}

.info-field {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.info-field label {
    font-weight: lighter;
    color: #D82B2B;
    font-size: larger;
}

.comment-label {
    margin: 0px 0px 10px 0px;
    color: white;
    width: 400px;
}

.comment-label-it {
    margin: 0px 0px 10px 0px;
    color: white;
    width: 500px;
    text-align: center;
}

.center-it {
    display: flex;
    justify-content: center;
}

.comment-box-delivery {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.comment-input {
    width: 100%;
    max-width: 700px;
    padding: 12px 15px;
    border: 1.5px solid #F9C6C6;
    border-radius: 20px;
    font-size: 16px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
    font-weight: lighter;
}

.comment-input:focus {
    border-color: #F9C6C6; /* matches your theme */
    box-shadow: 0 0 6px rgba(216, 43, 43, 0.3);
}

.info-field input {
    width: 90%;
    max-width: 350px;
    padding: 12px 15px;
    border: 1.5px solid #F9C6C6;
    border-radius: 20px;
    font-size: 16px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
    font-weight: lighter;
}

.info-field input:focus {
    border-color: #D82B2B; /* matches your theme */
    box-shadow: 0 0 6px rgba(216, 43, 43, 0.3);
}

.info-field input::placeholder {
    color: #999;
    font-size: 14px;
}

.payment-button {
    padding: 30px;
    border-radius: 50px;
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/*.payment-button {*/
/*    opacity: 0.8;*/
/*    background-color: #FFA2A2;*/
/*    transform: scale(0.95);*/
/*}*/
/*-----*/

.center-it {
    display: flex;
    justify-content: center;
}

.options {
    margin: 30px 0px 50px;
}

.first-row,
.second-row {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 20px;
}

/*.payment-button {*/
/*    background-color: #fff;*/
/*    color: #000;*/
/*    font-weight: 600;*/
/*    padding: 14px 20px;*/
/*    border-radius: 40px;*/
/*    border: none;*/
/*    font-size: 16px;*/
/*    cursor: pointer;*/
/*    width: 280px;*/
/*    transition: background-color 0.3s;*/
/*}*/

/*.payment-button:hover {*/
/*    background-color: #f3f3f3;*/
/*}*/
.payment-button {
    background-color: white;
    color: #00000091;
    padding: 14px 20px;
    border-radius: 40px;
    border: none;
    font: inherit;
    font-weight: lighter;

    cursor: pointer;
    width: 280px;
    transition: background-color 0.3s, transform 0.1s ease-in-out;
}

.payment-button:hover {
    background-color: #f3f3f3;
}

.payment-button:active {
    transform: scale(0.96); /* small click animation */
}

.payment-button.selected {
    background-color: #FFA2A2;
    color: #fff;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
}


/* Card info */
.card-info-note {
    font-size: 14px;
    opacity: 0.8;
    margin-top: 20px;
}

.card-info {
    margin: 0px 50px;
    text-align: left;

}

.card-row {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    align-items: flex-end;
}

.card-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: white;
}

.card-field.small {
    max-width: 197px;
}

.card-field input {
    padding: 10px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
    outline: none;
}

.card-field input:focus {
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.6);
}

.cvv-note {
    font-size: 12px;
    color: #fff;
    opacity: 0.8;
    margin-top: 5px;
}


.valid-thru-selects {
    display: flex;
    align-items: center;
    gap: 8px;
}

.valid-select {
    padding: 8px 10px;
    border: 1.5px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.valid-select:focus {
    border-color: #D82B2B;
}

.order-item-last {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    background-color: #fff;
    border-radius: 100px;
    padding: 15px;
    width: 92%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.orders-last {
    display: flex;
    flex-direction: column;
    gap: 20px; /* spacing between items */
    margin: 30px 10px;
    background: white;
    width: 50%;
    align-items: center;
    padding: 20px;
    border-radius: 50px;
}

.orders-last-shipping {
    display: flex;
    flex-direction: column;
    margin: 10px 0px;
    background: white;
    width: 100%;
    align-items: center;
    padding: 10px;
    border-radius: 50px;
}

.orders-last-summary {
    display: flex;
    flex-direction: column;
    margin: 10px 10px;
    background: white;
    width: 30%;
    align-items: center;
    padding: 10px;
    border-radius: 50px;
}

.checkout-line {
    font-weight: lighter;
    color: grey;
    display: flex;
    justify-content: center;
    margin: 0px;
    font-size: larger;
}

.for-flex {
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-field-last {
    display: flex;
    align-items: center;
}

.info-field-last-promo {
    display: flex;
    align-items: center;
}

.info-field-last input {
    width: 90%;
    max-width: 350px;
    padding: 5px;
    border: 0px solid #F9C6C6;
    border-radius: 20px;
    font-size: small;
    font-family: inherit;
    font-weight: lighter;
    text-align: right;
}

.new-info-last {
    margin: 10px;
    display: flex;
    gap: 10px;
    flex-direction: column;
}

.two-flex {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.info-field-last label {
    width: 110px;
    font-size: small;
}

.info-field-last-promo label {
    width: 110px;
    font-size: small;
}


.line-summary {
    height: 1px;
    background-color: black;
}

.info-field-last-promo input {
    width: 90%;
    max-width: 350px;
    padding: 5px;
    border: 1px solid red;
    border-radius: 20px;
    font-size: small;
    font-family: inherit;
    font-weight: lighter;
    text-align: center;
}

.promo-container .promo-input-wrapper {
    display: flex;
    gap: 10px; /* space between input and button */
    margin-top: 5px;
}

.promo-container .apply-btn {
    background-color: red;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    width: 90%;
    max-width: 350px;
    padding: 5px;
    border: 1px solid red;
    border-radius: 20px;
    font-size: small;
    font-family: inherit;
    font-weight: lighter;
    text-align: center;
}

.promo-container .apply-btn:hover {
    background-color: white;
    color: red;
}


.scroller {
    max-height: 500px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    scroll-behavior: smooth; /* smooth scrolling */
}

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

.scroller::-webkit-scrollbar-thumb {
    background-color: white;
    border-radius: 35px;
    cursor: grab;
}

.scroller2 {
    max-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    scroll-behavior: smooth; /* smooth scrolling */
    align-items: center;
    width: 400px;
}

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

.scroller2::-webkit-scrollbar-thumb {
    background-color: red;
    border-radius: 35px;
    cursor: grab;
}


.orders-last .order-price {
    display: flex;
    gap: 5px;
    margin: 0px;
    flex-direction: column;
}

.orders-last .order-quantity {
    margin: 0px;
}

/*---*/

/* 📺 Medium screens (≤1200px) */
@media (max-width: 1200px) {
    .step-label {
        font-size: 12px;
    }

    .progress-bar,
    .progress-fill {
        height: 8px;
    }

    .red-back {
        border-radius: 100px;
        padding: 40px;
    }

    .order-item {
        flex-wrap: wrap; /* allow details to stack if needed */
        gap: 15px;
        padding: 12px 20px;
    }

    .pizza-img {
        width: 65px;
        height: 65px;
    }

    .order-quantity {
        margin-right: 15px;
    }

}

/* 📱 Small screens (≤768px) */
@media (max-width: 768px) {
    .step-label {
        font-size: 9px;
    }

    .progress-bar,
    .progress-fill {
        height: 6px;
    }

    .logo {
        width: 75px;
        height: 75px;
    }

    .red-back {
        border-radius: 80px;
        padding: 30px;
    }

    .order-item {
        align-items: center;
        text-align: center;

    }

    .order-price {
        margin: 10px 0;
    }

    .order-quantity {
        flex-direction: row; /* put + and - in a row instead of column */
        margin-right: 0;
        gap: 10px;
    }

    .order-buttons {
        align-items: center; /* center them */
        gap: 15px; /* smaller gap */
    }

    .order-buttons-payment {
        align-items: center; /* center them */
        gap: 15px; /* smaller gap */
    }

    .back-btn,
    .continue-btn {
        width: 100%; /* take full available width */
        max-width: 280px; /* but don’t stretch too much */
        font-size: 18px;
        padding: 10px 20px;
    }
}

/* 📱 Extra small screens (≤500px) */
@media (max-width: 500px) {
    .step-label {
        font-size: 6px;
    }

    .progress-bar,
    .progress-fill {
        height: 4px;
    }

    .red-back {
        margin: 0 auto;
        margin-top: 20px;
    }

    .logo {
        width: 50px;
        height: 50px;
    }


    .pizza-img {
        width: 50px;
        height: 50px;
    }

    .order-name {
        font-size: 14px;
    }

    .order-extra {
        font-size: 8px;
    }

    .back-btn,
    .continue-btn {
        width: 100%;
        max-width: 220px;
        font-size: 14px;
        padding: 8px 18px;
    }
}


