/* CouponCodes Footer Layout Hotfix v3.6.1
   Purpose: neutralize a legacy high-specificity footer selector that forces
   every direct child of .cc-shell into a vertical flex stack. This file is
   intentionally loaded last and only touches footer layout/readability. */

/* Desktop: restore the intended premium two-part footer and five-column menu. */
body.pcg-premium-v3 footer.cc-footer > .cc-shell > .cc-footer-premium-top {
  display: grid !important;
  grid-template-columns: minmax(0, 1.15fr) minmax(420px, .85fr) !important;
  align-items: center !important;
  gap: 36px !important;
  padding: 28px 0 26px !important;
}

body.pcg-premium-v3 footer.cc-footer > .cc-shell > .cc-footer-grid {
  display: grid !important;
  grid-template-columns: minmax(250px, 1.35fr) repeat(3, minmax(145px, .72fr)) minmax(250px, 1.05fr) !important;
  align-items: start !important;
  gap: 34px !important;
  padding: 34px 0 30px !important;
}

body.pcg-premium-v3 footer.cc-footer > .cc-shell > .cc-footer-bottom {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px !important;
  padding-top: 17px !important;
}

/* Keep columns compact; stop legacy rules from turning them into a giant stack. */
body.pcg-premium-v3 footer.cc-footer .cc-footer-brand-col,
body.pcg-premium-v3 footer.cc-footer .cc-footer-link-col,
body.pcg-premium-v3 footer.cc-footer .cc-footer-trust-card {
  min-width: 0;
  align-self: start;
}

body.pcg-premium-v3 footer.cc-footer .cc-footer-link-col h3 {
  margin: 2px 0 13px !important;
  font-size: 14px !important;
  line-height: 1.35 !important;
}
body.pcg-premium-v3 footer.cc-footer .cc-footer-link-col > a {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 7px 0 !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
}
body.pcg-premium-v3 footer.cc-footer .cc-footer-brand-col p {
  font-size: 13px !important;
  line-height: 1.65 !important;
}
body.pcg-premium-v3 footer.cc-footer .cc-footer-brand-col > small,
body.pcg-premium-v3 footer.cc-footer .cc-footer-bottom {
  font-size: 11.5px !important;
}
body.pcg-premium-v3 footer.cc-footer .cc-footer-trust-card {
  padding: 18px !important;
}
body.pcg-premium-v3 footer.cc-footer .cc-footer-trust-card p {
  font-size: 12px !important;
}

/* Standard laptops: still keep a horizontal commercial footer rather than
   collapsing all navigation into one long column. */
@media (max-width: 1199px) and (min-width: 900px) {
  body.pcg-premium-v3 footer.cc-footer > .cc-shell > .cc-footer-premium-top {
    grid-template-columns: 1fr 1fr !important;
    gap: 24px !important;
  }
  body.pcg-premium-v3 footer.cc-footer > .cc-shell > .cc-footer-grid {
    grid-template-columns: minmax(230px, 1.2fr) repeat(3, minmax(130px, .75fr)) !important;
    gap: 25px !important;
  }
  body.pcg-premium-v3 footer.cc-footer .cc-footer-trust-card {
    grid-column: 1 / -1 !important;
    display: grid !important;
    grid-template-columns: 42px 1fr 1.5fr !important;
    column-gap: 14px !important;
    align-items: center !important;
  }
  body.pcg-premium-v3 footer.cc-footer .cc-footer-trust-icon { margin: 0 !important; }
  body.pcg-premium-v3 footer.cc-footer .cc-footer-trust-card h3,
  body.pcg-premium-v3 footer.cc-footer .cc-footer-trust-card p { margin: 0 !important; }
  body.pcg-premium-v3 footer.cc-footer .cc-footer-trust-points {
    grid-template-columns: repeat(3, auto) !important;
    justify-content: end !important;
    margin: 0 !important;
  }
}

/* Tablet: balanced 2-column footer, brand/trust full-width. */
@media (max-width: 899px) and (min-width: 560px) {
  body.pcg-premium-v3 footer.cc-footer > .cc-shell > .cc-footer-premium-top {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    padding-block: 24px !important;
  }
  body.pcg-premium-v3 footer.cc-footer > .cc-shell > .cc-footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 26px 28px !important;
    padding: 28px 0 !important;
  }
  body.pcg-premium-v3 footer.cc-footer .cc-footer-brand-col,
  body.pcg-premium-v3 footer.cc-footer .cc-footer-trust-card {
    grid-column: 1 / -1 !important;
  }
  body.pcg-premium-v3 footer.cc-footer > .cc-shell > .cc-footer-bottom {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 7px !important;
  }
}

/* Mobile: one column is intentional, but compact and readable. */
@media (max-width: 559px) {
  body.pcg-premium-v3 footer.cc-footer > .cc-shell > .cc-footer-premium-top,
  body.pcg-premium-v3 footer.cc-footer > .cc-shell > .cc-footer-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }
  body.pcg-premium-v3 footer.cc-footer > .cc-shell > .cc-footer-premium-top {
    gap: 18px !important;
    padding: 22px 0 !important;
  }
  body.pcg-premium-v3 footer.cc-footer > .cc-shell > .cc-footer-grid {
    gap: 22px !important;
    padding: 26px 0 !important;
  }
  body.pcg-premium-v3 footer.cc-footer > .cc-shell > .cc-footer-bottom {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 7px !important;
  }
}
