/* sb-notice-icons */
/* room for a real icon, and a predictable box */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error{
  position:relative!important;
  padding:15px 18px 15px 50px!important;
  line-height:1.5;
}
/* info carries no icon, so it gets no reserved space */
.woocommerce-info{padding-left:18px!important}

/* stop WooCommerce's icon-font glyph on every notice */
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before{
  font-family:inherit!important;
  font-size:0!important;
  color:transparent!important;
  content:""!important;
  display:none!important;
  position:static!important;
  top:auto!important;
  left:auto!important;
}

/* success: green check, left, vertically set to the first line */
.woocommerce-message::before{
  display:block!important;
  position:absolute!important;
  left:17px!important;
  top:15px!important;
  width:20px;height:20px;
  background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234FD69C' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6L9 17l-5-5'/></svg>") center/20px 20px no-repeat!important;
}

/* error: red cross, same placement */
.woocommerce-error::before{
  display:block!important;
  position:absolute!important;
  left:17px!important;
  top:15px!important;
  width:19px;height:19px;
  background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF6B6B' stroke-width='3' stroke-linecap='round'><path d='M18 6L6 18M6 6l12 12'/></svg>") center/19px 19px no-repeat!important;
}

/* info: nothing at all */
.woocommerce-info::before{display:none!important;background:none!important}

/* WooCommerce's clearfix ::after would otherwise add a stray table box */
.woocommerce-message::after,
.woocommerce-info::after,
.woocommerce-error::after{content:""!important;display:block!important;clear:both}

/* list-style notices (errors are a <ul>) should not indent past the icon */
.woocommerce-error li,
.woocommerce-message li,
.woocommerce-info li{margin-left:0!important;padding-left:0!important;list-style:none!important}

/* the inline button WooCommerce floats right needs breathing room */
.woocommerce-message .button,
.woocommerce-info .button{margin-left:16px}
/* sb-mobile-fixes */
/* stop iOS/Android auto text inflation */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}

@media (max-width: 820px){
  /* --- iOS focus-zoom fix: 16px minimum on every form control --- */
  input[type=text],input[type=email],input[type=password],input[type=search],
  input[type=tel],input[type=number],input[type=url],input[type=date],
  select,textarea,
  .woocommerce form .form-row input.input-text,
  .sb-search input,#promoPhone,#sb_set_code,.sb-code-input input,
  .sb-code-input select,.news-form input{
    font-size:16px !important;
  }

  /* verification gate: comfortable rows + tap target */
  .check{align-items:flex-start;padding:14px 15px}
  .check > label{margin:0;line-height:1.5;flex:1}
  .check input{margin-top:2px}

  /* new promo bar: never clip the code pill; let it wrap cleanly */
  .sb-jb2-inner{padding:9px 40px}
  .sb-jb2-code{padding:3px 12px}

  /* account login/register cards: comfortable padding on phones */
  #customer_login .u-column1,#customer_login .u-column2{padding:26px 20px}

  /* partner dashboard: chart + payout controls stay inside the screen */
  .sb-chart{gap:7px;height:130px}
  .sb-bar-val{font-size:10px}
  .sb-payout-form .sb-code-input{flex-direction:column}
  .sb-payout-form .sb-code-input select,
  .sb-payout-form .sb-code-input input,
  .sb-payout-form .sb-code-input button{width:100%}
  .sb-dash-head{align-items:flex-start}
}

/* Verification gate: scroll instead of trapping the user when the card is
   taller than the viewport (small phones / landscape). margin:auto keeps it
   centered whenever there is room. */
#gate{align-items:flex-start;overflow-y:auto}
.gate-card{margin:auto}

@media (max-width: 480px){
  /* COA empty-state + hero breathing room */
  .sb-coa-hero{margin-bottom:32px}
  .sb-coa-hero h1{font-size:28px}
  /* keep the earnings figures legible when 6 bars share a phone width */
  .sb-chart{gap:5px}
  .sb-bar-label{font-size:10px}
}
