.site-footer.market-footer {
  display: block;
  padding: 28px max(24px, calc((100% - 1480px) / 2)) 24px;
  border-top: 3px solid var(--m9-teal);
}
.market-footer .footer-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  align-items: center;
  gap: 24px;
  padding-bottom: 22px;
}
.market-footer .footer-brand {
  gap: 12px;
}
.market-footer .footer-brand > img {
  width: 120px;
  height: auto;
}
.market-footer .footer-brand b {
  font-size: 1rem;
}
.market-footer p {
  line-height: 1.55;
  font-size: 0.8125rem;
}
.market-footer .footer-company {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  color: var(--m9-chart-grid);
  font-size: 0.875rem;
}
.market-footer .footer-company span {
  color: var(--m9-disabled-text);
}
.site-footer.market-footer .footer-mascot {
  width: 180px;
  height: 200px;
  align-self: end;
}
.market-footer .footer-directory {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px;
  padding-block: 20px;
  border-block: 1px solid
    color-mix(in srgb, var(--m9-on-primary) 13%, transparent);
}
.market-footer .footer-section {
  min-width: 0;
}
.market-footer .footer-section h2 {
  margin: 0 0 6px;
  color: var(--m9-on-primary);
  font-size: 0.875rem;
  line-height: 1.5;
  font-weight: 800;
}
.market-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.market-footer .footer-section a,
.market-footer .footer-section button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 28px;
  max-width: 100%;
  padding: 2px 0;
  color: var(--m9-input-border);
  font-family: var(--m9-font-sans);
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.45;
  text-decoration: none;
  text-align: left;
  overflow-wrap: anywhere;
}
.market-footer .footer-section a:hover,
.market-footer .footer-section button:hover {
  color: var(--m9-disabled-text);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.market-footer a:focus-visible,
.market-footer button:focus-visible {
  border-radius: var(--m9-radius-xs);
}
.market-footer .footer-mobile {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid
    color-mix(in srgb, var(--m9-on-primary) 13%, transparent);
}
.market-footer .footer-mobile h3 {
  margin: 0 0 4px;
  color: var(--m9-on-primary);
  font-size: 0.875rem;
}
.market-footer .footer-mobile button {
  color: var(--m9-disabled-text);
}
.market-footer .footer-social-status {
  margin-bottom: 8px;
  font-size: 0.75rem;
}
.market-footer .footer-social-icon {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--m9-disabled-text);
}
.market-footer .footer-social-icon img {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.market-footer .footer-service-marks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  padding-block: 24px;
  border-bottom: 1px solid
    color-mix(in srgb, var(--m9-on-primary) 13%, transparent);
}
.market-footer .footer-marks-panel {
  min-width: 0;
}
.market-footer .footer-marks-panel h2 {
  margin: 0 0 12px;
  color: var(--m9-on-primary);
  font-size: 0.875rem;
  line-height: 1.6;
}
.market-footer .footer-logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
  gap: 8px;
  max-width: 400px;
}
.market-footer .footer-service-logo {
  height: 44px;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 1px solid var(--m9-border);
  border-radius: var(--m9-radius-sm);
  background: var(--m9-on-primary);
}
.market-footer .footer-service-logo img {
  display: block;
  width: 100%;
  max-width: 72px;
  height: 24px;
  object-fit: contain;
}
.market-footer .footer-marks-panel:last-of-type .footer-logo-grid {
  max-width: 320px;
}
.market-footer .footer-logo-flash {
  background: var(--m9-text-muted);
  border-color: var(--m9-border);
}
.market-footer .footer-marks-note {
  grid-column: 1 / -1;
  margin: -18px 0 0;
  font-size: 0.75rem;
}
.market-footer .footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 24px;
  padding-top: 20px;
  color: var(--m9-disabled-text);
  font-size: 0.8125rem;
}
.market-footer .footer-bottom p {
  margin: 0;
}
.market-footer .footer-demo-note {
  max-width: none;
  margin-top: 14px;
  color: var(--m9-disabled-text);
  font-size: 0.75rem;
}
.footer-info {
  padding: 12px 4px;
}
.footer-info h2 {
  margin: 0 0 16px;
  padding-right: 24px;
  font-size: 1.25rem;
}
.footer-info h3 {
  font-size: 1rem;
  margin: 20px 0 6px;
}
.footer-info p,
.footer-info li {
  line-height: 1.8;
  color: var(--m9-neutral);
}
.footer-info p {
  margin: 8px 0;
}
.footer-info .footer-info-note {
  padding: 12px 16px;
  background: var(--m9-surface-secondary);
  border-radius: var(--m9-radius-lg);
}
.company-document {
  padding: 30px;
  font-size: 1rem;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.company-document h2 {
  padding-right: 34px;
  line-height: 1.5;
}
.company-document h3 {
  font-size: 1rem;
  margin: 28px 0 10px;
  line-height: 1.6;
}
.company-document h4 {
  font-size: 1rem;
  margin: 22px 0 8px;
  line-height: 1.6;
}
.company-document p,
.company-document li {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--m9-text-secondary);
}
.company-document ul,
.company-document ol {
  padding-left: 24px;
}
.company-document li + li {
  margin-top: 12px;
}
.company-document a {
  color: var(--m9-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.company-document .company-lead {
  font-size: 1rem;
  color: var(--m9-brand-navy);
  font-weight: 700;
}
.company-contact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 28px;
}
.company-contact h3 {
  margin: 0 0 8px;
}
.company-contact address {
  font-style: normal;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.company-contact-links {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.company-contact-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  overflow-wrap: anywhere;
}
.market-footer .footer-contact {
  padding: 28px 0 22px;
  border-bottom: 1px solid
    color-mix(in srgb, var(--m9-on-primary) 13%, transparent);
  color: var(--m9-input-border);
  font-size: 0.875rem;
}
.market-footer .footer-contact h3 {
  color: var(--m9-on-primary);
  font-size: 1rem;
  line-height: 1.6;
}
.market-footer .footer-contact a {
  color: var(--m9-disabled-text);
}
.policy-date {
  font-size: 0.875rem !important;
  color: var(--m9-text-muted) !important;
}
.policy-scope {
  padding: 16px 20px;
  margin: 20px 0;
  border-left: 3px solid var(--m9-primary);
  background: var(--m9-surface-secondary);
  border-radius: 0 var(--m9-radius-lg) var(--m9-radius-lg) 0;
}
.policy-scope p {
  margin-bottom: 0;
}
.policy-section {
  margin-top: 12px;
  border: 1px solid var(--m9-border);
  border-radius: var(--m9-radius-lg);
}
.policy-section summary {
  padding: 16px 18px;
  min-height: 52px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.7;
  color: var(--m9-brand-navy);
}
.policy-section[open] summary {
  border-bottom: 1px solid var(--m9-border);
  background: var(--m9-surface-secondary);
  border-radius: var(--m9-radius-lg) var(--m9-radius-lg) 0 0;
}
.policy-section-body {
  padding: 6px 18px 18px;
}

.company-inline-button {
  min-height: 44px;
  padding: 10px 14px;
  margin: 6px 8px 6px 0;
  border: 1px solid var(--m9-input-border);
  border-radius: var(--m9-radius-md);
  background: var(--m9-surface-secondary);
  color: var(--m9-primary);
  text-align: left;
  font-size: 0.875rem;
  line-height: 1.65;
}
.company-document .guide-card h3 {
  margin-top: 12px;
}
.company-document .setting-row b {
  font-size: 1rem;
}
.company-document .setting-row small {
  font-size: 0.875rem;
  line-height: 1.7;
}
.company-document .setting-row {
  padding: 14px;
}
.company-document .privacy-reading {
  margin-top: 24px;
  border-top: 1px solid var(--m9-border);
}
.cart-btn,
.notification-btn {
  isolation: isolate;
  overflow: visible;
}
.cart-btn > .m9-icon-slot,
.notification-btn > .m9-icon-slot {
  z-index: 0;
}
.cart-btn > b,
.notification-btn > b {
  z-index: 2;
  min-width: 20px;
  height: 20px;
  line-height: 1;
  font-size: 0.75rem;
}
@media (max-width: 1120px) {
  .market-footer .footer-directory {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .market-footer .footer-socials {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 12px;
  }
}
@media (max-width: 820px) {
  .site-footer.market-footer {
    padding: 24px 16px;
  }
  .market-footer .footer-intro {
    grid-template-columns: minmax(0, 1fr) 110px;
    gap: 12px;
    padding-bottom: 24px;
  }
  .site-footer.market-footer .footer-mascot {
    width: 110px;
    height: 140px;
    grid-column: auto;
    grid-row: auto;
  }
  .market-footer .footer-brand > img {
    width: 105px;
  }
  .market-footer .footer-company {
    display: grid;
    gap: 2px;
  }
  .market-footer .footer-directory {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 18px;
    padding-block: 18px;
  }
  .market-footer .footer-section h2 {
    font-size: 0.875rem;
    margin-bottom: 6px;
  }
  .market-footer .footer-section a,
  .market-footer .footer-section button {
    min-height: 36px;
    font-size: 0.8125rem;
  }
  .market-footer .footer-social-section {
    grid-column: 1 / -1;
  }
  .market-footer .footer-socials {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .market-footer .footer-bottom {
    display: grid;
    gap: 10px;
  }
}
@media (max-width: 560px) {
  .market-footer .footer-service-marks {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
  .market-footer .footer-logo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .market-footer .footer-marks-note {
    margin-top: -8px;
  }
}
@media (max-width: 560px) {
  .market-footer .footer-intro {
    grid-template-columns: minmax(0, 1fr) 88px;
  }
  .site-footer.market-footer .footer-mascot {
    width: 88px;
    height: 112px;
  }
  .market-footer .footer-socials {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .company-document {
    padding: 24px 16px;
  }
  .company-contact {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .company-contact-links {
    flex-direction: column;
    gap: 4px;
  }
  .company-document .store-guide-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .policy-section summary {
    padding: 14px;
  }
  .policy-section-body {
    padding: 4px 14px 16px;
  }
}

.market-footer .footer-logo-mastercard {
  padding: 5px;
}
.market-footer .footer-logo-mastercard img {
  height: 32px;
}

/* Third-party marks keep their original geometry and their own asset ownership. */
.market-footer .footer-social-icon {
  flex: 0 0 var(--m9-space-8);
  width: var(--m9-space-8);
  height: var(--m9-space-8);
  background: var(--m9-surface);
  border-radius: var(--m9-radius-xs);
}
.market-footer [aria-labelledby="footer-shipping-title"] .footer-logo-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 400px;
}
.market-footer [aria-labelledby="footer-shipping-title"] .footer-service-logo {
  height: var(--m9-space-16);
  padding: var(--m9-space-3);
}
.market-footer [aria-labelledby="footer-shipping-title"] img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: var(--m9-space-10);
}
