.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}


  
/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 10; /* Sit on top */
  left: 0;
  top: 0;
  align-items: center;
  justify-content: center;
  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 */
  -webkit-animation-name: fadeIn; /* Fade in the background */
  -webkit-animation-duration: 0.4s;
  animation-name: fadeIn;
  animation-duration: 0.4s
}

/* Modal Content */
.modal-content {
  position: fixed;
  top: 5%;
  background-color: #fefefe;
  width: 100%;
  max-width: 651px;
  max-height: 90%;
  height: 536px;
  padding: 20px;
  -webkit-animation-name: slideIn;
  -webkit-animation-duration: 0.4s;
  animation-name: slideIn;
  animation-duration: 0.4s;
  overflow-y: auto;
  background: url('../img/bg-modal.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-color: #FFF;

}

.modal-logo {
  width: 120px;
  display: block;
  position: relative;
}

.modal-logo img{
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* The Close Button */
.close {
  color: var(--color-dark-blue);
  float: right;
  font-size: 28px;
  font-weight: bold;
  transition: all ease 0.3s;
}

.close:hover,
.close:focus {
  color: var(--color-expande-blue);
  text-decoration: none;
  cursor: pointer;
}

.modal-header {
  padding: 0;
  color: white;
}

.modal-body {
  padding: 0;
}

.modal-body h1 {
  font-size: 16px;
  margin-bottom: 20px;
  line-height: 1;
}

.modal-body .title-body {
  font-size: 16px;
  margin-bottom: 20px;
  line-height: 1;
  border-top: 1px solid #D5E7F7;
  padding-top: 20px;
}
.modal-footer {
  padding: 0;
  background-color: #fff;
  color: white;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 16px;
}

.modal-body p {
  margin-bottom: 0;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.2;
  font-family: 'Open Sans', sans-serif;
}

.modal-body p strong {
  font-weight: 700;
  font-family: var(--font-family-inter);
}

p.modal-body__desc {
  margin-bottom: 25px;
}

.modal-body p a {
  font-weight: 600;
  text-decoration: underline;
}

.modal-body p a:hover {
  color: var(--color-light-blue);
}

.content-detail-modal-header {
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: nowrap;
  margin: 20px 0;
}

.content-detail-modal-header div {
  display: block;
  background-color: #D5E7F7;
}
.content-detail-modal-header div:nth-child(1){
  width: 50px;
  height: 5px;
}

.content-detail-modal-header div:nth-child(2){
  width: 100%;
  height: 1px;
}

.option-cookie {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  margin-bottom: 2px;
  background-color: #EDF4FB;
  border-radius: 4px;
}

.option-cookie {
  margin-bottom: 10px;
}

.option-cookie__btn {
  display: flex;
}

.icon-open-description {
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid #D5E7F7;
  margin: 0;
  text-align: center;
  align-items: center;
  justify-content: center;
  display: flex;
  cursor: pointer;
}

.icon-open-description div {
  width: 18px;
  height: 2px;
  background-color: var(--color-dark-blue);
  position: absolute;
  transition: all ease .2s;
}

.icon-open-description div:nth-child(2) {
  width: 2px;
  height: 18px;
}

.icon-open-description--closed {
  transform: rotate(0deg);
  transition: all ease .2s;
}

.icon-open-description--open {
  transform: rotate(90deg);
  transition: all ease .2s;
}

.content-option-cookie {
  position: relative;
  padding: 12px;
  display: flex;
  width: calc(100% - 44px);
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  border-left: 0;
}

.option-cookie-description {
  font-weight: 400;
  font-size: 13px;
  line-height: 118.9%;
  color: var(--color-dark-blue);
  padding: 12px 15px;
  border: 1px solid #D5E7F7;
  border-top: 0;
  margin-top: -2px;
}
.option-cookie:last-child {
  margin-bottom: 0;
}

.content-option-cookie .title {
  font-weight: 400;
  font-size: 13px;
  color: var(--color-dark-blue);
  padding: 0;
  margin: 0;
  line-height: inherit;
  font-family: var(--font-family-montserrat);
}

.content-option-cookie .always-active {
  padding: 0;
  margin: 0;
  line-height: inherit;
  color: #00BEC1;
  font-size: 13px;
  font-weight: 400;
  font-family: var(--font-family-montserrat);
}

#btn-accept {
  width: 100%;
  align-self: flex-end;
  font-weight: 600;
  font-size: 1.4rem;
  font-family: var(--font-family-montserrat);
  padding: 12px 20px;
  border-radius: 4px;
  background-color: var(--color-dark-blue);
  color: #fff;
  border: 2px solid var(--color-dark-blue);
  transition: all ease .3s;
  cursor: pointer;
  border: none;
  border-radius: 66px;
}

#btn-accept:hover { 
  background-color: var(--color-expande-blue);
}

#btn-reject {
  font-weight: 700;
  font-size: 14px;
  font-family: var(--font-family-montserrat);
  background-color: #fff;
  color: #031E2B;
  transition: all ease .2s;
  cursor: pointer;
  border: none; 
}

#btn-reject:hover { 
  text-decoration: underline;
}

.hidden-option {
  display: none;
  overflow: hidden;
  height: 0;
  max-height: 0;
  transition: max-height .3s ease-out;
}

/*SWITCH BTN*/
.switch__container {
  margin: 10px auto;
  width: 70px;
  position: relative;
}

.switch__container:hover .tooltip {
  visibility: visible;
  opacity: 1;
}

.show-option {
  display: block;
  height: auto;
  max-height: 300px;
  transition: max-height .3s ease-in;
}

.switch {
  visibility: hidden;
  position: absolute;
  margin-left: -9999px;
}

.switch + label {
  display: block;
  position: relative;
  cursor: pointer;
  outline: none;
  user-select: none;
}

.switch--shadow + label {
  margin: 0 auto;
  padding: 2px;
  width: 40px;
  height: 20px;
  background-color: #dddddd;
  border-radius: 32px;
}
.switch--shadow + label:before,
.switch--shadow + label:after {
  display: block;
  position: absolute;
  top: 1px;
  left: 1px;
  bottom: 1px;
  content: "";
}
.switch--shadow + label:before {
  right: 1px;
  background-color: #f1f1f1;
  border-radius: 20px;
  transition: background 0.4s;
}
.switch--shadow + label:after {
  width: 22px;
  background-color: #fff;
  border-radius: 100%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  transition: all 0.4s;
}
.switch--shadow:checked + label:before {
  background-color: var(--color-light-blue);
}
.switch--shadow:checked + label:after {
  transform: translateX(17px);
}

.switch--shadow[readonly] + label {
  cursor: not-allowed;
  pointer-events: none;
}

.tooltip {
  visibility: hidden;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip-container:hover .tooltip {
  visibility: visible;
  opacity: 1;
}

/* Add Animation */
@-webkit-keyframes slideIn {
  from {bottom: -300px; opacity: 0} 
  to {bottom: 0; opacity: 1}
}

@keyframes slideIn {
  from {bottom: -300px; opacity: 0}
  to {bottom: 0; opacity: 1}
}

@-webkit-keyframes fadeIn {
  from {opacity: 0} 
  to {opacity: 1}
}

@keyframes fadeIn {
  from {opacity: 0} 
  to {opacity: 1}
}


@media (min-width: 411px){
  #btn-accept {
    width: 149px;
  }
}

@media (min-width: 920px){

  .modal-content {
    height: 460px;
  }

  .switch__container {
    margin: 30px auto;
  }

  .option-cookie {
    flex-direction: row;
  }

  .content-option-cookie::before {
    position: absolute;
    left: -10px;
    content: '';
    display: block;
    height: 46px;
    width: 1px;
    background-color: #D9DFF0;
  }

}