.account-home {
  --ah-blue: #2434ed;
  --ah-text: #323239;
  --ah-card: #f2f2fa;
  padding: 40px 32px;
  border-radius: 24px;
  background: #fff;
  color: var(--ah-text);
  min-width: 0;
}
.account-home h1, .account-home h2 {
  margin: 0;
  font-family: inherit;
  font-weight: 700;
  letter-spacing: -.033em;
  line-height: 1.18;
}
.account-home h1, .account-home .ah-more-title {font-size: 2rem;}
.account-home h1 span {color: var(--ah-blue);}
.account-home h2 {font-size: 1.5rem;}
.ah-address, .ah-section-head, .ah-membership {display: flex; align-items: center; justify-content: space-between; gap: 16px;}
.ah-address {padding: 24px 0 20px; border-bottom: 1px solid #dadbe3; margin-bottom: 24px;}
.ah-address p {font-size: .9375rem; line-height: 1.4; margin: 0; overflow-wrap: anywhere;}
.account-home .ah-quiet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  flex-shrink: 0;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: .875rem;
  font-weight: 500;
  line-height: 20px;
  text-decoration: none;
  background: #ededf5;
  color: var(--ah-text);
}
.account-home .ah-quiet:hover {background: #e0e3f4; color: #1c2ac4;}
.ah-widgets {display: grid; grid-template-columns: 2fr 1fr; gap: 12px;}
.ah-tracking, .ah-discount {border-radius: 16px; min-width: 0;}
.ah-tracking {padding: 28px 24px; background: var(--ah-blue); color: #fff;}
.ah-tracking h2 {color: #fff; font-size: 1.125rem;}
.ah-tracking .ah-section-head a {color: #fff; padding: 4px 8px; font-size: .875rem; font-weight: 500;}
.ah-tracking .ah-section-head a:hover {text-decoration: underline;}
.ah-tracking form {display: flex; gap: 12px; margin-top: 20px;}
.ah-tracking input {
  height: 40px; padding: 0 14px; min-width: 0; width: 100%; border: 0;
  border-radius: 7px; background: #fff; color: var(--ah-text); font-size: 1rem;
}
.ah-tracking input::placeholder {color: #9999a4;}
.ah-tracking button {
  display: grid; place-content: center; flex: none; width: 40px; height: 40px;
  padding: 0; border-radius: 8px; background: #5260f2; color: #fff;
}
.ah-tracking button:hover {background: #6671f5;}
.ah-discount {
  display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start;
  padding: 18px 16px 16px; min-height: 192px;
  background: #323239 url("/assets/account/discount.webp") right center / auto 112% no-repeat;
  color: white;
}
.ah-discount > p {line-height: 1.3; font-size: 1.125rem; text-shadow: 0 0 5px #323239;}
.ah-discount > div {display: flex; align-items: center; gap: 6px;}
.ah-discount .ah-quiet {background: #fff; color: #1c2ac4;}
.ah-discount details {position: relative;}
.ah-discount summary {
  display: grid; place-content: center; list-style: none; cursor: pointer; width: 32px; height: 32px;
  border-radius: 6px; background: #616168; color: #fff;
}
.ah-discount summary::-webkit-details-marker {display: none;}
.ah-discount details p {
  position: absolute; z-index: 2; bottom: calc(100% + 6px); right: 0; width: min(224px, 58vw);
  padding: 12px; background: #fff; border: 1px solid #dedee6; border-radius: 10px;
  color: var(--ah-text); font-size: .875rem; line-height: 1.45; box-shadow: 0 6px 18px #19193526;
}
.ah-promo, .ah-premium-status {
  margin-top: 24px;
  background: var(--cream);
}
.ah-promo {
  padding: 36px 40px 32px;
  border-radius: 24px;
}
.ah-premium-status {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  padding: 18px 40px;
  border-radius: 24px;
}
.ah-premium-status span {color: var(--blue);}
.account-home .ah-premium-status h2 {
  font-size: clamp(1.125rem, 2.2vw, 1.5rem);
  font-weight: 740;
}
:is(.account-home, .bc-shell) .ah-promo-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .065em;
  text-transform: uppercase;
}
.ah-promo-label b {color: var(--blue); font-size: 16px;}
:is(.account-home, .bc-shell) .ah-promo h2 {
  margin: 14px 0 12px;
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 740;
  line-height: .98;
  letter-spacing: -.03em;
}
.ah-promo h2 em {font-style: normal; color: var(--blue);}
.ah-promo p {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.4;
}
.ah-promo-actions {display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 22px;}
.ah-section, .ah-more-title, .ah-membership {margin-top: 48px;}
.account-home .ah-more-title {margin-top: 48px;}
.ah-section-head {margin-bottom: 24px;}
.ah-tracking .ah-section-head {margin: 0;}
.ah-description {margin: -12px 0 20px; color: #61616c; font-size: 1rem;}
.ah-grid {display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px;}
.ah-sends {grid-template-columns: repeat(3,minmax(0,1fr)) minmax(0,1.54fr);}
.ah-catalog {grid-template-columns: repeat(2,minmax(0,1fr));}
.ah-charity {grid-template-columns: 1fr;}
.ah-tile {
  display: block; position: relative; isolation: isolate;
  min-height: 120px; padding: 12px 14px; border: 0; border-radius: 16px; overflow: hidden;
  background: var(--ah-card); color: var(--ah-text); text-align: left;
  font: inherit; text-decoration: none;
}
.ah-tile:hover, .ah-tile:focus-visible {color: var(--ah-blue);}
.ah-tile picture {
  position: absolute; z-index: -1; right: 0; bottom: 0;
  width: min(77%, 200px); height: 100%; pointer-events: none;
}
.ah-tile img {display: block; width: 100%; height: 100%; object-fit: contain; object-position: right bottom;}
.ah-caption {position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 96px;}
.ah-tile strong {font-weight: 600; font-size: 1rem; line-height: 1.25; max-width: 88%;}
.ah-tile small {font-size: .875rem; line-height: 1.25; color: #646470; max-width: 78%;}
.ah-tile small .price-was,
.ah-tile small .price-now {white-space: nowrap;}
.ah-tile small .price-was {color: #8d8d98; margin-right: .35em;}
.ah-tile small .price-now,
.ah-tile:hover .price-now,
.ah-tile:focus-visible .price-now {color: #d3122a;}
.ah-tall .ah-caption small {max-width: none; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .35em;}
.ah-tall .ah-caption small .price-was {margin-right: 0;}
.ah-tall {grid-row: span 2; min-height: 252px; display: flex; align-items: flex-end;}
.ah-tall::before {
  content: ""; position: absolute; inset: 0 0 auto; z-index: -2; height: 51%; border-radius: 0 0 12px 12px;
  background: var(--ah-tall-bg);
}
.ah-parcel {--ah-tall-bg: #8467ab;}
.ah-letter {--ah-tall-bg: #6673ee;}
.ah-courier {--ah-tall-bg: #de873c;}
.ah-tall picture {inset: 0 0 auto; width: 100%; height: 77%;}
.ah-tall img {object-position: center 60%;}
.ah-tall .ah-caption {width: 100%; min-height: 40px; justify-content: center; padding-right: 20px; background: var(--ah-card);}
.ah-tall .ah-caption::after {
  content: ""; position: absolute; right: 2px; top: 14px; width: 7px; height: 7px;
  border: solid #72727b; border-width: 2px 2px 0 0; transform: rotate(45deg);
}
.ah-short {grid-column: 4;}
.ah-short strong {max-width: 76%;}
.ah-wide {grid-column: span 2;}
.ah-express {margin-top: 12px;}
.ah-express .ah-tile {background: #fcefe1;}
.ah-express picture {width: min(47%,200px);}
.ah-banners {display: grid; gap: 24px; margin-top: 36px;}
.ah-banner {display: block; overflow: hidden; border-radius: 16px;}
.ah-banner picture,.ah-banner img {display: block; width: 100%; height: auto;}
.ah-membership {background: #e9edff; border-radius: 16px; padding: 20px 24px; margin-top: 24px;}
.ah-membership h2 {font-size: 1.125rem;}
.ah-membership p {margin: 6px 0 0; font-size: .9375rem;}
.ah-membership .ah-quiet {color: #fff; background: var(--ah-blue);}
@media (max-width: 1100px) {
  .ah-widgets {grid-template-columns: 1.6fr 1fr;}
  .account-home {padding: 32px 24px;}
  .ah-sends {grid-template-columns: repeat(3,minmax(0,1fr));}
  .ah-tall {grid-row: auto; min-height: 204px;}
  .ah-short {grid-column: auto;}
  .ah-short:last-child {grid-column: span 2;}
}
@media (max-width: 720px) {
  .account-home {padding: 24px 16px 32px; border-radius: 24px;}
  .account-home h1,.account-home .ah-more-title {font-size: 1.5rem;}
  .account-home h2 {font-size: 1.125rem;}
  .ah-address {align-items: flex-start; flex-direction: column; gap: 10px; padding: 24px 0; margin: 0; border: 0;}
  .ah-widgets,.ah-services {grid-template-columns: 1fr;}
  .ah-tracking {padding: 26px 24px 24px;}
  .ah-discount {min-height: 172px; padding: 16px 20px;}
  .ah-promo {padding: 24px 20px 22px; border-radius: 18px;}
  .ah-premium-status {padding: 16px 20px; border-radius: 18px;}
  :is(.account-home, .bc-shell) .ah-promo h2 {font-size: 34px;}
  .ah-promo p {font-size: 15px;}
  .ah-section {margin-top: 44px;}
  .ah-grid:not(.ah-sends):not(.ah-catalog) {grid-template-columns: 1fr;}
  .ah-wide {grid-column:auto;}
  .ah-grid {gap: 12px;}
  .ah-tall {min-height: 178px;}
  .ah-tile {border-radius: 15px; padding: 12px;}
  .ah-tile picture {width: min(58%,200px);}
  .ah-tile.ah-tall picture {width: 100%; height: 72%;}
  .ah-tile strong {font-size: .9375rem;}
  .ah-express {margin-top: 32px;}
  .ah-membership {align-items: flex-start; flex-direction: column; gap: 12px;}
}
@media (max-width: 470px) {
  .ah-tall {min-height: 148px;}
  .ah-tall .ah-caption {padding-right: 0;}
  .ah-tall .ah-caption::after {display: none;}
  .ah-tall strong {max-width: 100%;}
  .ah-short,.ah-short:last-child {grid-column: 1/-1; min-height: 74px;}
  .ah-short .ah-caption {min-height: 50px;}
  .ah-catalog {grid-template-columns: 1fr;}
  .ah-section-head {gap: 8px;}
}
