:root {

    /** Colors */
    --thermal-foreground: black;
    --thermal-background: white;

    /** Primary - base */
    --thermal-primary-base: blue;
    --thermal-primary-base-dark: navy;
    --thermal-primary-base-light: lightblue;

    /** Primary */
    --thermal-primary: var(--thermal-primary-base);
    --thermal-primary-light: var(--thermal-primary-base-light);
    --thermal-primary-dark: var(--thermal-primary-base-dark);

    /** Slate -base */
    --thermal-slate-base: #8e8c8f;
    --thermal-slate-base-light: #dad7db;
    --thermal-slate-base-dark: #49474a;

    /** Slate */
    --thermal-slate: var(--thermal-slate-base);
    --thermal-slate-light: var(--thermal-slate-base-light);
    --thermal-slate-dark: var(--thermal-slate-base-dark);

    /** Gaps */
    --thermal-gap-base: 16px;
    --thermal-gap-sm: 17px;
    --thermal-gap-md: 18px;
    --thermal-gap-lg: 19px;
    --thermal-gap-xl: 20px;
    --thermal-gap: var(--thermal-gap-base);

    /** Font sizes */
    --thermal-fs-base: 16px;
    --thermal-fs-sm: 16px;
    --thermal-fs-md: 16px;
    --thermal-fs-lg: 16px;
    --thermal-fs-xl: 16px;
    --thermal-fs: var(--thermal-fs-base);
    --thermal-fs-small: calc(var(--thermal-fs) * 0.9);
    --thermal-fs-large: calc(var(--thermal-fs) * 1.2);

    /** Round corners */
    --thermal-radius-base: 5px;
    --thermal-radius-sm: 6px;
    --thermal-radius-md: 7px;
    --thermal-radius-lg: 8px;
    --thermal-radius-xl: 9px;
    --thermal-radius: var(--thermal-radius-base);

    /** Shadows */
    --thermal-shadow: 0px 0px 5px var(--thermal-slate-dark);
    --thermal-shadow-none: 0px 0px 0px transparent;

    --thermal-direction: row;
    --thermal-collapsible-display: none;
    --thermal-collapsible-grow: 0;
    --thermal-collapsible-width: 100%;

}

:root {

    @media (min-width: 640px) {
        --thermal-gap: var(--thermal-gap-sm);
        --thermal-fs: var(--thermal-fs-sm);
        --thermal-radius: var(--thermal-radius-sm);
    }

    @media (min-width: 960px) {
        --thermal-gap: var(--thermal-gap-md);
        --thermal-fs: var(--thermal-fs-md);
        --thermal-radius: var(--thermal-radius-md);
    }

    @media (min-width: 1250px) {
        --thermal-gap: var(--thermal-gap-lg);
        --thermal-fs: var(--thermal-fs-lg);
        --thermal-radius: var(--thermal-radius-lg);
    }

    @media (min-width: 1440px) {
        --thermal-gap: var(--thermal-gap-xl);
        --thermal-fs: var(--thermal-fs-xl);
        --thermal-radius: var(--thermal-radius-xl);
    }

}

body.thermal-dark-mode {

    --thermal-primary: aqua;
    --thermal-foreground: white;
    --thermal-background: black;

    --thermal-primary-light: var(--thermal-primary-base-dark);
    --thermal-primary-dark: var(--thermal-primary-base-light);

    --thermal-slate-light: var(--thermal-slate-base-dark);
    --thermal-slate-dark: var(--thermal-slate-base-light);

}


.thermal-tooltip {

    background-color: var(--thermal-slate-dark, blue);
    color: var(--thermal-background, white);
    padding: calc(var(--thermal-gap, 0.5rem) * .3) calc(var(--thermal-gap, 0.5rem) * .4);

    box-sizing: border-box;
    box-shadow: var(--thermal-shadow, 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06));

    border-radius: var(--tooltip-border-radius, 4px);

    font-family: var(--thermal-font-family, Arial, sans-serif);
    font-size: calc(var(--thermal-fs, 1rem) * .7);
    word-wrap: break-word;

    z-index: 9999;

    pointer-events: none;
    max-width: 200px;

}

.thermal-tooltip-arrow {
    position: absolute;
    width: 8px;
    height: 8px;
    background: inherit;
    transform: rotate(45deg);
}