.fcookies_container {
  width: 100%;
  position: fixed;
  bottom: 20px;
  left: 0;
  z-index: 1010;
  display: flex;
  justify-content: center;
  align-items: center;

  display: none;
}

.fcookies_container.is-open {
  display: flex;
}

.fcookies_container.is-hide {
  display: flex;
}

.fcookies_wrapper {
  border-radius: 40px;
  border: 2px solid #202020;
  background: rgba(238, 250, 255, 0.80);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 24px 32px;
  max-width: 1210px;
  display: flex;
  gap: 32px;
  margin: 0 20px;
}

.fcookies_container.is-open .fcookies_wrapper {
  animation: slideUpFadeIn .7s ease-out forwards;
}

.fcookies_container.is-hide .fcookies_wrapper {
  animation: slideDownFadeOut .35s ease-in forwards;
}

.fcookies_text_wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fcookies_title {
  color: #202020;
  font-size: 20px;
  font-style: normal;
  font-weight: 800;
  line-height: 24px;
}

.fcookies_text {
  color: #202020;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
}

.fcookies_text a {
  color: #8A8A8A;
  transition: all .2s linear;
}

.fcookies_text a:hover {
  color: #202020;
  text-decoration-line: underline;
}

.fcookies_settings_link {
  color: #202020;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 20px;
  text-decoration-line: underline;
  border: none;
  background-color: transparent;
  display: flex;
  width: fit-content;
  padding: 0;
}

.fcookies_settings_link:hover {
  cursor: pointer;
}

.fcookies_buttons_wrapper {
  display: flex;
  gap: 16px;
  align-items: center;
}

.fcookies_button_cancel,
.fcookies_button_accept {
  border: 2px solid #202020;
  border-radius: 12px;
  height: 50px;
  width: 162px;

  font-size: 16px;
  font-weight: 800;
  line-height: 20px;

  transition: all .2s linear;
}

.fcookies_form_button {
  border: 2px solid #202020;
  border-radius: 12px;
  height: 50px;
  font-size: 16px;
  font-weight: 800;
  line-height: 20px;
  color: #FFFFFF;
  background: #202020;
  padding: 0 26px;
  transition: all .2s linear;
}

.fcookies_form_button:hover {
  background-color: #FFE06F;
  color: #202020;
  cursor: pointer;
}

.fcookies_form_button:active {
  background-color: #FAD13F;
  color: #202020;
}

.fcookies_button_cancel:hover,
.fcookies_button_accept:hover {
  cursor: pointer;
}

.fcookies_button_cancel {
  background: transparent;
  color: #202020;
}

.fcookies_button_cancel:hover {
  background-color: #EDEDED;
}

.fcookies_button_cancel:active {
  background: transparent;
}

.fcookies_button_accept {
  background: #202020;
  color: #FFFFFF;
}

.fcookies_button_accept:hover {
  background-color: #FFE06F;
  color: #202020;
}

.fcookies_button_accept:active {
  background-color: #FAD13F;
  color: #202020;
}

@keyframes slideUpFadeIn {
  0% {
    transform: translateY(140%);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideDownFadeOut {
  from {
    transform: translateY(0);
    opacity: 1;
  }

  to {
    transform: translateY(-140%);
    opacity: 0;
  }
}

.fcookies_form_wrapper {
  position: fixed;
  inset: 0;
  z-index: 9999;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 0s linear 220ms;
}

.fcookies_form_wrapper.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 220ms ease, visibility 0s linear 0s;
}

.fcookies_form_overlay {
  position: absolute;
  inset: 0;
  background: rgba(32, 32, 32, .10);

  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;

  padding: 50px 20px;
  box-sizing: border-box;

  display: flex;
  flex-direction: column;
  align-items: center;      
  justify-content: flex-start;

  height: 100dvh; 
}

.fcookies_form {
  width: min(800px, 100%);
  background: #fff;
  border: 1px solid #202020;
  border-radius: 40px;
  padding: 32px 50px;

  margin: auto 0;

  flex: 0 0 auto;
}

.fcookies_form_wrapper.is-open .fcookies_form {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.fcookies_form_close {
  position: absolute;
  top: 25px;
  right: 25px;
  background: transparent;
  border: none;
  padding: 0;
}

.fcookies_form_close:hover {
  cursor: pointer;
}

.fcookies_form_close svg path {
  transition: all .2s linear;
}

.fcookies_form_close:hover svg path {
  stroke: #202020;
}

body.modal-open {
  overflow: hidden;
}

.fcookies_form_title {
  color: #202020;
  font-size: 20px;
  font-weight: 800;
  line-height: 24px;
  margin-bottom: 16px;
}

.fcookies_form_text {
  color: #202020;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;

  margin-bottom: 16px;
}

.fcookies_form_checkboxs_wraper {
  display: flex;
  flex-direction: column;
  gap: 16px;

  margin-bottom: 24px;
}

.fcookies_form_button_container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.fcookies_form_checkboxs_item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fcookies_form_checkboxs_title {
  color: #202020;
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
}

.fcookies_form_checkbox_text {
  color: #8F8F8F;
  font-size: 13px;
  font-weight: 400;
  line-height: 17px;
}

.fcookies_form_checkbox_container {
  display: flex;
  gap: 16px;
  align-items: start;
}

.fcookies_form_checkbox {
  accent-color: #DCDCDC;
  width: 24px;
  min-width: 24px;
  height: 24px;
  min-height: 24px;
  appearance: none;
  position: relative;
  background: transparent;
  border-radius: 4px;
  border: 2px solid #C4C4C4;
  padding: 0;
  margin: 0;
}

.fcookies_form_checkbox:checked {
  background-color: #DCDCDC;
}

.fcookies_form_checkbox:checked::after {
  width: 24px;
  height: 24px;
}

.fcookies_form_checkbox::after {
  content: "\2714";
  position: absolute;
  top: -4px;
  left: 2px;
  width: 0px;
  height: 0px;
  font-size: 20px;
  overflow: hidden;
  color: #fff;
}

@media (width <=1280px) {
  .fcookies_wrapper {
    max-width: 1008px;
  }
}

@media (width <=900px) {
  .fcookies_wrapper {
    flex-direction: column;
    gap: 24px;
    max-width: 623px;
  }

  .fcookies_button_cancel,
  .fcookies_button_accept {
    width: auto;
    flex: 1;
  }
}

@media (width <=600px) {
  .fcookies_wrapper {
    max-width: 473px;
    padding: 24px;
  }

  .fcookies_form {
    padding: 32px 40px;
  }
}

@media (width <=450px) {
  .fcookies_title {
    font-size: 18px;
    line-height: 22px;
  }

  .fcookies_text {
    font-size: 14px;
    line-height: 18px;
  }

  .fcookies_settings_link {
    font-size: 14px;
    line-height: 18px;
  }

  .fcookies_buttons_wrapper {
    flex-direction: column;
    gap: 10px;
  }

  .fcookies_button_cancel,
  .fcookies_button_accept {
    width: 100%;
    flex: auto;
  }

  .fcookies_form {
    padding: 32px;
  }

  .fcookies_form_title{
    font-size: 18px;
    line-height: 22px;
  }

  .fcookies_form_text{
    font-size: 14px;
    line-height: 18px;
  }

  .fcookies_form_checkboxs_title{
    font-size: 14px;
    line-height: 18px;
  }

  .fcookies_form_checkbox_text{
    font-size: 12px;
    line-height: 16px;
  }

  .fcookies_form_checkbox_container{
    gap: 10px;
  }

  .fcookies_form_button{
    width: 100%;
  }
}