#locksmith-cookie-root,
#locksmith-cookie-root * {
  box-sizing: border-box;
}

.locksmith-cookie-banner[hidden],
.locksmith-cookie-modal-overlay[hidden] {
  display: none !important;
}

:root {
  --locksmith-blue: #123f7a;
  --locksmith-blue-dark: #0f3567;
  --locksmith-green: #39ad73;
  --locksmith-green-dark: #2f9763;
  --locksmith-text: #1f1f1f;
  --locksmith-text-soft: #65615a;
  --locksmith-border: #e3e7ec;
  --locksmith-bg: #ffffff;
  --locksmith-shadow: 0 18px 48px rgba(10, 30, 55, 0.14);
}

/* Banner */
.locksmith-cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 24px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px;
  background: #ffffff;
  border: 1px solid var(--locksmith-border);
  border-radius: 26px;
  box-shadow: var(--locksmith-shadow);
  z-index: 999999;
}

.locksmith-cookie-banner__content {
  flex: 1 1 auto;
  min-width: 0;
}

.locksmith-cookie-banner__title {
  margin: 0 0 10px;
  color: var(--locksmith-text);
  font-size: 22px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.locksmith-cookie-banner__text {
  margin: 0;
  color: var(--locksmith-text-soft);
  font-size: 15px;
  line-height: 1.75;
}

.locksmith-cookie-banner__text a {
  color: var(--locksmith-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}

.locksmith-cookie-banner__actions {
  flex: 0 0 auto;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

/* Buttons */
.locksmith-btn {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  min-height: 50px;
  padding: 14px 24px;
  font-size: 15px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.locksmith-btn:focus-visible {
  outline: 2px solid var(--locksmith-blue);
  outline-offset: 2px;
}

.locksmith-btn--primary {
  background: var(--locksmith-blue);
  color: #ffffff;
  border-color: var(--locksmith-blue);
}

.locksmith-btn--primary:hover {
  background: var(--locksmith-blue-dark);
  border-color: var(--locksmith-blue-dark);
}

.locksmith-btn--secondary {
  background: #ffffff;
  color: #1f1f1f;
  border-color: #d9dfe6;
}

.locksmith-btn--secondary:hover {
  background: #f7f9fb;
  border-color: #c9d3de;
}

.locksmith-btn--dark {
  background: var(--locksmith-green);
  color: #ffffff;
  border-color: var(--locksmith-green);
}

.locksmith-btn--dark:hover {
  background: var(--locksmith-green-dark);
  border-color: var(--locksmith-green-dark);
}

/* Modal */
.locksmith-cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 27, 40, 0.46);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000000;
}

.locksmith-cookie-modal {
  position: relative;
  width: min(880px, 100%);
  max-height: min(90vh, 940px);
  overflow: auto;
  padding: 32px 28px 28px;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid var(--locksmith-border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.locksmith-cookie-modal__close {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  top: 14px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #1f1f1f;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.locksmith-cookie-modal__close:hover,
.locksmith-cookie-modal__close:focus {
  background: rgba(0, 0, 0, 0);
  color:rgb(57 173 115);
}

.locksmith-cookie-modal__title {
  margin: 0 0 12px;
  padding-right: 40px;
  color: var(--locksmith-text);
  font-size: 26px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.locksmith-cookie-modal__intro {
  margin: 0 0 28px;
  color: var(--locksmith-text-soft);
  font-size: 15px;
  line-height: 1.8;
}

/* Rows */
.locksmith-cookie-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid #edf0f3;
}

.locksmith-cookie-row:first-of-type {
  border-top: none;
}

.locksmith-cookie-row__info {
  flex: 1 1 auto;
  min-width: 0;
}

.locksmith-cookie-row__info b {
  margin: 0 0 8px;
  color: #1f1f1f;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 700;
}

.locksmith-cookie-row__info p {
  margin: 0;
  color: var(--locksmith-text-soft);
  font-size: 14px;
  line-height: 1.75;
}

.locksmith-cookie-row__toggle {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.locksmith-cookie-status {
  color: var(--locksmith-text-soft);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

/* Switch */
.locksmith-switch {
  position: relative;
  width: 56px;
  height: 32px;
  display: inline-block;
}

.locksmith-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.locksmith-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #d5dce3;
  transition: 0.25s ease;
}

.locksmith-slider::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.14);
  transition: 0.25s ease;
}

.locksmith-switch input:checked + .locksmith-slider {
  background: var(--locksmith-green);
}

.locksmith-switch input:checked + .locksmith-slider::before {
  transform: translateX(24px);
}

.locksmith-switch--locked .locksmith-slider {
  background: var(--locksmith-green);
}

.locksmith-cookie-modal__footer {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 14px;
  align-items: center;
  justify-content: flex-start;
  margin-top: 28px;
  padding-top: 8px;
}

.locksmith-cookie-settings-trigger {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

body.locksmith-cookie-modal-open {
  overflow: hidden;
}

@media (max-width: 991px) {
  .locksmith-cookie-banner {
    width: calc(100% - 20px);
    padding: 20px;
    gap: 18px;
  }

  .locksmith-cookie-banner__title {
    font-size: 20px;
  }

  .locksmith-cookie-modal {
    width: min(94vw, 880px);
  }
}

@media (max-width: 767px) {
  .locksmith-cookie-banner {
    flex-direction: column;
    align-items: stretch;
    border-radius: 20px;
  }

  .locksmith-cookie-banner__actions {
    width: 100%;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: stretch;
  }

  .locksmith-btn {
    width: 100%;
  }

  .locksmith-cookie-modal {
    padding: 24px 18px 20px;
    border-radius: 20px;
  }

  .locksmith-cookie-modal__title {
    font-size: 24px;
    padding-right: 34px;
  }

  .locksmith-cookie-row {
    flex-direction: column;
    gap: 14px;
  }

  .locksmith-cookie-row__toggle {
    width: 100%;
    justify-content: space-between;
  }

  .locksmith-cookie-modal__footer {
    flex-direction: column;
    flex-wrap: wrap;
    align-items: stretch;
  }

  .locksmith-cookie-modal__footer .locksmith-btn {
    width: 100%;
  }
}