.craftlex-consent-banner[hidden],
.craftlex-consent-backdrop[hidden] {
  display: none !important;
}

.craftlex-consent-banner {
  position: fixed;
  z-index: 10020;
  right: 0;
  bottom: 0;
  left: 0;
  box-sizing: border-box;
  padding: 14px 20px;
  border-top: 1px solid #dce3e8;
  background: rgba(255, 255, 255, 0.98);
  color: #17202a;
  box-shadow: 0 -14px 38px rgba(17, 31, 44, 0.14);
  font-family: inherit;
}

.craftlex-consent-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px 28px;
  align-items: center;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.craftlex-consent-copy h2,
.craftlex-consent-dialog h2 {
  margin: 0;
  color: #17202a;
  font-size: 18px;
  line-height: 1.25;
}

.craftlex-consent-copy p {
  max-width: 760px;
  margin: 5px 0 2px;
  color: #4d5a66;
  font-size: 14px;
  line-height: 1.45;
}

.craftlex-consent-privacy,
.craftlex-cookie-settings-link {
  color: #0b6f9e;
  font-size: 13px;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.craftlex-consent-actions,
.craftlex-consent-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

.craftlex-consent-button,
.craftlex-consent-settings-button {
  min-height: 42px;
  box-sizing: border-box;
  border-radius: 999px;
  padding: 9px 17px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.craftlex-consent-button {
  border: 1px solid #d2dce3;
}

.craftlex-consent-accept {
  border-color: #ff6333;
  background: #ff6333;
  color: #fff;
}

.craftlex-consent-necessary {
  background: #fff;
  color: #17202a;
}

.craftlex-consent-settings-button {
  border: 0;
  background: transparent;
  color: #0b6f9e;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.craftlex-consent-button:hover,
.craftlex-consent-settings-button:hover,
.craftlex-cookie-settings-link:hover {
  filter: brightness(0.95);
}

.craftlex-consent-button:focus-visible,
.craftlex-consent-settings-button:focus-visible,
.craftlex-consent-close:focus-visible,
.craftlex-cookie-settings-link:focus-visible,
.craftlex-consent-option input:focus-visible {
  outline: 3px solid rgba(0, 152, 207, 0.32);
  outline-offset: 2px;
}

.craftlex-consent-backdrop {
  position: fixed;
  z-index: 10030;
  inset: 0;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: 20px;
  background: rgba(10, 20, 28, 0.58);
}

.craftlex-consent-modal-open {
  overflow: hidden;
}

.craftlex-consent-dialog {
  width: min(620px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  box-sizing: border-box;
  padding: 22px;
  border: 1px solid #dce3e8;
  border-radius: 22px;
  background: #fff;
  color: #17202a;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.craftlex-consent-dialog-head {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.craftlex-consent-close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  padding: 0;
  border: 1px solid #d2dce3;
  border-radius: 50%;
  background: #fff;
  color: #17202a;
  font: inherit;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.craftlex-consent-option {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding: 14px 15px;
  border: 1px solid #dce3e8;
  border-radius: 15px;
  background: #fff;
  cursor: pointer;
}

.craftlex-consent-option-fixed {
  background: #f5f8fa;
  cursor: default;
}

.craftlex-consent-option strong {
  display: block;
  margin-bottom: 3px;
  font-size: 15px;
}

.craftlex-consent-option p {
  margin: 0;
  color: #5c6873;
  font-size: 13px;
  line-height: 1.42;
}

.craftlex-consent-option input {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  margin: 0;
  accent-color: #0098cf;
}

.craftlex-consent-dialog-actions {
  justify-content: flex-end;
  margin-top: 18px;
}

.craftlex-cookie-settings-link {
  display: block;
  width: fit-content;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.craftlex-cookie-policy {
  margin-top: 34px;
  padding-top: 6px;
  scroll-margin-top: 110px;
}

.craftlex-cookie-policy h3 {
  margin: 24px 0 8px;
  color: inherit;
  font-size: 18px;
}

.craftlex-cookie-policy ul {
  display: grid;
  gap: 8px;
  margin: 10px 0 18px;
  padding-left: 22px;
}

.craftlex-cookie-policy li {
  padding-left: 4px;
}

@media (max-width: 780px) {
  .craftlex-consent-banner {
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  }

  .craftlex-consent-inner {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .craftlex-consent-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .craftlex-consent-settings-button {
    grid-column: 1 / -1;
    min-height: 34px;
    padding: 5px 10px;
  }

  .craftlex-consent-button {
    width: 100%;
    padding-right: 12px;
    padding-left: 12px;
  }
}

@media (max-width: 430px) {
  .craftlex-consent-copy h2,
  .craftlex-consent-dialog h2 {
    font-size: 17px;
  }

  .craftlex-consent-copy p {
    font-size: 13px;
  }

  .craftlex-consent-actions {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .craftlex-consent-settings-button {
    grid-column: auto;
  }

  .craftlex-consent-backdrop {
    align-items: end;
    padding: 10px;
  }

  .craftlex-consent-dialog {
    max-height: calc(100vh - 20px);
    padding: 18px 15px calc(18px + env(safe-area-inset-bottom));
    border-radius: 18px;
  }

  .craftlex-consent-option {
    padding: 12px;
  }

  .craftlex-consent-dialog-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .craftlex-consent-banner,
  .craftlex-consent-backdrop {
    scroll-behavior: auto;
  }
}
