@charset "UTF-8";

/** 
* Fonts
* ----- 
**/

/* Regular */
@font-face {
  font-family: "circular";
  font-weight: 400;
  src: "url(https://freeagent.zendesk.com/hc/Circular-Regular.woff2)";
}

/* Regular Italic */
@font-face {
  font-family: "circular";
  font-style: italic;
  font-weight: 400;
  src: "url(https://freeagent.zendesk.com/hc/Circular-Italic.woff2)";
}

/* Medium */
@font-face {
  font-family: "circular";
  font-weight: 500;
  src: url("https://freeagent.zendesk.com/hc/Circular-Medium.woff2");
}

/* Medium Italic */
@font-face {
  font-family: "circular";
  font-style: italic;
  font-weight: 500;
  src: url("https://freeagent.zendesk.com/hc/Circular-MediumItalic.woff2");
}

/* Bold */
@font-face {
  font-family: "circular";
  font-weight: 700;
  src: url("https://freeagent.zendesk.com/hc/Circular-Bold.woff2");
}

/* Bold Italic */
@font-face {
  font-family: "circular";
  font-style: italic;
  font-weight: 700;
  src: url("https://freeagent.zendesk.com/hc/Circular-BoldItalic.woff2");
}

/**
* Reset 
* -----
**/

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  min-height: 100vh;
  scroll-margin-top: var(--scroll-margin-top, 0);
}

body {
  font-family: Circular, "Helvetica Neue", Arial, Helvetica, sans-serif;
  font-variant-ligatures: none;
  font-feature-settings: "ss08" on;
  margin: 0;
  min-height: 100vh;
  padding: 0;
}

button, input, textarea, select {
  font: inherit;
  font-variant-ligatures: inherit;
  font-feature-settings: inherit;
}

img {
  max-width: 100%;
}


/* Hide Staff Only Search Results */

.For.FreeAgent.Staff {
  display: none !important;
}


/* Hide MTD Banner for Non UK Visitors */

#mtd-banner {
  display: none;
}

html[lang="en-GB"] #mtd-banner {
	display: block;
}


/* Breadcrumbs */

.breadcrumbs {
  padding-left: 0;
}

.breadcrumbs li {
  display: inline;
  font-size: 0.95rem;
  line-height: 140%;
  margin: 0;
  padding: 0;
}

.breadcrumbs li:after {
  content:" ›";
  margin: 0 8px;
}

.breadcrumbs li:last-child:after {
  content:"";
}

/* Temporary Lead Paragraph Fix */

.u-text-color--light {
  color: var(--black) !important;
}


/* Override for AnswerBot Z-Index */

iframe#automaticAnswers {
  z-index: 1 !important;
}


/* Fix for Images Appearing Degraded within Chrome when Scaled Down */

.ArticleBody img {
  transform: scale3d(1, 1, 1);
}


/* Temporary Fix for `step-header` Elements Spanning Multiple Lines */

.step-header em {
  float: left;
	margin-right: 10px !important;
}

/* Search Input Override */

.hc-search {
  display: flex;
}

.hc-search > input:not([type="search"]) {
  display: none;
}

.hc-search > input[type="search"] {
  background-image: url("https://freeagent-res.cloudinary.com/image/upload/c_limit,w_1000/dpr_auto/website-images/hc/icons/search-icon.svg");
  background-position: var(--x-small) center;
  background-repeat: no-repeat;
  background-size: 16px;
  border: 1px solid var(--grey-60);
  border-radius: var(--xx-small);
  box-shadow: inset 0 1px 1px 0 rgba(0, 0, 0, .12);
  flex: 1;
  font-size: 1rem;
  padding: var(--xx-small) var(--x-small) var(--xx-small) var(--large);
  width: 100%;
}

.hc-search > input[type="search"]:focus {
  border-color: var(--blue-70);
  box-shadow: 0 0 0 1px var(--blue-70);
  outline: 0;
}

/* Icon/Value Pair */

.event-summary__meta-item {
  align-items: center;
  display: inline-grid;
  gap: var(--xx-small);
  grid-template-columns: min-content auto;
  width: max-content;
}

.event-summary__meta-item > svg {
  fill: var(--grey-80);
}

/* Tile Height Fix */

.fill--vertical {
  height: 100%;
}

/* Tick List Gap Fix */

.tick-list {
  --gap: 1em;
}

/* Callout */

.callout {
 		background-color: var(--yellow-30);
    padding: 10px;
    margin-left: 15px;
    margin-right: 15px;
    margin-top: 15px;
    margin-bottom: 15px;
}

/* Temporary fix for image alignment */

.wysiwyg-text-align-center > img {
  margin-left: auto;
  margin-right: auto;
}

/* Disable breadcrumbs in search results */

zd-autocomplete-breadcrumbs-multibrand {
  display: none;
}

/**
 * Progressive enchancement
 *
 * Enable CSS keyword interpolation for animating intrinsic
 * sizes (e.g. height: 0 → height: auto). Only applied when
 * the user has no motion preference.
 */
@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}

/**
 * Tokens
 */
:root {
  --icon-chevron-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' width='100'%3E%3Cpath d='M16 32C7.2 32 0 24.8 0 16S7.2 0 16 0s16 7.2 16 16-7.2 16-16 16m0-30C8.3 2 2 8.3 2 16s6.3 14 14 14 14-6.3 14-14S23.7 2 16 2'/%3E%3Cpath d='M16 21c-.3 0-.5 0-.7-.3L8.6 14c-.4-.4-.4-1 0-1.4s1-.4 1.4 0l6 6 6-6c.4-.4 1-.4 1.4 0s.4 1 0 1.4l-6.7 6.7c-.2.2-.5.3-.7.3'/%3E%3C/svg%3E");
}

/**
 * fe-Toggle
 *
 * Collapsible content section built on native <details>/<summary>.
 * Produced by the toggle controller from authored markup — not
 * written by hand.
 *
 * Authored:
 *   <div data-controller="toggle">
 *     <h2>Heading</h2>
 *     <p>Content…</p>
 *   </div>
 *
 * Enhanced:
 *   <details class="fe-Toggle">
 *     <summary class="fe-Toggle-summary">
 *       <h2>Heading</h2>
 *     </summary>
 *     <div class="fe-Toggle-body">
 *       <p>Content…</p>
 *     </div>
 *   </details>
 */
.fe-Toggle {
  --fe-Toggle-icon-size: 2rem;
  --fe-Toggle-transition-duration: 0.15s;

  border-top: 1px solid var(--grey-50);
  padding-block: 1rem;

  /**
   * Animate the content panel between collapsed and expanded
   * using ::details-content. Requires interpolate-size on the
   * root element. Browsers without support snap open/close —
   * no functional difference, just no animation.
   */
  &::details-content {
    height: var(--fe-Toggle-content-height, 0);
    overflow: clip;
    transition: height var(--fe-Toggle-transition-duration) ease,
      content-visibility var(--fe-Toggle-transition-duration) ease allow-discrete;
  }

  /* Expanded state */
  &[open] {
    --fe-Toggle-content-height: auto;
    --fe-Toggle-icon-rotation: 180deg;
  }
}

/* Summary: heading + chevron laid out as a two-column grid */
.fe-Toggle-summary {
  align-items: center;
  display: grid;
  gap: 1rem;
  grid-template-columns: auto var(--fe-Toggle-icon-size);

  /* Chevron indicator. Uses mask-image so the SVG defines the
   * shape and background-color: currentColor provides the fill,
   * allowing the icon to inherit text colour automatically.
   */
  &::after {
    aspect-ratio: 1;
    background-color: currentColor;
    content: "";
    height: var(--fe-Toggle-icon-size);
    mask-image: var(--icon-chevron-down);
    mask-size: var(--fe-Toggle-icon-size);
    rotate: var(--fe-Toggle-icon-rotation);
    transition: rotate var(--fe-Toggle-transition-duration) ease;
  }
}

/* Descendant: wraps all content below the summary heading */
.fe-Toggle-body {
  padding-top: 1rem;

  & > :last-child {
    margin-bottom: 0;
  }
}

/**
 * fe-KbHeading
 *
 * Article heading with an optional illustration image.
 * The controller detects a marked image in the article body,
 * extracts it, and promotes it above the <h1>.
 *
 * No target = no enhancement, heading renders normally.
 *
 * Authored (in article body):
 *   <figure class="wysiwyg-image" data-kb-heading-target="image">
 *     <img src="illustration.png" alt="">
 *   </figure>
 *
 * Enhanced:
 *   <div class="fe-KbHeading">
 *     <div class="fe-KbHeading-image">
 *       <img src="illustration.png" alt="">
 *     </div>
 *     <h1>Article title</h1>
 *   </div>
 */
.fe-KbHeading-image {
  margin-bottom: 1.75rem;
  width: 96px;

  & img {
    aspect-ratio: 1;
    display: block;
    width: 100%;
  }
}

/* Hide the marked image immediately to prevent a flash
 * before JS moves it into the heading component. */
[data-kb-heading-target] {
  display: none;
}
