/**
 * Rhodes Transfers responsive footer
 *
 * Scope: Elementor Theme Builder footer template 3938 only.
 * Desktop (1025px and wider) intentionally receives no declarations.
 */

/*
 * The desktop hero remains visible on tablets. Its form column is scaled to
 * 78%, but Elementor was also allowing the 400px column to flex-shrink while
 * the shortcode inside stayed 400px wide. Reserving the column's real layout
 * width prevents the transformed form from extending beyond the page canvas.
 */
@media (min-width: 768px) and (max-width: 1024px) {
  body.home .elementor-element.elementor-element-6114b550 > .elementor-element.elementor-element-2dbe746e {
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
  }

  body.home .elementor-element.elementor-element-6114b550 > .elementor-element.elementor-element-4d665d9d {
    flex: 0 0 400px !important;
    width: 400px !important;
    min-width: 400px !important;
    max-width: 400px !important;
  }
}

@media (max-width: 1024px) {
  body footer.elementor-location-footer.elementor-3938,
  body footer.elementor-location-footer.elementor-3938 *,
  body footer.elementor-location-footer.elementor-3938 *::before,
  body footer.elementor-location-footer.elementor-3938 *::after {
    box-sizing: border-box;
  }

  body footer.elementor-location-footer.elementor-3938 .e-con,
  body footer.elementor-location-footer.elementor-3938 .elementor-widget,
  body footer.elementor-location-footer.elementor-3938 .elementor-widget-container,
  body footer.elementor-location-footer.elementor-3938 .rt-footer-contact,
  body footer.elementor-location-footer.elementor-3938 #rt-license-trust,
  body footer.elementor-location-footer.elementor-3938 #rt-license-trust > * {
    min-width: 0 !important;
    max-width: 100%;
  }

  /* Five desktop columns become a balanced two-column tablet layout. */
  body footer.elementor-location-footer.elementor-3938 .elementor-element.elementor-element-3d18c21 {
    padding: 34px 24px 26px !important;
  }

  body footer.elementor-location-footer.elementor-3938 .elementor-element.elementor-element-3d18c21 > .e-con-inner {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 34px 42px !important;
    align-items: start !important;
    width: 100% !important;
    max-width: 960px !important;
    margin-inline: auto !important;
  }

  body footer.elementor-location-footer.elementor-3938 .elementor-element.elementor-element-3d18c21 > .e-con-inner > .e-con {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  body footer.elementor-location-footer.elementor-3938 .elementor-element.elementor-element-3d18c21 > .e-con-inner > .e-con:first-child {
    grid-column: 1 / -1 !important;
  }

  body footer.elementor-location-footer.elementor-3938 .elementor-element.elementor-element-3d18c21 a,
  body footer.elementor-location-footer.elementor-3938 .elementor-element.elementor-element-3d18c21 p,
  body footer.elementor-location-footer.elementor-3938 .rt-footer-contact {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-wrap: break-word;
  }

  body footer.elementor-location-footer.elementor-3938 .rt-footer-contact a[href^="mailto:"] {
    word-break: break-word;
  }

  /* Legal details become explicit label/value rows instead of one inline run. */
  body footer.elementor-location-footer.elementor-3938 #rt-license-trust {
    width: min(100%, 900px) !important;
    padding: 34px 24px 36px !important;
  }

  body footer.elementor-location-footer.elementor-3938 #rt-license-trust .rt-title {
    font-size: clamp(20px, 3vw, 22px) !important;
    margin-bottom: 10px !important;
  }

  body footer.elementor-location-footer.elementor-3938 #rt-license-trust .rt-subtitle {
    font-size: clamp(14px, 2.2vw, 15px) !important;
    line-height: 1.55 !important;
    margin-inline: auto !important;
    margin-bottom: 22px !important;
    max-width: 620px !important;
  }

  body footer.elementor-location-footer.elementor-3938 #rt-license-trust .rt-line {
    display: grid !important;
    grid-template-columns: max-content max-content !important;
    column-gap: 14px !important;
    row-gap: 6px !important;
    align-items: baseline !important;
    justify-content: center !important;
    width: min(100%, 720px) !important;
    margin-inline: auto !important;
    font-size: clamp(13.5px, 1.8vw, 14.5px) !important;
    line-height: 1.55 !important;
    overflow-wrap: anywhere !important;
    word-wrap: break-word !important;
  }

  body footer.elementor-location-footer.elementor-3938 #rt-license-trust .rt-line > span {
    display: block !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  body footer.elementor-location-footer.elementor-3938 #rt-license-trust .rt-line > .rt-gold {
    text-align: right !important;
  }

  body footer.elementor-location-footer.elementor-3938 #rt-license-trust .rt-line > .rt-white {
    text-align: left !important;
    overflow-wrap: anywhere !important;
  }

  body footer.elementor-location-footer.elementor-3938 #rt-license-trust .rt-line > br,
  body footer.elementor-location-footer.elementor-3938 #rt-license-trust .rt-line > span:nth-child(3),
  body footer.elementor-location-footer.elementor-3938 #rt-license-trust .rt-line > span:nth-child(9) {
    display: none !important;
  }

  /* Badges use shrink-safe grid tracks and may wrap internally. */
  body footer.elementor-location-footer.elementor-3938 #rt-license-trust .rt-badges {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 10px !important;
    width: min(100%, 720px) !important;
    margin: 26px auto 0 !important;
  }

  body footer.elementor-location-footer.elementor-3938 #rt-license-trust .rt-badge {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 42px !important;
    padding: 8px 12px !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    text-align: center !important;
  }

  body footer.elementor-location-footer.elementor-3938 #rt-license-trust .rt-badge:nth-child(-n + 3) {
    grid-column: span 2;
  }

  body footer.elementor-location-footer.elementor-3938 #rt-license-trust .rt-badge:nth-child(4) {
    grid-column: 2 / 4;
  }

  body footer.elementor-location-footer.elementor-3938 #rt-license-trust .rt-badge:nth-child(5) {
    grid-column: 4 / 6;
  }

  /* Keep the copyright strip compact; WhatsApp floats independently. */
  body footer.elementor-location-footer.elementor-3938 .elementor-element.elementor-element-3a82d62 {
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 18px !important;
    gap: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }

  body footer.elementor-location-footer.elementor-3938 .elementor-element.elementor-element-3a82d62 p {
    max-width: 100% !important;
    margin-inline: auto !important;
    line-height: 1.5 !important;
    overflow-wrap: anywhere !important;
  }
}

@media (max-width: 767px) {
  body footer.elementor-location-footer.elementor-3938 .elementor-element.elementor-element-3d18c21 {
    padding: 32px 20px 28px !important;
  }

  body footer.elementor-location-footer.elementor-3938 .elementor-element.elementor-element-3d18c21 > .e-con-inner {
    gap: 32px 24px !important;
  }

  body footer.elementor-location-footer.elementor-3938 #rt-license-trust {
    padding: 32px 20px 38px !important;
  }

  body footer.elementor-location-footer.elementor-3938 #rt-license-trust .rt-badges {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body footer.elementor-location-footer.elementor-3938 #rt-license-trust .rt-badge:nth-child(1),
  body footer.elementor-location-footer.elementor-3938 #rt-license-trust .rt-badge:nth-child(2) {
    grid-column: auto;
  }

  body footer.elementor-location-footer.elementor-3938 #rt-license-trust .rt-badge:nth-child(3) {
    grid-column: 1 / -1;
  }

  body footer.elementor-location-footer.elementor-3938 #rt-license-trust .rt-badge:nth-child(4) {
    grid-column: 1 / 2;
  }

  body footer.elementor-location-footer.elementor-3938 #rt-license-trust .rt-badge:nth-child(5) {
    grid-column: 2 / 3;
  }
}

@media (max-width: 479px) {
  body footer.elementor-location-footer.elementor-3938 .elementor-element.elementor-element-3d18c21 {
    padding-inline: 18px !important;
  }

  body footer.elementor-location-footer.elementor-3938 .elementor-element.elementor-element-3d18c21 > .e-con-inner {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 34px !important;
  }

  body footer.elementor-location-footer.elementor-3938 .elementor-element.elementor-element-3d18c21 > .e-con-inner > .e-con:first-child {
    grid-column: auto !important;
  }

  body footer.elementor-location-footer.elementor-3938 .elementor-element.elementor-element-3d18c21 .elementor-heading-title {
    font-size: 14px !important;
  }

  body footer.elementor-location-footer.elementor-3938 .elementor-element.elementor-element-3d18c21 a,
  body footer.elementor-location-footer.elementor-3938 .elementor-element.elementor-element-3d18c21 p,
  body footer.elementor-location-footer.elementor-3938 .elementor-element.elementor-element-3d18c21 .elementor-widget-text-editor,
  body footer.elementor-location-footer.elementor-3938 .elementor-element.elementor-element-3d18c21 .elementor-widget-text-editor p {
    font-size: 13.5px !important;
    line-height: 1.65 !important;
  }

  body footer.elementor-location-footer.elementor-3938 #rt-license-trust {
    padding-inline: 16px !important;
  }

  body footer.elementor-location-footer.elementor-3938 #rt-license-trust .rt-title {
    font-size: clamp(19px, 6vw, 21px) !important;
  }

  body footer.elementor-location-footer.elementor-3938 #rt-license-trust .rt-subtitle {
    font-size: clamp(13.5px, 4vw, 14.5px) !important;
  }

  body footer.elementor-location-footer.elementor-3938 #rt-license-trust .rt-line {
    grid-template-columns: minmax(0, 1fr) !important;
    justify-content: stretch !important;
    row-gap: 5px !important;
    font-size: clamp(13px, 3.9vw, 14px) !important;
    line-height: 1.5 !important;
  }

  body footer.elementor-location-footer.elementor-3938 #rt-license-trust .rt-line > .rt-gold,
  body footer.elementor-location-footer.elementor-3938 #rt-license-trust .rt-line > .rt-white {
    text-align: center !important;
  }

  body footer.elementor-location-footer.elementor-3938 #rt-license-trust .rt-line > .rt-gold:not(:first-child) {
    margin-top: 14px !important;
  }

  body footer.elementor-location-footer.elementor-3938 #rt-license-trust .rt-badges {
    margin-top: 28px !important;
  }

  body footer.elementor-location-footer.elementor-3938 .elementor-element.elementor-element-3a82d62 {
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 18px !important;
    gap: 0 !important;
  }

  body footer.elementor-location-footer.elementor-3938 .elementor-element.elementor-element-3a82d62 p {
    font-size: 13.5px !important;
  }
}

@media (max-width: 359px) {
  body footer.elementor-location-footer.elementor-3938 .elementor-element.elementor-element-3d18c21 {
    padding-inline: 16px !important;
  }

  body footer.elementor-location-footer.elementor-3938 #rt-license-trust {
    padding-inline: 14px !important;
  }

  body footer.elementor-location-footer.elementor-3938 #rt-license-trust .rt-badges {
    grid-template-columns: minmax(0, 1fr) !important;
    width: min(100%, 230px) !important;
  }

  body footer.elementor-location-footer.elementor-3938 #rt-license-trust .rt-badge,
  body footer.elementor-location-footer.elementor-3938 #rt-license-trust .rt-badge:nth-child(3),
  body footer.elementor-location-footer.elementor-3938 #rt-license-trust .rt-badge:nth-child(4),
  body footer.elementor-location-footer.elementor-3938 #rt-license-trust .rt-badge:nth-child(5) {
    grid-column: auto !important;
  }

  body footer.elementor-location-footer.elementor-3938 .elementor-element.elementor-element-3a82d62 {
    padding-inline: 18px !important;
  }

  body footer.elementor-location-footer.elementor-3938 .elementor-element.elementor-element-3a82d62 p {
    font-size: 12px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
  }
}
