.formel-client-hub {
    --formel-hub-green: #145c37;
    --formel-hub-green-dark: #0d4227;
    --formel-hub-navy: #17324d;
    --formel-hub-text: #25313c;
    --formel-hub-muted: #586774;
    --formel-hub-border: #dce5e0;
    --formel-hub-soft: #f5faf7;
    max-width: 72rem;
    color: var(--formel-hub-text);
    overflow-wrap: anywhere;
}

.formel-client-hub *,
.formel-client-hub *::before,
.formel-client-hub *::after {
    box-sizing: border-box;
}

.formel-client-hub__header {
    margin: 0 0 1.5rem;
}

.formel-client-hub__header h2,
.formel-client-hub__priority h3,
.formel-client-hub__section h3,
.formel-client-hub__case h4,
.formel-client-hub__empty h4 {
    color: var(--formel-hub-navy);
}

.formel-client-hub__header h2 {
    margin: 0.2rem 0 0.35rem;
    font-size: clamp(1.65rem, 4vw, 2.35rem);
    line-height: 1.15;
}

.formel-client-hub__header p,
.formel-client-hub__priority p,
.formel-client-hub__case p,
.formel-client-hub__empty p {
    color: var(--formel-hub-muted);
}

.formel-client-hub__eyebrow,
.formel-client-hub__type {
    display: block;
    margin: 0;
    color: var(--formel-hub-green);
    font-size: 0.75rem;
    font-weight: 750;
    letter-spacing: 0.075em;
    line-height: 1.4;
    text-transform: uppercase;
}

.formel-client-hub__priority {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem;
    margin: 0 0 2rem;
    padding: clamp(1.1rem, 3vw, 1.75rem);
    border: 1px solid #b9d6c5;
    border-left: 0.35rem solid var(--formel-hub-green);
    border-radius: 0.9rem;
    background: var(--formel-hub-soft);
}

.formel-client-hub__priority h3 {
    margin: 0.2rem 0 0.35rem;
    font-size: clamp(1.15rem, 3vw, 1.45rem);
}

.formel-client-hub__priority .button {
    margin-top: 0.45rem;
}

.formel-client-hub__badge,
.formel-client-hub__status {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    padding: 0.38rem 0.7rem;
    border: 1px solid #a8c9b5;
    border-radius: 999px;
    background: #fff;
    color: var(--formel-hub-green-dark);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
}

.formel-client-hub__badge--action {
    border-color: #916b17;
    color: #684900;
}

.formel-client-hub__badge--blocked-action,
.formel-client-hub__badge--stopped {
    border-color: #a95858;
    color: #7b2020;
}

.formel-client-hub__section {
    margin: 0 0 2rem;
}

.formel-client-hub__section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.formel-client-hub__section-heading h3 {
    margin: 0;
}

.formel-client-hub__section-heading a,
.formel-client-hub__row > a {
    color: var(--formel-hub-green-dark);
    font-weight: 700;
    text-underline-offset: 0.18em;
}

.formel-client-hub__cases,
.formel-client-hub__list {
    display: grid;
    gap: 0.75rem;
}

.formel-client-hub__case,
.formel-client-hub__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-width: 0;
    padding: 1rem 1.1rem;
    border: 1px solid var(--formel-hub-border);
    border-radius: 0.8rem;
    background: #fff;
}

.formel-client-hub__case-main,
.formel-client-hub__case-state,
.formel-client-hub__row > div {
    min-width: 0;
}

.formel-client-hub__case h4 {
    margin: 0.2rem 0;
    font-size: 1.05rem;
}

.formel-client-hub__case p,
.formel-client-hub__row span {
    display: block;
    margin: 0.2rem 0 0;
    font-size: 0.88rem;
}

.formel-client-hub__case-state {
    display: flex;
    flex: 0 1 24rem;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.55rem;
    text-align: right;
}

.formel-client-hub__case-state p {
    max-width: 25rem;
}

.formel-client-hub__row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
}

.formel-client-hub__empty {
    padding: 1.2rem;
    border: 1px dashed #b8c8be;
    border-radius: 0.8rem;
    background: #fbfdfc;
}

.formel-client-hub__empty h4,
.formel-client-hub__empty p {
    margin: 0;
}

.formel-client-hub__empty p {
    margin-top: 0.3rem;
}

.formel-client-hub .button,
.woocommerce-MyAccount-navigation a {
    min-height: 2.75rem;
}

.formel-client-hub a.button,
.formel-client-hub a.button.alt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0.125rem solid var(--formel-hub-green) !important;
    background: var(--formel-hub-green) !important;
    color: #fff !important;
    font-weight: 750;
    opacity: 1 !important;
    text-decoration: none;
}

.formel-client-hub a.button:hover,
.formel-client-hub a.button.alt:hover {
    border-color: var(--formel-hub-green-dark) !important;
    background: var(--formel-hub-green-dark) !important;
    color: #fff !important;
}

.formel-client-hub__account-toggle {
    display: none;
}

[hidden] {
    display: none !important;
}

.formel-client-hub a:focus-visible,
.formel-client-hub button:focus-visible,
.woocommerce-MyAccount-navigation a:focus-visible,
.formel-client-hub__account-toggle:focus-visible {
    outline: 0.2rem solid #c47700;
    outline-offset: 0.2rem;
}

@media (max-width: 48rem) {
    .formel-client-hub__account-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: calc(100% - 2rem);
        min-height: 3rem;
        margin: 0.75rem 1rem;
        padding: 0.7rem 0.9rem;
        border: 0.125rem solid var(--formel-hub-green);
        border-radius: 0.65rem;
        background: #fff;
        color: var(--formel-hub-green-dark);
        font: inherit;
        font-weight: 750;
        text-align: left;
    }

    .formel-client-hub__account-toggle::after {
        content: "▾";
        margin-left: 0.75rem;
    }

    .formel-client-hub__account-toggle[aria-expanded="true"]::after {
        content: "▴";
    }

    .formel-client-hub__priority,
    .formel-client-hub__case,
    .formel-client-hub__row {
        align-items: stretch;
        flex-direction: column;
    }

    .formel-client-hub__case-state {
        flex-basis: auto;
        align-items: flex-start;
        text-align: left;
    }

    .formel-client-hub__row-actions {
        justify-content: space-between;
    }
}

@media (max-width: 30rem) {
    .formel-client-hub__section-heading,
    .formel-client-hub__row-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .formel-client-hub__priority,
    .formel-client-hub__case,
    .formel-client-hub__row {
        padding: 0.9rem;
    }

    .formel-client-hub .button {
        display: flex;
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .formel-client-hub *,
    .formel-client-hub *::before,
    .formel-client-hub *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
