/* TryLoveMe WooCommerce toasts — one shared notice system. */
.woocommerce-notices-wrapper {
  position: fixed;
  z-index: 9998;
  top: 92px;
  right: clamp(16px, 2vw, 28px);
  width: min(420px, calc(100vw - 32px));
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.admin-bar .woocommerce-notices-wrapper {
  top: 124px;
}

.woocommerce-notices-wrapper:empty {
  display: none;
}

.woocommerce-notices-wrapper > .woocommerce-message,
.woocommerce-notices-wrapper > .woocommerce-info,
.woocommerce-notices-wrapper > .woocommerce-error,
.tlm-wc-notice {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 72px;
  width: 100%;
  margin: 0 0 10px;
  padding: 14px 48px 14px 14px;
  border: 1px solid var(--tlm-border);
  border-radius: var(--tlm-radius-md);
  background: rgba(255, 255, 255, .98);
  color: var(--tlm-text);
  box-shadow: var(--tlm-shadow-lg);
  font-size: var(--tlm-font-sm);
  line-height: 1.4;
  pointer-events: auto;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  animation: tlm-notice-in var(--tlm-duration-normal) var(--tlm-ease) both;
}

.woocommerce-notices-wrapper > .woocommerce-message::before,
.woocommerce-notices-wrapper > .woocommerce-info::before,
.woocommerce-notices-wrapper > .woocommerce-error::before,
.tlm-wc-notice::before {
  position: static;
  inset: auto;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin: 0;
  border-radius: var(--tlm-radius-pill);
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.woocommerce-notices-wrapper > .woocommerce-message::before,
.tlm-wc-notice.woocommerce-message::before {
  content: '✓';
  background: #eef7ef;
  color: #2e7d32;
}

.woocommerce-notices-wrapper > .woocommerce-info::before,
.tlm-wc-notice.woocommerce-info::before {
  content: 'i';
  background: var(--tlm-light-beige, #f0e2de);
  color: var(--tlm-brownie, #3a1f22);
}

.woocommerce-notices-wrapper > .woocommerce-error::before,
.tlm-wc-notice.woocommerce-error::before {
  content: '!';
  background: #fff0f2;
  color: #b4233d;
}

.woocommerce-notices-wrapper ul,
.tlm-wc-notice ul {
  grid-column: 2;
  margin: 0;
  padding: 0;
  list-style: none;
}

.woocommerce-notices-wrapper .button,
.tlm-wc-notice .button {
  float: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  margin: 8px 8px 0 0;
  padding: 0 14px;
  border: 1px solid var(--tlm-text);
  border-radius: var(--tlm-radius-pill);
  background: var(--tlm-text);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.woocommerce-notices-wrapper .button:hover,
.woocommerce-notices-wrapper .button:focus-visible,
.tlm-wc-notice .button:hover,
.tlm-wc-notice .button:focus-visible {
  background: var(--tlm-accent);
  border-color: var(--tlm-accent);
  color: #fff;
}

.tlm-wc-notice-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: var(--tlm-radius-pill);
  background: #f8f4f5;
  color: var(--tlm-text);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  transition: background var(--tlm-duration-fast) var(--tlm-ease), transform var(--tlm-duration-fast) var(--tlm-ease);
}

.tlm-wc-notice-close:hover,
.tlm-wc-notice-close:focus-visible {
  background: var(--tlm-light-beige, #f0e2de);
  transform: scale(1.04);
}

.tlm-wc-notice.is-hiding {
  opacity: 0;
  transform: translateY(-8px) scale(.98);
  transition: opacity var(--tlm-duration-fast) var(--tlm-ease), transform var(--tlm-duration-fast) var(--tlm-ease);
}

@keyframes tlm-notice-in {
  from { opacity: 0; transform: translateY(-8px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 767px) {
  .woocommerce-notices-wrapper,
  .admin-bar .woocommerce-notices-wrapper {
    top: auto;
    right: 12px;
    bottom: 18px;
    width: calc(100vw - 24px);
  }

  .single-product .woocommerce-notices-wrapper {
    bottom: 92px;
  }

  .woocommerce-notices-wrapper > .woocommerce-message,
  .woocommerce-notices-wrapper > .woocommerce-info,
  .woocommerce-notices-wrapper > .woocommerce-error,
  .tlm-wc-notice {
    min-height: 64px;
    padding: 12px 44px 12px 12px;
    border-radius: var(--tlm-radius-sm);
  }
}
