/* Cookie consent banner and settings modal. All selectors are component-specific. */
.cookie-notification-block {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  font-family: inherit;
}

.cookie-notification-block.show {
  display: block;
}

.cookie-notification-banner {
  position: absolute;
  left: 50%;
  bottom: 14px;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 221px;
  align-items: center;
  column-gap: 20px;
  width: calc(100% - 30px);
  max-width: 812px;
  min-height: 92px;
  box-sizing: border-box;
  padding: 10px 20px;
  border: 1px solid #e5e1e1;
  border-top: 3px solid #773535;
  border-radius: 15px;
  background: #fff;
  color: #171717;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .16);
  transform: translate(-50%, 130%);
  transition: transform .3s ease;
  pointer-events: auto;
}

.cookie-notification-block.show .cookie-notification-banner {
  transform: translate(-50%, 0);
}

.cookie-notification-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  min-width: 90px;
}

.cookie-notification-logo img {
  display: block;
  width: 88px;
  max-height: 60px;
  height: auto;
  object-fit: contain;
}

.cookie-notification-content {
  min-width: 0;
  font-size: 13px;
  line-height: 1.25;
}

.cookie-notification-title {
  margin: 0 0 2px;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 700;
}

.cookie-notification-description {
  margin: 0;
  font-size: 12px;
  line-height: 1.3;
}

.cookie-notification-description p {
  margin: 0;
}

.cookie-notification-policy {
  display: inline-block;
  margin-top: 2px;
  color: #713333;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 700;
  text-decoration: underline;
}

.cookie-notification-policy:hover {
  text-decoration: none;
}

.cookie-notification-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  width: 221px;
  min-width: 221px;
  white-space: nowrap;
}

.cookie-notification-actions .btn,
.cookie-settings-footer .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 32px;
  margin: 0;
  padding: 7px 10px;
  border: 1px solid #773535;
  border-radius: 7px;
  background: #773535;
  color: #fff;
  font-family: inherit;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: none;
}

.cookie-notification-actions .cookie-accept-all {
  flex: 0 0 108px;
  width: 108px;
}

.cookie-notification-actions .cookie-open-settings {
  flex: 0 0 103px;
  width: 103px;
  background: #fff;
  color: #773535;
}

.cookie-notification-actions .btn:disabled,
.cookie-settings-footer .btn:disabled {
  opacity: .6;
  cursor: wait;
}

.cookie-notification-error,
.cookie-settings-error {
  display: none;
  color: #a32626;
  font-size: 12px;
  line-height: 1.35;
}

.cookie-notification-error:not(:empty) {
  display: block;
  grid-column: 1 / -1;
}

.cookie-settings-error:not(:empty) {
  display: block;
  padding: 0 20px 12px;
  text-align: center;
}

.cookie-settings-overlay {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, .42);
  pointer-events: auto;
}

.cookie-settings-modal {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: calc(100% - 30px);
  max-width: 480px;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 11px;
  background: #fff;
  color: #171717;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .24);
  transform: translate(-50%, -50%);
  pointer-events: auto;
}

.cookie-settings-open .cookie-settings-overlay,
.cookie-settings-open .cookie-settings-modal {
  display: block;
}

.cookie-settings-open .cookie-notification-banner {
  visibility: hidden;
}

.cookie-settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  box-sizing: border-box;
  padding: 9px 16px;
  background: #773535;
  color: #fff;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 700;
}

.cookie-settings-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.cookie-settings-body {
  padding: 0 20px;
}

.cookie-settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 0;
  border-bottom: 1px solid #d8d8d8;
}

.cookie-settings-row:last-child {
  border-bottom: 0;
}

.cookie-settings-text {
  min-width: 0;
}

.cookie-settings-name {
  margin: 0 0 4px;
  color: #171717;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 700;
}

.cookie-settings-description {
  color: #707070;
  font-size: 13px;
  line-height: 1.4;
}

.cookie-settings-always {
  flex: 0 0 auto;
  color: #773535;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 600;
}

.cookie-switch {
  position: relative;
  display: inline-block;
  flex: 0 0 38px;
  width: 38px;
  height: 20px;
  margin: 0;
}

.cookie-switch input {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 38px;
  height: 20px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.cookie-switch-slider {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: #c9cdd1;
  cursor: pointer;
  transition: background .2s ease;
}

.cookie-switch-slider:before {
  content: '';
  position: absolute;
  left: 2px;
  top: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
  transition: transform .2s ease;
}

.cookie-switch input:checked + .cookie-switch-slider {
  background: #773535;
}

.cookie-switch input:checked + .cookie-switch-slider:before {
  transform: translateX(18px);
}

.cookie-switch input:focus-visible + .cookie-switch-slider {
  outline: 2px solid #333;
  outline-offset: 3px;
}

.cookie-settings-footer {
  display: flex;
  justify-content: center;
  padding: 15px 20px 17px;
}

.cookie-settings-footer .btn {
  min-width: 150px;
  min-height: 34px;
  padding: 8px 14px;
  font-size: 13px;
  text-transform: none;
}

@media (max-width: 650px) {
  .cookie-notification-banner {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 7px;
    width: calc(100% - 24px);
    min-height: 0;
    bottom: 10px;
    padding: 13px 15px;
  }

  .cookie-notification-logo {
    display: none;
  }

  .cookie-notification-content {
    grid-column: 1;
  }

  .cookie-notification-actions {
    grid-column: 1;
    display: flex;
    width: 100%;
    min-width: 0;
    margin-top: 5px;
    gap: 8px;
  }

  .cookie-notification-actions .cookie-accept-all,
  .cookie-notification-actions .cookie-open-settings {
    flex: 1 1 50%;
    width: auto;
    min-width: 0;
  }
}

@media (max-width: 420px) {
  .cookie-settings-modal {
    width: calc(100% - 24px);
  }

  .cookie-settings-body {
    padding: 0 15px;
  }

  .cookie-settings-row {
    gap: 12px;
    padding: 15px 0;
  }

  .cookie-settings-footer {
    padding: 13px 15px 15px;
  }
}
