/* Modal Styles */

dialog p {
    font-size: 0.7rem;         /* Texto más pequeño */
    color: #666;               /* Color gris */
    width: 90%;                /* Ancho del 80% */
    margin-left: auto;         /* Centrado horizontal */
    margin-right: auto;        /* Centrado horizontal */
    text-align: center;        /* Texto centrado */
    line-height: 1.5;          /* Mejor espaciado entre líneas */
  }




.modal-title {
    padding: 10px;
    margin: auto;
  }
  
  .mlang-dialog {
    width: 90%;
    max-width: 500px;
    padding: 10px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    margin: 0;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    visibility: hidden;
  }
  
  .mlang-dialog[open] {
    opacity: 1;
    visibility: visible;
  }
  
  .mlang-dialog::backdrop {
    background-color: rgba(0, 0, 0, 0.5);
  }
  
  /* Language Container */
  
  .mlang-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
    max-height: 350px;
    overflow-y: auto;
  }
  
  .mlang-option {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 6px;
    background-color: #f9f9f9;
  }
  
  .mlang-option span {
    margin: 0 auto 0 16px;
    font-size: 16px;
    color: #333;
  }
  
  /* Flag Styles */
  
  .mlang-flag {
    width: 40px;
    height: 30px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  }
  

  
  /* Spain Flag */
  
  .mlang-spain {
    display: flex;
    flex-direction: column;
  }
  
  .mlang-spain .mlang-stripe {
    flex: 1;
  }
  
  .mlang-spain .mlang-red {
    background-color: #c60b1e;
  }
  
  .mlang-spain .mlang-yellow {
    background-color: #ffc400;
    flex: 2;
  }
  
  /* UK Flag */
  
  .mlang-uk {
    background-color: #00247d;
  }
  
  .mlang-uk .mlang-background {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #00247d;
  }
  
  .mlang-uk .mlang-horizontal-cross {
    position: absolute;
    width: 100%;
    height: 6px;
    background-color: white;
    top: 12px;
  }
  
  .mlang-uk .mlang-vertical-cross {
    position: absolute;
    width: 6px;
    height: 100%;
    background-color: white;
    left: 17px;
  }
  
  .mlang-uk .mlang-diagonal-cross {
    position: absolute;
    width: 100%;
    height: 100%;
  }
  
  .mlang-uk .mlang-diagonal-cross::before, .mlang-uk .mlang-diagonal-cross::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 40px;
    background-color: #c8102e;
    top: -5px;
    left: 18px;
    transform: rotate(45deg);
  }
  
  .mlang-uk .mlang-diagonal-cross::after {
    transform: rotate(-45deg);
  }
  
  /* France Flag */
  
  .mlang-france {
    display: flex;
  }
  
  .mlang-france .mlang-stripe {
    flex: 1;
  }
  
  .mlang-france .mlang-blue {
    background-color: #002395;
  }
  
  .mlang-france .mlang-white {
    background-color: #ffffff;
  }
  
  .mlang-france .mlang-red {
    background-color: #ed2939;
  }
  
  /* Germany Flag */
  
  .mlang-germany {
    display: flex;
    flex-direction: column;
  }
  
  .mlang-germany .mlang-stripe {
    flex: 1;
  }
  
  .mlang-germany .mlang-black {
    background-color: #000000;
  }
  
  .mlang-germany .mlang-red {
    background-color: #dd0000;
  }
  
  .mlang-germany .mlang-yellow {
    background-color: #ffce00;
  }
  
  /* Italy Flag */
  
  .mlang-italy {
    display: flex;
  }
  
  .mlang-italy .mlang-stripe {
    flex: 1;
  }
  
  .mlang-italy .mlang-green {
    background-color: #009246;
  }
  
  .mlang-italy .mlang-white {
    background-color: #ffffff;
  }
  
  .mlang-italy .mlang-red {
    background-color: #ce2b37;
  }
  
  /* Portugal Flag */
  
  .mlang-portugal {
    position: relative;
  }
  
  .mlang-portugal .mlang-section {
    position: absolute;
    width: 100%;
    height: 100%;
  }
  
  .mlang-portugal .mlang-green {
    background-color: #006600;
    width: 60%;
    left: 0;
  }
  
  .mlang-portugal .mlang-red {
    background-color: #ff0000;
    width: 40%;
    right: 0;
  }
  
  .mlang-portugal .mlang-coat {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #ffcc00;
    border-radius: 50%;
    left: 15px;
    top: 10px;
  }

  /* Poland */
.mlang-poland {
    position: relative;
    width: 40px;
    height: 25px; /* Ajusta el tamaño de la bandera */
}

.mlang-poland .mlang-stripe {
    width: 100%;
    height: 50%;
    position: absolute;
}

.mlang-poland .mlang-white {
    background-color: #ffffff;
    top: 0;  /* Asegura que la franja blanca esté arriba */
}

.mlang-poland .mlang-red {
    background-color: #d7141a;
    bottom: 0; /* Asegura que la franja roja esté abajo */
}



  
  /* Form Switch Customizations */
  
  .mlang-form-check.mlang-form-switch {
    padding-left: 0;
  }
  
  .mlang-form-check-input {
    cursor: pointer;
    height: 20px;
    width: 40px !important;
    margin: 0;
  }