.order-notice {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  align-items: center;
  width: min(calc(100% - 24px), 720px);
  margin: 8px auto 0;
  padding: 2px 4px;
  border-radius: 14px;
  background: var(--brown-dark, #2e1a0d);
  color: var(--bg, #faf6ee);
  font-family: var(--font, 'Vazirmatn', Tahoma, sans-serif);
  font-size: clamp(.75rem, 1.5vw, .875rem);
  line-height: 1.8;
  text-align: center;
}

.order-notice[hidden],
.order-notice__dismiss[hidden] {
  display: none !important;
}

.order-notice__link {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45em;
  min-height: 40px;
  max-width: min(100%, 430px);
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .25em;
}

.order-notice__arrow {
  flex: none;
  direction: ltr;
  transition: transform var(--transition, .2s ease);
}

.order-notice__link:hover .order-notice__arrow {
  transform: translateX(-3px);
}

.order-notice__dismiss {
  grid-column: 3;
  grid-row: 1;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--radius-sm, 10px);
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 480px) {
  .order-notice {
    width: min(calc(100% - 16px), 720px);
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    font-size: .75rem;
  }

  .order-notice__link,
  .order-notice__dismiss {
    min-height: 38px;
  }

  .order-notice__dismiss {
    width: 36px;
    height: 38px;
  }
}

.order-notice__dismiss:hover {
  border-color: currentColor;
}

.order-notice__link:focus-visible,
.order-notice__dismiss:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .order-notice__arrow {
    transition: none;
  }

  .order-notice__link:hover .order-notice__arrow {
    transform: none;
  }
}
