#cookieModalSettings .cookie-type-desc {
  padding: 0 0 0 24px;
}

.cookie-modal {
  position: fixed;
  background-color: #f9f9f9;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 20px;
  transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
  display: flex;
  flex-direction: column;
}

.cookie-modal.show {
  transform: translateY(0);
  opacity: 1;
}

.cookie-modal-primary {
  bottom: 30px;
  right: 0;
  transform: translateX(-5%) translateY(100%);
  width: 500px;
  max-width: 95%;
  opacity: 0;
}

@media (max-width: 992px) {
  .cookie-modal-primary {
    width: 100%;
    bottom: 0;
    max-width: 100%;
  }
}

.cookie-modal-primary.show {
  transform: translateX(-5%) translateY(0);
}

@media (max-width: 992px) {
  .cookie-modal-primary.show {
    transform: translateX(0%) translateY(0);
  }
}

.cookie-text {
  margin-bottom: 30px !important;
}

.cookie-modal-settings {
  padding: 40px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  opacity: 0;
  width: 930px;
  max-width: 90%;
  height: auto;
  visibility: hidden;
  transition: all 0.3s ease;
  position: fixed;
}

@media (max-width: 992px) {
  .cookie-modal-settings {
    padding: 20px;
  }
}

.cookie-modal-settings.show {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  visibility: visible;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.modal-header h2 {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 18px !important;
  color: #000;
  margin: 0 !important;
}

.close-btn {
  cursor: pointer;
  font-size: 22px;
  color: #999;
  background: none;
  border: none;
  display: none !important; /* отобразить крестик*/
}

.modal-content {
  margin-bottom: 25px;
  overflow-y: auto;
  max-height: calc(80vh - 130px);
  /* Account for header and buttons */
  padding-right: 5px;
}

@media (max-width: 992px) {
  .cookie-modal-primary .modal-actions-btns {
    flex-direction: column-reverse;
  }
}

.modal-content p {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: clamp(12px, 1.3vw, 14px);
  line-height: 140%;
  color: #6b6b6b;
}

@media (max-width: 992px) {
  .modal-actions > div {
    display: flex;
    gap: 10px;
    flex-direction: column;
  }
}

.modal-actions {
  display: flex;
  justify-content: space-between;
}

@media (max-width: 992px) {
  .modal-actions {
    flex-direction: column;
    gap: 10px;
  }

  .modal-actions button {
    width: 100%;
  }
}

.modal-actions-btns {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

@media (max-width: 992px) {
  .modal-actions-btns {
    flex-direction: column-reverse;
    gap: 10px;
  }
}

.modal-actions__btns {
  display: flex;
  align-items: center;
  gap: 20px;
}

.policy-link {
  color: black;
  text-decoration: none;
  font-size: 14px;
}

.policy-link:hover {
  text-decoration: underline;
}

.btn {
  cursor: pointer;
  transition: 0.3s ease all;
  border: none;
  border: 1px solid;
}

.btn-cancel {
  background: transparent;
  /*border: 1px solid #000;*/
  /*padding: 10px 20px;*/
  font-family: var(--font-family);
  font-weight: 500;
  font-size: clamp(14px, 1.3vw, 16px);
  color: #000;
  cursor: pointer;
  border: 0;
}

.btn-cancel:hover {
  opacity: 0.6;
}

.btn-accept {
  background: transparent;
  /*   border-radius: 10px; */
  border: 1px solid #000;
  padding: 10px 20px;
  font-family: var(--font-family);
  font-weight: 500;
  font-size: clamp(14px, 1.3vw, 16px);
  color: #000;
}

.btn-accept-all {
  padding: 10px 20px;
  font-family: var(--font-family);
  font-weight: 500;
  font-size: clamp(14px, 1.3vw, 16px);
}

.btn-accept:hover,
.btn-accept-all:hover {
  opacity: 0.6;
}

.btn-settings {
  background-color: #ffffff;
  border: 1px solid #000;
  padding: 15px 30px;
  font-family: var(--font-family);
  font-weight: 500;
  font-size: clamp(14px, 1.3vw, 16px);
  color: #000;
}

.btn-settings:hover {
  opacity: 0.6;
}

.cookie-settings {
  margin-top: 20px;
}

.cookie-type {
  margin-bottom: 25px;
  border-bottom: 1px solid #b7b7b7;
  padding-bottom: 15px;
}

.cookie-type:last-child {
  border-bottom: none;
}

.cookie-checkbox-container {
  /*display: flex;*/
  /*align-items: center;*/
  /*justify-content: space-between;*/
  margin-bottom: 5px;
  position: relative;
}

.cookie-checkbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cookie-checkbox-container input[type="checkbox"] {
  opacity: 0;
  position: absolute;
  cursor: pointer;
  width: 20px;
  height: 20px;
  margin: 0;
  z-index: 2;
}

.cookie-checkbox-container input[type="checkbox"] + label {
  position: relative;
  padding-left: 30px;
  cursor: pointer;
  display: inline-block;
}

.cookie-checkbox-container input[type="checkbox"] + label:before {
  content: "";
  position: absolute;
  left: 0px;
  top: 0;
  width: 20px;
  height: 20px;
  background: #fff;
  border: 1px solid black;
  transition: all 0.3s ease;
}

.cookie-checkbox-container input[type="checkbox"]:checked + label:before {
  background: #000;
  border-color: #000;
}

.cookie-checkbox-container input[type="checkbox"]:checked + label:after {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  width: 11px;
  height: 9px;
  background-image: url("data:image/svg+xml,%3Csvg width='11' height='8' viewBox='0 0 11 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4.00008L3.82843 6.82851L9.48498 1.17163' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' /%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.cookie-type-title {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 16px;
  color: #000;
}

.cookie-type-desc {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  color: #6b6b6b;
  margin-top: 10px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease, margin 0.3s ease;
  padding: 0;
  margin: 0;
}

.cookie-type-desc.open {
  max-height: 200px;
  padding-top: 12px;
  margin-top: 8px;
  border-top: 1px solid #f0f0f0;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  display: none !important;
}

.overlay.show {
  opacity: 1;
  visibility: visible;
}

#cookieModalSettings {
  /*pointer-events: none;*/
}

#cookieModalSettings .modal-content {
  margin-bottom: 0;
}

#cookieModalSettings .cookie-type:last-child {
  margin-bottom: 20px;
}

#technical-cookies input[type="checkbox"] {
  cursor: not-allowed;
}

.cookie-modal-settings-title {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: clamp(24px, 1.4vw, 32px);
  color: #000;
}

.cookie-modal-settings-subTitle {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 18px;
  color: #000;
  margin-bottom: 15px;
}

.cookie-accordion {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 4px;
  transition: transform 0.3s ease;
}

.cookie-accordion svg {
  transition: transform 0.3s ease;
}

.cookie-accordion.active svg {
  transform: rotate(180deg);
}

.modal-content a {
  text-decoration: underline;
}

.modal-content a:hover {
  text-decoration: none;
}

.cookie-modal button,
.cookie-modal a,
.cookie-modal .btn {
  transition: 300ms;
}

.btn.btn-accept-pick {
  background: none;
  border: 1px solid;
  color: #000;
}

.btn.btn-accept-pick:hover {
  background: none !important;
  opacity: 0.7;
}
