/*
 * Site overrides on top of the reference theme.
 *
 * The theme is vendored beside this file and linked from the locale layout,
 * because it ships two complete builds - one LTR, one RTL - and which one a
 * page needs is only known once the locale is. This sheet is linked LAST, after
 * both, and lives in `public/` rather than being imported through the bundler
 * so that it stays there: Next hoists imported stylesheets above anything the
 * layout renders, which would put every override below the rule it replaces.
 *
 * Everything here is a deliberate correction to the theme for this business:
 *
 *   1. Scripts. The reference theme is a Latin-first template; this shop reads Hebrew, Arabic
 *      and English. The font stacks below add Hebrew and Arabic faces after the
 *      theme's Latin ones so per-glyph fallback does the work.
 *   2. Figures. Rates are the product. They are always Western digits, always
 *      left-to-right, and always tabular so columns line up down the board.
 *   3. Additions the theme has no equivalent for - rate status chips, the
 *      quote panel - styled with the theme's own colours rather than new ones.
 */

:root {
  /* The theme's own palette, lifted from style.scss so our additions cannot
     drift away from it. */
  --theme-primary: #00a79d;
  --theme-ink: #252525;
  --theme-body: #666666;
  --theme-muted: #888888;
  --theme-whisper: #fafafc;
  --theme-line: #e7e9ee;
  --theme-red: #ff3838;
  --theme-green: #16a34a;
  --theme-amber: #b45309;

  /* Latin face first, then the script faces. A Hebrew or Arabic glyph is not
     in Roboto or Raleway, so the browser falls through to the face that has
     it - which is why one stack serves all three languages. */
  --font-body: var(--font-roboto), var(--font-heebo), var(--font-cairo), sans-serif;
  --font-display: var(--font-raleway), var(--font-heebo), var(--font-cairo), sans-serif;
}

.theme-dark {
  --theme-line: #2b2b2b;
  --theme-whisper: #1b1b1b;
}

body {
  font-family: var(--font-body);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
}

/*
 * Figures.
 *
 * Arabic locales default to Eastern Arabic numerals and RTL digit order. On a
 * price board that is actively harmful: the customer in Haifa reads 3.1120,
 * not ٣٫١١٢٠, and a rate must never be mirrored. `direction: ltr` with an
 * isolated bidi context pins the number the right way round inside RTL text.
 */
/*
 * `.figure` is also a Bootstrap class, and Bootstrap makes it
 * `display: inline-block`. Harmless on the <span>s the rate board uses, and
 * quietly destructive on a table cell: an inline-block <td> leaves the table
 * layout, so every cell after it in the row shifts a column left and the last
 * header sits over nothing. Put the display back for cells, so the class can
 * mean "these are figures" wherever figures are.
 */
th.figure,
td.figure {
  display: table-cell;
}

.figure {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  direction: ltr;
  unicode-bidi: isolate;
  white-space: nowrap;
}

/* Screen-reader-only text, matching the theme's own visual-hidden behaviour. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/*
 * Skip link. Hidden until focused, then a real target at the top of the page.
 * The first stop is the rates, because that is what the visitor came for.
 */
.skip-link {
  position: absolute;
  inset-inline-start: -9999px;
  z-index: 9999;
  padding: 14px 24px;
  background: var(--theme-primary);
  color: #fff;
  font-weight: 600;
}

.skip-link:focus {
  inset-inline-start: 12px;
  top: 12px;
  color: #fff;
}

/*
 * Visible focus. The theme clears outlines globally for looks; a currency
 * exchange has keyboard users and cannot ship without a focus ring.
 */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--theme-primary);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------
   Rate board additions
   --------------------------------------------------------------- */

/*
 * Movement. Colour alone never carries the meaning - every cell also gets an
 * arrow glyph and a visually hidden word, so a red-green colour-blind customer
 * and a screen reader both get the direction.
 */
.rate-move {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}

.rate-move.is-up {
  color: var(--theme-green);
}

.rate-move.is-down {
  color: var(--theme-red);
}

.rate-move.is-flat {
  color: var(--theme-muted);
}

/*
 * Status chips: paused, holding a stale published rate, or priced by hand.
 * These are exception states and must look like exceptions, not decoration.
 */
.rate-chip {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.7;
  white-space: nowrap;
}

.rate-chip.is-paused {
  background: rgba(255, 56, 56, 0.12);
  color: var(--theme-red);
}

.rate-chip.is-stale {
  background: rgba(180, 83, 9, 0.12);
  color: var(--theme-amber);
}

.rate-chip.is-manual {
  background: rgba(0, 167, 157, 0.12);
  color: var(--theme-primary);
}

/*
 * The round mark that stands where the theme put a flag, sized to the theme's
 * own `.country-flag img`. It normally carries a flag; see CurrencyBadge.tsx
 * for the symbol fallback and for why the flag is a background image.
 */
.currency-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--theme-primary);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
  direction: ltr;
}

.currency-badge.is-lg {
  width: 52px;
  height: 52px;
  font-size: 20px;
}

/* The flag arrives as an inline `background-image` from CurrencyBadge; this
   sizes it and drops the primary disc from under it. The second selector keeps
   that true inside the chart picker's active state further down this file.
   `background-color` rather than the `background` shorthand, so it cannot wipe
   out the inline image. */
.currency-badge.has-flag,
.chart-picker-item.is-active .currency-badge.has-flag {
  background-color: transparent;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* Japan, Israel and Switzerland are mostly white field. Without a hairline
     the disc dissolves into the page and only the emblem is left floating. */
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.theme-dark .currency-badge.has-flag {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

/* ---------------------------------------------------------------
   Calculator
   --------------------------------------------------------------- */

/*
 * The quote panel. The reference theme has no component for "here is the number you will pay",
 * so this is ours - built from the theme's primary and its card radius, so it
 * belongs to the same design even though the theme never drew it.
 */
.quote-panel {
  background: var(--theme-ink);
  border-radius: 10px;
  padding: 30px;
  color: #fff;
}

.theme-dark .quote-panel {
  background: #111111;
}

.quote-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0;
}

.quote-row dt {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  margin: 0;
}

.quote-row dd {
  margin: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}

.quote-row.is-headline dt {
  font-size: 15px;
}

.quote-row.is-headline dd {
  font-size: 26px;
  font-weight: 700;
  color: var(--theme-primary);
}

.quote-row.is-nested {
  padding-inline-start: 16px;
}

.quote-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin: 16px 0 6px;
  padding-top: 10px;
}

.quote-note {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin: 14px 0 0;
  line-height: 1.7;
}

.quote-warning {
  margin: 16px 0 0;
  padding: 12px 16px;
  border: 1px solid rgba(0, 167, 157, 0.5);
  border-radius: 6px;
  font-size: 14px;
  color: var(--theme-primary);
}

/*
 * Choice buttons: direction and currency. Big targets rather than a dropdown -
 * a select that has to be opened, scrolled and dismissed is where a customer
 * who is not confident with a phone gives up.
 */
.choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.choice-btn {
  min-height: 56px;
  padding: 10px 22px;
  border: 1px solid var(--theme-line);
  border-radius: 6px;
  background: #fff;
  color: var(--theme-ink);
  font-weight: 600;
  transition: all 0.3s ease;
}

.theme-dark .choice-btn {
  background: #1b1b1b;
  color: #fff;
}

.choice-btn:hover {
  border-color: var(--theme-primary);
  color: var(--theme-primary);
}

.choice-btn[aria-pressed="true"] {
  background: var(--theme-primary);
  border-color: var(--theme-primary);
  color: #fff;
}

.choice-btn .choice-code {
  display: block;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.choice-btn .choice-name {
  display: block;
  font-size: 12px;
  font-weight: 400;
  opacity: 0.8;
}

/* ---------------------------------------------------------------
   Small corrections to the theme
   --------------------------------------------------------------- */

/* The reference theme hides the preloader with jQuery on window load. There is no jQuery
   here, and a spinner that never leaves is worse than no spinner. */
.preloader {
  display: none !important;
}

/* The theme's exchange table sets a fixed layout that clips long currency
   names in Hebrew and Arabic. The theme leaves this cell a block, so its own
   `gap` never applied and the badge sat flush against the name - visible now
   that the badge carries a flag rather than flat-coloured text. */
.exchange-table .country-flag {
  display: flex;
  align-items: center;
  gap: 10px;
}

.exchange-table td,
.exchange-table th {
  vertical-align: middle;
}

/* Definition lists inside theme cards inherit the theme's <p> rhythm. */
.plain-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ---------------------------------------------------------------
   Chrome the theme styles only as anchors
   --------------------------------------------------------------- */

/*
 * The reference theme styles the hamburger and the panel close as anchors with a javascript
 * href. A control that opens a panel is a button, so the same treatment is
 * applied to the element that is actually correct.
 */
.mobile-menu button,
.menu-close button,
.back-to-top {
  border: 0;
  padding: 0;
  background: none;
}

@media only screen and (max-width: 991px) {
  .mobile-menu button {
    width: 38px;
    height: 38px;
    border-radius: 62% 38% 46% 54%/60% 63% 37% 40%;
    background-color: var(--theme-primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .mobile-menu button i {
    font-size: 22px;
    color: #fff;
  }

  .menu-close button i {
    color: var(--theme-ink);
    font-size: 25px;
  }

  .theme-dark .menu-close button i {
    color: #fff;
  }
}

/* Bootstrap opens the language dropdown with its own plugin, which is not
   loaded. React adds the show class, which is all the stylesheet needs. */
.language-dropdown-menu .dropdown-item.selected {
  color: var(--theme-primary);
  font-weight: 600;
}

/* ---------------------------------------------------------------
   Home page
   --------------------------------------------------------------- */

/*
 * Trust strip. Licence, address, hours and rate source, directly under the
 * hero, because "are you legitimate and where are you" is the second question
 * a visitor asks and the one a shopfront answers by simply existing.
 */
.trust-strip {
  background: var(--theme-ink);
  color: rgba(255, 255, 255, 0.85);
  padding: 18px 0;
  font-size: 15px;
}

.trust-strip ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 36px;
  align-items: center;
}

.trust-strip li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-strip i {
  color: var(--theme-primary);
  font-size: 18px;
}

/* Numbered steps reuse the theme's feature-item, with the icon slot carrying a
   number instead of a glyph - these are a sequence, not a set. */
.step-list {
  list-style: none;
  padding: 0;
}

.step-number {
  font-size: 22px;
  font-weight: 700;
  color: var(--theme-primary);
}

.cta-wrap {
  padding: 0 0 100px;
}

.cta-inner {
  background: var(--theme-ink);
  border-radius: 10px;
  padding: 60px 30px;
  text-align: center;
  color: #fff;
}

.cta-inner h2 {
  color: #fff;
}

.cta-inner p {
  color: rgba(255, 255, 255, 0.75);
  margin: 12px 0 28px;
}

/* ---------------------------------------------------------------
   Rate board and tables
   --------------------------------------------------------------- */

/* Column hints sit under the heading rather than beside it, so "We buy" and
   "you bring us this currency" read as one label. */
.th-hint {
  display: block;
  font-size: 12px;
  font-weight: 400;
  text-transform: none;
  color: var(--theme-muted);
  margin-top: 2px;
}

.rate-figure {
  font-size: 17px;
  font-weight: 600;
}

/* A refusal is a sentence, not a dash. A dash reads as a missing number. */
.rate-unavailable {
  font-size: 13px;
  color: var(--theme-muted);
  display: inline-block;
  max-width: 22ch;
  line-height: 1.5;
}

.exchange-table .country-flag > span {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.4;
}

.currency-code {
  font-size: 12px;
  color: var(--theme-muted);
  letter-spacing: 0.5px;
}

.rate-sparkline {
  display: block;
}

.rate-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  padding: 14px 0;
  margin-bottom: 24px;
  border-top: 1px solid var(--theme-line);
  border-bottom: 1px solid var(--theme-line);
  font-size: 14px;
  color: var(--theme-muted);
}

.rate-meta p {
  margin: 0;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--theme-primary);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--theme-primary);
}

/* ---------------------------------------------------------------
   Currencies
   --------------------------------------------------------------- */

.currency-group {
  margin-bottom: 30px;
}

.currency-group-title {
  font-size: 18px;
  margin-bottom: 20px;
  padding-inline-start: 14px;
  border-inline-start: 3px solid var(--theme-primary);
}

.currency-rate-card {
  background: var(--theme-whisper);
  border: 1px solid var(--theme-line);
  border-radius: 10px;
  padding: 30px;
}

.currency-rate-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.currency-rate-head h2 {
  font-size: 22px;
  margin: 0;
}

.currency-rate-head p {
  margin: 0;
  color: var(--theme-muted);
  font-size: 13px;
  letter-spacing: 0.5px;
}

.currency-rate-figures > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--theme-line);
}

.currency-rate-figures dt {
  color: var(--theme-body);
  margin: 0;
}

.currency-rate-figures dd {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
}

.currency-trend {
  margin-top: 24px;
}

.currency-trend h3 {
  font-size: 14px;
  color: var(--theme-muted);
  margin-bottom: 8px;
}

.currency-detail-content h3 {
  font-size: 20px;
  margin: 28px 0 10px;
}

.denomination-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.denomination-list li {
  border: 1px solid var(--theme-line);
  border-radius: 6px;
  padding: 8px 14px;
  font-weight: 600;
}

.denomination-list li.is-refused {
  color: var(--theme-muted);
  text-decoration: line-through;
  border-style: dashed;
}

/* ---------------------------------------------------------------
   Opening hours, FAQ, legal, 404
   --------------------------------------------------------------- */

.hours-table {
  width: 100%;
  max-width: 420px;
  border-collapse: collapse;
}

.hours-table th {
  text-align: start;
  font-weight: 400;
  color: var(--theme-body);
  padding: 10px 0;
  border-bottom: 1px solid var(--theme-line);
}

.hours-table td {
  text-align: end;
  padding: 10px 0;
  border-bottom: 1px solid var(--theme-line);
}

.hours-table tr.is-today th,
.hours-table tr.is-today td {
  font-weight: 700;
  color: var(--theme-ink);
}

.theme-dark .hours-table tr.is-today th,
.theme-dark .hours-table tr.is-today td {
  color: #fff;
}

.today-tag {
  display: inline-block;
  margin-inline-start: 8px;
  padding: 1px 8px;
  border-radius: 20px;
  background: var(--theme-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}

.hours-table .is-closed {
  color: var(--theme-muted);
}

.faq-footnote {
  margin-top: 26px;
}

.licence-number {
  font-weight: 600;
  color: var(--theme-primary);
}

/* An unreviewed legal page says so as a notice, not as body copy that could be
   mistaken for the policy itself. */
.legal-notice {
  border-inline-start: 4px solid var(--theme-amber);
  background: var(--theme-whisper);
  padding: 30px;
  border-radius: 6px;
}

.legal-notice h2 {
  font-size: 20px;
  color: var(--theme-amber);
}

.error-code {
  display: block;
  font-size: 96px;
  font-weight: 800;
  line-height: 1;
  color: var(--theme-primary);
  margin-bottom: 16px;
}

/* ---------------------------------------------------------------
   Calculator page
   --------------------------------------------------------------- */

.converter-panel {
  background: var(--theme-whisper);
  border: 1px solid var(--theme-line);
  border-radius: 10px;
  padding: 30px;
}

.converter-field {
  margin-bottom: 28px;
  border: 0;
  padding: 0;
}

.converter-field legend {
  font-size: 15px;
  font-weight: 600;
  color: var(--theme-ink);
  margin-bottom: 12px;
}

.theme-dark .converter-field legend {
  color: #fff;
}

.converter-title {
  font-size: 20px;
  margin-bottom: 20px;
}

/* The hero card's live result sits above the button, so the number is answered
   before the customer is asked to go anywhere. */
.converter-result {
  display: block;
  border-top: 1px solid var(--theme-line);
  padding-top: 18px;
  margin-bottom: 18px;
}

.converter-result-label {
  display: block;
  font-size: 14px;
  color: var(--theme-muted);
}

.converter-result-value {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: var(--theme-primary);
  line-height: 1.3;
}

.converter-result-rate {
  display: block;
  font-size: 13px;
  color: var(--theme-muted);
}

.converter-error {
  margin: 0;
  color: var(--theme-red);
  font-size: 14px;
}

.quote-hint {
  display: block;
  font-size: 12px;
  opacity: 0.7;
  margin-top: 2px;
}

/* ---------------------------------------------------------------
   Brand
   --------------------------------------------------------------- */

/*
 * The shop's wordmark, replacing the starter logo. Set in type so it
 * reads correctly in all three languages - see Wordmark.tsx.
 */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.2px;
  color: var(--theme-ink);
  white-space: nowrap;
}

.theme-dark .wordmark,
.footer-logo .wordmark {
  color: #fff;
}

.wordmark-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 62% 38% 46% 54%/60% 63% 37% 40%;
  background: var(--theme-primary);
  color: #fff;
  font-size: 13px;
  flex-shrink: 0;
}

@media only screen and (max-width: 575px) {
  .wordmark {
    font-size: 18px;
  }

  .wordmark-glyph {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }
}

/* ---------------------------------------------------------------
   Hero
   --------------------------------------------------------------- */

/*
 * The reference theme floats the converter card absolutely over a coin illustration, which
 * gives the hero column its height. The card here is taller than the
 * template's - it carries a live result as well as the inputs - so absolute
 * positioning made it overflow the hero and cover the strip below it.
 *
 * The illustration is dropped and the card placed in the flow instead. It is
 * the more honest hero for this business anyway: a customer gets an actual
 * answer about their own money where the template offered a picture of a coin.
 */
.hero-wrap.style1 .hero-currency-convert .currency-converter-wrap {
  position: static;
  transform: none;
  display: block;
  width: 100%;
  max-width: 440px;
  margin-inline-start: auto;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
}

.theme-dark .hero-wrap.style1 .hero-currency-convert .currency-converter-wrap {
  background-color: #1b1b1b;
}

.theme-dark
  .hero-wrap.style1
  .hero-currency-convert
  .currency-converter-wrap
  .form-group
  label {
  color: #fff;
}

@media only screen and (max-width: 991px) {
  .hero-wrap.style1 .hero-currency-convert .currency-converter-wrap {
    margin: 40px auto 0;
    min-width: 0;
  }
}

/* ---------------------------------------------------------------
   Sliders
   --------------------------------------------------------------- */

/*
 * The React carousels keep the theme's Owl class names, so the arrows and dots
 * are still styled by the stylesheet the template shipped. What replaces Owl is
 * the track: a real scroll container with snap points, which can be swiped,
 * dragged and tabbed through natively. See components/motion/Carousel.tsx.
 */
.owl-carousel.is-react {
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 4px;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-track > .owl-item {
  flex: 0 0 calc((100% - (var(--carousel-base) - 1) * 25px) / var(--carousel-base));
  scroll-snap-align: start;
}

@media only screen and (min-width: 768px) {
  .carousel-track > .owl-item {
    flex-basis: calc((100% - (var(--carousel-md) - 1) * 25px) / var(--carousel-md));
  }
}

@media only screen and (min-width: 1200px) {
  .carousel-track > .owl-item {
    flex-basis: calc((100% - (var(--carousel-xl) - 1) * 25px) / var(--carousel-xl));
  }
}

.owl-carousel.is-react .owl-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
}

.owl-carousel.is-react .owl-nav {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.partner-slider .partner-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

/* ---------------------------------------------------------------
   Navigation
   --------------------------------------------------------------- */

/*
 * The theme opens dropdowns on :hover only, which leaves the whole submenu
 * unreachable by keyboard. Matching the hover rules with :focus-within costs
 * nothing visually and makes the menu usable without a mouse.
 */
@media only screen and (min-width: 992px) {
  .header-wrap .navbar .navbar-nav .nav-item:focus-within > .dropdown-menu,
  .header-wrap .navbar .navbar-nav .nav-item .dropdown-menu li:focus-within > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  /* A top-level menu that only opens a submenu is a button here, not an
     anchor, so it needs the anchor's typography. */
  .header-wrap .navbar .navbar-nav .nav-item > button.nav-link {
    background: none;
    border: 0;
    padding: 0;
  }
}

.navbar-nav button.nav-link {
  background: none;
  border: 0;
  font: inherit;
  text-align: inherit;
  width: 100%;
}

/*
 * A submenu whose parent is not itself a link renders as a <button> (Header.tsx
 * explains why). The theme only ever styles `.dropdown-menu li a`, so that
 * button arrived with no padding, out of line with its siblings, and with its
 * caret against the label instead of at the end of the row. These rules give it
 * the anchor's box at both breakpoints and push the caret out with
 * `margin-inline-start: auto`, so it sits at the row's trailing edge - right in
 * English, left in Hebrew and Arabic - rather than being pinned to one side.
 *
 * The selectors carry the theme's own ancestors on purpose: the desktop rule
 * above zeroes padding on every `.nav-item > button.nav-link`, this one
 * included, so they have to outrank it.
 */
.header-wrap .navbar .navbar-nav .dropdown-menu .nav-item > button.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  font-weight: 500;
}

.header-wrap .navbar .navbar-nav .dropdown-menu .nav-item > button.nav-link i {
  margin-inline-start: auto;
  font-size: 16px;
  line-height: 1;
}

@media only screen and (min-width: 992px) {
  .header-wrap .navbar .navbar-nav .dropdown-menu .nav-item > button.nav-link {
    padding: 10px 20px;
  }

  .header-wrap .navbar .navbar-nav .dropdown-menu .nav-item > button.nav-link:hover {
    color: var(--theme-primary);
  }
}

@media only screen and (max-width: 991px) {
  /* The theme indents these rows with `margin-left: 10px` plus
     `padding-left: 10px`. A <button> sizes to its content rather than filling
     its line, so the indent is all padding here and the width stays 100%; the
     text lands in the same place either way. */
  .header-wrap .navbar .navbar-nav .dropdown-menu .nav-item > button.nav-link {
    font-size: 14px;
    padding: 15px 0;
    padding-inline-start: 20px;
  }
}

/* The caret the template injects with jQuery for the mobile accordion. */
.menu-expand {
  background: none;
  border: 0;
  padding: 0;
  transition: transform 0.3s ease;
}

.nav-item.menu-open > .menu-expand {
  transform: rotate(180deg);
}

@media only screen and (max-width: 991px) {
  /* Mobile submenus are closed until their parent is opened, which is what the
     template's slideUp/slideDown did. */
  .main-menu-wrap .navbar-nav .nav-item > .dropdown-menu {
    display: none;
  }

  .main-menu-wrap .navbar-nav .nav-item.menu-open > .dropdown-menu {
    display: block;
  }
}

@media only screen and (min-width: 992px) {
  .menu-expand {
    display: none;
  }
}

/* ---------------------------------------------------------------
   Pages the theme has no component for
   --------------------------------------------------------------- */

/*
 * Placeholder notice. Anything still carrying the demo's sample content says so
 * on the page - a page that looks finished and is not is how invented reviews
 * and made-up staff end up live on a financial site.
 */
.placeholder-notice {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 22px;
  border-inline-start: 4px solid var(--theme-amber);
  background: var(--theme-whisper);
  border-radius: 6px;
  margin-bottom: 30px;
}

.placeholder-notice i {
  color: var(--theme-amber);
  font-size: 22px;
  line-height: 1.4;
}

.placeholder-notice p {
  margin: 4px 0 0;
  font-size: 14px;
}

/* Currency chart */
.chart-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
  justify-content: center;
}

.chart-picker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--theme-line);
  border-radius: 40px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.chart-picker-item:hover {
  border-color: var(--theme-primary);
}

.chart-picker-item.is-active {
  border-color: var(--theme-primary);
  background: var(--theme-primary);
  color: #fff;
}

.chart-picker-item.is-active .currency-badge {
  background: #fff;
  color: var(--theme-primary);
}

.chart-panel {
  border: 1px solid var(--theme-line);
  border-radius: 10px;
  padding: 30px;
  background: var(--theme-whisper);
}

.chart-panel-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.chart-panel-head h3 {
  margin: 0;
  font-size: 22px;
}

.chart-panel-head p {
  margin: 0;
  color: var(--theme-muted);
  font-size: 13px;
}

.rate-chart {
  margin: 0;
}

.rate-chart-svg {
  width: 100%;
  height: 320px;
  display: block;
}

.rate-chart-axis {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--theme-muted);
  border-top: 1px solid var(--theme-line);
  padding-top: 10px;
}

.rate-chart-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin: 24px 0 0;
}

.rate-chart-stats dt {
  font-size: 13px;
  color: var(--theme-muted);
  margin: 0;
}

.rate-chart-stats dd {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.chart-data {
  margin-top: 26px;
}

.chart-data summary {
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 14px;
}

.chart-data table {
  max-width: 420px;
}

.chart-empty {
  text-align: center;
  padding: 40px 0;
}

/* Account screens */
.sign-in-card {
  border: 1px solid var(--theme-line);
  border-radius: 10px;
  padding: 40px;
  background: var(--theme-whisper);
}

.sign-in-lead {
  color: var(--theme-muted);
  margin-bottom: 20px;
}

.sign-in-card .form-group {
  margin-bottom: 18px;
}

.sign-in-card label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.sign-in-card input {
  width: 100%;
  height: 48px;
  border-radius: 5px;
  border: 1px solid var(--theme-line);
  background: transparent;
  padding: 10px 15px;
}

.sign-in-footer {
  margin-top: 24px;
}

/* Blog */
.blog-lead {
  font-size: 18px;
}

.sidebar-widget {
  border: 1px solid var(--theme-line);
  border-radius: 10px;
  padding: 26px;
  margin-bottom: 26px;
}

.sidebar-widget-title {
  font-size: 18px;
  margin-bottom: 18px;
}

.pp-post-list .pp-post-item {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.pp-post-img img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
}

.pp-post-info span {
  font-size: 12px;
  color: var(--theme-muted);
}

.pp-post-info h4 {
  font-size: 15px;
  margin: 4px 0 0;
  line-height: 1.5;
}

.category-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--theme-line);
}

.category-list li:last-child {
  border-bottom: 0;
}

/* Team */
.team-card {
  text-align: center;
  margin-bottom: 25px;
}

.team-img img {
  border-radius: 10px;
  width: 100%;
}

.team-info {
  padding-top: 16px;
}

.team-info h3 {
  font-size: 18px;
  margin: 0;
}

.team-info span {
  color: var(--theme-muted);
  font-size: 14px;
}

.pt-40 {
  padding-top: 40px;
}

/* ---------------------------------------------------------------
   Scroll animations
   --------------------------------------------------------------- */

/*
 * AOS hides every animated element at opacity zero and reveals it by adding a
 * class from JavaScript. On a page whose job is to publish exchange rates that
 * is a bad trade: if the script is slow, blocked or broken, the customer gets a
 * blank page rather than an unanimated one.
 *
 * So the hiding is gated on a class the animation component adds only once AOS
 * has actually initialised. No script, or a failed script, means no animation
 * and all the content - which is the right way round.
 */
html:not(.aos-ready) [data-aos] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/*
 * Top-level menus that only open a submenu are buttons here, not anchors with
 * a dead href. The theme's desktop nav rules target `a`, so the same padding
 * and colour are restated for the element that is actually correct - without
 * this the button sits on a different baseline from its neighbours.
 */
@media only screen and (min-width: 992px) {
  .header-wrap .navbar .navbar-nav .nav-item > button.nav-link {
    color: #000;
    font-weight: 500;
    padding: 30px 0;
    transition: 0.4s;
    position: relative;
    width: auto;
    display: inline-block;
  }

  .header-wrap .navbar .navbar-nav .nav-item > button.nav-link:hover,
  .header-wrap .navbar .navbar-nav .nav-item > button.nav-link.active {
    color: var(--theme-primary);
  }

  .header-wrap .navbar .navbar-nav .nav-item > button.nav-link i {
    font-size: 16px;
    line-height: 1;
    position: relative;
    top: 1px;
    display: inline-block;
    margin-inline-start: 6px;
    transition: 0.4s;
  }

  .header-wrap .navbar .navbar-nav .nav-item > a.nav-link i {
    margin-inline-start: 6px;
  }

  .header-wrap .navbar .navbar-nav .nav-item > button.nav-link:hover i {
    transform: rotate(180deg);
  }
}

.theme-dark .header-wrap .navbar .navbar-nav .nav-item > button.nav-link {
  color: #fff;
}

/* The language switcher sits in the option row on the Home Two header, where
   the theme's top-bar spacing does not apply. */
.other-options .select-lang {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-wrap.style2 .select-lang .navbar-language .dropdown-toggle {
  color: var(--theme-ink);
}

.theme-dark .header-wrap.style2 .select-lang .navbar-language .dropdown-toggle {
  color: #fff;
}

/*
 * Owl hides every carousel until its own script marks it loaded. Nothing here
 * ever will, so the React sliders declare themselves visible - without this the
 * track measures zero wide, which collapses the slides and silently drops the
 * pagination dots.
 */
.owl-carousel.is-react {
  display: block;
}

/*
 * The rate table is wider than a phone. It scrolls inside its own container so
 * the page itself never scrolls sideways - a page that slides under the thumb
 * makes every tap feel like a mistake.
 */
.exchange-table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.exchange-table table {
  min-width: 640px;
}

/* Same reasoning for the chart, which is drawn at a fixed aspect. */
.chart-panel {
  overflow-x: auto;
}

@media only screen and (max-width: 991px) {
  .mobile-bar-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .mobile-bar-wrap .select-lang {
    display: flex;
    align-items: center;
    gap: 4px;
  }
}

/*
 * The header row is a flex container, and flex items refuse to shrink below
 * their content by default - so anything added to the mobile bar can widen the
 * whole page rather than wrapping. Allowing the row to wrap and its items to
 * shrink is what keeps a phone from scrolling sideways.
 */
@media only screen and (max-width: 991px) {
  .header-wrap .header-bottom .container {
    flex-wrap: wrap;
    min-width: 0;
  }

  .header-wrap .header-bottom .container > * {
    min-width: 0;
  }

  /* The compact switcher shows the endonym abbreviated - עב, ع, EN - so the
     language is still named in its own script without costing a row. */
  .select-lang.is-compact .lang-name {
    font-size: 13px;
  }
}

/*
 * The theme decorates most sections with absolutely-positioned shapes that sit
 * deliberately outside the container, and its rows carry Bootstrap's negative
 * gutters. On a wide screen that is invisible; on a phone it adds up to a page
 * that slides sideways under the thumb, which makes every tap feel like a
 * mistake and pushes the fixed header off its own viewport.
 *
 * `clip` rather than `hidden`: it stops the overflow without turning the body
 * into a scroll container, so anchor links and the back-to-top button keep
 * working normally.
 */
html,
body {
  overflow-x: clip;
  max-width: 100%;
}

.page-wrapper {
  overflow-x: clip;
}

/*
 * Account and back-office screens.
 *
 * The reference theme is a marketing template: it has no dashboard, no data
 * table beyond the rate board, and no form beyond a newsletter box. Everything
 * below is built from the theme's own tokens - its teal, its line colour, its
 * card radius - rather than a second visual language bolted on beside it.
 */

/* ---- The breadcrumb banner's heading --------------------------------- */

/*
 * The theme styles `.breadcrumb-title h2`. Our Breadcrumb renders the page's
 * `<h1>` there instead, which is the correct element for it - so it inherited
 * the body colour and nothing else. Invisible while the banner behind it was
 * the template's pale placeholder; unreadable the moment a real photograph and
 * the theme's 80% black overlay went in behind it.
 */
.breadcrumb-title h1 {
  font-size: 40px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 15px;
}

/* The theme's own three breakpoints for this heading, mirrored rather than
   invented, so the h1 tracks the h2 it is standing in for. */
@media only screen and (min-width: 992px) and (max-width: 1199px) {
  .breadcrumb-title h1 {
    font-size: 28px;
  }
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
  .breadcrumb-title h1 {
    font-size: 35px;
  }
}

@media only screen and (max-width: 767px) {
  .breadcrumb-title h1 {
    font-size: 24px;
    margin-bottom: 10px;
  }
}

/* ---- Forms ---------------------------------------------------------- */

/*
 * The theme's own input styling lives under `.sign-in-card`, so a form
 * anywhere else - the account settings panel, the uploader - had inputs at
 * their browser default width sitting beside full-width selects.
 */
.form-wrap input[type='text'],
.form-wrap input[type='email'],
.form-wrap input[type='tel'],
.form-wrap input[type='password'],
.form-wrap input[type='number'],
.form-wrap select,
.form-wrap input[type='date'],
.form-wrap input[type='file'] {
  width: 100%;
  min-height: 48px;
  border-radius: 5px;
  border: 1px solid var(--theme-line);
  background: transparent;
  color: inherit;
  padding: 10px 15px;
}

.form-wrap label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-wrap .form-group {
  margin-bottom: 18px;
}

.form-group.has-error input,
.form-group.has-error select {
  border-color: var(--theme-red);
}

.form-help {
  font-size: 13px;
  color: var(--theme-muted);
  margin: 6px 0 0;
}

/* Always in the document, empty until there is something to say, so a message
   arriving from the server does not reflow the form under the pointer. */
.form-error {
  font-size: 13px;
  color: var(--theme-red);
  margin: 6px 0 0;
  min-height: 1.4em;
}

.form-notice {
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 20px;
  border: 1px solid transparent;
}

.form-notice.error {
  background: rgba(255, 56, 56, 0.1);
  border-color: rgba(255, 56, 56, 0.35);
  color: var(--theme-red);
}

.form-notice.success {
  background: rgba(0, 167, 157, 0.1);
  border-color: rgba(0, 167, 157, 0.35);
  color: var(--theme-primary);
}

.consent-note {
  margin-bottom: 20px;
}

button.link.style1 {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

/* ---- Chips shared with the rate board -------------------------------- */

.rate-chip.is-ok {
  background: rgba(22, 163, 74, 0.12);
  color: var(--theme-green);
}

/* ---- Account shell --------------------------------------------------- */

.account-nav ul {
  border: 1px solid var(--theme-line);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}

.account-nav li + li {
  border-top: 1px solid var(--theme-line);
}

.account-nav a {
  display: block;
  padding: 13px 18px;
  font-weight: 500;
}

.account-nav a.active {
  background: var(--theme-primary);
  color: #fff;
}

.account-signout {
  width: 100%;
}

.account-panel {
  border: 1px solid var(--theme-line);
  border-radius: 10px;
  padding: 32px;
  background: var(--theme-whisper);
}

.account-lead {
  color: var(--theme-muted);
  margin-bottom: 24px;
}

.account-section {
  margin-top: 36px;
}

.account-section h2 {
  font-size: 20px;
  margin-bottom: 14px;
}

.account-cards {
  margin-top: 26px;
}

.account-card {
  border: 1px solid var(--theme-line);
  border-radius: 10px;
  padding: 24px;
  height: 100%;
  margin-bottom: 24px;
  background: transparent;
}

.account-card h2 {
  font-size: 18px;
  margin-bottom: 12px;
}

.account-card-status {
  margin-bottom: 12px;
}

.account-card-reason {
  border-inline-start: 3px solid var(--theme-line);
  padding-inline-start: 12px;
  color: var(--theme-muted);
}

.account-facts {
  margin-bottom: 18px;
}

.account-facts > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0;
  border-bottom: 1px solid var(--theme-line);
}

.account-facts dt {
  color: var(--theme-muted);
  font-weight: 400;
}

.account-facts dd {
  margin: 0;
  text-align: end;
}

.account-empty,
.account-empty-panel {
  color: var(--theme-muted);
}

.account-empty-panel {
  border: 1px dashed var(--theme-line);
  border-radius: 10px;
  padding: 32px;
  text-align: center;
}

.account-empty-panel .btn {
  margin-top: 18px;
}

.account-current-email {
  font-weight: 600;
}

.account-order-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--theme-line);
}

.account-order-ref {
  font-weight: 600;
}

.account-order-meta {
  color: var(--theme-muted);
  font-size: 13px;
}

/*
 * An `sr-only` element is absolutely positioned, and its containing block is
 * the nearest positioned ancestor. Without this it would be laid out against
 * the viewport and drag the page sideways on a phone - the same bug the rate
 * table's scroll container had.
 */
.account-table-wrap {
  position: relative;
}

.account-table th,
.account-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--theme-line);
  vertical-align: middle;
  white-space: nowrap;
}

.account-privacy-note {
  margin-top: 36px;
  font-size: 13px;
  color: var(--theme-muted);
}

/* ---- Verification ---------------------------------------------------- */

.verification-status {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.document-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--theme-line);
}

.document-name {
  display: flex;
  flex-direction: column;
  flex: 1 1 220px;
  min-width: 0;
}

.document-name .account-order-meta {
  overflow-wrap: anywhere;
}

.document-remove {
  color: var(--theme-red);
}

@media (max-width: 991px) {
  .account-panel {
    padding: 24px 20px;
  }

  .account-facts > div {
    flex-direction: column;
    gap: 2px;
  }

  .account-facts dd {
    text-align: start;
  }
}

/* ---- Back office ------------------------------------------------------ */

/*
 * Built from the account area's pieces rather than a second look: the panel,
 * the sidebar, the chips and the table are the same components. A member of
 * staff is a customer of this site too, and the back office being visibly the
 * same site is the point.
 */

.header-admin-link {
  font-weight: 600;
  white-space: nowrap;
}

.account-staff-note {
  margin-bottom: 20px;
}

.admin-role {
  font-size: 13px;
  font-weight: 600;
  color: var(--theme-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.admin-leave {
  margin-bottom: 14px;
  font-size: 14px;
}

.admin-tiles {
  margin-top: 8px;
}

.admin-tile {
  border: 1px solid var(--theme-line);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  height: calc(100% - 20px);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-tile-value {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
}

.admin-tile-label {
  color: var(--theme-muted);
  font-size: 14px;
  flex: 1;
}

.admin-queue li,
.admin-alerts li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--theme-line);
}

.admin-queue-main,
.admin-alert-message {
  display: flex;
  flex-direction: column;
  flex: 1 1 220px;
  min-width: 0;
}

.admin-queue-name {
  font-weight: 600;
}

.admin-trail li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 0;
  border-bottom: 1px solid var(--theme-line);
}

.admin-trail-note {
  color: var(--theme-muted);
}

.admin-sync {
  margin-bottom: 8px;
}

.admin-search .form-group {
  max-width: 420px;
}

/*
 * The controls are behind a disclosure per currency. Setting a rate by hand or
 * taking a currency off the board should not be one click away on a table of
 * seventeen rows.
 */
.rate-controls {
  border: 1px solid var(--theme-line);
  border-radius: 10px;
  margin-bottom: 12px;
}

.rate-controls > summary {
  cursor: pointer;
  padding: 14px 18px;
  font-weight: 600;
}

.rate-controls-body {
  display: grid;
  gap: 28px;
  padding: 0 18px 18px;
  grid-template-columns: 1fr 1fr;
}

.rate-controls-body h4 {
  font-size: 16px;
  margin-bottom: 8px;
}

.setting-row {
  border: 1px solid var(--theme-line);
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 16px;
}

.setting-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.setting-head label {
  margin: 0;
  font-weight: 600;
}

.setting-edit {
  display: flex;
  gap: 12px;
  align-items: center;
}

.setting-edit input {
  flex: 1;
}

.form-wrap textarea {
  width: 100%;
  border-radius: 5px;
  border: 1px solid var(--theme-line);
  background: transparent;
  color: inherit;
  padding: 10px 15px;
  font-family: inherit;
}

@media (max-width: 991px) {
  .rate-controls-body {
    grid-template-columns: 1fr;
  }

  .setting-edit {
    flex-direction: column;
    align-items: stretch;
  }
}
