*{
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
}

.form_final_heading{
    text-align: center;
    margin-top: 10px;
    font-size: 24px;
    color: #262261;
    margin-bottom: 18px;
}

.final_form_container{
    width: fit-content;
    max-width: 1040px;
    margin-inline: auto;
    border: 1px solid #000;
    border-radius: 5px;
    padding: 20px 40px;
    max-width: 90vw;
}

.mb-form{
    margin-bottom: 10px;
}

.senders_email_block, .email_date_block{
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.recipient_email_input_block{
    display: flex;
    align-items: center;
    gap: 20px;
}

.recipient_label_input_block{
    position: relative;
}

.final_sender_email_label{
    position: absolute;
    top: 9px;
    left: 5px;
    transition: top 0.45s ease-in-out, left 0.45s ease-in-out;
}

.senders_email_block:focus-within label {
    top: -29%;
    left: 2%;
    background: #ffffff;
}

.recipient_email_label{
    position: absolute;
    top: 9px;
    left: 5px;
    background: #ffffff;
    transition: top 0.45s ease-in-out, left 0.45s ease-in-out;
}

.recipient_label_input_block:focus-within label {
    position: absolute;
    top: -28%;
    left: 5px;
}

.recipient_label_input_block:not(:first-of-type){
    margin-top: 20px;
}

#final_sender_email, #final_sender_date, #final_recipient_email{
    border-radius: 5px;
    border: 1px solid #000;
    outline: none;
}

#final_sender_email{
    padding: 10px 5px;
    width: 90%;
}

#final_sender_date{
    padding: 5px;
}

.final_recipient_email_input{
    padding: 10px 5px 10px 5px;
    width: 300px;
    border-radius: 5px;
    border: 1px solid #000;
    outline: none;
}

.email_method_block{
    display: flex;
    align-items: center;
    gap: 30px;
}

.recipient_email_block{
    display: flex;
    align-items: center;
    gap: 30px;
}

.csv_input_block{
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-height: 0;
    transition: max-height 0.5s ease-in-out;
    flex-wrap: wrap;
    row-gap: 10px;
    position: relative;
}

.final_form_section .hidden{
    display: none !important;
}

.final_form_section .hide{
    max-height: 0;
    overflow: hidden;
}

.final_form_section .show{
    max-height: 35px;
    overflow: visible;
}

@media screen and (max-width: 450px){
    .final_form_section .show{
        /* max-height: 61px; */
        max-height: 22px;
    }
}

.upload_csv_button{
    text-decoration: none;
    background: linear-gradient(150deg, rgba(41,42,100,1) 0%, rgba(93,177,152,1) 83%);
    color: #ffffff;
    border: 1px solid #000;
    padding: 3px 15px;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 500;
}

.upload_csv_button:hover{
    opacity: 0.8;
}

.upload_csv_block{
    cursor: pointer;
    align-self: end;
    margin-bottom: 7px;
}

.choose_file_btn{
    text-decoration: none;
    background: linear-gradient(150deg, rgba(41,42,100,1) 0%, rgba(93,177,152,1) 83%);
    color: #ffffff;
    border: 1px solid #000;
    position: absolute;
    top: 0;
    left: 0;
    font-size: 12px;
    padding: 1px 9px;
    border-radius: 2px;
    pointer-events: none;
}

.upload_csv_block.disabled, .add_email_text.disabled{
    opacity: 0.5;
    pointer-events: none;
}

#csv_input.disabled{
    opacity: 0.3;
    pointer-events: none;
}

.recipient_email_input_block.disabled{
    pointer-events: none;
    opacity: 0.3;
}

.choose_file_btn:hover{
    opacity: 0.8;
}

.file_note_text{
    font-size: 13px;
    margin-block: 7px;
}

.file_note_text.error{
    color: red;
}

.add_email_text{
    font-size: 12px;
    background: linear-gradient(150deg, rgba(41,42,100,1) 0%, rgba(93,177,152,1) 83%);
    color: #ffffff;
    border: 1px solid #000;
    padding: 3px 10px;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    align-self: end;
    margin-bottom: 7px;
}

.plus_count, .minus_count{
    /* cursor: pointer; */
    cursor: not-allowed;
    pointer-events: none;
    margin-inline: 8px;
    background: #eee;
    border-radius: 5px;
    width: 25px;
    text-align: center;
    height: 25px;
}

#gc_count{
    padding: 5px 0px 5px 25px;
    border-radius: 5px;
    width: 35px;
    pointer-events: none;
    outline: none;
    border: 1px solid #eee;
    opacity: 0.85;
}

.final_form_gc_count_block{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card_counter_block{
    display: flex;
    align-items: center;
}

.total_sum_block{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.checkout_btn_container{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    position: relative;
}

.checkout_hover{
    position: absolute;
    top: -13px;
    font-size: 10px;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(150deg, rgba(41, 42, 100, 1) 0%, rgba(93, 177, 152, 1) 83%);
    padding: 5px;
    border-radius: 6px;
    visibility: hidden;
    transition: visibility 1s ease;
    z-index: 2;
}

.checkout_btn:hover + .checkout_hover{
    visibility: visible;
    transition: visibility 0.6s ease;
}

.checkout_btn{
  background: linear-gradient(150deg, rgba(41,42,100,1) 0%, rgba(93,177,152,1) 83%);
  color: #ffffff;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #000;
  cursor: pointer;
  padding: 5px 20px;
  font-weight: 500;
  position: relative;
  top: 2vh;
  cursor: not-allowed;
}

.checkout_btn:hover{
    opacity: 0.8;
}

.final_form_method_main_block{
    display: flex;
    align-items: center;
    gap: 30px;
}

.final_form_section.not-visible{
    opacity: 0;
    max-height: 0;
}

.final_form_section{
    max-height: 1000px;
    opacity: 1;
    transition: max-height 1.5s ease-in-out, opacity 1.5s ease-in-out;
}

@media screen and (max-width: 1170px){
    .checkout_hover{
        top: -1.5vw;
    }
}

@media screen and (max-width: 1000px){
    .checkout_hover{
        top: -2vw;
    }
}

@media screen and (max-width: 750px){
    .final_form_section{
        margin-top: 30px;
    }
    .final_form_container{
        padding: 20px 15px;
    }

    .final_recipient_email_input{
        width: 34vw;
        padding: 6px 5px 6px 5px;
    }

    .recipient_email_label{
        top: 6px;
    }

    .choose_file_btn{
        padding: 3px 10px;
    }

    .add_email_text{
        padding: 3px 6px;
        font-size: 9px;
        width: 17vw;
    }

    .email_method_block{
        gap: 20px;
    }

    .fa-trash{
        margin-left: 2px;
    }
}

@media screen and (min-width: 660px){
    .checkout_hover{
        top: -2.25vh;
    }
}

@media screen and (min-width: 451px){
    .final_form_section .desktop_hide{
        display: none;
    }

    .checkout_hover{
        font-size: 12.5px;
        padding: 5px 9px;
    }
}

@media screen and (min-width: 610px) and (max-width: 750px){
    .checkout_hover{
        font-size: 10px;
    }
}


@media screen and (max-width: 610px){
    .checkout_hover{
        max-width: 85vw;
        font-size: 8px;
    }
}

@media screen and (max-width: 450px){
    html{
        font-size: 14px;
    }

    .upload_csv_block{
        font-size: 10px;
    }

    .mobile_hide{
        display: none !important;
    }

    .recipient_email_input_block{
        gap: 3px;
    }

    .checkout_hover{
        top: -3vw;
    }
}

@media screen and (max-width: 385px){
    .final_recipient_email_input {
        width: 42vw;
    }

    .add_email_text{
        width: 18vw;
    }

    .recipient_email_block{
        flex-wrap: wrap;
    }

    .gc-purchase-form-preview_button_block{
        gap: 20px;
    }

    .checkout_hover{
        font-size: 9px;
    }
}

@media screen and (max-width: 330px){
    .checkout_hover{
        font-size: 8px;
        top: -2.85vh;
    }
}

@media screen and (max-width: 610px){
    .checkout_hover{
        font-size: 7.75px;
        top: -2vh;
    }
}

@media screen and (max-width: 523px){
    .checkout_hover{
        font-size: 6.5px;
    }
}

@media screen and (max-width: 432px){
    .checkout_hover{
        font-size: 7px;
    }
}

@media screen and (max-width: 380px){
    .checkout_hover{
        font-size: 6.5px;
    }
}

@media screen and (max-width: 423px){
    .checkout_span_mobile{
        display: flex;
    }
    .checkout_span{
        display: none;
    }
}

@media screen and (min-width: 423px){
    .checkout_span_mobile{
        display: none;
    }
    .checkout_span{
        display: flex;
    }
}