/* Desktop/tablet: original Kadence footer structure and appearance are retained. */
.site-top-footer-wrap .rh-footer-accordion-toggle {
  display: none !important;
}

@media (max-width: 767px) {
  /* Force the existing four top-footer areas to stack, not form narrow columns. */
  .site-top-footer-wrap .site-top-footer-inner-wrap.rh-footer-accordion-enabled {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    column-gap: 0 !important;
    row-gap: 0 !important;
  }

  .site-top-footer-wrap .site-top-footer-inner-wrap.rh-footer-accordion-enabled > * {
    grid-column: 1 / -1 !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .site-top-footer-wrap .rh-footer-accordion-widget {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  /* Toggle and original panel must occupy separate full-width rows. */
  .site-top-footer-wrap .rh-footer-accordion-host {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .site-top-footer-wrap .rh-footer-accordion-toggle {
    box-sizing: border-box;
    display: grid !important;
    grid-template-columns: 17px minmax(0, 1fr) 17px;
    align-items: center;
    column-gap: 9px;
    width: 100%;
    min-height: 42px;
    padding: 9px 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(247, 243, 234, 0.24) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    color: #F7F3EA !important;
    text-align: center;
    cursor: pointer;
    font-family: 'Cormorant Garamond', Cormorant, Georgia, serif;
    font-size: 21px;
    font-weight: 500;
    line-height: 1.18;
    letter-spacing: 0.01em;
    text-transform: none;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
  }

  /* No sticky hover/focus/active colour after tapping a section. */
  .site-top-footer-wrap .rh-footer-accordion-toggle:hover,
  .site-top-footer-wrap .rh-footer-accordion-toggle:active,
  .site-top-footer-wrap .rh-footer-accordion-toggle:focus,
  .site-top-footer-wrap .rh-footer-accordion-toggle[aria-expanded='true'] {
    background: transparent !important;
    color: #F7F3EA !important;
    box-shadow: none !important;
  }

  .site-top-footer-wrap .rh-footer-accordion-toggle:focus:not(:focus-visible) {
    outline: none !important;
  }

  /* Mouse focus is subdued, but keyboard focus stays clearly visible. */
  .site-top-footer-wrap .rh-footer-accordion-toggle:focus-visible {
    outline: 2px solid #B08A4A !important;
    outline-offset: -2px;
  }

  /* Equal left/right columns keep the label centred even with a right arrow. */
  .site-top-footer-wrap .rh-footer-accordion-toggle::before {
    content: '';
    display: block;
    width: 17px;
    height: 17px;
    grid-column: 1;
  }

  .site-top-footer-wrap .rh-footer-accordion-label {
    display: block;
    grid-column: 2;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: normal;
    white-space: normal;
    text-align: center;
  }

  .site-top-footer-wrap .rh-footer-accordion-chevron {
    display: block;
    width: 17px;
    height: 17px;
    grid-column: 3;
    color: #B08A4A;
    transition: transform 180ms ease;
  }

  .site-top-footer-wrap .rh-footer-accordion-toggle[aria-expanded='true'] .rh-footer-accordion-chevron {
    transform: rotate(180deg);
  }

  .site-top-footer-wrap .rh-footer-accordion-panel[hidden] {
    display: none !important;
  }

  .site-top-footer-wrap .rh-footer-accordion-panel:not([hidden]) {
    box-sizing: border-box;
    display: block !important;
    clear: both;
    grid-column: 1 / -1 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 10px 0 13px !important;
    text-align: center;
    overflow-wrap: anywhere;
  }

  .site-top-footer-wrap .rh-footer-accordion-panel > :first-child {
    margin-top: 0;
  }

  .site-top-footer-wrap .rh-footer-accordion-panel > :last-child {
    margin-bottom: 0;
  }

  /* The desktop heading remains part of the original widget, hidden only on mobile. */
  .site-top-footer-wrap .rh-footer-accordion-source-heading {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-top-footer-wrap .rh-footer-accordion-chevron {
    transition: none !important;
  }
}
