/* WEAUTY checkout location selector: independent of payment and React DOM */
.weauty-location-panel{
  direction:rtl;box-sizing:border-box;border:1px solid #e5e2df;border-radius:18px;
  padding:23px;background:#fff;color:#242424;
  box-shadow:0 7px 23px rgba(0,0,0,.035);margin:18px auto 22px;
  width:100%;max-width:1100px;
}
.weauty-location-panel>header{margin:0 0 16px}
.weauty-location-panel h2{font-size:19px;line-height:1.55;font-weight:800;margin:0 0 4px}
.weauty-location-panel>header p{font-size:12px;color:#787575;margin:0;line-height:1.95}
.weauty-location-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;width:100%;grid-column:1/-1}
.weauty-location-fields label,.weauty-location-other{display:flex;flex-direction:column;gap:7px;font-size:13px!important;font-weight:700!important;color:#333;min-width:0}
.weauty-location-fields select,.weauty-location-other input{
  width:100%;min-width:0;box-sizing:border-box;height:48px;
  border:1px solid #d8d6d3;border-radius:10px;background:#fff;
  padding:8px 12px;font-size:14px;font-family:inherit;color:#262626;direction:rtl;
}
.weauty-location-fields select:focus-visible,.weauty-location-other input:focus-visible{
  outline:2px solid #736258;outline-offset:2px;
}
.weauty-location-fields select:disabled{background:#f4f3f1;color:#8e8a87;cursor:not-allowed}
.weauty-location-other{grid-column:1/-1}
.weauty-location-other[hidden]{display:none!important}
.weauty-location-map-head{
  grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;gap:10px;
  margin:17px 0 9px;
}
.weauty-location-map-head strong{font-size:13px;line-height:1.7;color:#333}
.weauty-location-map-head button{
  background:#f5f3f0;color:#292724;border:1px solid #dedbd6;
  padding:8px 12px;border-radius:9px;font:600 12px inherit;cursor:pointer;
  font-size:12px;font-family:inherit;
}
.weauty-location-map-head button:hover{background:#eae7e3}
.weauty-location-map{direction:ltr;box-sizing:border-box;width:100%;height:310px;overflow:hidden;z-index:0;
  grid-column:1/-1;background:#ebece8;border:1px solid #deded9;border-radius:13px;
}
.weauty-location-foot{grid-column:1/-1;display:flex;gap:8px 16px;flex-wrap:wrap;justify-content:space-between;
  align-items:center;margin-top:10px;font-size:11.5px;line-height:1.8;color:#77716c}
.weauty-location-foot small{font:11px monospace;direction:ltr;color:#686463}
.weauty-map-pin-wrap{background:transparent;border:0}
.weauty-map-pin{display:block;width:23px;height:23px;background:#171717;border:3px solid #fff;
  border-radius:50% 50% 50% 0;transform:rotate(-45deg);box-shadow:0 2px 9px #0006;
}
.weauty-location-map .leaflet-control-attribution{font-size:9px}
.commerce-checkout-page .weauty-location-fields select,.commerce-checkout-page .weauty-location-other input{
  height:48px;min-height:48px;border:1px solid #d8d6d3;border-radius:10px;
}
@media(max-width:630px){
  .weauty-location-panel{padding:16px;border-radius:14px;margin:12px auto 18px}
  .weauty-location-fields{grid-template-columns:1fr;gap:13px}
  .weauty-location-map{height:280px}
  .weauty-location-map-head{margin-top:16px}
}

/* Unified WEAUTY address owner: keep React/Woo Store API authoritative,
   but show only the shared, user-accessible delivery editor. */
body.weauty-unified-checkout-ready .wp-block-woocommerce-checkout-shipping-address-block,
body.weauty-unified-checkout-ready .wp-block-woocommerce-checkout-billing-address-block,
body.weauty-unified-checkout-ready .wp-block-woocommerce-checkout-shipping-method-block,
body.weauty-unified-checkout-ready .wp-block-woocommerce-checkout-pickup-options-block{
  display:none!important;
}
.weauty-unified-fields,.weauty-book-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:14px}
.weauty-unified-fields label,.weauty-book-grid label{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:700}
.weauty-unified-fields input,.weauty-book-grid input{
  box-sizing:border-box;min-width:0;width:100%;height:48px;border:1px solid #d8d6d3;
  border-radius:10px;background:#fff;color:#222;padding:9px 12px;font:inherit;font-size:14px;
}
.weauty-unified-fields input:focus-visible,.weauty-book-grid input:focus-visible{outline:2px solid #736258;outline-offset:2px}
.weauty-unified-fields label:nth-child(4){grid-column:1/-1}
.weauty-saved-addresses{border-bottom:1px solid #ebe9e5;margin-bottom:16px;padding-bottom:16px}
.weauty-saved-addresses>strong{display:block;margin-bottom:10px;font-size:14px}
.weauty-saved-address-choices{display:flex;gap:10px;flex-wrap:wrap}
.weauty-saved-address-choice{
  display:flex;flex-direction:column;align-items:flex-start;gap:5px;
  border:1px solid #dadada;border-radius:11px;cursor:pointer;padding:10px 14px;
  background:white;color:#272727;text-align:right;max-width:100%;font:inherit;font-size:13px
}
.weauty-saved-address-choice span{font-size:11px;color:#666;max-width:230px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.weauty-saved-address-choice.is-current{border-color:#222;background:#f3f3f3}
.weauty-new-address{border:0;background:transparent;font:inherit;cursor:pointer;margin-top:12px;text-decoration:underline}
.weauty-address-manage{font-size:12px;margin:12px 0 0}
.weauty-book{direction:rtl}.weauty-book-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px;margin:15px 0 22px}
.weauty-book-card,.weauty-book-editor{border:1px solid #e5e2df;border-radius:14px;background:#fff;padding:18px}
.weauty-book-card h3{margin:0 0 8px;font-size:16px}.weauty-book-card h3 small{font-size:11px;color:#777}
.weauty-book-card p{margin:0 0 15px;font-size:13px;line-height:1.9}
.weauty-book-actions{display:flex;align-items:center;flex-wrap:wrap;gap:9px}
.weauty-book-actions form{display:inline}.weauty-book-actions .button{font-size:12px}
.weauty-book-editor .weauty-location-account{margin-top:20px}
.weauty-book-editor .weauty-location-map{margin-top:8px}
@media(max-width:630px){.weauty-unified-fields,.weauty-book-grid{grid-template-columns:1fr}.weauty-unified-fields label:nth-child(4){grid-column:auto}}
