footer {
    margin-top: 0 !important;
}

.checkout-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-template-rows: auto auto;
    gap: 10px;
    padding: 20px;
}

.acciones-finales,
.formulario,
.resumen-carrito,
.metodo-pago-container {
    padding: 15px;
    border: 2px solid #9e5700;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    border-radius: 8px;
}

.formulario {
    padding: 5px 40px 5px 15px;
}

.resumen-carrito {
    grid-column: span 3 / span 3;
}

h2 {
    text-align: center;
    font-size: 20px;
    margin-bottom: 15px;
}

.form-dato {
    padding: 10px;
    margin-bottom: 10px;
    border: 2px solid #834700;
    border-radius: 8px;
    font-size: 16px;
    width: 100%;
}

select {
    width: 100%;
    padding: 9px;
    margin-bottom: 10px;
    border: 2px solid #834700;
    border-radius: 8px;
    font-size: 16px;
}

select option {
    background-color: #e0e0ff;
    color: #000;
}

button {
    padding: 10px;
    margin: 5px 0;
    width: 100%;
    border: none;
    border-radius: 6px;
    background-color: #333;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
}

button:hover {
    background-color: #555;
}

.pago-precio {
    font-size: 16px;
    font-weight: bold;
    text-align: right;
}

.pago-finalizar {
    background-color: #28a745;
    color: white;
    font-weight: bold;
}

@media (max-width: 768px) {
    .checkout-container {
        grid-template-columns: 1fr;
    }

    .resumen-carrito {
        grid-column: span 1 / span 1;
    }

    .pago-cart-item {
        flex-direction: column !important;
        width: 100% !important;
        align-items: center;
    }

    .pago-img {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .pago-controles {
        flex-wrap: wrap;
        justify-content: center;
    }

    .metodo-pago-opciones {
        flex-direction: column;
        align-items: center;
    }

    .pago-vaciar {
        max-width: 100%;
    }
    .pago-total{
        font-size: 30px !important;
    }
    .resumen-header h2 {
        margin: 0;
        font-size: 1.1rem !important;
        text-align: left;
    }
    .pago-vaciar{
        font-size: 1rem !important;
        max-width: 15dvh !important;
    }
}

.resumen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.resumen-header h2 {
    margin: 0;
    font-size: 30px;
    text-align: left;
}

.pago-vaciar {
    background-color: #dc3545;
    color: white;
    font-size: 15px;
    padding: 10px 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    max-width: 20dvh;
}

.pago-vaciar:hover {
    background-color: #b02a37;
}

.pago-cart-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.pago-cart-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start;
    gap: 20px;
    padding: 10px;
    border: 1px solid #834700;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
}

.pago-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    margin-right: 15px;
    border-radius: 8px;
}

.pago-item-detalles {
    flex: 1;
}

.pago-item-detalles h4 {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
}

.pago-item-detalles p {
    margin: 5px 0 0 0;
    font-size: 14px;
}

.pago-controles {
    display: flex;
    align-items: center;
    gap: 5px;
}

.pago-controles button {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
}

.pago-controles .menos {
    background-color: #E5E3CE;
    color: black;
}

.pago-controles .mas {
    background-color: #2C1608;
    color: white;
}

.pago-controles .eliminar {
    background-color: #dc3545;
    color: white;
    padding: 3px 6px;
    font-size: 12px;
    border-radius: 4px;
}

.cliente-label {
    font-weight: bold;
    font-size: 20px;
}

.metodo-img {
    width: 50px;
    height: 50px;
}

.pago-label {
    display: flex;
    align-items: center;
}

.metodo-pago-container h2 {
    margin-bottom: 20px;
    font-size: 22px;
    color: #000000;
}

.metodo-pago-opciones {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.metodo-img {
    width: 150px !important;
    height: 150px !important;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 10px;
    transition: transform 0.2s, border-color 0.2s;
}

.metodo-img:hover {
    transform: scale(1.1);
    border-color: #683404;
}

.metodo-img.seleccionado {
    border-color: #28a745;
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.5);
}

.metodo-texto {
    text-align: center;
    font-weight: bold;
}



.modal-pago {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.label-izquierda {
    display: block; /* Ocupa toda la línea */
    text-align: left; /* Alinea el texto a la izquierda */
    margin-bottom: 5px; /* Espacio entre el label y el input */
    font-weight: bold; /* (Opcional) Estilizar el label */
    margin-left: 30px;
}


.modal-contenido {
    background: white;
    padding: 10px 10px 15px 11px;
    border-radius: 10px;
    max-width: 400px;
    width: 100%;
    text-align: center;
}
.modal-contenido input {
    display: block;
    margin: 10px auto;
    width: 80%;
    padding: 10px;
    font-size: 1em;
}

.botones-modal button {
    margin: 10px 8px 2px 10px;
    padding: 10px 19px !important;
    font-size: 1em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    justify-content: center !important;
    width: 345px;
}

.botones-modal button:first-child {
    background-color: #28a745;
    color: white;
}

.botones-modal button:last-child {
    background-color: #dc3545;
    color: white;
}
