/* ArtVerse — หน้าที่อยู่ของฉัน และฟอร์มที่อยู่
   ไฟล์นี้เป็นส่วนหนึ่งของ css/parts/*.css โหลดตามลำดับเลขหน้าไฟล์ (ลำดับมีผล: ไฟล์หลังทับไฟล์ก่อน) */

/* =========================================================
   Addresses page — reference layout
   ========================================================= */
body[data-page="addresses"]{
  background:#f5f5f5;
  color:#111;
}
body[data-page="addresses"] .site-header{
  position:sticky;
  top:0;
  background:#fff;
  box-shadow:none;
  border-bottom:1px solid #ececec;
}
body[data-page="addresses"] .site-header .wrap{
  width:min(1290px,calc(100% - 32px));
}
body[data-page="addresses"] .reference-topbar{
  min-height:64px;
  grid-template-columns:auto minmax(0,1fr) auto;
  gap:30px;
  border-bottom:0;
}
body[data-page="addresses"] .reference-category-nav{display:none}
body[data-page="addresses"] .brand{gap:7px}
body[data-page="addresses"] .brand-mark{
  width:34px;height:34px;font-size:20px;background:#ffdc23;color:#151515;box-shadow:none;
}
body[data-page="addresses"] .brand-name{font-size:27px;color:#171717;letter-spacing:-1.2px}
body[data-page="addresses"] .reference-main-nav{
  justify-content:flex-start;gap:27px;font-size:13px;color:#151515;font-weight:800;
}
body[data-page="addresses"] .reference-main-nav a{opacity:1}
body[data-page="addresses"] .reference-actions{gap:7px}
body[data-page="addresses"] .reference-actions .pill,
body[data-page="addresses"] .reference-actions .icon-link,
body[data-page="addresses"] .reference-actions .profile-drawer-btn{
  height:34px;border:1px solid #ddd;background:#fff;color:#222;box-shadow:none;
}
body[data-page="addresses"] .reference-actions .currency-pill{min-width:66px;padding:0 12px;font-size:11px}
body[data-page="addresses"] .reference-actions .icon-link{width:34px;font-size:14px}
body[data-page="addresses"] .reference-actions .profile-drawer-btn{min-width:58px;padding:0 8px}
body[data-page="addresses"] .reference-actions .profile-drawer-avatar{width:22px;height:22px;font-size:12px}
body[data-page="addresses"] .footer{display:none}
#addressesApp.wrap{
  width:min(650px,calc(100% - 28px));
  padding:18px 0 90px;
}
.addresses-reference-page{width:100%}
.addresses-reference-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-bottom:18px;
}
.addresses-reference-head h1{
  margin:0;
  color:#111;
  font-size:27px;
  line-height:1.2;
  font-weight:900;
  letter-spacing:-.4px;
}
.add-address-reference-btn{
  min-height:32px;
  padding:0 14px;
  border-radius:999px;
  background:#2378ee;
  color:#fff;
  font-size:11px;
  font-weight:700;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:6px;
  box-shadow:none;
}
.add-address-reference-btn:hover{background:#176ce0}
.add-address-reference-btn span{font-size:17px;font-weight:400;line-height:1}
.addresses-reference-list{display:grid;gap:10px}
.addresses-empty-card{
  min-height:315px;
  border:1px solid #ececec;
  border-radius:8px;
  background:#fff;
  display:grid;
  place-items:center;
  align-content:center;
  gap:9px;
  color:#b1b1b1;
}
.addresses-empty-card p{margin:0;font-size:12px;color:#aaa}
.addresses-empty-icon{
  position:relative;
  width:74px;
  height:62px;
  display:grid;
  place-items:center;
  color:#d5d5d5;
}
.addresses-empty-icon>span{
  width:50px;
  height:42px;
  border-radius:4px 4px 8px 8px;
  background:#dedede;
  color:#f3f3f3;
  display:grid;
  place-items:center;
  font-size:25px;
  box-shadow:inset 0 -7px 0 #d1d1d1;
}
.addresses-empty-icon>i{
  position:absolute;
  right:0;
  top:0;
  width:28px;
  height:19px;
  border-radius:999px;
  background:#d7d7d7;
  color:#fff;
  font-size:9px;
  font-style:normal;
  display:grid;
  place-items:center;
  letter-spacing:1px;
}
.my-address-card{
  min-height:132px;
  background:#fff;
  border:1px solid #ececec;
  border-radius:8px;
  padding:18px 20px;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:22px;
  color:#111;
}
.my-address-main{min-width:0}
.my-address-person{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.my-address-person strong{font-size:12px;font-weight:850;color:#171717}
.my-address-person span{font-size:11px;color:#929292}
.my-address-main p{
  margin:10px 0 9px;
  max-width:470px;
  color:#333;
  font-size:11px;
  line-height:1.55;
}
.my-address-badges{display:flex;gap:6px;flex-wrap:wrap}
.my-address-badges em{
  margin:0;
  padding:4px 7px;
  border-radius:3px;
  background:#fff0f0;
  color:#f26b6b;
  font-style:normal;
  font-size:9px;
}
.my-address-badges em.billing{background:#eef5ff;color:#3778d4}
.my-address-actions{
  min-width:138px;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:9px;
}
.address-edit-link,.address-delete-link{
  padding:0;
  background:transparent;
  color:#2378ee;
  font-size:10px;
  cursor:pointer;
}
.address-delete-link{color:#df5a5a;margin-top:auto}
.address-default-btn{
  min-height:30px;
  min-width:124px;
  padding:0 10px;
  border:1px solid #d9d9d9;
  border-radius:5px;
  background:#fff;
  color:#888;
  font-size:9px;
  cursor:pointer;
}
.address-default-btn:hover:not(:disabled){border-color:#2378ee;color:#2378ee}
.address-default-btn:disabled{background:#fafafa;color:#c0c0c0;cursor:default}
.address-page-modal .address-page-dialog{width:min(650px,100%)}
body[data-page="addresses"] .address-page-dialog,
body[data-page="addresses"] .address-page-dialog .modal-head,
body[data-page="addresses"] .address-page-dialog .address-form input,
body[data-page="addresses"] .address-page-dialog .address-form select,
body[data-page="addresses"] .address-page-dialog .address-form textarea{
  background:#fff;
  color:#222;
}
body[data-page="addresses"] .address-page-dialog .btn{
  min-height:36px;
  border-radius:7px;
  background:#2378ee;
  border-color:#2378ee;
  box-shadow:none;
}
body[data-page="addresses"] .address-page-dialog .btn.ghost{
  background:#fff;
  color:#333;
  border-color:#d8d8d8;
}
@media(max-width:900px){body[data-page="addresses"] .reference-main-nav{display:none}}
@media(max-width:640px){body[data-page="addresses"] .site-header{display:none}
#addressesApp.wrap{width:calc(100% - 20px);padding:18px 0 48px}
.addresses-reference-head{align-items:center;margin-bottom:16px}
.addresses-reference-head h1{font-size:25px}
.add-address-reference-btn{padding-inline:12px}
.addresses-empty-card{min-height:300px}
.my-address-card{grid-template-columns:1fr;padding:17px 16px;gap:13px}
.my-address-actions{min-width:0;display:grid;grid-template-columns:auto 1fr auto;align-items:center;justify-items:start}
.address-default-btn{justify-self:end}
.address-delete-link{margin-top:0;justify-self:end}}
@media(max-width:430px){.addresses-reference-head h1{font-size:22px}
.add-address-reference-btn{font-size:10px;min-height:30px}
.my-address-actions{grid-template-columns:1fr}
.address-default-btn,.address-delete-link{justify-self:start}}
