.ks-delivery-availability-notice {
  position: fixed;
  left: 50%;
  bottom: 97px !important;
  z-index: 999999;

  display: flex;
  align-items: center;
  gap: 10px;

  max-width: min(93vw, 680px);
  padding: 15px 15px 15px 15px;

  border: 2px solid #f59292;
  border-radius: 2px;

  background: #fff6f6;

  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.14);

  color: #252525;

  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;

  /*
   * Initial animation position.
   */
  opacity: 0;

  transform:
    translateX(-50%)
    translateY(14px)
    scale(0.985);

  /*
   * Smooth entrance followed by one subtle attention pulse.
   */
    animation:
    ks-delivery-notice-enter 1000ms cubic-bezier(0.22, 1, 0.36, 1) 1.2s forwards,
    ks-delivery-notice-attention 450ms ease-out 2.6s 1;
}

.ks-delivery-availability-notice__text {
  min-width: 0;
}

.ks-delivery-availability-notice__ok {
  flex: 0 0 auto;

  margin: 0;
  padding: 5px 9px;

  border: 1px solid rgba(0, 0, 0, 0.22);
  border-radius: 5px;

  background: #f7f7f7;
  color: #252525;

  font: inherit;
  font-weight: 700;
  line-height: 1;

  cursor: pointer;

  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.ks-delivery-availability-notice__ok:hover {
  background: #ededed;
  transform: translateY(-1px);
}

.ks-delivery-availability-notice__ok:focus-visible {
  background: #ededed;
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/*
 * Smooth entrance:
 * fades in, rises slightly, then gently settles into position.
 */
@keyframes ks-delivery-notice-enter {
  0% {
    opacity: 0;

    transform:
      translateX(-50%)
      translateY(14px)
      scale(0.985);
  }

  70% {
    opacity: 1;

    transform:
      translateX(-50%)
      translateY(-2px)
      scale(1.008);
  }

  100% {
    opacity: 1;

    transform:
      translateX(-50%)
      translateY(0)
      scale(1);
  }
}

/*
 * One soft pulse after appearing.
 *
 * Uses the existing pink/red notice colour so it draws attention
 * without changing the design you've chosen.
 */
@keyframes ks-delivery-notice-attention {
  0% {
    box-shadow:
      0 3px 7px rgba(0, 0, 0, 0.14),
      0 0 0 0 rgba(245, 146, 146, 0.65);
  }

  35% {
    box-shadow:
      0 4px 9px rgba(0, 0, 0, 0.15),
      0 0 0 3px rgba(245, 146, 146, 0.50);
  }

  70% {
    box-shadow:
      0 4px 10px rgba(0, 0, 0, 0.15),
      0 0 0 9px rgba(245, 146, 146, 0.18);
  }

  100% {
    box-shadow:
      0 3px 9px rgba(0, 0, 0, 0.14),
      0 0 0 9px rgba(245, 146, 146, 0);
  }
}

/*
 * Accessibility:
 * visitors who have reduced-motion enabled get the same notice
 * without the movement/pulse animation.
 */
@media (prefers-reduced-motion: reduce) {
  .ks-delivery-availability-notice {
    opacity: 1;
    transform: translateX(-50%);
    animation: none;
  }

  .ks-delivery-availability-notice__ok {
    transition: none;
  }
}

@media (max-width: 480px) {
  .ks-delivery-availability-notice {
    width: calc(100vw - 24px);
    bottom: 12px;
    box-sizing: border-box;
  }
}