.cookie-wrapper {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  max-width: 345px;
  padding: 15px 22px;
  position: fixed;
  bottom: 20px;
  right: -370px;
  transition: right 0.4s ease-in-out;
  z-index: 10050;
  font-size: 14px;
  contain: layout style;
}

.cookie-wrapper.show {
  right: 20px;
}

.cookie-wrapper .title-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.cookie-wrapper .title-box h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: #142d6f;
}

.cookie-wrapper .info p {
  margin: 0 0 12px;
  line-height: 1.4;
  color: #4a5568;
}

.cookie-link {
  color: #0047ff;
  text-decoration: underline;
}

.cookie-wrapper .buttons {
  display: flex;
  gap: 10px;
}

.cookie-wrapper .button {
  flex: 1;
  padding: 8px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
}

.cookie-wrapper .btn_accept {
  background: #142d6f;
  color: #fff;
}

.cookie-wrapper .btn_accept:hover {
  background: #0047ff;
}

.cookie-wrapper .btn_decline {
  background: #e5e5e5;
  color: #000;
}

.cookie-wrapper .btn_decline:hover {
  background: #d4d4d4;
}

@media (max-width: 480px) {
  .cookie-wrapper {
    max-width: calc(100% - 40px);
    right: -100%;
  }

  .cookie-wrapper.show {
    right: 20px;
  }
}

body.pe-pay-modal-open .cookie-wrapper,
body.pe-devis-pay-modal-open .cookie-wrapper {
  bottom: 88px;
}

@media (max-width: 767px) {
  body.pe-has-bottom-nav .cookie-wrapper {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  body.pe-has-bottom-nav .cookie-wrapper.show {
    right: 12px;
  }

  body.pe-has-bottom-nav.pe-pay-modal-open .cookie-wrapper,
  body.pe-has-bottom-nav.pe-devis-pay-modal-open .cookie-wrapper {
    bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }
}
