/* GazAria — customer-facing usability corrections / 2026-10-13 */
:root{--gazaria-accent:#087d74;--gazaria-border:#dbe8e6}
body.woocommerce-account .gaz-account-content{min-width:0;overflow-wrap:anywhere}
body.woocommerce-account .gaz-account-content form.edit-account,
body.woocommerce-account .gaz-account-content .woocommerce-EditAccountForm{max-width:100%;box-sizing:border-box}
body.woocommerce-account .gaz-account-content fieldset{border:1px solid var(--gazaria-border)!important;border-radius:15px!important;padding:20px!important;margin:22px 0!important;min-width:0;box-sizing:border-box}
body.woocommerce-account .gaz-account-content fieldset legend{max-width:95%;font-size:14px!important;font-weight:800!important;color:#164746!important;padding:0 11px!important}
body.woocommerce-account .gaz-account-content label{display:block!important;text-align:right!important;line-height:1.9!important;white-space:normal!important}
body.woocommerce-account .gaz-account-content .form-row{box-sizing:border-box;min-width:0}
body.woocommerce-account .gaz-account-content .form-row .password-input{position:relative!important;display:block!important;min-width:0;width:100%}
body.woocommerce-account .gaz-account-content .form-row .password-input>input{box-sizing:border-box!important;width:100%!important;padding-left:84px!important}
/* WooCommerce show-password control: old broad button styles turned it into a large blank CTA. */
body.woocommerce-account .gaz-account-content .password-input :is(button.show-password-input,span.show-password-input),
body.woocommerce-account .gaz-account-content :is(button.show-password-input,span.show-password-input){
  appearance:none!important;box-sizing:border-box!important;
  position:absolute!important;z-index:2!important;left:8px!important;right:auto!important;top:50%!important;
  transform:translateY(-50%)!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  width:68px!important;max-width:68px!important;min-width:68px!important;
  height:36px!important;min-height:36px!important;max-height:36px!important;
  margin:0!important;padding:4px 7px!important;
  border:1px solid #d2e5df!important;border-radius:9px!important;
  background:#eff8f5!important;color:#17665e!important;
  box-shadow:none!important;font:750 11px/1.4 var(--font-fa,Sahel,Tahoma,sans-serif)!important;
  cursor:pointer!important;overflow:hidden!important;
}
body.woocommerce-account .gaz-account-content :is(button.show-password-input,span.show-password-input):before{content:none!important;display:none!important}
body.woocommerce-account .gaz-account-content :is(button.show-password-input,span.show-password-input):after{content:"نمایش"!important;display:inline!important;position:static!important;width:auto!important;height:auto!important;font:inherit!important;color:inherit!important;background:none!important;opacity:1!important}
body.woocommerce-account .gaz-account-content :is(button.show-password-input,span.show-password-input).display-password:after{content:"پنهان"!important}
body.woocommerce-account .gaz-account-content :is(button.show-password-input,span.show-password-input):hover{border-color:#7ebaae!important;background:#e6f5ef!important}
body.woocommerce-account .gaz-account-content form.edit-account>p:last-child button[type=submit],
body.woocommerce-account .gaz-account-content .woocommerce-EditAccountForm>p:last-child button[type=submit]{display:inline-flex!important;margin:17px 0 0!important;min-width:160px!important;color:#fff!important}

/* Empty orders: readable message, browsing button on a separate line. */
body.woocommerce-account .gaz-account-content :is(.woocommerce-message,.woocommerce-info,.woocommerce-Message--info):has(a.button),
body.woocommerce-account .gaz-account-content .woocommerce-message:has(a.woocommerce-Button) {
  box-sizing:border-box!important;display:flex!important;flex-direction:column!important;
  align-items:flex-start!important;gap:14px!important;width:100%!important;
  min-height:80px!important;padding:17px 18px!important;margin:18px 0!important;
  border:1px solid #dcebe7!important;border-radius:14px!important;
  color:#315653!important;line-height:1.9!important;text-align:right!important;
  background:#f6fbf9!important;
}
body.woocommerce-account .gaz-account-content :is(.woocommerce-message,.woocommerce-info,.woocommerce-Message--info)>a.button,
body.woocommerce-account .gaz-account-content :is(.woocommerce-message,.woocommerce-info,.woocommerce-Message--info)>a.woocommerce-Button {
  position:static!important;float:none!important;display:inline-flex!important;
  width:max-content!important;max-width:100%!important;min-width:150px!important;
  min-height:43px!important;align-items:center!important;justify-content:center!important;
  margin:0!important;order:2!important;
  border:0!important;border-radius:10px!important;background:#087d74!important;
  color:#fff!important;font-size:12.5px!important;font-weight:800!important;
}
body.woocommerce-account .gaz-account-content :is(.woocommerce-message,.woocommerce-info,.woocommerce-Message--info)>a.button:hover{background:#06675f!important}
/* Native product sorting: a single tidy select (no browser + theme double focus ring). */
body .woocommerce form.woocommerce-ordering{border:0!important;border-radius:0!important;outline:0!important;box-shadow:none!important;padding:0!important;background:transparent!important}
body .woocommerce form.woocommerce-ordering select.orderby{
  appearance:none!important;-webkit-appearance:none!important;
  outline:0!important;box-sizing:border-box!important;border:1px solid #cedfda!important;
  border-radius:12px!important;box-shadow:0 4px 13px rgba(13,65,60,.045)!important;
  background-color:#fff!important;color:#164945!important;min-height:46px!important;
}
body .woocommerce form.woocommerce-ordering select.orderby:focus,
body .woocommerce form.woocommerce-ordering select.orderby:focus-visible{
  outline:0!important;border-color:#0d8579!important;box-shadow:0 0 0 2px rgba(12,128,114,.1)!important;
}
body .woocommerce form.woocommerce-ordering select.orderby::-ms-expand{display:none}
/* Requests now render in clean semantic cards (replaces unresponsive legacy table). */
.gaz-quote-list{width:100%;min-width:0;padding:25px 26px 29px;box-sizing:border-box;direction:rtl;text-align:right}
.gaz-quote-list__head{margin-bottom:21px}
.gaz-quote-list__head h2{margin:0 0 6px!important;color:#143f3e;font-size:19px;line-height:1.65}
.gaz-quote-list__head p{margin:0!important;color:#788d89;font-size:12px;line-height:1.9}
.gaz-quote-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,295px),1fr));gap:13px}
.gaz-quote-card{min-width:0;border:1px solid #dce9e5;border-radius:16px;background:#fff;padding:19px 19px 18px;box-shadow:0 8px 27px rgba(15,56,54,.045)}
.gaz-quote-card__top{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:13px}
.gaz-quote-id{font-size:12px;font-weight:850;color:#17665e}
.gaz-quote-status{display:inline-flex;align-items:center;min-height:27px;padding:3px 10px;border-radius:9px;background:#e9f6f0;color:#147660;font-size:11px;font-weight:850}
.gaz-quote-card h3{font-size:15px!important;line-height:1.9!important;margin:0 0 12px!important;color:#153c3d;overflow-wrap:anywhere}
.gaz-quote-meta{display:flex;flex-wrap:wrap;gap:8px 18px;border-top:1px solid #edf1ef;padding-top:13px;color:#718883;font-size:12px}
.gaz-quote-meta b{font-weight:800;color:#31504d}
.gaz-quote-note{padding:10px 13px;margin:13px 0 0!important;border-radius:10px;background:#f5f9f7;color:#506d67;font-size:12px;line-height:1.9;overflow-wrap:anywhere}
.gaz-quote-product{display:inline-block;margin-top:13px!important;color:#0a776d!important;font-size:12px;font-weight:850;text-decoration:none!important}
.gaz-quote-empty{padding:15px;border:1px dashed #d2e7e0;border-radius:14px;background:#f7fbf9}
.gaz-quote-empty p{font-size:13px;margin:0 0 14px!important;color:#486763}
.gaz-quote-empty a.button{display:inline-flex!important;padding:11px 20px!important;background:#087d74!important;color:#fff!important;border-radius:10px!important;text-decoration:none!important}

/* Quote-only: hide purchase affordances while keeping customer history and inquiry form intact. */
body.gazaria-quote-only :is(.single_add_to_cart_button,.add_to_cart_button,.ajax_add_to_cart,.added_to_cart,.ds-card-cart-btn,.wc-block-components-product-button,.wc-block-mini-cart,.cart-contents,.widget_shopping_cart){display:none!important}
body.gazaria-quote-only form.cart{display:none!important}
body.gazaria-quote-only .gazaria-quote-price{font-weight:800;color:#0f776b;line-height:1.9}
@media(max-width:700px){
 body.woocommerce-account .gaz-account-content fieldset{padding:14px!important;margin:15px 0!important}
 .gaz-quote-list{padding:17px 15px 23px}
 .gaz-quote-cards{grid-template-columns:1fr;gap:10px}
 .gaz-quote-card{padding:15px}
 .gaz-quote-list__head h2{font-size:17px}
 body .woocommerce form.woocommerce-ordering select.orderby{width:100%!important;min-height:46px!important}
}
