/* Deposit Account Guide branding */
.dag-advertorial {
  background: #fef3c7;
  border-bottom: 1px solid #f59e0b;
  color: #92400e;
  font-family: Gotham, Arial, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.625rem 1rem;
  text-align: center;
  text-transform: uppercase;
}

.dag-author {
  color: #64666a;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.dag-logo-link {
  text-decoration: none;
}

.dag-logo-link:hover span {
  color: #00682c;
}

/* Center logo in header */
#global-nav {
  justify-content: center;
  position: relative;
}

.dag-logo-wrap {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  flex: none !important;
  min-width: 0;
  padding-inline: 1rem;
  width: max-content;
  z-index: 2;
}

.dag-logo-link {
  justify-content: center;
  white-space: nowrap;
}

#global-nav > .hidden.xl\:block,
#global-nav > label[for="navPanelSearch"],
#global-nav > label[for="navPanelNotifications"],
#global-nav #compass-auth-buttons,
#global-nav > button {
  display: none !important;
}

/* Summary table rating display */
.dag-rating {
  align-items: center;
  display: inline-flex;
  gap: 0.35rem;
}

.dag-rating-score {
  color: #008254;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.dag-rating-value {
  font-weight: 700;
}

/* Always show both comparison table and product cards */
[data-testid="summary-table-container"],
[data-testid="product-cards-container"] {
  display: block !important;
}

[data-testid="product-cards-container"] {
  margin-top: 2.75rem;
}

.dag-card-brand {
  align-items: center;
  display: flex;
  gap: 1rem;
  width: 100%;
}

.dag-card-rating {
  flex: 1 1 auto;
  margin-top: 0;
  min-width: 0;
  width: auto;
}

.dag-card-rating-label {
  color: #64666a;
  font-size: 0.75rem;
  line-height: 1.3;
  margin: 0 0 0.2rem;
}

[data-testid="product-card"] .dag-rating-score {
  color: #1877f2;
  font-size: 1rem;
}

/* Editorial content spacing fixes */

[data-testid="below-sections-editorial-content"] .cXdxXm {
  white-space: normal;
}

[data-testid="below-sections-editorial-content"] p {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

[data-testid="below-sections-editorial-content"] > div:last-child p {
  margin-bottom: 0;
}

.cYdhWw.hXlNIp.fzodws {
  row-gap: 1rem;
}

[data-testid="recap-list-section"] .AxjtB {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

[data-testid="recap-list-section"] h2 {
  margin-top: 0;
}

/* High-yield savings promo card sizing */
@media screen and (min-width: 48rem) {
  .fPSBzf.gEYBWy.pvuga {
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
  }

  .fPSBzf.gEYBWy.pvuga > div:first-child {
    flex: 1 1 auto;
    min-width: 0;
  }

  .ddgODW.kWNLZb.dgjxZl {
    flex: 0 0 auto;
    padding-top: 0;
  }

  [data-testid="high-yield-savings-variant"] {
    width: 100%;
    max-width: 320px;
    min-width: 0;
    padding: 1rem;
    border-radius: 12px;
    box-sizing: border-box;
  }

  [data-testid="high-yield-savings-variant"] .fzoAWH {
    padding-inline: 0;
  }

  [data-testid="high-yield-savings-variant"] .kYGeBB {
    font-size: 0.75rem;
    line-height: 1.35;
  }

  [data-testid="high-yield-savings-variant"] .ksLQOh {
    font-size: 0.6875rem;
    line-height: 1.4;
  }

  [data-testid="high-yield-savings-variant"] .fzoBen {
    padding-top: 0;
    margin-top: 0;
  }

  [data-testid="high-yield-savings-variant"] .fzoAVV {
    padding-bottom: 0.625rem;
  }

  [data-testid="high-yield-savings-variant"] .cXFTqP {
    gap: 0.5rem;
  }

  [data-testid="high-yield-savings-variant"] .fzoNxe {
    padding-inline: 0;
  }
}

/* Product cards — horizontal branding + details layout */
[data-testid="product-card"] .hDGJaH {
  border-color: #e2e2e6;
}

[data-testid="product-card"] > div > .fzoAWH {
  padding: 1.5rem 1.75rem 1.25rem;
}

[data-testid="product-card"] .fzoAVA > .bxiRLV {
  color: #1a1a1a;
  display: block;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0;
  text-decoration: none;
}

[data-testid="product-card"] .fzoAWH > .fzoAVA:has(> .bxiRLV) {
  margin-bottom: 1rem;
}

[data-testid="product-card"] .eluWnz {
  align-items: flex-start;
  display: flex !important;
  flex-direction: column;
  gap: 1.25rem;
}

[data-testid="product-card"] .iRgpoQ.fPSBzf.fzpofr.kXHtvS {
  flex: 0 0 auto;
  margin-right: 0 !important;
  width: 100%;
}

[data-testid="product-card"] .fPSBzf.fzoAVA[style*="--cta-image-width"] {
  align-items: stretch;
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
  width: 100%;
}

[data-testid="product-card"] .fPSBzf.fzoAVA[style*="--cta-image-width"] > div {
  width: 100%;
}

[data-testid="product-card"] .jxpqKJ.kCCKNM,
[data-testid="product-card"] .kCCKNM {
  flex: 0 0 auto;
  width: 140px !important;
}

[data-testid="product-card"] .bSaQxa.dVAkhb {
  justify-content: flex-start;
}

[data-testid="product-card"] .dVAkhb img {
  max-height: 56px;
  max-width: 140px;
  width: auto;
}

[data-testid="product-card"] .bgjuRb.gPeiPq,
[data-testid="product-card"] .bgjuRb.diIEqL {
  display: block !important;
  margin-top: 1rem;
  max-width: none !important;
  padding-top: 0;
  width: 100%;
}

[data-testid="product-card"] .bYPzoC.gPejbc.diIEdR {
  display: none !important;
}

[data-testid="product-card"] [data-testid="cta-button"] {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  width: 100%;
}

[data-testid="product-card"] [data-testid="cta-button"] .bZwbCY {
  display: none;
}

[data-testid="product-card"] [data-testid="cta-subtext"] {
  margin-top: 0.5rem;
}

[data-testid="product-card"] [data-testid="cta-subtext"] span {
  color: #64666a;
  font-size: 0.8125rem;
}

[data-testid="product-card"] .fPSBzf.iRgpoQ.fzoBeq.hWfBPC.kdFIjO {
  flex: 1 1 auto;
  gap: 0;
  margin-top: 0 !important;
  min-width: 0;
  width: 100%;
}

[data-testid="product-card"] .fzoNwz {
  align-items: flex-start;
  display: flex !important;
  flex-direction: row !important;
  gap: 1.25rem;
  padding-block: 0.875rem;
}

[data-testid="product-card"] .fzoNwz.bXBJez {
  border-bottom: 1px solid #e2e2e6;
}

[data-testid="product-card"] .fzoNwz:first-child {
  padding-top: 0;
}

[data-testid="product-card"] .fzoNwz:last-child {
  padding-bottom: 0;
}

[data-testid="product-card"] .jOZNBA {
  flex: 0 0 4.25rem !important;
  flex-basis: 4.25rem !important;
  min-width: 4.25rem;
}

[data-testid="product-card"] .jOZNBA .eEChUQ {
  color: #64666a;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: 0;
  text-transform: uppercase;
}

[data-testid="product-card"] .fzoAPu,
[data-testid="product-card"] .fzoAPu.dMMuNs {
  flex: 1 1 0 !important;
  margin-left: 0 !important;
  min-width: 0;
  width: auto !important;
}

[data-testid="product-card"] .fzoAPu .fzpbES {
  color: #1a1a1a;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}

[data-testid="product-card"] .fzoAPu .iHbpbo {
  color: #1a1a1a;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.4;
  margin: 0.2rem 0 0;
}

[data-testid="product-card"] .fzoAPu .cMGtQw {
  align-items: center;
  gap: 0.25rem;
}

[data-testid="product-card"] .dQkgWW.fzoAVA {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

@media screen and (min-width: 48rem) {
  [data-testid="product-card"] .eluWnz {
    flex-direction: row !important;
    gap: 3rem;
  }

  [data-testid="product-card"] .iRgpoQ.fPSBzf.fzpofr.kXHtvS {
    flex: 0 0 300px;
    max-width: 300px;
    width: 300px;
  }

  [data-testid="product-card"] .fPSBzf.iRgpoQ.fzoBeq.hWfBPC.kdFIjO {
    flex: 1 1 0;
  }

  [data-testid="product-card"] .jxpqKJ.kCCKNM,
  [data-testid="product-card"] .kCCKNM {
    width: 150px !important;
  }

  [data-testid="product-card"] .dVAkhb img {
    max-width: 150px;
  }
}

@media screen and (max-width: 47.99rem) {
  [data-testid="product-card"] .bgjuRb.gPeiPq,
  [data-testid="product-card"] .bgjuRb.diIEqL {
    display: none !important;
  }

  [data-testid="product-card"] .bYPzoC.gPejbc.diIEdR {
    display: block !important;
    margin-top: 1rem;
    max-width: none;
    width: 100%;
  }
}

/* Contact page */
.dag-contact-page {
  background: #f7f7f8;
  flex: 1;
  min-height: auto;
  padding: 2rem 1rem 2rem;
}

.dag-contact-inner {
  margin: 0 auto;
  max-width: 42rem;
}

.dag-contact-title {
  color: #1a1a1a;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

.dag-contact-lead {
  color: #64666a;
  font-size: 1.0625rem;
  line-height: 1.6;
  margin: 0 0 2rem;
}

.dag-contact-card {
  background: #fff;
  border: 1px solid #e2e2e6;
  border-radius: 8px;
  margin-bottom: 1.25rem;
  padding: 1.5rem;
}

.dag-contact-card-title {
  color: #008254;
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.dag-contact-card-text {
  color: #64666a;
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0 0 0.5rem;
}

.dag-contact-email {
  color: #008254;
  display: inline-block;
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0.25rem 0 0.75rem;
  text-decoration: none;
}

.dag-contact-email:hover {
  color: #00682c;
  text-decoration: underline;
}

.dag-contact-note {
  color: #8b8c8f;
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
}

.dag-contact-address {
  color: #64666a;
  font-size: 0.9375rem;
  font-style: normal;
  line-height: 1.7;
  margin: 0;
}

.dag-contact-list {
  color: #64666a;
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0;
  padding-left: 1.25rem;
}

.dag-contact-list li + li {
  margin-top: 0.5rem;
}

/* Footer legal links: even horizontal row (works even if Tailwind gap utilities are purged) */
.grid-footerNav .flex {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  column-gap: 2rem;
  row-gap: 0.5rem;
}

.grid-footerNav .flex > a {
  display: inline-block;
  padding: 0;
}

/* Compact footer (Contact page) */
.dag-compact-footer .grid-footer {
  gap: 0.75rem;
  padding: 1.5rem 1.5rem 1.25rem;
}

.dag-compact-footer .grid-copyrightSocial {
  margin-top: 0;
  padding-top: 0.25rem;
}

/* Privacy Policy page */
.dag-privacy-page {
  background: #f7f7f8;
  flex: 1;
  min-height: auto;
  padding: 2rem 1rem 2.5rem;
}

.dag-privacy-inner {
  margin: 0 auto;
  max-width: 48rem;
}

.dag-privacy-title {
  color: #1a1a1a;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5rem;
}

.dag-privacy-updated {
  color: #8b8c8f;
  font-size: 0.875rem;
  margin: 0 0 1.5rem;
}

.dag-privacy-content {
  background: #fff;
  border: 1px solid #e2e2e6;
  border-radius: 8px;
  padding: 1.75rem 1.5rem;
}

.dag-privacy-meta {
  color: #64666a;
  font-size: 0.9375rem;
  margin: 0 0 1.25rem;
}

.dag-privacy-section {
  margin-bottom: 1.75rem;
}

.dag-privacy-section:last-child {
  margin-bottom: 0;
}

.dag-privacy-h2 {
  color: #008254;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 0.875rem;
}

.dag-privacy-h3 {
  color: #1a1a1a;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 1.25rem 0 0.625rem;
}

.dag-privacy-notice {
  background: #f7f7f8;
  border-left: 3px solid #008254;
  color: #1a1a1a;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.6;
  margin: 1rem 0 1.25rem;
  padding: 0.875rem 1rem;
}

.dag-privacy-subhead {
  color: #1a1a1a;
  font-size: 1rem;
  margin: 0 0 0.75rem;
}

.dag-privacy-content p {
  color: #64666a;
  font-size: 0.9375rem;
  line-height: 1.65;
  margin: 0 0 0.875rem;
}

.dag-privacy-content p:last-child {
  margin-bottom: 0;
}

.dag-privacy-list {
  color: #64666a;
  font-size: 0.9375rem;
  line-height: 1.65;
  margin: 0 0 0.875rem;
  padding-left: 1.25rem;
}

.dag-privacy-list li + li {
  margin-top: 0.5rem;
}

.dag-privacy-content a {
  color: #008254;
  text-decoration: none;
  word-break: break-word;
}

.dag-privacy-content a:hover {
  color: #00682c;
  text-decoration: underline;
}

@media screen and (min-width: 48rem) {
  .dag-privacy-content {
    padding: 2rem 2.25rem;
  }
}

/* Advertiser disclosure popover */
.dag-disclosure {
  display: inline-block;
  position: relative;
  z-index: 20;
}

.fPSBzf:has(.dag-disclosure),
.cYdhWw:has(.dag-disclosure),
.cDEpen:has(.dag-disclosure) {
  overflow: visible;
}

.dag-disclosure-popover {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(20, 24, 32, 0.18), 0 0 1px rgba(20, 24, 32, 0.12);
  box-sizing: border-box;
  color: #1a1a1a;
  font-family: Gotham, Arial, sans-serif;
  font-size: 0.9375rem;
  left: 0;
  line-height: 1.55;
  max-width: min(28.75rem, calc(100vw - 2rem));
  padding: 1.5rem 1.625rem 1.625rem;
  position: absolute;
  top: calc(100% + 10px);
  width: 28.75rem;
  z-index: 30;
}

.dag-disclosure-popover::before {
  border-bottom: 10px solid #fff;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  content: "";
  filter: drop-shadow(0 -1px 1px rgba(20, 24, 32, 0.12));
  height: 0;
  left: 5.25rem;
  position: absolute;
  top: -10px;
  width: 0;
}

.dag-disclosure-heading {
  color: #00682c;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 0.85rem;
}

.dag-disclosure-popover p {
  color: #1a1a1a;
  margin: 0 0 0.9rem;
}

.dag-disclosure-popover p:last-child {
  margin-bottom: 0;
}

.dag-disclosure-popover a {
  color: #0066cc;
  text-decoration: none;
}

.dag-disclosure-popover a:hover {
  text-decoration: underline;
}

@media screen and (max-width: 36rem) {
  .dag-disclosure-popover {
    left: 50%;
    transform: translateX(-50%);
    width: min(28.75rem, calc(100vw - 1.5rem));
  }

  .dag-disclosure-popover::before {
    left: 50%;
    transform: translateX(-50%);
  }
}
