.pa-notice {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 1000;
  width: min(410px, calc(100vw - 32px));
  padding: 24px;
  border: 2px solid #d79a1e;
  border-radius: 22px;
  background: linear-gradient(135deg, #fff4b8 0%, #ffe3a3 100%);
  box-shadow:
    0 26px 70px rgba(84, 25, 47, 0.3),
    0 0 0 6px rgba(215, 154, 30, 0.16);
  transform: translate(-50%, -50%);
  animation: paNoticeIn 0.28s ease-out;
}

.pa-notice[hidden] {
  display: none;
}

.pa-notice-close {
  position: absolute;
  top: 11px;
  right: 12px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(84, 25, 47, 0.16);
  border-radius: 50%;
  color: var(--wine-dark);
  background: rgba(255, 255, 255, 0.6);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.pa-notice-close:hover,
.pa-notice-close:focus-visible {
  color: white;
  background: var(--wine);
  outline: none;
}

.pa-notice-badge {
  display: inline-flex;
  margin-bottom: 11px;
  padding: 6px 10px;
  border-radius: 999px;
  color: white;
  background: var(--wine);
  box-shadow: 0 6px 16px rgba(123, 41, 72, 0.22);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pa-notice h2 {
  margin: 0 38px 9px 0;
  color: var(--wine-dark);
  font-family: "Playfair Display", serif;
  font-size: 1.52rem;
  line-height: 1.15;
}

.pa-notice p {
  margin: 0;
  color: #4d3527;
  font-size: 0.93rem;
  line-height: 1.55;
}

.pa-notice strong {
  color: var(--wine-dark);
}

.pa-notice-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.pa-notice-link,
.pa-notice-dismiss {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.pa-notice-link {
  flex: 1;
  border: 1px solid var(--wine);
  color: white;
  background: var(--wine);
  box-shadow: 0 8px 20px rgba(123, 41, 72, 0.24);
}

.pa-notice-link:hover,
.pa-notice-link:focus-visible {
  background: var(--wine-dark);
  outline: none;
}

.pa-notice-dismiss {
  border: 1px solid rgba(84, 25, 47, 0.22);
  color: var(--wine-dark);
  background: rgba(255, 255, 255, 0.72);
}

.pa-notice-dismiss:hover,
.pa-notice-dismiss:focus-visible {
  background: white;
  outline: none;
}

@keyframes paNoticeIn {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 12px)) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@media (max-width: 640px) {
  .pa-notice {
    width: min(390px, calc(100vw - 24px));
    padding: 22px 18px 18px;
  }

  .pa-notice-actions {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pa-notice {
    animation: none;
  }
}
