/* 2.0.0: sin @import de Google Fonts. Era una peticion externa que bloqueaba
   el pintado y enviaba la IP del visitante a Google antes de que aceptase
   nada. El banner usa la tipografia del tema. */

.cook_banner * {
	font-family: inherit;
}
/*BANNER*/
.cook_banner{
    background-color: rgb(0, 0, 0);
    color: rgb(255, 255, 255);
    font-family: inherit;
    bottom: 0px;
    position: fixed;
    display: none;
    opacity: 1;
    padding: 15px;
    z-index:999;
}
.cook_banner a{
    color:#0095EB;
    text-decoration: none;
}
.cook_row{
    display:flex;
}
.cook_left{
    flex: 0 0 66.67%;
    max-width: 66.67%;
}
.cook_right{
    text-align: right;
    flex: 0 0 33.33%;
    max-width: 33.33%;
}
.cook_right>#cook_btn_aceptar{
	color:#FFFFFF;
	padding:9px 12px;
	font-size: 13px;
	font-weight: 400;
	line-height: 1;
	border-radius:0px;
	border: 2px solid;
  background-color: ;
}
.cook_right>#cook_btn_rechazar,.cook_right>#cook_btn_personalizar{
    color:#FFFFFF;
    padding:9px 12px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1;
    border-radius:0px;
    border: 2px solid;
}
/*MODAL*/
/* The Modal (background) */
  .cook_modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 100000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
  }
  .cook_modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 60%; /* Could be more or less, depending on screen size */
	box-sizing: border-box;
  }
  .cook_close {
    color: #000000;
    float: right;
    font-size: 28px;
    font-weight: bold;
  }
  .cook_close:hover,
  .cook_close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
  }

  /*ACORDEON*/
  div>#cook_acc1,div>#cook_acc2 {
    background-color: #eee;
    color: #444;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 15px;
    transition: 0.4s;
    margin:5px 0px;
    border-radius: 0%;
  }
  
  .active, .accordion:hover {
  }
  
  .cook_panel {
    padding: 0 18px;
    display: none;
    background-color: white;
    overflow: hidden;
  }

  /*SWITCH*/
  .cook_switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 20px;
    float: right;
    z-index:999;
  }
  .cook_switch input { 
    opacity: 0;
    width: 0;
    height: 0;
  }
  .cook_slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
  }
  .cook_slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 10px;
    bottom: 2px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
  }
  input:checked + .cook_slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
  }
  .cook_slider.round {
    border-radius: 34px;
  }
  .cook_slider.round:before {
    border-radius: 50%;
  }

  /*TEXTOS DEL MODAL*/
  .cook_modal_text_title{
    font-size: 16px;
  }
  .cook_modal_text{
    font-size: 14px;
  }
  .cook_acc1_texto{
    text-align: right;
    font-size:12px;
  }

  /*BOTON DEL MODAL*/
  .cook_modal_div_boton{
    text-align: right;
    padding: 10px 0 0;
  }
  #cook_modal_btn{
    background-color: #61a229;
    color: #ffffff;
    border-radius: 0px;
    padding: 10px 15px;
    text-decoration: none;
    cursor: pointer;
    font-size: 14px;
    display: inline-block;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    border: 1px solid transparent;
    line-height: 1;
    transition: all .15s ease-in-out;
	margin: 0;
  }

  @media (max-width: 767px) {
    .cook_row {
      display: block;
    }
    .cook_left {
      flex: 0 0 100%;
      max-width: 100%;
      font-size: 12px;
    }
    .cook_right {
      text-align: center;
      flex: 0 0 100%;
      max-width: 100%;
      margin-top: 5px;
    }
    .cook_right > #cook_btn_rechazar, .cook_right > #cook_btn_personalizar, .cook_right > #cook_btn_aceptar {
      font-size: 11px;
    }
    .cook_modal-content {
      width: 95%;
    }
    .cook_modal_text {
      font-size: 12px;
    }
    div > #cook_acc1, div > #cook_acc2 {
      width: 100%;
      font-size: 13px;
    }
    #cook_panel1, #cook_panel2 {
      font-size: 12px;
    }
    #cook_modal_btn {
      font-size: 12px;
    }
  }
  
















  @media (max-width: 868px) {
    .cook_row {
        display: block;
    }
    .cook_left {
        flex: 0 0 100%;
        max-width: 100%;
        font-size: 12px;
    }
    .cook_right {
        text-align: center;
        flex: 0 0 100%;
        max-width: 100%;
        margin-top: 5px;
    }
    .cook_right > #cook_btn_rechazar, 
    .cook_right > #cook_btn_personalizar, 
    .cook_right > #cook_btn_aceptar {
        font-size: 11px;
    }
    .cook_modal-content {
        width: 95%;
    }
    .cook_modal_text {
        font-size: 12px;
    }
    div > #cook_acc1, div > #cook_acc2 {
        width: 100%;
        font-size: 13px;
    }
    #cook_panel1, #cook_panel2 {
        font-size: 12px;
    }
    #cook_modal_btn {
        font-size: 12px;
    }
    
}



@media (max-width: 767px) {
    .cook_banner {
        bottom: 68px;
    }
  
}
/* ===================================================================
   2.0.0 - Panel accesible
   El interruptor de "No necesarias" ya no va dentro del boton del
   acordeon (HTML no permite un control dentro de otro): va al lado y se
   coloca encima con posicion absoluta.
   =================================================================== */
.cook_categoria {
    position: relative;
}
.cook_categoria--opcional > .cook_accordion {
    padding-right: 96px !important;
}
.cook_categoria--opcional > .cook_switch {
    position: absolute;
    top: 22px;
    right: 18px;
    float: none;
}
.cook_close {
    background: none;
    border: 0;
    padding: 0 4px;
    line-height: 1;
}
.cook_banner button:focus-visible,
.cook_modal button:focus-visible,
.cook-preferencias:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}
div > #cook_acc1:focus-visible,
div > #cook_acc2:focus-visible {
    outline: 2px solid #444;
    outline-offset: -2px;
}

/* Los titulos de las categorias, a la izquierda. Hay temas que ponen
   display:flex y justify-content:center a todos los botones del panel
   (#myModal button), y con flex text-align no hace nada: hace falta
   justify-content, con un selector mas especifico que el del tema. */
#myModal .cook_accordion {
    justify-content: flex-start;
    text-align: left;
}
