/************************************************************
 WooCommerce Notices â€” Full-width bar inside page container
 é€‚ç”¨é¡µé¢ï¼šå…¨ç«™ï¼ˆCartã€Checkoutã€Shopã€å•å“ç­‰ï¼‰
************************************************************/

/* å¯æŒ‰éœ€è¦†ç›–çš„å®¹å™¨å˜é‡ï¼ˆè‹¥ä¸»é¢˜å·²å®šä¹‰ç›¸åŒå˜é‡ä¼šç»§æ‰¿ï¼‰ */
:root{
  --wc-container-width: 1440px;   /* ä½ çš„ç‰ˆå¿ƒå®½ */
  --wc-container-px: 20px;        /* ä¸¤ä¾§å†…è¾¹è· */
  --wc-success: #64D199;          /* æˆåŠŸèƒŒæ™¯è‰²ï¼ˆç»¿ï¼‰ */
  --wc-info:    #2B6CB0;          /* ä¿¡æ¯èƒŒæ™¯è‰²ï¼ˆè“ï¼‰ */
  --wc-error:   #E11D48;          /* é”™è¯¯èƒŒæ™¯è‰²ï¼ˆçº¢ï¼‰ */
}

/* â€”â€” notices å¤–å±‚ wrapperï¼šå æ»¡å®¹å™¨å®½ï¼Œä¸è¶…å‡º â€”â€” */
.woocommerce-notices-wrapper{
  width: 100% !important;
  max-width: var(--wc-container-width) !important;
  margin-bottom: 50px !important;
  box-sizing: border-box !important;
}

/* Cart/Shop ç­‰é¡µé¢è‹¥æœ‰ç½‘æ ¼/ä¸¤æ ï¼šè·¨æ•´è¡Œæ˜¾ç¤º */
body.woocommerce-cart .woocommerce-notices-wrapper,
body.woocommerce-checkout .woocommerce-notices-wrapper,
body.woocommerce-page .woocommerce-notices-wrapper{
  grid-column: 1 / -1 !important;
}

/* â€”â€” é€šçŸ¥æ¡æœ¬ä½“ï¼šæ»¡å®½æ¨ªå¹…ï¼Œå·¦å³ä¸¤ç«¯å¸ƒå±€ â€”â€” */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error{
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  box-sizing: border-box !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 16px 20px !important;
  border: 0 !important;
  border-radius: 0 !important;     /* ä¸Žä½ çš„é£Žæ ¼ä¸€è‡´ï¼šç›´è§’ */
  color: #ffffff !important;
  position: static !important;              /* ç§»é™¤ç›¸å¯¹å®šä½çš„ä¾èµ– */	
}

/* èƒŒæ™¯è‰²åˆ†åˆ«å¤„ç† */
.woocommerce-message{ background: var(--wc-success) !important; }
.woocommerce-info{ background: var(--wc-info) !important; }
.woocommerce-error{ background: var(--wc-error) !important; }

/* é»˜è®¤ Woo å¯èƒ½æ˜¯ <ul><li>ï¼ŒæŠŠ li å±•å¹³ä¸ºä¸€è¡Œ */
.woocommerce-error li,
.woocommerce-info li{
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

/* å·¦ä¾§å›¾æ ‡ï¼ˆâœ“ã€iã€!ï¼‰ */
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before{
  position: static !important;              /* å…³é”®ï¼šä¸å†ç»å¯¹å®šä½ */
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 18px;                          /* ç»™å›¾æ ‡ç•™å‡ºå ä½ */
  margin-right: 10px !important;            /* ä¸Žæ–‡å­—çš„é—´è· */
  margin-left: 0 !important;
  top: auto !important; right: auto !important;
  bottom: auto !important; left: auto !important;
  transform: none !important;
  background: none !important;
  border: 0 !important;
  line-height: 1 !important;
  color: #fff !important;
  font-weight: 700 !important;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif !important;
  /* ä½ çš„ç¬¦å· */
  content: "\2713" !important;               /* message: check mark */
}
.woocommerce-info::before{ content: "\2139" !important; }
.woocommerce-error::before{ content: "!" !important; }

/* å³ä¾§é“¾æŽ¥ï¼ˆå¦‚ Undo? / View cart / Return to shopï¼‰é å³ */
.woocommerce-message > a:last-child,
.woocommerce-info > a:last-child,
.woocommerce-error > a:last-child{
  margin-left: auto !important;
  color: #ffffff !important;
  text-decoration: underline !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
}

/* é¿å…æŒ‰é’®ç±»ï¼ˆ.buttonï¼‰æŠŠè¡Œé«˜/èƒŒæ™¯å¸¦è¿›æ¥ */
.woocommerce-message a.button,
.woocommerce-info a.button,
.woocommerce-error a.button{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  color: #ffffff !important;
  text-decoration: underline !important;
}

/* â€”â€” è‡ªé€‚åº”ï¼šå°å±å¯æ¢è¡Œï¼Œä½†ä¸æº¢å‡º â€”â€” */
@media (max-width: 768px){
  .woocommerce-notices-wrapper{
    margin-top: 20px !important;
	margin-bottom: 20px !important;
  }
  .woocommerce-message,
  .woocommerce-info,
  .woocommerce-error{
    padding: 14px 16px !important;
    flex-wrap: wrap !important;            /* å…è®¸æ¢è¡Œ */
    row-gap: 8px !important;
  }
  .woocommerce-message > a:last-child,
  .woocommerce-info > a:last-child,
  .woocommerce-error > a:last-child{
    margin-left: 0 !important;             /* æ¢è¡Œæ—¶è´´å·¦ */
  }
	
  /* å®¹å™¨ï¼šå…è®¸æ¢è¡Œï¼Œæ‰€æœ‰å­é¡¹éƒ½èƒ½æ”¶ç¼© */
  .woocommerce-message,
  .woocommerce-info,
  .woocommerce-error{
    display:flex !important;
    align-items:flex-start !important;
    gap:10px !important;
    flex-wrap:wrap !important;
    /* å…³é”®ï¼šé•¿è¯ä¹Ÿæ–­ã€ä»»ä½•åœ°æ–¹éƒ½å¯æ–­ï¼Œä¸ä¼šæŠŠå®¹å™¨æ’çˆ† */
    overflow-wrap:anywhere !important;
    word-break:break-word !important;
    hyphens:auto !important;
  }

  /* å›¾æ ‡æ”¹å›žç»å¯¹å®šä½ + å·¦å†…è¾¹è·ï¼Œé¿å…ä¸Žé¦–è¡Œæ–‡å­—æŠ¢è¡Œä¸”ä¸é‡å  */
  .woocommerce-message,
  .woocommerce-info,
  .woocommerce-error{
    position:relative !important;
    padding-left: 32px !important;  /* ç»™å›¾æ ‡ç•™å‡ºå ä½ */
  }
  .woocommerce-message::before,
  .woocommerce-info::before,
  .woocommerce-error::before{
    position:absolute !important;
    left:12px !important;
    top:14px !important;            /* åŸºæœ¬åž‚ç›´å±…ä¸­ï¼ˆä¸Žä½ çš„å†…è¾¹è·ç›¸é…ï¼‰*/
    transform:none !important;
    margin:0 !important;
  }

  /* å³ä¾§é“¾æŽ¥ï¼ˆå¦‚ Undo?ï¼‰æ¢åˆ°ä¸‹ä¸€è¡Œï¼Œä¸”ä¸æº¢å‡º */
  .woocommerce-message > a:last-child,
  .woocommerce-info > a:last-child,
  .woocommerce-error > a:last-child{
    margin-left:0 !important;       /* å°å±ä¸è¦é å³æŒ¤åŒä¸€è¡Œ */
    white-space:nowrap !important;  /* æ–‡æ¡ˆæœ¬èº«ä¸æ‹† */
    max-width:100% !important;      /* å…œåº•ä¸è¶…å‡º */
  }

  /* UL ç»“æž„çš„ error/info ä¹Ÿä¸ä¼šè¢« <li> æ’å */
  .woocommerce-error li,
  .woocommerce-info li{
    display:inline !important;
    overflow-wrap:anywhere !important;
    word-break:break-word !important;
  }	
}
