.footer-bottom {
  position: relative;
  width: 100%;
  margin-inline: 0;
  padding-inline: clamp(20px, 5vw, 96px);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-language-switcher {
  position: relative;
  z-index: 12;
  flex: 0 0 auto;
  color: #fff;
  font: inherit;
  line-height: 1.4;
}

.site-language-trigger,
.site-language-option {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.site-language-trigger {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  transition: border-color 180ms ease, background-color 180ms ease;
}

.site-language-trigger:hover,
.site-language-trigger[aria-expanded="true"] {
  border-color: rgba(255, 87, 96, 0.68);
  background: rgba(255, 255, 255, 0.12);
}

.site-language-trigger svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.site-language-trigger .site-language-chevron {
  width: 16px;
  height: 16px;
  transition: transform 180ms ease;
}

.site-language-trigger[aria-expanded="true"] .site-language-chevron {
  transform: rotate(180deg);
}

.header-actions {
  --header-action-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
}

.site-header .header-actions .header-cta {
  height: var(--header-action-height);
  box-sizing: border-box;
}

.site-language-trigger--icon {
  width: var(--header-action-height);
  min-width: var(--header-action-height);
  height: var(--header-action-height);
  min-height: var(--header-action-height);
  padding: 0;
  border-radius: 12px;
  box-sizing: border-box;
}

.site-language-trigger--icon svg {
  width: 20px;
  height: 20px;
}

.site-language-switcher--header .site-language-menu {
  inset-block-start: calc(100% + 9px);
  inset-block-end: auto;
}

.site-language-menu {
  position: absolute;
  inset-inline-end: 0;
  inset-block-end: calc(100% + 9px);
  width: min(220px, calc(100vw - 32px));
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(13, 14, 18, 0.98);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(18px);
}

.site-language-menu[hidden] {
  display: none;
}

.site-language-menu form {
  margin: 0;
}

.site-language-option {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 10px;
  border-color: transparent;
  border-radius: 10px;
  background: transparent;
  text-align: start;
}

.site-language-option:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.09);
}

.site-language-option.is-active {
  color: #fff;
  background: rgba(231, 19, 26, 0.2);
  cursor: default;
}

.site-language-option bdi {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
}

.standalone-language-footer {
  width: min(100%, 500px);
  margin: 0 auto;
  padding: 18px 18px calc(20px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #0c0d10;
  color: rgba(255, 255, 255, 0.68);
  font-family: "Cairo", Roboto, Arial, sans-serif;
  font-size: 0.78rem;
  line-height: 1.6;
}

.standalone-language-footer p {
  margin: 0;
}

.offer-language-hotspot-button {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: pointer;
}

html[dir="ltr"] .offer-back-link,
html[dir="rtl"] .offer-back-link {
  right: auto;
  left: calc(50% - min(var(--page-max), 100vw) / 2 + 10px);
}

html[dir="ltr"] .offer-back-link svg,
html[dir="rtl"] .offer-back-link svg {
  transform: none;
}

html[dir="ltr"] body[data-track-page^="o-"] .sidebar-btn {
  right: 2% !important;
  left: auto !important;
}

html[dir="rtl"] body[data-track-page^="o-"] .sidebar-btn {
  right: auto !important;
  left: 2% !important;
}

@media (max-width: 760px) {
  .header-actions {
    --header-action-height: 36px;
    gap: 7px;
  }

  .site-header .header-cta {
    min-height: 36px;
    gap: 6px;
    padding: 6px 9px;
    font-size: 0.76rem;
  }

  .site-header .header-cta .icon {
    width: 15px;
    height: 15px;
  }

  .site-language-trigger--icon svg {
    width: 17px;
    height: 17px;
  }

  .footer-bottom,
  .standalone-language-footer {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .footer-bottom .site-language-switcher,
  .standalone-language-footer .site-language-switcher {
    margin-top: 2px;
  }

}

html[dir="ltr"] body,
html[dir="ltr"] body * {
  direction: ltr !important;
}

html[dir="ltr"] .hero-content {
  grid-template-areas:
    "copy actions"
    "showcase showcase";
}

html[dir="ltr"] .hero-copy {
  justify-self: start;
  text-align: left !important;
}

html[dir="ltr"] .hero-actions {
  justify-self: end;
  justify-content: flex-end;
}

@media (max-width: 1020px) {
  html[dir="ltr"] .hero-content {
    grid-template-areas:
      "copy"
      "actions"
      "showcase";
  }

  html[dir="ltr"] .hero-copy,
  html[dir="ltr"] .hero-actions {
    justify-self: stretch;
  }

  html[dir="ltr"] .hero-copy {
    text-align: center !important;
  }

  html[dir="ltr"] .hero-actions {
    justify-content: center;
  }
}

html[dir="ltr"] :where(
  .hero-copy,
  .hero-slide-content,
  .offer-card,
  .offer-body,
  .community-card,
  .tournament-card,
  .tournament-pro-card,
  .tournament-pro-info,
  .tournament-hero-copy,
  .footer-brand,
  .footer-column,
  table th,
  table td
) {
  text-align: left !important;
}

html[dir="ltr"] .community-card .card-link {
  justify-content: flex-start;
  text-align: left !important;
}
