/* Clarken dismissable notices (close button + auto-dismiss animation).
   Applies to WooCommerce notices across cart, checkout, product, account. */

.lp-notice {
  position: relative;
  padding-right: 46px !important; /* room for the close button */
  transition: opacity 260ms ease, transform 260ms ease;
}

.lp-notice--closing {
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
}

.lp-notice__close {
  position: absolute;
  top: 50%;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  opacity: 0.6;
  cursor: pointer;
  transition: opacity 150ms ease, background-color 150ms ease;
}

.lp-notice__close:hover,
.lp-notice__close:focus-visible {
  opacity: 1;
  background: rgba(17, 17, 17, 0.08);
  outline: 0;
}

.lp-notice__close svg {
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .lp-notice,
  .lp-notice--closing {
    transition: none;
  }
}
