.hds-delivery-priority-card {
  order: -9999;
  border-color: rgba(147, 197, 253, 0.8) !important;
  box-shadow: 0 18px 44px -32px rgba(37, 99, 235, 0.55) !important;
}

.hds-group-notice-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  align-items: center;
  gap: clamp(20px, 4vw, 52px);
  margin-bottom: 24px;
  padding: clamp(22px, 4vw, 40px);
  overflow: hidden;
  border: 3px solid #ef4444;
  border-radius: 20px;
  background:
    radial-gradient(circle at 10% 0%, rgba(254, 202, 202, 0.9), transparent 42%),
    linear-gradient(135deg, #fff7ed 0%, #ffffff 52%, #fff1f2 100%);
  box-shadow: 0 24px 56px -30px rgba(185, 28, 28, 0.72);
}

.hds-group-notice-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 8px;
  background: linear-gradient(180deg, #dc2626, #f97316);
}

.hds-group-notice-card__copy {
  min-width: 0;
}

.hds-group-notice-card__eyebrow {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.hds-group-notice-card__title {
  margin: 14px 0 8px;
  color: #b91c1c;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.04em;
}

.hds-group-notice-card__message {
  margin: 0;
  color: #7f1d1d;
  font-size: clamp(18px, 2.4vw, 26px);
  font-weight: 900;
  line-height: 1.45;
}

.hds-group-notice-card__hint {
  max-width: 680px;
  margin: 14px 0 0;
  color: #9a3412;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.7;
}

.hds-group-notice-card__image-frame {
  justify-self: end;
  width: min(100%, 320px);
  padding: 12px;
  border: 2px solid #fecaca;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 34px -22px rgba(127, 29, 29, 0.65);
}

.hds-group-notice-card__image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 380px;
  border-radius: 10px;
  object-fit: contain;
}

.hds-cdk-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background: rgba(239, 246, 255, 0.82);
  color: #1e40af;
}

.hds-cdk-label__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}

.hds-cdk-label__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 4px 8px;
  border-radius: 7px;
  background: #2563eb;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.24);
}

.hds-cdk-label__hint {
  color: #2563eb;
  font-size: 12px;
}

.hds-cdk-code-card {
  position: relative;
  margin-top: 8px !important;
  padding: 16px !important;
  border: 2px solid #bfdbfe !important;
  border-radius: 12px !important;
  background: linear-gradient(105deg, rgba(239, 246, 255, 0.96), rgba(255, 255, 255, 0.98)) !important;
  color: #0f172a !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.65 !important;
  letter-spacing: 0.04em;
  box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.06);
  cursor: text;
  user-select: all;
}

/* Keep paid-delivery instruction images readable without letting QR artwork
   dominate the order page. Product thumbnails live outside .prose. */
.hds-delivery-priority-card:not(.hds-group-notice-ready) .prose img {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: min(100%, 260px) !important;
  margin: 16px auto !important;
  object-fit: contain;
}

.hds-delivery-priority-card.hds-group-notice-ready .prose img {
  display: none !important;
}

.dark .hds-delivery-priority-card {
  border-color: rgba(30, 64, 175, 0.75) !important;
}

.dark .hds-group-notice-card {
  border-color: #f87171;
  background:
    radial-gradient(circle at 10% 0%, rgba(127, 29, 29, 0.5), transparent 42%),
    linear-gradient(135deg, #2b1515 0%, #111827 58%, #2a1116 100%);
}

.dark .hds-group-notice-card__title,
.dark .hds-group-notice-card__message {
  color: #fecaca;
}

.dark .hds-group-notice-card__hint {
  color: #fdba74;
}

.dark .hds-cdk-label {
  border-color: #1e3a8a;
  background: rgba(23, 37, 84, 0.42);
  color: #bfdbfe;
}

.dark .hds-cdk-label__hint {
  color: #93c5fd;
}

.dark .hds-cdk-code-card {
  border-color: #1e3a8a !important;
  background: linear-gradient(105deg, rgba(23, 37, 84, 0.52), rgba(15, 23, 42, 0.92)) !important;
  color: #f8fafc !important;
}

@media (max-width: 640px) {
	.hds-group-notice-card {
		grid-template-columns: 1fr;
		gap: 20px;
		padding: 22px 18px;
		text-align: center;
	}

	.hds-group-notice-card__eyebrow {
		justify-content: center;
	}

	.hds-group-notice-card__image-frame {
		justify-self: center;
		width: min(100%, 280px);
	}

  .hds-cdk-label {
    align-items: flex-start;
    flex-direction: column;
  }

  .hds-cdk-code-card {
    font-size: 14px !important;
  }

  .hds-delivery-priority-card:not(.hds-group-notice-ready) .prose img {
    max-width: min(100%, 220px) !important;
    margin-block: 12px !important;
  }
}
