.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    /* opacity: 0; */
    /* z-index: 0; */
    display: none;
    /* pointer-events: all; */
    z-index: 110;
    /* transition: all 0.2s ease-out; */
}
.overlay.active {
    display: block;
    /* animation: active 0.2s ease-out forwards; */
}
@keyframes active {
    0% {
        opacity: 0;
        pointer-events: none;
        z-index: 0;
    }
    100% {
        opacity: 1;
        z-index: 50;
        pointer-events: all;
    }
}

.container {
    position: absolute;
    width: 90%;
    max-width: 640px;
    background: var(--secondary-color);
    padding: 35px 30px;
    border-radius: 10px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -45%);
    opacity: 0;
    transition: all 0.2s ease-out;
}

.overlay.active .container {
    opacity: 1;
    transform: translate(-50%, -50%);
}

.cancel_container {
    position: absolute;
    top: 10px;
    cursor: pointer;
    right: 10px;
    height: 25px;
    width: 25px;
}

.checkout_for_title {
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 500;
}

.checkout_amount {
    font-size: 14px;
}

.container form {
    margin-top: 15px;
}

.submit_button {
    background: var(--gradient);
    border: none;
    outline: none;
    color: #fff;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 3px;
    cursor: pointer;
    padding: 10px 30px;
    border-radius: 5px;
}

.submit_button.apply {
    letter-spacing: 0px;
    text-transform: capitalize;
}

.apply_promocode {
    background: var(--secondary-color-light);
    display: flex;
    justify-content: space-between;
    padding: 15px 10px;
    border-radius: 3px;
    margin-bottom: 20px;
    cursor: pointer;
}
.apply_promocode p {
    font-size: 14px;
    font-weight: 500;
}
.apply_promocode img {
    width: 15px;
}

.applied_promocode {
    position: relative;
    background: var(--secondary-color-light);
    padding: 15px 10px;
    border-radius: 3px;
    margin-bottom: 20px;
}
.applied_promocode .cancel_container {
    position: absolute;
    cursor: pointer;
    height: 15px;
    width: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.promocode_form_field {
    display: grid;
    /* grid-template-columns: 6fr 1fr 1fr; */
    grid-template-columns: 5fr 1fr;
    margin-bottom: 20px;
    gap: 4px;
    align-items: flex-start;
}
.promocode_form_field div {
    margin: 0px !important;
}

.action_btn {
    height: 45px;
    border: none;
    outline: none;
    background: var(--gradient);
    color: #fff;
    border-radius: 5px;
    font-weight: 700;
    font-family: "Public sans", sans-serif;
    cursor: pointer;
    margin-top: 5px;
}

@media screen and (max-width: 500px) {
    .promocode_form_field {
        grid-template-columns: 3fr 1fr;
    }
    .apply_promocode p {
        font-size: 12px;
    }
}
@media screen and (max-width: 320px) {
    .promocode_form_field {
        grid-template-columns: 4fr 2fr;
    }
}
