.carflex-consent {
  position: relative;
  z-index: 2147483000;
  font-family: Arial, Helvetica, sans-serif;
}

.carflex-consent__panel {
  position: fixed;
  left: 50%;
  bottom: 18px;
  width: min(920px, calc(100% - 28px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 22px;
  border: 1px solid rgba(184, 148, 90, 0.45);
  border-radius: 14px;
  background: #0e2742;
  color: #ffffff;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
}

.carflex-consent__panel[hidden],
.carflex-consent__reopen[hidden] {
  display: none !important;
}

.carflex-consent__content {
  max-width: 610px;
}

.carflex-consent__content h2 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.25;
  color: #ffffff;
}

.carflex-consent__content p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

.carflex-consent__content a {
  display: inline-block;
  margin-top: 8px;
  color: #e1bd7a;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.carflex-consent__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.carflex-consent__button,
.carflex-consent__reopen {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.carflex-consent__button {
  min-height: 42px;
  padding: 10px 15px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
}

.carflex-consent__button--primary {
  background: #e1bd7a;
  color: #0e2742;
}

.carflex-consent__button--secondary {
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: transparent;
  color: #ffffff;
}

.carflex-consent__button:focus-visible,
.carflex-consent__reopen:focus-visible,
.carflex-consent__content a:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

.carflex-consent__reopen {
  position: fixed;
  right: 16px;
  bottom: 16px;
  padding: 9px 12px;
  border: 1px solid rgba(184, 148, 90, 0.55);
  border-radius: 999px;
  background: #0e2742;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  font-size: 12px;
  font-weight: 700;
}

html[dir='rtl'] .carflex-consent__reopen {
  right: auto;
  left: 16px;
}

@media (max-width: 760px) {
  .carflex-consent__panel {
    bottom: 10px;
    width: calc(100% - 20px);
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
    padding: 18px;
  }

  .carflex-consent__actions {
    flex-direction: column;
  }

  .carflex-consent__button {
    width: 100%;
  }
}
