.brand-message-modal {
  padding-right: 0 !important;
}

.modal-backdrop.brand-message-backdrop {
  background-color: rgba(0, 0, 0, 0.48);
  opacity: 1;
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

.brand-message-modal .modal-dialog {
  width: min(94vw, 650px);
  max-width: 650px;
  margin: 1rem auto;
}

.brand-message-modal .modal-content {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.brand-message-card {
  position: relative;
  width: 100%;
}

.brand-message-art {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.brand-message-close {
  position: absolute;
  z-index: 2;
  top: 25.5%;
  right: 5.5%;
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  color: #005236;
  background: #fff;
  border: 1px solid rgba(0, 82, 54, 0.18);
  border-radius: 50%;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.16);
  cursor: pointer;
}

.brand-message-content {
  position: absolute;
  top: 30.5%;
  right: 10.5%;
  bottom: 7.5%;
  left: 10.5%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #164b3b;
  text-align: center;
}

.brand-message-copy p {
  margin: 0 0 0.75rem;
  font-size: clamp(0.88rem, 2.15vw, 1.12rem);
  line-height: 1.65;
}

.brand-message-copy .brand-message-eyebrow {
  display: inline-block;
  margin-bottom: 0.45rem;
  color: #a4771f;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.brand-message-copy h2 {
  margin: 0 0 1rem;
  color: #005236;
  font-size: clamp(1.25rem, 3.5vw, 1.85rem);
  font-weight: 700;
  line-height: 1.3;
}

.brand-message-copy .brand-message-note {
  width: fit-content;
  margin: 0.9rem auto;
  padding: 0.55rem 1.25rem;
  color: #005236;
  background: linear-gradient(180deg, #fff8dd 0%, #f3d98e 100%);
  border: 1px solid #d1a94d;
  border-radius: 999px;
  font-size: clamp(1rem, 2.6vw, 1.35rem);
  font-weight: 700;
  line-height: 1.35;
}

.brand-message-actions {
  margin-top: 1.1rem;
  transform: translateY(-10px);
}

.brand-message-dont-show {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0 0 0.7rem;
  color: #5d625f;
  font-size: clamp(0.78rem, 1.8vw, 0.95rem);
  cursor: pointer;
}

.brand-message-dont-show input {
  width: 17px;
  height: 17px;
  accent-color: #005236;
}

.brand-message-accept {
  min-width: 150px;
  padding: 0.58rem 1.8rem;
  color: #fff;
  background: #005236;
  border: 1px solid #005236;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0, 82, 54, 0.2);
}

.brand-message-accept:hover,
.brand-message-accept:focus {
  color: #fff;
  background: #003f2a;
  border-color: #003f2a;
}

@media (max-width: 575.98px) {
  .brand-message-modal .modal-dialog {
    width: min(96vw, 440px);
    margin: 0.5rem auto;
  }

  .brand-message-close {
    top: 25%;
    right: 5%;
    width: 32px;
    height: 32px;
  }

  .brand-message-content {
    top: 30%;
    right: 10%;
    bottom: 6.5%;
    left: 10%;
  }

  .brand-message-copy p {
    margin-bottom: 0.4rem;
    font-size: clamp(0.72rem, 3.15vw, 0.9rem);
    line-height: 1.48;
  }

  .brand-message-copy h2 {
    margin-bottom: 0.55rem;
    font-size: clamp(1rem, 4.7vw, 1.3rem);
  }

  .brand-message-copy .brand-message-note {
    margin: 0.5rem auto;
    padding: 0.38rem 0.8rem;
    font-size: clamp(0.85rem, 3.8vw, 1rem);
  }

  .brand-message-actions {
    margin-top: 0.55rem;
    transform: translateY(-7px);
  }

  .brand-message-dont-show {
    margin-bottom: 0.45rem;
    font-size: 0.72rem;
  }

  .brand-message-dont-show input {
    width: 15px;
    height: 15px;
  }

  .brand-message-accept {
    min-width: 125px;
    padding: 0.42rem 1.25rem;
    font-size: 0.88rem;
  }
}

@media (max-height: 660px) {
  .brand-message-modal .modal-dialog {
    width: min(82vw, 510px);
  }
}
