.idepoo-cart-feedback {
  position: fixed;
  z-index: 1200;
  inset-inline-end: 24px;
  bottom: 26px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: min(440px, calc(100vw - 40px));
  padding: 20px;
  border: 1px solid #d5e5df;
  border-inline-start: 4px solid #19865e;
  border-radius: 18px;
  background: #fff;
  color: #172d43;
  box-shadow: 0 14px 44px #12334d29;
  direction: rtl;
  animation: idepoo-cart-notice-in .22s ease-out;
}

.idepoo-cart-feedback[hidden] {
  display: none;
}

.idepoo-cart-feedback__body {
  min-width: 0;
  flex: 1;
}

.idepoo-cart-feedback__body p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.9;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.idepoo-cart-feedback__body a {
  color: #174d7d;
  font-size: 13px;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.idepoo-cart-feedback__icon {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  height: 34px;
  border-radius: 11px;
  color: #19865e;
  background: #eaf7f0;
  font: 700 20px/1 Arial, sans-serif;
}

.idepoo-cart-feedback > button {
  display: grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: #f2f5f8;
  color: #526477;
  place-items: center;
  font-size: 24px;
  cursor: pointer;
}

.idepoo-cart-feedback :is(a, button):focus-visible {
  outline: 3px solid #3785c2;
  outline-offset: 3px;
}

.idepoo-cart-feedback[data-state="warning"] {
  border-inline-start-color: #b37719;
}

.idepoo-cart-feedback[data-state="warning"] .idepoo-cart-feedback__icon {
  color: #98640d;
  background: #fff3dc;
}

.idepoo-cart-feedback[data-state="loading"] {
  border-inline-start-color: #174d7d;
}

.idepoo-cart-feedback[data-state="loading"] .idepoo-cart-feedback__icon {
  color: #174d7d;
  background: #edf4fa;
}

.woocommerce .button.idepoo-cart-pending {
  cursor: progress;
  opacity: .8;
}

.woocommerce .button.idepoo-cart-pending::after {
  content: '';
  display: inline-block;
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  margin-inline-start: 8px;
  border: 2px solid currentcolor;
  border-inline-end-color: transparent;
  border-radius: 50%;
  vertical-align: middle;
  animation: idepoo-cart-spin .7s linear infinite;
}

.woocommerce .button.add_to_cart_button.added {
  box-shadow: inset 0 0 0 2px #19865e !important;
}

.single-product .woocommerce-notices-wrapper > :is(.woocommerce-message, .woocommerce-error, .woocommerce-info) {
  margin: 0 0 22px;
  padding: 18px 22px;
  border: 1px solid #d5e5df;
  border-inline-start: 4px solid #19865e;
  border-radius: 14px;
  font-size: 14px;
  line-height: 2;
  list-style: none;
}

.single-product .woocommerce-notices-wrapper > .woocommerce-error {
  border-inline-start-color: #c72d41;
}

.single-product .woocommerce-notices-wrapper .button {
  margin-inline-end: 12px;
}

@keyframes idepoo-cart-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes idepoo-cart-notice-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (width <= 700px) {
  .idepoo-cart-feedback {
    inset-inline: 12px;
    bottom: calc(90px + env(safe-area-inset-bottom));
    width: auto;
    gap: 9px;
    padding: 15px 12px;
    border-radius: 15px;
  }

  .idepoo-cart-feedback__body p {
    font-size: 12px;
  }

  .idepoo-cart-feedback__body a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    font-size: 12px;
  }

  .idepoo-cart-feedback > button {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .idepoo-cart-feedback, .woocommerce .button.idepoo-cart-pending::after {
    animation: none;
  }
}
