﻿.body_compra{
    background-color: white;
    min-height: 100%;
}
.container_enlaces {
    padding: 10px;
    width: 100%;
    height: 50px;
    background-color: #ccc;
    color: #222;
    text-align: center;
    font-size: 20px;
    position: relative;
}
.container_enlaces span {
   color: #c00000;
   font-size: 20px;
}
.container_enlaces a{
    text-decoration: none;
    color: #000;
}
.container_enlaces a:hover{
    color: #c00000;
}
.container_enlaces a i {
   color: black;
   font-size: 20px;
}
.container__general{
    margin: auto;
    margin-top: 50px; 
    width: 1000px;
    height: auto;
    background: #fff;
    display: block;
}
.delivery_pay{
    float:right;
    width: 32%;
    height: auto;
    display: block;
}
.method_delivery {
    background-color: #fff;
    width: 300px;
    height: 250px;
    margin-bottom: 20px;
    margin-left: 10px;
    border: solid 1px #ddd;
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
}
.method_pay {
    margin-left: 10px;
    width: 300px;
    height: auto;
    border-radius: 10px;
    background-color: #fff;
    border: solid 1px #ddd;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
}
.pay_adress {
    width: 640px;
    height: auto;
    background-color: orange;
}
.detail_invoice {
    width: 640px;
    border-radius: 10px;
    height: auto;
    background-color: #fff;
    margin-bottom: 20px;
    border: solid 1px #ddd;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
}
.detail_delivery {
    margin-top: 10px;
    border-radius: 10px;
    width: 640px;
    height: auto;
    background-color: #fff;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
}
.container_tabla {
    border-radius: 10px;
    margin-top: 10px;
    width: 640px;
    height: auto;
    background-color: #fff;
    border: solid 1px #ddd;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
}
.title_invoice,
.title_delivery {
    display: block;
    border-radius: 10px 10px 0px 0px;
    width: 640px;
    height: 30px;
    background: linear-gradient(90deg, #012a36 0%, #003d4a 50%, #00c4d6 100%);
}
.h1_title{
    font-size: 16px;
    color: #ccc;
    margin-top: 0px;
    padding:10px;
}
.h1_title i{
    margin: 0 10px 0 0;
}
.title_method_delivery,
.title_method_pay {
    width: 300px;
    border-radius: 10px 10px 0px 0px;
    height: 30px;
    background: linear-gradient(90deg, #012a36 0%, #003d4a 50%, #00c4d6 100%);
    border: solid 1px #ddd;
}
.title_method_delivery > p {
    font-size: 15px;
    color: #000;
    margin-left: 15px;
}
.method_pay > p {
    font-size: 15px;
    color: #000;
    margin-left: 15px;
    margin-top: 15px;
}
.form_pay,
.form_delivery {
    width: 90%;
    margin-left: 15px;
    height: 40px;
    margin-top: 30px;
    border: solid 1px #ccc;
    outline: none;
    background-color: #f6f6f6;
}
.form_pay:hover,
.form_delivery:hover{
     border: solid 1px rgb(2, 23, 43);
} 
.method_pay > strong {
    margin-left: 15px;
}
.text_message {
    outline: none;
    margin-top: 10px;
    border: solid 1px #ccc;
    margin-left: 15px;
    background-color: #f6f6f6;
}
.text_message:hover{
    border: solid 1px rgb(2, 23, 43);
}
.detail_delivery > label,
.detail_invoice > label {
    margin-left: 15px;
    margin-top: 10px;
    font-weight: 400;
    cursor: pointer;
    font-size: 16px;
}
.form_existing {
    width: 90%;
    margin-left: 15px;
    height: 40px;
    margin-top: 10px;
    border: solid 1px #ccc;
    outline: none;
    background-color: #f6f6f6;
}
.form_existing:hover{
    border: solid 1px rgb(2, 23, 43);
}
/*Responsive*/
@media (max-width: 1440px) {
    .container__general {
        padding: 20px;
    }
}
@media (max-width: 1000px) {
    .container__general {
        padding: 20px;
        width: 950px;
    }
    .delivery_pay {
        width:32%;
    }
    .method_pay,
    .method_delivery {
        width: 95%;
        margin: auto;
        margin-bottom: 30px;
    }
    .title_method_delivery,
    .title_method_pay {
        width: 100%;
    }
    .detail_invoice {
        width: 610px;
    }
    .detail_delivery {
        width: 610px;
    }
    .container_tabla {
        width: 610px;
    }
    .title_invoice,
    .title_delivery {
        display: block;
        width: 610px;
    }
    .form_pay {
        width: 90%;
    }
    .form_delivery {
        width: 90%;

    }
    .method_pay > p {
        margin: auto;
        text-align: center;
        margin-top: 15px;
    }
    .title_method_delivery > p{
        margin: auto;
        text-align: center;
    }
    .text_message {
        width: 88%;
        align-content: center;
    }
  }
@media (max-width: 940px) {
    .container__general {
        padding: 20px;
        width: 920px;
    }
    .detail_invoice {
        width: 580px;
    }
    .detail_delivery {
        width: 580px;
    }
    .container_tabla {
        width: 580px;
    }
    .title_invoice,
    .title_delivery {
        width: 580px;
    }
}
@media (max-width: 910px) {
    .container__general {
        padding: 20px;
        width: 840px;
    }
    .delivery_pay {
        width: 32%;
    }
    .detail_invoice {
        width: 530px;
    }
    .detail_delivery {
        width: 530px;
    }
    .container_tabla {
        width: 530px;
    }
    .title_invoice,
    .title_delivery {
        width: 530px;
    }
}
@media (max-width: 830px) {
    .container__general {
        padding: 20px;
        width: 790px;
    }
    .delivery_pay {
        width: 38%;
    }
    .detail_invoice {
        width: 450px;
    }
    .detail_delivery {
        width: 450px;
    }
    .method_pay,
    .method_delivery {
        width: 95%;
        margin: auto;
        margin-bottom: 49px;
    }
    .container_tabla {
        width: 450px;
    }
    .title_invoice,
    .title_delivery {
        width: 450px;
    }
}
@media (max-width: 775px) {
    .container__general {
        padding: 20px;
        display: grid;
        width: 100%;
    }
    .delivery_pay {
        width: 100%;
        margin-bottom: 15px;
    }
    .method_pay,
    .method_delivery {
        width: 100%;
    }
    .method_delivery{
        margin-bottom: 10px;
    }
    .title_method_delivery,
    .title_method_pay {
        width: 100%;
    }
    .detail_invoice {
        width: 100%;
    }
    .detail_delivery {
        width: 100%;
    }
    .container_tabla {
        width: 100%;
    }
    .title_invoice,
    .title_delivery {
        display: block;
        width: 100%;
    }
    .form_pay {
        width: 95%;
    }
    .form_delivery {
        width: 95%;
    }
    .text_message {
        width: 95%;
        align-content: center;
    }
    .form_existing{
        width: 95%;
    }
}
@media (max-width: 550px) {
    .container__general {
        padding: 4px;
        display: grid;
        width: 100%;
    }
    .delivery_pay {
        width: 95%;
        margin-bottom: 20px;
        margin: auto;
    }
    .title_method_delivery,
    .title_method_pay {
        width: 100%;
    }
    .detail_invoice {
        width: 95%;
        margin: auto;
        margin-bottom: 10px;
    }
    .detail_delivery {
        width: 95%;
        margin: auto;
        margin-bottom: 10px;
    }
    .container_tabla {
        width: 95%;
        margin: auto;
    }
}
@media (max-width: 510px) {
    .container__general {
        display: grid;
        width: 100%;
    }
    .delivery_pay {
        width: 100%;
        margin-bottom: 20px;
        margin-right: 5%;
    }
    .title_method_delivery,
    .title_method_pay {
        width: 100%;
    }
    .detail_invoice {
        width: 100%;
        margin-bottom: 10px;
        margin-right: 5%;
    }
    .detail_delivery {
        width: 100%;
        margin-bottom: 10px;
        margin-right: 5%;
    }
    .container_tabla {
        width: 100%;
        margin-right: 5%;
    }
}
@media (max-width: 470px) {
    .delivery_pay {
        width: 100%;
        margin-right: 5%;
    }
    .detail_invoice {
        width: 100%;
        margin-right: 5%;
    }
    .detail_delivery {
        width: 100%;
        margin-right: 5%;
    }
    .container_tabla {
        width: 100%;
        margin-right: 5%;
    }
}
@media (max-width: 450px) {
    .container__general {
        display: grid;
        width: 100%;
    }
    .delivery_pay {
        width: 100%;
        margin-right: 22%;
    }
    .detail_invoice {
        width: 100%;
        margin-bottom: 10px;
        margin-right: 22%;
    }
    .detail_delivery {
        width: 100%;
        margin-bottom: 10px;
        margin-right: 22%;
    }
    .container_tabla {
        width: 100%;
        margin-right: 22%;
    }
} 
@media (max-width: 420px) {
    .delivery_pay {
        width: 93%;
    }
    .detail_invoice {
        width: 93%;
        margin-bottom: 10px;  
    }
    .detail_delivery {
        width: 93%;
        margin-bottom: 10px;   
    }
    .container_tabla {
        width: 93%;
           
    }
    .form_existing,
    .text_message,
    .form_pay,
    .form_delivery {
        margin-left: 7px;
    }
}
@media (max-width: 400px) {
    .delivery_pay {
        width: 88%;
        margin-right: 25%;
    }
    .detail_invoice {
        width: 88%;
        margin-bottom: 10px;
    }
    .detail_delivery {
        width: 88%;
        margin-bottom: 10px;
    }
    .container_tabla {
        width: 88%;
    }
}
@media (max-width: 375px) {
    .delivery_pay {
        width: 85%;
    }
    .detail_invoice {
        width: 85%;
        margin-bottom: 10px;
    }
    .detail_delivery {
        width: 85%;
        margin-bottom: 10px;
    }
    .container_tabla {
        width: 85%;
    }
    .form_existing,
    .text_message,
    .form_pay,
    .form_delivery {
        margin-left: 6px;
    }
}
@media (max-width: 360px) {
    .delivery_pay {
        width: 80%;
        margin-left: 0px;
    }
    .detail_invoice {
        width: 80%;
        margin-bottom: 10px;
        margin-left: 0px;
    }
    .detail_delivery {
        width: 80%;
        margin-bottom: 10px;
        margin-left: 0px;
    }
    .container_tabla {
        width: 80%;
        margin-left: 0px;
    }
}
  
/*Nueva información 1*/
#show{
    display: none;
}
/*Nueva Información 2*/
#show,
#div__form {
    max-width: 700px;
    width: 100%;
    background: #f6f6f6;
    padding: 25px 30px;
}
#show,
#div__form:focus {
    transition: all 5s ease;
}
#show >  .info_new,
#div__form > .info_new {
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 5px 0 2px 0;
}
.info_new > .input__box {
    margin-bottom: 5px;
    width: calc(100% / 2 - 20px);
}
.info_new select,
.info_new input {
    height: 35px;
    width: 100%;
    border-radius: 5px;
    outline: none;
    border: 1px solid #ccc;
    padding-left: 20px;
    font-size: 16px;
    border-bottom-width: 2px;
    transition: all 0.3s ease;
}
.info_new select:focus,
.info_new select:valid,
.info_new input:focus,
.info_new input:valid {
    border-color: #00003d;
}
.input__box .details_new {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}
.button_new_info {
    height: 40px;
    margin: 30px 10px 0;
}
.button_new_info > input {
    height: 100%;
    width: 100%;
    outline: none;
    color: #fff;
    border: none;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1px;
    border-radius: 5px;
    background-image: linear-gradient(to left, #00003d, rgb(2, 23, 43), rgb(2, 23, 43) );
}
.button_new_info > input:hover {
    background-image: linear-gradient(to left, rgb(2, 23, 43), #00003d, rgb(2, 23, 43) );
}
/*Responsive Form*/
@media (max-width: 584px) {
    #show,
    #div__form{
        max-width: 100%;
    }
    .info_new > .input__box {
        margin-bottom: 15px;
        width: 100%;
    }
    #show >  .info_new,
    #div__form > .info_new {
        max-height: 300px;
        overflow-y: scroll;
    }
}
.bg-gray {
    background-color: #f2f2f2; /* Puedes ajustar el color de fondo según tus preferencias */
}
/* Botón general para abrir el popup */
.boton-envio {
    background-color: #004080;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
}
    .boton-envio:hover {
        background-color: #002b5c;
    }

/* Fondo popup */
.poppup_enviar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: transparent;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}
    /* Caja del popup */
.poppup_enviar .content_enviar {
    background-color: #fff;
    color: rgb(2, 23, 43);
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    position: relative;
    text-align: center;
    font-family: 'Segoe UI', sans-serif;
}
/* Texto */
.content_enviar h4 {
    font-size: 16px;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}
/* Select */
.select-enviar {
    margin-bottom: 1.5rem;
}
.content_enviar select {
    width: 100%;
    padding: 10px;
    background-color: #ccc;
    font-size: 16px;
    border-radius: 8px;
    border: none;
    outline: none;
    text-align: center;
}
/* Botón Aceptar */
.aceptar-popup {
    background-color: #28a745; /* verde */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
}
.aceptar-popup:hover {
    background-color: #218838;
}
/* Botón cerrar (X) */
.cerrar-popup {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 20px;
    color: #ff4d4d; /* rojo */
    cursor: pointer;
}
.cerrar-popup:hover {
    color: #cc0000;
}
    

