:root {
    --representation-blue: #2801C3;
    --representation-edge: 1rem;
    --representation-control-size: 3.125rem;
}

.representation-layer,
.representation-layer * {
    box-sizing: border-box;
}

.representation-layer {
    position: fixed;
    inset: 0;
    z-index: 100;
    visibility: hidden;
    color: var(--representation-blue);
    font-family: Arial, Helvetica, sans-serif;
    pointer-events: none;
}

.representation-layer.is-ready {
    visibility: visible;
}

.representation-layer__clariana-link {
    position: absolute;
    top: var(--representation-edge);
    left: var(--representation-edge);
    display: block;
    width: 14rem;
    pointer-events: auto;
}

.representation-layer__clariana-link img {
    display: block;
    width: 100%;
    height: auto;
}

.representation-layer__footer {
    position: absolute;
    bottom: var(--representation-edge);
    left: var(--representation-edge);
    margin: 0;
    color: var(--representation-blue);
    font-size: 0.6875rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    line-height: 1.4;
    text-align: left;
    opacity: 0;
    transform: translateY(0.5rem);
    transition: opacity 1200ms ease, transform 1200ms ease;
}

.representation-layer.has-navigation-bottom-left .representation-layer__footer {
    left: calc(
        var(--representation-edge) +
        var(--representation-control-size) +
        0.75rem
    );
}

.representation-layer.is-footer-visible .representation-layer__footer {
    opacity: 1;
    transform: translateY(0);
}

.representation-layer__menu {
    position: absolute;
    top: var(--representation-edge);
    right: var(--representation-edge);
    width: var(--representation-control-size);
    height: var(--representation-control-size);
    opacity: 0;
    pointer-events: none;
    transition: opacity 900ms ease;
}

.representation-layer.is-menu-visible .representation-layer__menu {
    opacity: 1;
    pointer-events: auto;
}

.representation-layer__menu-toggle {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    color: inherit;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.representation-layer__menu-icon {
    display: block;
    width: 100%;
    height: 100%;
    transition: transform 600ms ease;
}

.representation-layer__menu-icon circle,
.representation-layer__navigation-icon circle {
    fill: rgb(40 1 195 / 18%);
    transition: fill 600ms ease;
}

.representation-layer__menu-icon path,
.representation-layer__navigation-icon path {
    transition: stroke 600ms ease;
}

.representation-layer__menu:hover .representation-layer__menu-icon circle,
.representation-layer__menu:focus-within .representation-layer__menu-icon circle,
.representation-layer__navigation-icon:hover circle,
.representation-layer__navigation-icon:focus-visible circle {
    fill: rgb(40 1 195 / 80%);
}

.representation-layer__menu:hover .representation-layer__menu-icon path,
.representation-layer__menu:focus-within .representation-layer__menu-icon path,
.representation-layer__navigation-icon:hover path,
.representation-layer__navigation-icon:focus-visible path {
    stroke: #fff;
}

.representation-layer__menu.is-open .representation-layer__menu-icon {
    transform: rotate(45deg);
}

.representation-layer__menu-panel {
    position: absolute;
    top: 50%;
    right: calc(100% + 1rem);
    width: max-content;
    min-width: 10rem;
    opacity: 0;
    pointer-events: none;
    transform: translateX(0.75rem) translateY(-50%);
    transition: opacity 600ms ease, transform 600ms ease;
}

.representation-layer__menu.is-open .representation-layer__menu-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0) translateY(-50%);
}

.representation-layer__menu-panel ul {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin: 0;
    padding: 0;
    color: var(--representation-blue);
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    line-height: 1.4;
    list-style: none;
    text-align: right;
    white-space: nowrap;
}

.representation-layer__menu-option {
    padding: 0;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    line-height: inherit;
    text-align: inherit;
    text-decoration: none;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.representation-layer__menu-option.is-disabled {
    cursor: default;
}

.representation-layer__menu-hover-line {
    position: absolute;
    bottom: -0.35rem;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--representation-blue);
    opacity: 0;
    pointer-events: none;
    transform: translateX(0);
    transition: width 240ms ease, transform 240ms ease, opacity 420ms ease;
}

.representation-layer__menu-panel.has-hovered-option .representation-layer__menu-hover-line {
    opacity: 1;
}

.representation-layer__navigation-icon {
    position: absolute;
    display: block;
    width: var(--representation-control-size);
    height: var(--representation-control-size);
    color: var(--representation-blue);
    opacity: 0;
    pointer-events: none;
    transition: opacity 900ms ease, transform 900ms ease;
}

.representation-layer__navigation-icon--bottom-left {
    bottom: var(--representation-edge);
    left: var(--representation-edge);
    transform: translateY(0.5rem);
}

.representation-layer__navigation-icon--bottom-right {
    right: var(--representation-edge);
    bottom: var(--representation-edge);
    transform: translateY(0.5rem);
}

.representation-layer.is-navigation-visible .representation-layer__navigation-icon {
    opacity: 1;
    pointer-events: auto;
}

.representation-layer.is-navigation-visible .representation-layer__navigation-icon--bottom-left {
    transform: translateY(0);
}

.representation-layer.is-navigation-visible .representation-layer__navigation-icon--bottom-right {
    transform: translateY(0);
}

.representation-layer.is-navigation-visible .representation-layer__navigation-icon--up:hover,
.representation-layer.is-navigation-visible .representation-layer__navigation-icon--up:focus-visible {
    transform: translateY(-0.35rem);
}

.representation-layer.is-navigation-visible .representation-layer__navigation-icon--down:hover,
.representation-layer.is-navigation-visible .representation-layer__navigation-icon--down:focus-visible {
    transform: translateY(0.35rem);
}

.representation-layer.is-navigation-visible .representation-layer__navigation-icon--left:hover,
.representation-layer.is-navigation-visible .representation-layer__navigation-icon--left:focus-visible {
    transform: translateX(-0.35rem);
}

.representation-layer.is-navigation-visible .representation-layer__navigation-icon--right:hover,
.representation-layer.is-navigation-visible .representation-layer__navigation-icon--right:focus-visible {
    transform: translateX(0.35rem);
}

.representation-layer__navigation-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.representation-layer__menu-toggle:focus-visible,
.representation-layer__menu-option:focus-visible,
.representation-layer__clariana-link:focus-visible,
.representation-layer__navigation-icon:focus-visible {
    outline: 1px solid currentColor;
    outline-offset: 0.2rem;
}

@media (max-width: 38rem) {
    .representation-layer__clariana-link {
        width: 10rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .representation-layer__footer,
    .representation-layer__menu,
    .representation-layer__menu-icon,
    .representation-layer__menu-panel,
    .representation-layer__menu-hover-line,
    .representation-layer__menu-icon circle,
    .representation-layer__menu-icon path,
    .representation-layer__navigation-icon,
    .representation-layer__navigation-icon circle,
    .representation-layer__navigation-icon path {
        transition: none;
    }
}
