/* 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[hidden] {
  display: none !important;
  visibility: hidden !important;
}

#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-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-language .scroll,
html body #sc-help .scroll,
html body #sc-about .scroll,
html body #sc-points-info .scroll {
  background: #FFF8F6 !important;
}

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-help .faq-card,
html body #sc-help .contact-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-profile .prof-card {
  background: var(--md-surface-2) !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-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 #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;
}

#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:disabled,
html body #sc-addresses #addr-list .addr-act:disabled:hover {
  opacity: 0.52;
  cursor: not-allowed;
  transform: none;
}

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; }
}

html body #shell #sc-help .contact-message-panel > .support-message-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid #e8edf5;
  border-radius: 24px;
  background: var(--md-surface-2);
  box-shadow: 0 16px 36px rgba(31, 51, 82, 0.08);
}

html body #shell #sc-help .support-message-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding-bottom: 17px;
  border-bottom: 1px solid #edf0f5;
}

html body #shell #sc-help .contact-message-panel .support-message-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(0, 122, 255, 0.12);
  border-radius: 16px;
  background: #eef6ff;
  color: #007aff;
}

html body #shell #sc-help .contact-message-panel .support-message-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
}

html body #shell #sc-help .support-message-heading-copy {
  min-width: 0;
  padding-top: 1px;
}

html body #shell #sc-help .contact-message-panel .support-message-title {
  margin: 0 0 5px;
  color: #172033;
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

html body #shell #sc-help .contact-message-panel .support-message-copy {
  margin: 0;
  color: #657187;
  font-size: 13px;
  line-height: 1.55;
}

html body #shell #sc-help .contact-message-panel .support-message-body {
  width: 100%;
  min-width: 0;
}

html body #shell #sc-help .support-message-compose {
  padding-top: 2px;
}

html body #shell #sc-help .support-message-label {
  display: block;
  margin-bottom: 8px;
  color: #344054;
  font-size: 13px;
  font-weight: 700;
}

html body #shell #sc-help .support-message-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

html body #shell #sc-help .support-message-prompts button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #dce8f8;
  border-radius: 999px;
  background: #f5f9ff;
  color: #2867a8;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease;
}

html body #shell #sc-help .support-message-prompts button:hover {
  border-color: #b7d5fb;
  background: #eaf3ff;
}

html body #shell #sc-help .support-message-prompts button:focus-visible {
  outline: 3px solid rgba(0, 122, 255, 0.2);
  outline-offset: 2px;
}

html body #shell #sc-help .contact-message-panel .support-message-input {
  display: block;
  width: 100%;
  min-height: 96px !important;
  height: 96px;
  max-height: 220px;
  margin: 0;
  padding: 13px 15px;
  border: 1px solid #dfe5ee;
  border-radius: 16px;
  background: #fff;
  color: #172033;
  font: inherit;
  font-size: 15px;
  line-height: 1.55;
  resize: vertical;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

html body #shell #sc-help .contact-message-panel .support-message-input::placeholder {
  color: #8792a4;
  opacity: 1;
}

html body #shell #sc-help .contact-message-panel .support-message-input:focus {
  border-color: #007aff;
  background: #fff;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.12);
}

html body #shell #sc-help .contact-message-panel .support-message-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

html body #shell #sc-help .contact-message-panel .support-message-counter {
  color: #78859a;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

html body #shell #sc-help .contact-message-panel .support-message-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 142px;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 16px;
  background: #006ee6;
  color: #fff;
  box-shadow: 0 7px 16px rgba(0, 102, 214, 0.2);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

html body #shell #sc-help .contact-message-panel .support-message-button svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

html body #shell #sc-help .contact-message-panel .support-message-button:hover {
  background: #005fc7;
  box-shadow: 0 9px 20px rgba(0, 102, 214, 0.24);
  transform: translateY(-1px);
}

html body #shell #sc-help .contact-message-panel .support-message-button:focus-visible {
  outline: 3px solid rgba(0, 122, 255, 0.28);
  outline-offset: 3px;
}

html body #shell #sc-help .contact-message-panel .support-message-button:disabled {
  box-shadow: none;
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

html body #shell #sc-help .support-conversation[hidden] {
  display: none;
}

html body #shell #sc-help .support-conversation {
  min-width: 0;
  padding: 15px;
  border: 1px solid #e4eaf3;
  border-radius: 18px;
  background: #f7f9fc;
}

html body #shell #sc-help .support-conversation-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}

html body #shell #sc-help .support-conversation-title {
  margin: 0;
  color: #263248;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: -0.01em;
}

html body #shell #sc-help .support-conversation-copy {
  margin: 4px 0 0;
  color: #78859a;
  font-size: 11px;
}

html body #shell #sc-help .support-conversation-badge {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid #d8e8fd;
  border-radius: 999px;
  background: #edf5ff;
  color: #1768b5;
  font-size: 10px;
  font-weight: 750;
}

html body #shell #sc-help .contact-message-panel .support-thread {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-height: 0;
  max-height: 340px;
  margin: 0;
  padding: 2px 3px 4px;
  overflow-y: auto;
  overflow-anchor: none;
  overscroll-behavior: contain;
  scrollbar-color: #c8d3e2 transparent;
  scrollbar-width: thin;
}

html body #shell #sc-help .contact-message-panel .support-thread-latest {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  margin: 10px auto 0;
  padding: 0 14px;
  border: 1px solid rgba(255, 77, 0, 0.18);
  border-radius: 999px;
  background: var(--md-surface-2);
  color: var(--md-on-surface);
  box-shadow: 0 4px 12px rgba(28, 20, 16, 0.08);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

html body #shell #sc-help .contact-message-panel .support-thread-latest[hidden] {
  display: none !important;
}

html body #shell #sc-help .contact-message-panel .support-thread-latest svg {
  width: 16px;
  height: 16px;
}

html body #shell #sc-help .contact-message-panel .support-msg {
  width: fit-content;
  max-width: min(88%, 540px);
  gap: 6px;
  padding: 10px 13px 8px;
  border: 1px solid #e3e8ef;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(26, 43, 69, 0.04);
  color: #263248;
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

html body #shell #sc-help .contact-message-panel .support-msg.support-msg-user {
  align-self: flex-end;
  border-color: #dce4ef;
  border-bottom-right-radius: 6px;
  background: #fff;
  color: #263248;
}

html body #shell #sc-help .contact-message-panel .support-msg.support-msg-admin {
  align-self: flex-start;
  border-color: #006ee6;
  border-bottom-left-radius: 6px;
  background: #006ee6;
  color: #fff;
}

html body #shell #sc-help .contact-message-panel .support-msg-author {
  color: #758197;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}

html body #shell #sc-help .contact-message-panel .support-msg-admin .support-msg-author,
html body #shell #sc-help .contact-message-panel .support-msg-admin .support-msg-time {
  color: #fff;
}

html body #shell #sc-help .contact-message-panel .support-msg-text {
  color: inherit;
  white-space: pre-wrap;
}

html body #shell #sc-help .contact-message-panel .support-msg-time {
  align-self: flex-end;
  color: #8994a6;
  font-size: 10px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

html body #shell #sc-help .support-msg-notification-target {
  outline: 2px solid #007aff;
  outline-offset: 2px;
  scroll-margin-block: 35vh;
}

@media (max-width: 380px) {
  html body #shell #sc-help .contact-message-panel > .support-message-card {
    gap: 17px;
    padding: 16px;
  }

  html body #shell #sc-help .contact-message-panel .support-message-footer {
    align-items: center;
  }

  html body #shell #sc-help .contact-message-panel .support-message-prompts {
    gap: 6px;
  }

  html body #shell #sc-help .contact-message-panel .support-message-button {
    min-width: 0;
    padding: 0 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body #shell #sc-help .contact-message-panel .support-message-input,
  html body #shell #sc-help .contact-message-panel .support-message-button,
  html body #shell #sc-help .contact-message-panel .support-message-prompts button {
    transition: none;
  }
}
