.header-country-notice {
  position: relative;
  z-index: 1100;
  width: 100%;
  border-bottom: 1px solid rgba(180, 83, 9, 0.28);
  color: #7c2d12;
  background: linear-gradient(90deg, #fff7ed, #fffbeb 50%, #fff7ed);
  box-shadow: 0 0.35rem 1.1rem rgba(124, 45, 18, 0.08);
}

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

.header-country-notice__inner {
  display: flex;
  width: min(100%, 1440px);
  min-height: 3.9rem;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-inline: auto;
  padding: 0.65rem clamp(1rem, 3vw, 2.5rem);
}

.header-country-notice__message {
  margin: 0;
  font-family: IRANSansWeb, IRANSans, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.8;
  text-align: center;
}

.header-country-notice__close {
  display: inline-grid;
  flex: 0 0 2rem;
  width: 2rem;
  height: 2rem;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(154, 52, 18, 0.24);
  border-radius: 50%;
  color: #9a3412;
  background: rgba(255, 255, 255, 0.72);
  font: 700 1.45rem/1 Arial, sans-serif;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.header-country-notice__close:hover {
  border-color: rgba(154, 52, 18, 0.5);
  background: #fff;
  transform: scale(1.06);
}

.header-country-notice__close:focus-visible {
  outline: 3px solid rgba(234, 88, 12, 0.25);
  outline-offset: 2px;
}

html[data-theme="dark"] .header-country-notice {
  border-bottom-color: rgba(251, 146, 60, 0.28);
  color: #fed7aa;
  background: linear-gradient(90deg, #2a160c, #35200d 50%, #2a160c);
  box-shadow: 0 0.35rem 1.1rem rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .header-country-notice__close {
  border-color: rgba(253, 186, 116, 0.28);
  color: #fed7aa;
  background: rgba(255, 255, 255, 0.07);
}

@media (max-width: 575.98px) {
  .header-country-notice__inner {
    min-height: 4.6rem;
    justify-content: space-between;
    padding-block: 0.55rem;
  }

  .header-country-notice__message {
    font-size: 0.82rem;
    text-align: right;
  }
}

@media (prefers-reduced-motion: reduce) {
  .header-country-notice__close {
    transition: none;
  }
}
