.bmk-cookie-banner[hidden],
.bmk-cookie-modal[hidden] {
  display: none !important;
}

.bmk-cookie-banner {
  background: #fff;
  border: 1px solid #dce7ed;
  border-radius: 16px;
  bottom: 20px;
  box-shadow: 0 18px 50px rgba(0, 50, 75, .22);
  color: #222;
  left: 20px;
  max-width: 560px;
  padding: 22px 24px;
  position: fixed;
  z-index: 100000;
}

.bmk-cookie-banner__title {
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 7px;
}

.bmk-cookie-banner p {
  color: #52616b;
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 16px;
}

.bmk-cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.bmk-cookie-button {
  background: #fff;
  border: 1px solid #0088cc;
  border-radius: 8px;
  color: #00699d;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  padding: 11px 15px;
}

.bmk-cookie-button:hover,
.bmk-cookie-button:focus {
  background: #eaf7fd;
  outline: none;
}

.bmk-cookie-button--primary {
  background: #0088cc;
  color: #fff;
}

.bmk-cookie-button--primary:hover,
.bmk-cookie-button--primary:focus {
  background: #006fa8;
}

.bmk-cookie-button--link {
  border-color: transparent;
  color: #52616b;
}

.bmk-cookie-modal {
  align-items: center;
  background: rgba(16, 31, 39, .65);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 100001;
}

.bmk-cookie-modal__dialog {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
  max-height: calc(100vh - 40px);
  max-width: 650px;
  overflow: auto;
  padding: 28px;
  position: relative;
  width: 100%;
}

.bmk-cookie-modal__close {
  background: #eef3f5;
  border: 0;
  border-radius: 50%;
  color: #222;
  cursor: pointer;
  font-size: 24px;
  height: 38px;
  line-height: 34px;
  position: absolute;
  right: 18px;
  top: 18px;
  width: 38px;
}

.bmk-cookie-modal h2 {
  font-size: 24px;
  margin: 0 48px 10px 0;
}

.bmk-cookie-modal__lead {
  color: #52616b;
  line-height: 1.55;
}

.bmk-cookie-option {
  border: 1px solid #dce7ed;
  border-radius: 12px;
  margin: 14px 0;
  padding: 17px 18px;
}

.bmk-cookie-option__head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 6px;
}

.bmk-cookie-option__head strong {
  font-size: 16px;
}

.bmk-cookie-option p {
  color: #66727c;
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

.bmk-cookie-option__always {
  color: #26734d;
  font-size: 12px;
  font-weight: 700;
}

.bmk-cookie-switch {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

.bmk-cookie-switch input {
  height: 20px;
  width: 20px;
}

.bmk-cookie-modal__footer {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  margin-top: 20px;
}

.bmk-cookie-modal__footer a {
  font-size: 13px;
}

body.bmk-cookie-modal-open {
  overflow: hidden;
}

@media (max-width: 620px) {
  .bmk-cookie-banner {
    border-radius: 14px 14px 0 0;
    bottom: 0;
    left: 0;
    max-width: none;
    padding: 19px 18px;
    right: 0;
  }

  .bmk-cookie-actions,
  .bmk-cookie-button {
    width: 100%;
  }

  .bmk-cookie-modal {
    align-items: flex-end;
    padding: 0;
  }

  .bmk-cookie-modal__dialog {
    border-radius: 16px 16px 0 0;
    max-height: 92vh;
    padding: 24px 18px;
  }
}

