/* Addresses screen restoration */
#sc-addresses {
  display: flex !important;
  flex-direction: column;
  background: #fef1ee !important;
  color: #1c1410 !important;
}

#sc-addresses .tbar.dark {
  display: flex !important;
  align-items: center;
  flex: 0 0 64px;
  width: 100%;
  height: 64px !important;
  box-sizing: border-box;
  padding: 0 8px !important;
  background: linear-gradient(110deg, #1c1410 0%, #6f2b0d 62%, #e8500a 145%) !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}

#sc-addresses .tbar.dark .back-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px !important;
  height: 44px !important;
  border-radius: 12px;
  color: #fff !important;
}

#sc-addresses .tbar-title.w {
  display: block !important;
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 8px;
  color: #fff !important;
  font-family: 'Google Sans', 'DM Sans', sans-serif !important;
  font-size: 21px !important;
  font-weight: 700 !important;
  line-height: 1.2;
}

#sc-addresses .tbar.dark .ibtn.w {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  width: 40px !important;
  height: 40px !important;
  box-sizing: border-box;
  border: 0;
  border-radius: 16px;
  background: #e8500a !important;
  color: #fff !important;
  font-size: 24px !important;
  line-height: 1;
}

#sc-addresses .tbar.dark .address-add-btn {
  z-index: 2;
  visibility: visible !important;
  opacity: 1 !important;
  cursor: pointer;
}

#sc-addresses .tbar.dark .address-add-btn span {
  display: block !important;
  line-height: 1 !important;
  color: inherit !important;
}

#sc-addresses .scroll {
  display: block !important;
  flex: 1 1 0 !important;
  min-height: 0;
  padding: 0 0 52px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  background: #fef1ee !important;
}

#sc-addresses .prof-body {
  box-sizing: border-box;
  padding: 18px 16px 32px !important;
}

#sc-addresses .prof-sec-lbl {
  display: inline-flex !important;
  width: auto !important;
  margin: 0 2px 12px !important;
  padding: 8px 13px !important;
  border: 1px solid rgba(232, 80, 10, 0.18) !important;
  border-radius: 999px !important;
  background: rgba(232, 80, 10, 0.08) !important;
  color: #b8420b !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em !important;
  line-height: 1.2 !important;
  text-transform: uppercase;
}

#sc-addresses #addr-list {
  width: 100%;
  min-height: 0;
  box-sizing: border-box;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid rgba(28, 20, 16, 0.08) !important;
  border-radius: 20px !important;
  background: #fffaf7 !important;
  box-shadow: 0 8px 22px rgba(28, 20, 16, 0.06) !important;
}

#shell > #addr-sheet {
  z-index: 1000 !important;
}

#shell > #addr-sheet.open {
  pointer-events: auto !important;
}

#sc-addresses #addr-list .empty-st {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 280px !important;
  box-sizing: border-box;
  gap: 12px;
  padding: 34px 24px !important;
  background: #fffaf7 !important;
  text-align: center;
}

#sc-addresses #addr-list .empty-st svg {
  display: block !important;
  width: 56px !important;
  height: 56px !important;
  max-width: 56px;
  max-height: 56px;
  stroke: #e8500a !important;
}

#sc-addresses #addr-list .empty-st-ttl {
  display: block !important;
  color: #1c1410 !important;
  font-family: 'Google Sans', 'DM Sans', sans-serif !important;
  font-size: 19px !important;
  font-weight: 800 !important;
  line-height: 1.3;
}

#sc-addresses #addr-list .empty-st-sub {
  display: block !important;
  max-width: 270px;
  color: #857370 !important;
  font-size: 13px !important;
  line-height: 1.5;
}

#sc-addresses #addr-list > .addr-card {
  box-sizing: border-box;
  width: calc(100% - 32px);
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  overflow-wrap: anywhere;
}

#sc-addresses .prof-body {
  max-width: 720px;
  margin: 0 auto;
}

#sc-addresses #addr-list {
  box-shadow: 0 14px 34px rgba(28, 20, 16, 0.08) !important;
  background: #FFF8F6 !important;
}

#sc-addresses #addr-list .addr-card {
  padding: 20px !important;
  border-bottom: 1px solid rgba(28, 20, 16, 0.08);
  background: var(--md-surface-4) !important;
}

#sc-addresses #addr-list .addr-card:last-child { border-bottom: 0; }

/* Shared profile-family surfaces. Top bars and hero sections are intentionally excluded. */
html body #sc-profile,
html body #sc-edit-profile,
html body #sc-addresses,
html body #sc-loyalty,
html body #sc-notif,
html body #sc-language,
html body #sc-help,
html body #sc-about,
html body #sc-points-info,
html body #sc-profile .scroll,
html body #sc-edit-profile .scroll,
html body #sc-addresses .scroll,
html body #sc-loyalty .scroll,
html body #sc-notif .scroll,
html body #sc-language .scroll,
html body #sc-help .scroll,
html body #sc-about .scroll,
html body #sc-points-info .scroll {
  background: #FFF8F6 !important;
}

html body #sc-profile .prof-card,
html body #sc-addresses #addr-list,
html body #sc-addresses #addr-list .addr-card,
html body #sc-language .prof-card,
html body #sc-language .lang-item,
html body #sc-loyalty .lq-item,
html body #sc-loyalty #my-coupons-grid,
html body #sc-loyalty #rew-grid,
html body #sc-loyalty #rew-grid > .rew-card,
html body #sc-notif #notif-body > *,
html body #sc-help .faq-card,
html body #sc-help .contact-card,
html body #sc-help .support-message-card,
html body #sc-about .about-sec,
html body #sc-points-info .scroll > div:nth-child(2) > div,
html body #sc-points-info .scroll > div:nth-child(3) > div {
  background: var(--md-surface-4) !important;
}

html body #sc-edit-profile .fw {
  background: var(--md-surface-4) !important;
}

html body #sc-language #lang-list,
html body #sc-language .lang-item,
html body #sc-language .lang-item:hover,
html body #sc-language .lang-item:focus-within,
html body #sc-notif #notif-body,
html body #sc-notif #notif-body .nempty,
html body #sc-notif #notif-body > * {
  background: var(--md-surface-4) !important;
}

html body #sc-help .scroll > div:nth-child(2) > div,
html body #sc-help .scroll > div:nth-child(6) > div,
html body #sc-help .scroll > div:nth-child(7) {
  background: var(--md-surface-4) !important;
}

html body #sc-help .support-message-card {
  background: linear-gradient(180deg, #ffffff 0%, #fff8ed 100%) !important;
  border: 1px solid rgba(245, 158, 11, 0.22) !important;
  box-shadow: 0 18px 36px rgba(232, 80, 10, 0.12) !important;
}

html body #shell .screen > .tbar .tbar-title.w {
  color: #fff !important;
}

html body #shell #sc-about > .tbar .tbar-title.w {
  color: #fff !important;
}

html body #shell #sc-about > .tbar.dark {
  background: linear-gradient(115deg, #1c1410 0%, #47200f 66%, #a83c10 145%) !important;
  border-bottom: 0 !important;
  box-shadow: 0 12px 28px rgba(28, 20, 16, 0.18) !important;
}

html body #sc-catpage .search-full-bar {
  margin: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

html body #sc-catpage > .top-app-bar > .ipoo-inline-45e9f5a9b2 {
  position: relative !important;
  align-self: stretch !important;
  height: 68px !important;
  min-width: 0 !important;
}

html body #sc-catpage .cat-top-kicker {
  position: absolute !important;
  top: 2px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  margin: 0 !important;
  color: #ffb070 !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  line-height: 1.1 !important;
  text-transform: uppercase !important;
}

html body #sc-catpage .search-full-bar {
  position: absolute !important;
  top: 16px !important;
  left: 50% !important;
  width: max-content !important;
  min-width: 0 !important;
  transform: translateX(-50%) !important;
}

#sc-addresses .addr-acts {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  max-width: 100%;
  flex-wrap: wrap;
}

#sc-addresses .addr-act {
  min-height: 40px;
  border-radius: 999px;
  font-weight: 700;
}

html body #sc-addresses #addr-list {
  background: #FFF8F6 !important;
}

@media (max-width: 380px) {
  #sc-addresses .prof-body { padding-right: 12px !important; padding-left: 12px !important; }
  #sc-addresses #addr-list .addr-card { padding: 16px !important; }
}

/* Address hub redesign */
html body #sc-addresses {
  background: #FFF8F6 !important;
}

html body #sc-addresses .scroll {
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 112, 32, 0.1), transparent 28%),
    #FFF8F6 !important;
}

html body #sc-addresses .prof-body {
  width: 100%;
  max-width: 720px;
  padding: 22px 16px 40px !important;
}

html body #sc-addresses .address-intro {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  margin-bottom: 24px;
  border: 1px solid rgba(232, 80, 10, 0.14);
  border-radius: 30px;
  background: linear-gradient(135deg, #fffaf7 0%, #ffe9df 100%);
  box-shadow: 0 14px 32px rgba(84, 48, 26, 0.08);
}

html body #sc-addresses .address-intro-icon {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 18px;
  background: #1c1410;
  color: #ffb070;
}

html body #sc-addresses .address-intro-icon svg {
  width: 25px;
  height: 25px;
}

html body #sc-addresses .address-intro-icon .address-intro-logo {
  width: 27px;
  height: 34px;
}

html body #sc-addresses .address-intro-copy {
  min-width: 0;
}

html body #sc-addresses .address-kicker {
  margin-bottom: 6px;
  color: #b8420b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

html body #sc-addresses .address-intro h1,
html body #sc-addresses .address-list-heading h2 {
  margin: 0;
  color: #1c1410;
  font-family: 'Google Sans', 'DM Sans', sans-serif;
  letter-spacing: 0;
}

html body #sc-addresses .address-intro h1 {
  max-width: 250px;
  font-size: 23px;
  font-weight: 800;
  line-height: 1.08;
}

html body #sc-addresses .address-intro p {
  max-width: 270px;
  margin: 8px 0 0;
  color: #857370;
  font-size: 13px;
  line-height: 1.45;
}

html body #sc-addresses .address-list-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 2px 12px;
}

html body #sc-addresses .address-list-heading h2 {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.15;
}

html body #sc-addresses .address-list-note {
  padding-bottom: 2px;
  color: #a08e88;
  font-size: 11px;
  line-height: 1.3;
  text-align: right;
}

html body #sc-addresses #addr-list {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

html body #sc-addresses #addr-list > .addr-card {
  width: calc(100% - 32px);
  margin: 0 16px 14px;
  border: 1px solid rgba(120, 75, 40, 0.12) !important;
  border-radius: 24px !important;
  background: linear-gradient(135deg, #fffaf7 0%, #ffe9df 100%) !important;
  box-shadow: 0 8px 20px rgba(84, 48, 26, 0.06) !important;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

html body #sc-addresses #addr-list > .addr-card:hover {
  border-color: rgba(232, 80, 10, 0.3) !important;
  box-shadow: 0 12px 26px rgba(84, 48, 26, 0.1) !important;
  transform: translateY(-2px);
}

html body #sc-addresses #addr-list > .addr-card.def {
  border-color: rgba(232, 80, 10, 0.5) !important;
  background: linear-gradient(135deg, #fffaf7 0%, #ffe9df 100%) !important;
}

html body #sc-addresses #addr-list > .addr-card::before {
  width: 5px;
  height: 100%;
  border-radius: 24px 0 0 24px;
  background: transparent;
}

html body #sc-addresses #addr-list > .addr-card.def::before {
  background: #ff4d00;
}

html body #sc-addresses #addr-list .addr-top {
  margin-bottom: 14px;
}

html body #sc-addresses #addr-list .addr-lbl {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #1c1410;
  font-size: 16px;
  font-weight: 800;
}

html body #sc-addresses #addr-list .addr-lbl svg {
  width: 20px;
  height: 20px;
  color: #e8500a;
}

html body #sc-addresses #addr-list .addr-def-badge {
  padding: 6px 9px;
  border-radius: 999px;
  background: #ff4d00;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html body #sc-addresses #addr-list .addr-txt {
  color: #857370;
  font-size: 14px;
  line-height: 1.5;
}

html body #sc-addresses #addr-list .addr-txt[style*="font-weight"] {
  margin-bottom: 4px !important;
  color: #1c1410 !important;
  font-size: 17px;
  font-weight: 800 !important;
}

html body #sc-addresses #addr-list .addr-acts {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(120, 75, 40, 0.1);
}

html body #sc-addresses #addr-list .addr-act {
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid rgba(232, 80, 10, 0.32);
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.42);
  color: #c34a13;
  font-size: 12px;
  font-weight: 800;
}

html body #sc-addresses #addr-list .addr-act.del {
  border-color: rgba(186, 26, 26, 0.35);
  background: rgba(255, 255, 255, 0.28);
  color: #ba1a1a;
}

html body #sc-addresses #addr-list .addr-act:hover {
  background: #fff;
  transform: translateY(-1px);
}

html body #sc-addresses #addr-list .empty-st {
  min-height: 230px !important;
  border: 1px dashed rgba(232, 80, 10, 0.28);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.36) !important;
}

@media (max-width: 380px) {
  html body #sc-addresses .address-intro { padding: 16px; }
  html body #sc-addresses .address-list-note { display: none; }
}
