/* APP CLIENTE · Direcciones locales y confirmación antes de cotizar */

.header-top-actions{
  grid-area:club;
  min-width:0;
  justify-self:end;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
}
.header-top-actions #clubHeaderBtn.club-header-btn{
  grid-area:auto !important;
  justify-self:auto !important;
}
.header-top-actions .privacy-header-btn.menu-header-btn{
  grid-area:auto;
  flex:0 0 46px;
  width:46px;
  min-width:46px;
  height:46px;
  margin:0;
  display:grid;
  place-items:center;
  border-radius:15px;
  color:#f8fdff;
  background:rgba(255,255,255,.14) !important;
  border:1px solid rgba(255,255,255,.24) !important;
  box-shadow:0 9px 22px rgba(0,55,75,.2),inset 0 1px 0 rgba(255,255,255,.15);
}
.header-top-actions .privacy-header-btn[hidden]{display:none !important}

.customer-addresses-header-btn{
  display:none;
  align-items:center;
  justify-content:center;
  gap:5px;
  width:76px;
  min-width:76px;
  min-height:44px;
  padding:5px 7px;
  border:1px solid rgba(255,255,255,.28);
  border-radius:14px;
  color:#f6fffd;
  background:linear-gradient(135deg,rgba(24,188,151,.92),rgba(27,132,189,.92));
  box-shadow:0 9px 22px rgba(0,66,91,.22),inset 0 1px 0 rgba(255,255,255,.28);
  font:inherit;
  font-size:9px;
  font-weight:950;
  line-height:1;
  cursor:pointer;
}
.customer-addresses-header-btn:not([hidden]){display:inline-flex}
.customer-addresses-header-btn[hidden]{display:none !important}
.customer-addresses-header-btn:active{transform:translateY(1px)}
.customer-addresses-header-btn:focus-visible,
.customer-orders-header-btn:focus-visible{
  outline:3px solid rgba(142,244,217,.64);
  outline-offset:2px;
}
.customer-addresses-header-icon{
  width:18px;
  height:18px;
  flex:0 0 18px;
  display:grid;
  place-items:center;
}
.customer-addresses-header-icon svg{display:block;width:100%;height:100%}
.customer-addresses-header-label{line-height:1}

.phone.in-chat.has-customer-addresses-access .header-action-row{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) 76px 76px !important;
  align-items:stretch;
  gap:8px;
}
.phone.in-chat.has-customer-addresses-access .header-action-row .quote-header-btn{
  min-width:0;
  width:100% !important;
}
.phone.in-chat.has-customer-addresses-access .customer-quick-header-btn{
  width:76px;
  min-width:76px;
  min-height:44px;
  padding:5px 7px;
  display:grid;
  grid-template-rows:19px auto;
  place-items:center;
  align-content:center;
  gap:2px;
  font-size:9px;
  line-height:1;
}

.customer-addresses-sheet{
  position:absolute;
  inset:0;
  z-index:266;
  display:none;
  align-items:stretch;
  justify-content:stretch;
  padding:12px;
  background:rgba(2,9,12,.84);
}
.customer-addresses-sheet.open:not([hidden]){display:flex}
.customer-addresses-panel{
  width:min(760px,100%);
  height:100%;
  min-height:0;
  margin:auto;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border:1px solid rgba(117,237,221,.18);
  border-radius:26px;
  color:#effaff;
  background:linear-gradient(180deg,#0c242a 0%,#07191e 100%);
  box-shadow:0 28px 90px rgba(0,0,0,.48);
}
.customer-addresses-head{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:17px 18px 15px;
  border-bottom:1px solid rgba(255,255,255,.1);
  background:linear-gradient(135deg,rgba(9,126,112,.96),rgba(17,122,177,.94));
}
.customer-addresses-head h2{margin:0;font-size:23px;line-height:1.05;letter-spacing:-.5px}
.customer-addresses-head p{margin:5px 0 0;color:#d5f6f2;font-size:12.5px;line-height:1.35}
.customer-addresses-close-btn{
  flex:0 0 auto;
  min-width:88px;
  min-height:43px;
  padding:8px 13px;
  border:1px solid rgba(255,255,255,.54);
  border-radius:15px;
  color:#07343b;
  background:linear-gradient(135deg,#fff,#baf8ed 52%,#7ee7ff);
  font-size:11.5px;
  font-weight:950;
}
.customer-addresses-body{
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto;
  overscroll-behavior:contain;
  padding:16px;
}
.customer-addresses-list-view,.customer-address-form-view{display:grid;gap:14px}
.customer-addresses-list-view[hidden],.customer-address-form-view[hidden]{display:none !important}
.customer-addresses-source-section{
  display:grid;
  gap:10px;
  padding:13px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:20px;
  background:rgba(255,255,255,.025);
}
.customer-addresses-source-section.is-system{
  border-color:rgba(71,177,235,.19);
  background:linear-gradient(145deg,rgba(31,130,190,.075),rgba(255,255,255,.02));
}
.customer-addresses-source-section.is-local{
  border-color:rgba(87,218,191,.14);
  background:linear-gradient(145deg,rgba(36,182,150,.05),rgba(255,255,255,.02));
}
.customer-addresses-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.customer-addresses-toolbar > div{display:grid;gap:3px}
.customer-addresses-toolbar strong{font-size:16px;color:#f2fbff}
.customer-addresses-toolbar small{font-size:11.5px;color:#8faab1}
.customer-address-primary-btn,.customer-address-secondary-btn,.customer-address-link-btn{
  min-height:42px;
  border-radius:14px;
  padding:9px 14px;
  font:inherit;
  font-size:12px;
  font-weight:950;
}
.customer-address-primary-btn{
  border:1px solid rgba(125,241,223,.34);
  color:#052f37;
  background:linear-gradient(135deg,#85f1d1,#78dcff);
  box-shadow:0 9px 22px rgba(0,119,151,.18);
}
.customer-address-secondary-btn,.customer-address-link-btn{
  border:1px solid rgba(255,255,255,.16);
  color:#e9f7fa;
  background:rgba(255,255,255,.07);
}
.customer-address-system-refresh{min-width:92px}
.customer-address-system-refresh:disabled{opacity:.62;cursor:wait}
.customer-address-link-btn{min-height:36px;padding:7px 11px;color:#9ee9dc;background:transparent}
.customer-addresses-status,.customer-address-form-status{
  padding:11px 12px;
  border-radius:14px;
  color:#cde1e5;
  background:rgba(255,255,255,.055);
  border:1px solid rgba(255,255,255,.1);
  font-size:12px;
  line-height:1.4;
}
.customer-addresses-status.is-error,.customer-address-form-status.is-error{
  color:#ffd3d8;
  border-color:rgba(255,117,132,.26);
  background:rgba(184,38,58,.12);
}
.customer-addresses-status.is-success,.customer-address-form-status.is-success{
  color:#bdffe5;
  border-color:rgba(78,224,167,.24);
  background:rgba(35,173,122,.11);
}
.customer-addresses-list{display:grid;gap:10px}
.customer-address-empty{
  padding:24px 16px;
  display:grid;
  justify-items:center;
  gap:7px;
  text-align:center;
  border:1px dashed rgba(255,255,255,.15);
  border-radius:20px;
  color:#9db4ba;
  background:rgba(255,255,255,.025);
}
.customer-address-empty span{font-size:30px}
.customer-address-empty strong{color:#e6f5f8;font-size:15px}
.customer-address-empty p{max-width:350px;margin:0;font-size:12px;line-height:1.4}
.customer-address-card{
  display:grid;
  gap:10px;
  padding:14px;
  border:1px solid rgba(255,255,255,.11);
  border-radius:19px;
  background:linear-gradient(145deg,rgba(255,255,255,.065),rgba(255,255,255,.025));
  box-shadow:0 10px 28px rgba(0,0,0,.14);
}
.customer-address-card.is-system{
  border-color:rgba(77,183,244,.22);
  background:linear-gradient(145deg,rgba(32,139,207,.1),rgba(255,255,255,.025));
}
.customer-address-card.is-system .customer-address-card-icon{
  color:#eafaff;
  background:linear-gradient(135deg,#1479b1,#23a7c7);
}
.customer-address-card-main{display:grid;grid-template-columns:36px minmax(0,1fr);gap:11px;align-items:start}
.customer-address-card-icon{
  width:36px;height:36px;display:grid;place-items:center;border-radius:12px;
  color:#082f3a;background:linear-gradient(135deg,#8ef2d2,#79ddff);font-size:18px;
}
.customer-address-card-copy{min-width:0;display:grid;gap:5px}
.customer-address-card-copy strong{font-size:13.5px;line-height:1.35;color:#f0fbfe;overflow-wrap:anywhere}
.customer-address-card-copy span{width:max-content;max-width:100%;padding:4px 8px;border-radius:999px;color:#b9e9ff;background:rgba(39,150,216,.13);font-size:10.5px;font-weight:900}
.customer-address-card-copy .customer-address-source-label{
  color:#8da8af;
  font-size:10px;
  font-weight:800;
  line-height:1.3;
}
.customer-address-card.is-system .customer-address-source-label{color:#86cce9}
.customer-address-card-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.customer-address-card-actions button{
  min-height:38px;border-radius:12px;padding:7px 10px;font-size:11.5px;font-weight:900;
  color:#dff3f6;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);
}
.customer-address-card-actions button.is-danger{color:#ffd0d5;border-color:rgba(255,105,124,.2);background:rgba(167,38,56,.1)}

.customer-address-form-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.customer-address-form-head > div{display:grid;gap:3px}
.customer-address-form-head span{color:#75decf;font-size:10px;font-weight:950;text-transform:uppercase;letter-spacing:.08em}
.customer-address-form-head h3{margin:0;font-size:20px;color:#f1fbfe}
.customer-address-form{display:grid;gap:15px}
.customer-address-form-help{margin:0;color:#9fb8be;font-size:12px;line-height:1.4}
.customer-address-section-title{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
  padding-top:3px;
  padding-bottom:8px;
  border-bottom:1px solid rgba(255,255,255,.09);
}
.customer-address-section-title span{color:#dff8f3;font-size:14px;font-weight:950}
.customer-address-section-title small{color:#7f9da4;font-size:10.5px}
.customer-address-fields-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.customer-address-receipt-fields,.customer-address-invoice-fields{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.customer-address-receipt-fields[hidden],.customer-address-invoice-fields[hidden]{display:none !important}
.customer-address-field{display:grid;align-content:start;gap:7px;margin:0 !important;color:#d5e9ed !important;font-size:11.5px !important}
.customer-address-field-wide{grid-column:1/-1}
.customer-address-field > span{font-weight:900}
.customer-address-field b{color:#78e6d1}
.customer-address-field input,.customer-address-field textarea,.customer-address-field select{
  width:100%;
  min-height:46px;
  box-sizing:border-box;
  border:1px solid rgba(255,255,255,.13);
  border-radius:14px;
  padding:11px 12px;
  color:#edf9fc;
  background:#07171c;
  font:inherit;
  font-size:13px;
  outline:none;
}
.customer-address-field textarea{min-height:88px;resize:vertical;line-height:1.45}
.customer-address-field input:focus,.customer-address-field textarea:focus,.customer-address-field select:focus{
  border-color:rgba(95,221,207,.72);
  box-shadow:0 0 0 3px rgba(70,205,190,.1);
}
.customer-address-field input:disabled{opacity:.55;cursor:not-allowed}
.customer-address-form-actions{display:grid;grid-template-columns:1fr 1.35fr;gap:10px;padding-top:2px}

.customer-address-quote-sheet{
  position:absolute;
  inset:0;
  z-index:336;
  display:none;
  align-items:center;
  justify-content:center;
  padding:16px;
  background:rgba(0,8,11,.8);
  backdrop-filter:blur(5px);
}
.customer-address-quote-sheet.open:not([hidden]){display:flex}
.customer-address-quote-panel{
  width:min(480px,100%);
  max-height:min(720px,calc(100% - 12px));
  overflow-y:auto;
  display:grid;
  gap:13px;
  padding:18px;
  border:1px solid rgba(118,237,221,.2);
  border-radius:24px;
  color:#effaff;
  background:linear-gradient(180deg,#102b32,#07191e);
  box-shadow:0 28px 90px rgba(0,0,0,.55);
}
.customer-address-quote-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.customer-address-quote-head > div{display:grid;gap:4px}
.customer-address-quote-head span{color:#79dfcf;font-size:10px;font-weight:950;text-transform:uppercase;letter-spacing:.09em}
.customer-address-quote-head h3{margin:0;font-size:21px;line-height:1.12;color:#f3fcff}
.customer-address-quote-head > button{
  width:36px;height:36px;flex:0 0 36px;border-radius:12px;border:1px solid rgba(255,255,255,.14);
  color:#e9f8fb;background:rgba(255,255,255,.06);font-size:24px;line-height:1;
}
#customerAddressQuoteHelp{margin:0;color:#a8bec4;font-size:12px;line-height:1.4}
.customer-address-quote-list{display:grid;gap:9px;max-height:340px;overflow-y:auto;overscroll-behavior:contain}
.customer-address-quote-option{
  width:100%;
  display:grid;
  grid-template-columns:24px minmax(0,1fr);
  gap:10px;
  align-items:start;
  padding:12px;
  text-align:left;
  border:1px solid rgba(255,255,255,.11);
  border-radius:16px;
  color:#eaf8fb;
  background:rgba(255,255,255,.045);
}
.customer-address-quote-option.is-selected{
  border-color:rgba(74,190,255,.82);
  background:rgba(40,145,217,.15);
  box-shadow:0 0 0 3px rgba(45,156,231,.09);
}
.customer-address-quote-radio{
  width:21px;height:21px;margin-top:1px;border:2px solid #72858c;border-radius:50%;display:grid;place-items:center;
}
.customer-address-quote-option.is-selected .customer-address-quote-radio{border-color:#55b8ff}
.customer-address-quote-option.is-selected .customer-address-quote-radio::after{content:"";width:9px;height:9px;border-radius:50%;background:#55b8ff}
.customer-address-quote-copy{min-width:0;display:grid;gap:5px}
.customer-address-quote-copy strong{font-size:13px;line-height:1.4;overflow-wrap:anywhere}
.customer-address-quote-copy span{color:#a9c1c7;font-size:11px;font-weight:800}
.customer-address-quote-empty{padding:17px;text-align:center;border:1px dashed rgba(255,255,255,.14);border-radius:16px;color:#a9bdc2;font-size:12px;line-height:1.45}
.customer-address-quote-manage{
  min-height:38px;padding:7px 11px;border:1px solid rgba(95,221,207,.16);border-radius:13px;
  color:#8ce4d6;background:rgba(58,188,168,.06);font-size:11.5px;font-weight:900;
}
.customer-address-quote-actions{display:grid;grid-template-columns:1fr 1.35fr;gap:9px}
.customer-address-quote-panel.is-single .customer-address-quote-list{max-height:none}

html.is-capacitor-app .customer-addresses-body{
  padding-bottom:calc(18px + var(--sc-native-safe-bottom,env(safe-area-inset-bottom,0px)));
}

@media(max-width:720px){
  .customer-addresses-sheet{padding:0}
  .customer-addresses-panel{width:100%;border-radius:0;border-left:0;border-right:0;border-bottom:0}
  .customer-addresses-head{padding:14px 14px 12px}
  .customer-addresses-body{padding:13px 14px calc(17px + env(safe-area-inset-bottom,0px))}
  .customer-address-quote-sheet{align-items:flex-end;padding:10px}
  .customer-address-quote-panel{width:100%;max-height:88%;border-radius:23px;padding:16px}
}
@media(max-width:430px){
  .header-top-actions #clubHeaderBtn.club-header-btn{
    min-width:clamp(108px,32vw,138px) !important;
    max-width:38vw !important;
  }
  .header-top-actions .privacy-header-btn.menu-header-btn{width:43px;min-width:43px;flex-basis:43px;height:43px;border-radius:14px}
  .phone.in-chat.has-customer-addresses-access .header-action-row{grid-template-columns:minmax(0,1fr) 66px 66px !important;gap:6px}
  .phone.in-chat.has-customer-addresses-access .customer-quick-header-btn{width:66px;min-width:66px;padding:4px;font-size:8px}
  .customer-addresses-header-icon{width:16px;height:16px;flex-basis:16px}
  .customer-orders-header-icon{font-size:16px}
  .phone.in-chat.has-customer-addresses-access .header-action-row .quote-header-btn{font-size:11.5px !important;padding-left:8px !important;padding-right:8px !important}
  .customer-addresses-head h2{font-size:20px}
  .customer-addresses-head p{font-size:11.5px}
  .customer-addresses-close-btn{min-width:82px;padding-left:10px;padding-right:10px;font-size:10.5px}
  .customer-addresses-toolbar{align-items:stretch;flex-direction:column}
  .customer-addresses-toolbar .customer-address-primary-btn{width:100%}
  .customer-address-fields-grid{grid-template-columns:1fr}
  .customer-address-receipt-fields,.customer-address-invoice-fields{grid-template-columns:1fr}
  .customer-address-field-wide{grid-column:auto}
  .customer-address-quote-head h3{font-size:19px}
}
@media(max-width:360px){
  .phone.in-chat.has-customer-addresses-access .header-action-row{grid-template-columns:minmax(0,1fr) 57px 57px !important;gap:5px}
  .phone.in-chat.has-customer-addresses-access .customer-quick-header-btn{width:57px;min-width:57px;font-size:7.2px}
  .phone.in-chat.has-customer-addresses-access .header-action-row .quote-header-btn{font-size:10.5px !important;padding-left:6px !important;padding-right:6px !important}
  .customer-address-form-head{align-items:flex-start;flex-direction:column}
  .customer-address-form-actions,.customer-address-quote-actions{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){
  .customer-addresses-header-btn,.customer-address-primary-btn,.customer-address-secondary-btn,.customer-address-quote-option{transition:none}
}
