.nav-notice[hidden],
[data-notice-nav][hidden] {
  display: none !important;
}

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

.shop-notice-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 12, 24, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

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

.shop-notice-dialog {
  width: min(100%, 460px);
  background: #ffffff;
  border-radius: 22px;
  padding: 24px 22px 20px;
  box-shadow: 0 18px 50px -20px rgba(16, 20, 33, 0.22);
  border: 1px solid #eceef2;
}

.shop-notice-head {
  text-align: center;
  margin-bottom: 18px;
}

.shop-notice-badge {
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #2563eb;
  background: #eef4ff;
  border-radius: 999px;
  padding: 5px 10px;
}

.shop-notice-badge--warn {
  color: #92400e;
  background: #fef3c7;
}

.shop-notice-badge--event {
  color: #991b1b;
  background: #fee2e2;
}

.shop-notice-title {
  margin: 10px 0 0;
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #0f1421;
  line-height: 1.3;
}

.shop-notice-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: min(50vh, 360px);
  overflow-y: auto;
}

.shop-notice-item {
  padding: 12px 14px;
  border-radius: 10px;
  background: #f6f7f9;
  border: 1px solid #eceef2;
}

.shop-notice-item--warning {
  border-color: #fde68a;
  background: #fffbeb;
}

.shop-notice-item--urgent {
  border-color: #fecaca;
  background: #fef2f2;
}

.shop-notice-line {
  margin: 0;
  font-size: 14px;
  color: #0f1421;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.shop-notice-hint {
  margin: 0 0 6px;
  font-size: 12.5px;
  color: #6b7280;
  line-height: 1.45;
}

.shop-notice-item .shop-notice-hint:last-child {
  margin: 8px 0 0;
}

.shop-notice-item--rich {
  padding: 0;
  background: transparent;
  border: none;
}

.shop-notice-rich {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shop-notice-section {
  padding: 14px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #eceef2;
}

.shop-notice-section--new {
  border-color: #dbeafe;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 72%);
}

.shop-notice-section--sale {
  border-color: #e8ecf2;
  background: #fafbfc;
}

.shop-notice-section-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.shop-notice-section-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  border-radius: 999px;
  padding: 4px 9px;
  flex-shrink: 0;
}

.shop-notice-section-tag--new {
  color: #1d4ed8;
  background: #e8f0ff;
}

.shop-notice-section-tag--sale {
  color: #0f766e;
  background: #e6f7f4;
}

.shop-notice-section-title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #0f1421;
  line-height: 1.3;
}

.shop-notice-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #e8edf5;
}

.shop-notice-hero-art {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-notice-hero-img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  display: block;
}

.shop-notice-hero-copy {
  min-width: 0;
}

.shop-notice-hero-name {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #0f1421;
  line-height: 1.25;
}

.shop-notice-hero-price {
  display: inline-flex;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 800;
  color: #2563eb;
}

.shop-notice-chip-list,
.shop-notice-row-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shop-notice-chip-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.shop-notice-chip,
.shop-notice-row-main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.shop-notice-chip {
  padding: 8px 10px;
  border-radius: 10px;
  background: #f6f7f9;
  border: 1px solid #eceef2;
}

.shop-notice-row {
  padding: 10px 12px;
  border-radius: 10px;
  background: #f6f7f9;
  border: 1px solid #eceef2;
}

.shop-notice-row-meta {
  display: block;
  margin-top: 4px;
  padding-left: 40px;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  line-height: 1.35;
}

.shop-notice-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.shop-notice-icon--empty {
  border-radius: 8px;
  background: #e8ebf0;
}

.shop-notice-label {
  font-size: 13px;
  font-weight: 700;
  color: #0f1421;
  line-height: 1.25;
  word-break: keep-all;
}

.shop-notice-foot {
  margin-top: 18px;
}

.shop-notice-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.shop-notice-skip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  user-select: none;
  min-height: 32px;
}

.shop-notice-skip-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.shop-notice-skip-mark {
  width: 16px;
  height: 16px;
  border: 1.5px solid #e2e5ea;
  border-radius: 4px;
  background: #ffffff;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 0.14s;
}

.shop-notice-skip-input:checked + .shop-notice-skip-mark {
  background: #2563eb;
  border-color: #2563eb;
}

.shop-notice-skip-input:checked + .shop-notice-skip-mark::after {
  content: "";
  width: 4px;
  height: 7px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-top: -1px;
}

.shop-notice-skip-label {
  font-size: 12.5px;
  font-weight: 600;
  color: #6b7280;
  line-height: 1;
}

.shop-notice-close {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 20px;
  border: none;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.15s;
}

.shop-notice-close:hover {
  background: #1d4ed8;
}

.shop-notice-close:active {
  transform: scale(0.96);
}

.shop-notice-backdrop--event {
  background: rgba(40, 8, 8, 0.58);
}

.shop-notice-dialog--event {
  border-color: #fecaca;
}

.shop-notice-dialog--event .shop-notice-title {
  color: #991b1b;
}

.shop-notice-backdrop--warn {
  background: rgba(40, 32, 8, 0.55);
}

.shop-notice-dialog--warn {
  border-color: #fde68a;
}

.shop-notice-dialog--warn .shop-notice-title {
  color: #92400e;
}

.nav-notice {
  color: #d97706 !important;
}

.nav-notice:hover {
  background: rgba(217, 119, 6, 0.1) !important;
}

.nav-notice-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 4px;
  border-radius: 50%;
  background: #fbbf24;
  vertical-align: 2px;
}

@media (max-width: 480px) {
  .shop-notice-backdrop {
    padding: 16px;
  }

  .shop-notice-dialog {
    padding: 20px 18px 16px;
  }

  .shop-notice-title {
    font-size: 20px;
  }

  .shop-notice-actions {
    flex-wrap: wrap;
  }

  .shop-notice-close {
    margin-left: auto;
  }
}
