/* Unified WooCommerce notices for Poostina. */
:root {
  --ps-notice-text: #2d3440;
  --ps-notice-muted: #7e788b;
  --ps-notice-border: #ece9f2;
  --ps-notice-panel: #ffffff;
  --ps-notice-success: #17b77d;
  --ps-notice-success-soft: #ecfbf5;
  --ps-notice-info: #8453ff;
  --ps-notice-info-soft: #f5f1ff;
  --ps-notice-error: #f43d78;
  --ps-notice-error-soft: #fff1f6;
  --ps-notice-warning: #f59e0b;
  --ps-notice-warning-soft: #fffbeb;
  --ps-notice-radius: 18px;
  --ps-notice-shadow: 0 16px 44px rgba(45, 52, 64, .07);
}

.woocommerce-notices-wrapper {
  width: min(100%, 1240px);
  max-width: 100%;
  min-width: 0;
  margin-inline: auto;
  box-sizing: border-box;
  direction: rtl;
}

.woocommerce-error,
.woocommerce-info,
.woocommerce-message,
.woocommerce-notice,
.wc-block-components-notice-banner,
.woocommerce .woocommerce-error,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-message {
  position: relative !important;
  display: flex !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  align-items: center !important;
  gap: 12px !important;
  min-height: 54px !important;
  margin: 14px 0 18px !important;
  padding: 14px 56px 14px 18px !important;
  border: 1px solid var(--ps-notice-border) !important;
  border-right: 4px solid var(--ps-notice-info) !important;
  border-top: 1px solid var(--ps-notice-border) !important;
  border-radius: var(--ps-notice-radius) !important;
  background: var(--ps-notice-panel) !important;
  color: var(--ps-notice-text) !important;
  box-shadow: var(--ps-notice-shadow) !important;
  font-family: "peyda-reg", Tahoma, Arial, sans-serif !important;
  font-size: 14px !important;
  line-height: 1.9 !important;
  list-style: none !important;
  overflow: hidden !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}

.woocommerce-error::before,
.woocommerce-info::before,
.woocommerce-message::before,
.woocommerce-notice::before,
.wc-block-components-notice-banner::before {
  position: absolute !important;
  inset-inline-start: auto !important;
  right: 18px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 26px !important;
  height: 26px !important;
  border-radius: 999px !important;
  background: var(--ps-notice-info-soft) !important;
  color: var(--ps-notice-info) !important;
  font-family: WooCommerce, Arial, sans-serif !important;
  font-size: 13px !important;
  line-height: 1 !important;
}

.woocommerce-message,
.woocommerce .woocommerce-message,
.wc-block-components-notice-banner.is-success {
  border-right-color: var(--ps-notice-success) !important;
}

.woocommerce-message::before,
.woocommerce .woocommerce-message::before,
.wc-block-components-notice-banner.is-success::before {
  background: var(--ps-notice-success-soft) !important;
  color: var(--ps-notice-success) !important;
}

.woocommerce-info,
.woocommerce .woocommerce-info,
.wc-block-components-notice-banner.is-info {
  border-right-color: var(--ps-notice-info) !important;
}

.woocommerce-info::before,
.woocommerce .woocommerce-info::before,
.wc-block-components-notice-banner.is-info::before {
  background: var(--ps-notice-info-soft) !important;
  color: var(--ps-notice-info) !important;
}

.woocommerce-error,
.woocommerce .woocommerce-error,
.wc-block-components-notice-banner.is-error {
  border-right-color: var(--ps-notice-error) !important;
}

.woocommerce-error::before,
.woocommerce .woocommerce-error::before,
.wc-block-components-notice-banner.is-error::before {
  background: var(--ps-notice-error-soft) !important;
  color: var(--ps-notice-error) !important;
}

.woocommerce-error li,
.woocommerce-info li,
.woocommerce-message li {
  margin: 0 !important;
  padding: 0 !important;
}

.woocommerce-error a,
.woocommerce-info a,
.woocommerce-message a,
.woocommerce-notice a,
.wc-block-components-notice-banner a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 34px !important;
  margin-inline: 8px 0 !important;
  padding: 7px 13px !important;
  border-radius: 999px !important;
  background: #f7f5fb !important;
  color: var(--ps-notice-text) !important;
  font-family: "peyda-bold", "peyda-reg", Tahoma, Arial, sans-serif !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
  text-decoration: none !important;
  transition: transform .18s ease, background .18s ease, color .18s ease !important;
}

.woocommerce-error a:hover,
.woocommerce-info a:hover,
.woocommerce-message a:hover,
.woocommerce-notice a:hover,
.wc-block-components-notice-banner a:hover {
  transform: translateY(-1px) !important;
  background: #ebe6f7 !important;
  color: var(--ps-notice-info) !important;
}

.woocommerce-message a.button,
.woocommerce-info a.button,
.woocommerce-error a.button,
.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button {
  float: none !important;
  order: 3 !important;
  margin-right: auto !important;
  margin-left: 0 !important;
}

/* Removed-from-cart + undo usually arrives as a WooCommerce message. */
.woocommerce-message a.restore-item {
  background: var(--ps-notice-success-soft) !important;
  color: var(--ps-notice-success) !important;
}

.woocommerce-form-coupon-toggle .woocommerce-info,
.woocommerce-form-login-toggle .woocommerce-info,
.woocommerce-NoticeGroup .woocommerce-error,
.woocommerce-NoticeGroup .woocommerce-info,
.woocommerce-NoticeGroup .woocommerce-message,
.woocommerce-NoticeGroup-checkout .woocommerce-error,
.woocommerce-NoticeGroup-checkout .woocommerce-info,
.woocommerce-NoticeGroup-checkout .woocommerce-message {
  margin-top: 0 !important;
}

.woocommerce-invalid-required-field .woocommerce-input-wrapper input,
.woocommerce-invalid-required-field .woocommerce-input-wrapper select,
.woocommerce-invalid-required-field .woocommerce-input-wrapper textarea {
  border-color: var(--ps-notice-error) !important;
  box-shadow: 0 0 0 3px rgba(244, 61, 120, .1) !important;
}

@media (max-width: 767px) {
  .woocommerce-error,
  .woocommerce-info,
  .woocommerce-message,
  .woocommerce-notice,
  .wc-block-components-notice-banner,
  .woocommerce .woocommerce-error,
  .woocommerce .woocommerce-info,
  .woocommerce .woocommerce-message {
    align-items: flex-start !important;
    flex-direction: column !important;
    padding: 14px 52px 14px 14px !important;
    border-radius: 16px !important;
    font-size: 13px !important;
  }

  .woocommerce-error a,
  .woocommerce-info a,
  .woocommerce-message a,
  .woocommerce-notice a,
  .wc-block-components-notice-banner a {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 6px 0 0 !important;
    box-sizing: border-box !important;
  }
}


/* 0.19.2 — prevent dynamic Woo notices from increasing document scrollWidth. */
.woocommerce-notices-wrapper,
.woocommerce-notices-wrapper *,
.woocommerce-error,
.woocommerce-info,
.woocommerce-message,
.woocommerce-notice,
.wc-block-components-notice-banner {
  box-sizing: border-box !important;
}

.woocommerce-error,
.woocommerce-info,
.woocommerce-message,
.woocommerce-notice,
.wc-block-components-notice-banner,
.woocommerce-error > *,
.woocommerce-info > *,
.woocommerce-message > *,
.woocommerce-notice > *,
.wc-block-components-notice-banner > * {
  max-width: 100% !important;
  min-width: 0 !important;
}
