.titulo-delika {
    display: flex;
    align-content: center;
    justify-content: space-around;
    align-items: center;
    flex-direction: row;
    height: 6em;
}

.logo-delika {
    width: 150px;
    height: 102px;
    background-image: url("/wp-content/plugins/demo-delika/assets/logo-delika-sm-min.png");
    background-repeat: no-repeat;
    background-size: contain;
    background-position-y: center;
}

.contenedor-formulario {
    position: absolute;
    padding: 0 10%;
    background-image: url("/wp-content/plugins/demo-delika/assets/fondo-condimento-01-delika.jpg");
    width: 100%;
    min-height: 100%;
}

.formulario-delika {
    border: 2px solid gray;
    background-color: beige;
    border-radius: 12px;
    padding: 2% 4%;
    font-family: sans-serif;
}

.formulario-seccion {
    margin: 20px 20px;
    padding: 10px 0;
    border: 2px solid gray;
    border-radius: 12px;
    background-color: white;
}

.formulario-delika-row {
    display: flex;
    align-items: center;
}

.campo {
    width: 50%;
    height: 2em;
    display: flex;
    align-items: center;
}

.formulario-delika-row label {
    width: 35%;
    margin-left: 2em;
    font-size: 1em;
    line-height: 1em;
}

.formulario-delika-row select,
.formulario-delika-row input {
    width: 55%;
    height: 2em;
    margin-right: 2em;
    background-color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    border: 2px solid silver;
    color: #8B8B99;
    border-radius: 4px;
    padding-left: 6px;
    font-size: 0.8em;
}

.formulario-delika-row select:focus,
.formulario-delika-row input:focus {
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1);
    outline: 0;
}

.formulario-delika-row select:required:before,
.formulario-delika-row input:required:before {
    content: " *";
    color: red;
    font-weight: bold;
}

.formulario-delika-row label:has(+ input:required):after,
.formulario-delika-row label:has(+ select:required):after {
    content: ' *';
    color: red;
}

.formulario-delika-row #cantidad {
    width: 15%;
}

.formulario-delika-row button {
    height: 2em;
    background-color: yellowgreen;
    color: white;
    font-weight: bold;
    border: 0;
    border-radius: 6px;
    padding: 0 1em;
}

.formulario-delika-row button:active {
    background-color: #7AAD12;
}

.formulario-delika-row button:disabled {
    background-color: gray;
}

.formulario-delika-tabla-contenedor {
    display: flex;
    justify-content: center;
}

.formulario-delika-tabla {
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 0.9em;
    font-family: sans-serif;
    width: 80%;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    overflow: hidden;
}

.formulario-delika-tabla thead tr {
    background-color: #009879;
    color: #ffffff;
    text-align: center;
    border-radius: 12px;
}

.formulario-delika-tabla th,
.formulario-delika-tabla td {
    padding: 12px 15px;
}

.formulario-delika-tabla tbody tr {
    border-bottom: 1px solid #dddddd;
}

.formulario-delika-tabla tbody tr:nth-of-type(even) {
    background-color: #f3f3f3;
}

.formulario-delika-tabla tbody tr:last-of-type {
    border-bottom: 2px solid #009879;
}

.borrar-button {
    width: 2em;
    height: 2em;
    background-color: red;
    color: white;
    border: 0;
    border-radius: 20%;
    font-weight: bolder;
}

.borrar-button:disabled {
    background-color: gray;
}

.borrar-button:active {
    background-color: #CC0000;
}

.formulario-delika-boton-contenedor {
    height: 5em;
    display: flex;
    align-items: center;
}

.enviar-pedido {
    height: 3em;
    margin-left: 25px;
    background-color: darkgreen;
    font-family: sans-serif;
    font-weight: 900;
    color: white;
    border: 0px;
    border-radius: 4px;
    padding: 0 2em;
}

.enviar-pedido:active {
    background-color: #004000;
}

.enviar-pedido:disabled {
    background-color: gray;
}

#cargando {
    margin: auto;
    border: 16px solid #f3f3f3; /* Light grey */
    border-top: 16px dotted #8B008B; /*  */
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@media only screen and (max-width: 800px) {
    
    .contenedor-formulario {
        padding: 4% 6%;
    }
    
    .formulario-delika-row {
        flex-direction: column;
    }
    
    .campo {
        width: 100%;
    }
    
    .formulario-delika-tabla {
        width: 90%;
        font-size: 0.8rem;
    }
    
    .formulario-delika-tabla th,
    .formulario-delika-tabla td {
        padding: 6px 8px;
    }
}

@media only screen and (max-width: 500px) {
    
    .contenedor-formulario {
        padding: 4% 4%;
    }
    
    .formulario-delika-row label {
        margin-left: 1em;
    }
    
    .formulario-delika-tabla th,
    .formulario-delika-tabla td {
        padding: 4px 4px;
        font-size: 0.9em;
        overflow: hidden;
        max-width: 50px;
    }
    
    .borrar-button {
        width: 1.6em;
        height: 1.6em;
    }
}