/* CHECKOUT MAIN */

#checkout {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 50px;
}

.alert_error{
    display: none;
    z-index: 999;
    color: #a4133c;
    background-color: #ffccd5;
    font-size: 1.75rem;
    padding: 20px 40px;
    width: 50%;
    position: fixed;
    right: 0;
    top: 10px;
    border-left: 8px solid #a4133c;
    border-radius: 4px;
    transition: 0.5s;
  }

#checkout h1 {
    text-transform: capitalize;
    font-size: 4rem;
    color: #0a111f;
    align-self: center;
    font-weight: 700;
}

#checkout .checkout_components {
    display: flex;
    flex-grow: 1;
    flex-direction: row;
    justify-content: space-between;
    gap: 50px;

}

.checkout_components h2 {
    text-transform: capitalize;
    font-size: 2rem;
    font-weight: 600;
    color: #0a111f;
    align-self: flex-start;
}

.required_star {
    color: #ec162c;
    font-weight: 500;
    font-size: 1.5rem;
}

.horizontal_line {
    width: 100%;
    height: 0.25px;
    background-color: #606063;
}




.purchasing_details_section,
.order_recap_section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-grow: 1;
}

/* purchasing_details_section */
.purchasing_details_section .inputs_section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.purchasing_details_section .inputs_section .input_row {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 10px;

}

.purchasing_details_section .inputs_section .input_row label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex-grow: 1;
}

.purchasing_details_section .inputs_section label p {
    font-size: 1.25rem;
}



.purchasing_details_section .inputs_section label input,
.purchasing_details_section .inputs_section label select {
    width: 100%;
    font-size: 1.25rem;
    padding: 5px 10px;
    border-radius: 10px;
    flex-grow: 1;
    border: 0.25px solid #606063;
}

.purchasing_details_section .inputs_section label input.country {
    background-color: #e0e0e0;
    cursor: default;
}


/* order_recap_section */
.order_recap_section {
    background-color: #f2f2f2;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    border-radius: 10px;
}

.order_recap_section h2 {
    margin: 15px 20px 0 20px;
}

.order_recap_section .order_recap_card {
    display: flex;
    flex-direction: column;
    background-color: #ffff;
    padding: 20px 30px;
    margin: 0 20px;
    border-radius: 10px;
    gap: 10px;

}

.order_recap_section .order_recap_card h5 {
    font-size: 1.5rem;
    font-weight: 500;
    color: #0a111f;
}

.order_recap_section .order_recap_card .recap_sub_box {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.order_recap_section .order_recap_card .recap_sub_box p {
    min-width: fit-content;
    font-size: 1.25rem;
    font-weight: 500;
    color: #0a111f;
}

.order_recap_section .order_recap_card .recap_sub_box h5.total {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0a111f;

}

.order_recap_section .order_recap_card .recap_sub_box p.total {
    min-width: fit-content;
    font-size: 1.75rem;
    font-weight: 600;
    color: #088178;

}

/* checkout_products_list */
.checkout_products_list {
    width: 100%;
    display: flex;
    flex-direction: column;
    background-color: #f2f2f2;
    padding: 5px 10px;
    gap: 10px;
}

.checkout_products_list .checkout_products_card {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.checkout_products_list .checkout_products_card .product_name_price_div {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
    flex: 1;
}
.checkout_products_list .checkout_products_card .product_name_price_div .product_name_quantity_div{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
}

.checkout_products_list .checkout_products_card .product_name_price_div .product_name {
    font-size: 1rem;
    font-weight: 300;
    max-width: 350px;
}

.checkout_products_list .checkout_products_card .product_name_price_div .product_subtotal {
    width: fit-content;
    font-size: 1rem;
    font-weight: 300;
    min-width: fit-content;
    
}

.checkout_products_list .checkout_products_card .product_name_price_div .product_name_quantity_div span {
    font-size: 1.25rem;
    font-weight: 600;
    color: #088178;
}

/* order_finalization_card */
.order_finalization_card {
    display: flex;
    flex-direction: column;
    padding: 20px 30px;
    
    border-radius: 10px;
    gap: 10px;
}

.order_finalization_card li {
    list-style: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 3px;
}

.order_finalization_card li input[type="radio"] {
    display: none;
  }
  
  .order_finalization_card li label::before {
    content: '';
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 1px solid #0a111f;
    border-radius: 50%;
    margin-right: 5px;
    position: relative;
    top: 1px;
  }
  
  .order_finalization_card li input[type="radio"]:checked + label::before {
    background-color: #fca311;
  }
  
  
  
  
  .order_finalization_card li p {
    font-size: 1.25rem;
    color: #0a111f;
    font-weight: 400;
    text-transform: capitalize;

}

.order_finalization_card li .pp_link_tag {
    font-weight: 600;
}

.order_finalization_card .order_button{
    width: 100%;
    font-size: 1.5rem;
    text-decoration: none;
    text-align: center;
    text-transform: uppercase;
    color: #ffff;
    padding: 10px;
    background-color: #fca311;
    border-radius: 10px;
    margin-top: 20px;
    font-weight: 600;
    transition: 0.6s ease;
    border: 0px;
    cursor: pointer;
    transition: 0.3s ease;
}



@media (max-width:1160px) {

    #checkout .checkout_components {
        width: 100%;
        flex-grow: 1;
        flex-direction: column;
        justify-content: center;
        
    
    }

    .alert_error{
        
        width: 90%;
        
      }

      .order_recap_section .order_recap_card {
        display: flex;
        flex-direction: column;
        background-color: #ffff;
        padding: 20px 15px;
        margin: 0 20px;
        border-radius: 10px;
        gap: 10px;
    
    }

      .checkout_products_list .checkout_products_card .product_name_price_div .product_name {
        max-width: 150px;
    }

}

@media (max-width:350px) {

    .order_recap_section .order_recap_card {
        
        padding: 10px 15px;
        margin: 0 10px;
    
    }

    .order_recap_section h2 {
        margin: 15px 10px 0 10px;
    }
    
    .order_finalization_card {
        
        padding: 10px 15px;
        
    }

}

