/* KlasRoyal mobile footer — load after the existing footer styles. */
@media (max-width: 850px) {
  #gc-footer.gc-reference-footer .gcmf-frame {
    display: block;
    width: 100%;
    padding: 0;
    background: #0b1726;
    color: #d8dde6;
    text-align: left;
  }

  #gc-footer.gc-reference-footer .gcmf-frame > .rmf-mobile,
  #gc-footer.gc-reference-footer .rmf-mobile * {
    box-sizing: border-box;
  }

  #gc-footer.gc-reference-footer .rmf-mobile {
    --rmf-navy: #0b1726;
    --rmf-navy-deep: #08121f;
    --rmf-line: rgba(185, 195, 209, .26);
    --rmf-copy: #d8dde6;
    --rmf-muted: #aeb7c4;
    --rmf-cyan: #4bd3eb;
    --rmf-gold: #d6b45d;
    display: flex;
    width: 100%;
    max-width: 590px;
    margin: 0 auto;
    padding: 27px 18px calc(24px + env(safe-area-inset-bottom, 0px));
    flex-direction: column;
    background: var(--rmf-navy);
    color: var(--rmf-copy);
    font-family: var(--font-body, Arial, Helvetica, sans-serif);
  }

  #gc-footer.gc-reference-footer .rmf-mobile h2,
  #gc-footer.gc-reference-footer .rmf-mobile h3,
  #gc-footer.gc-reference-footer .rmf-mobile p {
    margin: 0;
  }

  #gc-footer.gc-reference-footer .rmf-mobile a {
    color: inherit;
    text-decoration: none;
  }

  #gc-footer.gc-reference-footer .rmf-mobile button {
    margin: 0;
    border: 0;
    font: inherit;
    cursor: pointer;
  }

  #gc-footer.gc-reference-footer .rmf-brand-block {
    padding: 0 1px 20px;
    border-bottom: 1px solid var(--rmf-line);
  }

  #gc-footer.gc-reference-footer .rmf-brand-link {
    display: inline-block;
    width: min(205px, 65vw);
  }

  #gc-footer.gc-reference-footer .rmf-brand-link img {
    display: block;
    width: 100%;
    height: auto;
  }

  #gc-footer.gc-reference-footer .rmf-brand-block > p {
    display: grid;
    margin-top: 14px;
    gap: 2px;
    color: #d9dfe8;
    font-size: 13px;
    line-height: 1.42;
  }

  #gc-footer.gc-reference-footer .rmf-telegram {
    display: flex;
    width: max-content;
    max-width: 100%;
    min-height: 36px;
    align-items: center;
    margin-top: 16px;
    padding: 0;
    gap: 9px;
    background: transparent;
    color: var(--rmf-copy);
    text-align: left;
  }

  #gc-footer.gc-reference-footer .rmf-telegram-icon {
    display: grid;
    width: 27px;
    height: 27px;
    place-items: center;
    color: var(--rmf-cyan);
  }

  #gc-footer.gc-reference-footer .rmf-telegram-icon svg {
    display: block;
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
  }

  #gc-footer.gc-reference-footer .rmf-telegram > span:last-child {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 1px;
  }

  #gc-footer.gc-reference-footer .rmf-telegram strong {
    color: #f3f6fb;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.15;
  }

  #gc-footer.gc-reference-footer .rmf-telegram small {
    color: var(--rmf-cyan);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
  }

  #gc-footer.gc-reference-footer .rmf-accordions {
    border-bottom: 1px solid var(--rmf-line);
  }

  #gc-footer.gc-reference-footer .rmf-accordion {
    border-top: 1px solid var(--rmf-line);
  }

  #gc-footer.gc-reference-footer .rmf-accordion:first-child {
    border-top: 0;
  }

  #gc-footer.gc-reference-footer .rmf-accordion summary {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #edf1f6;
    font-size: 14px;
    font-weight: 700;
    list-style: none;
    cursor: pointer;
  }

  #gc-footer.gc-reference-footer .rmf-accordion summary::-webkit-details-marker {
    display: none;
  }

  #gc-footer.gc-reference-footer .rmf-accordion-icon {
    color: var(--rmf-gold);
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
    transition: transform .18s ease;
  }

  #gc-footer.gc-reference-footer .rmf-accordion[open] .rmf-accordion-icon {
    transform: rotate(45deg);
  }

  #gc-footer.gc-reference-footer .rmf-accordion-content {
    display: grid;
    padding: 0 0 17px;
    gap: 14px;
  }

  #gc-footer.gc-reference-footer .rmf-link-group h3 {
    margin-bottom: 6px;
    color: var(--rmf-gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .035em;
    line-height: 1.2;
    text-transform: uppercase;
  }

  #gc-footer.gc-reference-footer .rmf-link-group ul {
    display: grid;
    margin: 0;
    padding: 0;
    gap: 7px;
    list-style: none;
  }

  #gc-footer.gc-reference-footer .rmf-link-group a {
    display: inline-block;
    color: var(--rmf-muted);
    font-size: 12px;
    line-height: 1.35;
  }

  #gc-footer.gc-reference-footer .rmf-support {
    padding: 25px 0 23px;
    border-bottom: 1px solid var(--rmf-line);
  }

  #gc-footer.gc-reference-footer .rmf-support-heading,
  #gc-footer.gc-reference-footer .rmf-responsible-heading {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  #gc-footer.gc-reference-footer .rmf-headset,
  #gc-footer.gc-reference-footer .rmf-age {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(214, 180, 93, .78);
    border-radius: 50%;
    color: var(--rmf-gold);
  }

  #gc-footer.gc-reference-footer .rmf-headset svg {
    display: block;
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
  }

  #gc-footer.gc-reference-footer .rmf-support h2,
  #gc-footer.gc-reference-footer .rmf-responsible h2,
  #gc-footer.gc-reference-footer .rmf-section > h2 {
    color: #f2f4f8;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
  }

  #gc-footer.gc-reference-footer .rmf-support p,
  #gc-footer.gc-reference-footer .rmf-responsible p {
    margin-top: 4px;
    color: var(--rmf-muted);
    font-size: 12px;
    line-height: 1.45;
  }

  #gc-footer.gc-reference-footer .rmf-support-hats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 17px;
    gap: 8px;
  }

  #gc-footer.gc-reference-footer .rmf-support-hat {
    display: flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid #38506f;
    border-radius: 5px;
    background: #0d1c30;
    color: #e1e9f0;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
  }

  #gc-footer.gc-reference-footer .rmf-support-hat span {
    display: grid;
    width: 15px;
    height: 15px;
    place-items: center;
    color: var(--rmf-cyan);
  }

  #gc-footer.gc-reference-footer .rmf-support-hat svg {
    display: block;
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
  }

  #gc-footer.gc-reference-footer .rmf-section {
    padding: 24px 0;
    border-bottom: 1px solid var(--rmf-line);
  }

  #gc-footer.gc-reference-footer .rmf-section > h2 {
    margin-bottom: 15px;
  }

  #gc-footer.gc-reference-footer .rmf-payment-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 11px;
  }

  #gc-footer.gc-reference-footer .rmf-payment {
    display: flex;
    min-height: 43px;
    align-items: center;
    justify-content: center;
    padding: 6px 8px;
    border: 1px solid rgba(168, 185, 207, .22);
    border-radius: 4px;
    background: #0d1c30;
    color: #eef2f7;
    text-align: center;
  }

  #gc-footer.gc-reference-footer .rmf-payment span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .005em;
    line-height: 1.15;
  }

  #gc-footer.gc-reference-footer .rmf-provider-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px 6px;
  }

  #gc-footer.gc-reference-footer .rmf-provider {
    display: flex;
    min-width: 0;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    color: #e5eaf1;
    text-align: center;
  }

  #gc-footer.gc-reference-footer .rmf-provider img {
    display: block;
    width: 26px;
    height: 26px;
    object-fit: contain;
  }

  #gc-footer.gc-reference-footer .rmf-provider span {
    overflow-wrap: anywhere;
    font-size: 8px;
    font-weight: 700;
    line-height: 1.05;
  }

  #gc-footer.gc-reference-footer .rmf-provider:not(:has(img)) span {
    display: grid;
    min-height: 26px;
    place-items: center;
    color: #eef2f6;
  }

  #gc-footer.gc-reference-footer .rmf-partners {
    padding-bottom: 20px;
  }

  #gc-footer.gc-reference-footer .rmf-partner-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 16px 22px;
  }

  #gc-footer.gc-reference-footer .rmf-partner-badge {
    display: grid;
    min-width: 0;
    min-height: 66px;
    padding: 0;
    place-items: center;
    background: transparent;
  }

  #gc-footer.gc-reference-footer .rmf-partner-badge img {
    display: block;
    max-width: 100%;
    max-height: 70px;
    object-fit: contain;
  }

  #gc-footer.gc-reference-footer .rmf-partner-badge:nth-child(1) img { width: 54px; }
  #gc-footer.gc-reference-footer .rmf-partner-badge:nth-child(2) img { width: 155px; }
  #gc-footer.gc-reference-footer .rmf-partner-badge:nth-child(3) img { width: 64px; }
  #gc-footer.gc-reference-footer .rmf-partner-badge:nth-child(4) img { width: 124px; }

  #gc-footer.gc-reference-footer .rmf-reference-note {
    margin-top: 13px;
    color: #98a5b7;
    font-size: 10px;
    line-height: 1.35;
    text-align: center;
  }

  #gc-footer.gc-reference-footer .rmf-responsible {
    padding: 23px 0 21px;
    border-bottom: 1px solid var(--rmf-line);
  }

  #gc-footer.gc-reference-footer .rmf-age {
    color: var(--rmf-gold);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
  }

  #gc-footer.gc-reference-footer .rmf-responsible-heading > div {
    min-width: 0;
  }

  #gc-footer.gc-reference-footer .rmf-limits {
    display: inline-block;
    margin-top: 15px;
    color: var(--rmf-gold);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
  }

  #gc-footer.gc-reference-footer .rmf-legal {
    padding-top: 18px;
    color: #aeb7c4;
    font-size: 11px;
    line-height: 1.4;
    text-align: center;
  }

  #gc-footer.gc-reference-footer .rmf-legal nav {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 9px;
    gap: 15px;
  }

  #gc-footer.gc-reference-footer .rmf-legal a {
    color: #cbd3de;
    font-size: 11px;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
  }

  #gc-footer.gc-reference-footer .rmf-mobile a:focus-visible,
  #gc-footer.gc-reference-footer .rmf-mobile button:focus-visible,
  #gc-footer.gc-reference-footer .rmf-mobile summary:focus-visible {
    outline: 2px solid var(--rmf-cyan);
    outline-offset: 3px;
  }

  @media (max-width: 359px) {
    #gc-footer.gc-reference-footer .rmf-mobile {
      padding-right: 15px;
      padding-left: 15px;
    }

    #gc-footer.gc-reference-footer .rmf-support-hats {
      gap: 5px;
    }

    #gc-footer.gc-reference-footer .rmf-support-hat {
      font-size: 10px;
    }

    #gc-footer.gc-reference-footer .rmf-partner-grid {
      gap: 13px 14px;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    #gc-footer.gc-reference-footer .rmf-accordion-icon {
      transition: none;
    }
  }
}

/* Exact supplied payment/provider marks; no label substitutes. */
@media (max-width: 850px) {
  #gc-footer.gc-reference-footer .rmf-brand-link { width: min(245px, 78vw); }
  #gc-footer.gc-reference-footer .rmf-payment-grid { gap: 17px 18px; }
  #gc-footer.gc-reference-footer .rmf-payment {
    min-height: 52px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  #gc-footer.gc-reference-footer .rmf-payment img {
    display: block;
    width: 100%;
    max-width: 160px;
    height: auto;
    max-height: 58px;
    object-fit: contain;
  }
  #gc-footer.gc-reference-footer .rmf-provider-grid { gap: 16px 12px; }
  #gc-footer.gc-reference-footer .rmf-provider { min-height: 42px; }
  #gc-footer.gc-reference-footer .rmf-provider img {
    width: 100%;
    max-width: 85px;
    height: auto;
    max-height: 42px;
    object-fit: contain;
  }
  #gc-footer.gc-reference-footer .rmf-legal { text-align: left; }
  #gc-footer.gc-reference-footer .rmf-legal nav { justify-content: flex-start; }
  #gc-footer.gc-reference-footer .rmf-legal a { text-decoration: none; }
}
