.cev-notice {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.cev-notice[hidden] {
  display: none !important;
}

.cev-notice__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(33, 20, 40, 0.55);
  cursor: pointer;
}

.cev-notice__dialog {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: min(90vh, 760px);
  overflow: auto;
  background: #fff;
  border: 2px solid #f9c2c7;
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(33, 20, 40, 0.22);
  color: #414141;
}

.cev-notice__close {
  position: absolute;
  top: 0.5rem;
  right: 0.65rem;
  z-index: 5;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #59064d;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 2px 8px rgba(33, 20, 40, 0.12);
}

.cev-notice__banner {
  width: 100%;
  margin: 0;
  line-height: 0;
  overflow: hidden;
  border-radius: 14px 14px 0 0;
  background: #faf7f5;
}

.cev-notice__banner-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 240px;
  object-fit: cover;
  object-position: center;
}

.cev-notice__body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.cev-notice__title {
  margin: 0 0 0.85rem;
  font-size: 1.35rem;
  line-height: 1.25;
  color: #59064d;
  font-weight: 700;
}

.cev-notice__content {
  font-size: 0.95rem;
  line-height: 1.55;
}

.cev-notice__content p {
  margin: 0 0 0.85rem;
}

.cev-notice__content p:last-child {
  margin-bottom: 0;
}

.cev-notice__actions {
  margin-top: 1.25rem;
  display: flex;
  justify-content: flex-end;
}

.cev-notice__btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1.35rem;
  background: #59064d;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  pointer-events: auto;
  position: relative;
  z-index: 3;
}

.cev-notice__btn:hover,
.cev-notice__btn:focus {
  background: #45053b;
  outline: none;
}

body.cev-notice-open {
  overflow: hidden;
}

@media (max-width: 575px) {
  .cev-notice__banner-img {
    max-height: 170px;
  }

  .cev-notice__body {
    padding: 1rem 1.1rem 1.25rem;
  }

  .cev-notice__title {
    font-size: 1.2rem;
  }
}
