/* Shared frontend tooltip treatment. Django admin uses a separate base template. */

body.front-page .tooltip {
    z-index: 1080;
    --bs-tooltip-bg: #162033;
    --bs-tooltip-color: #f8fafc;
    --bs-tooltip-max-width: 400px;
    --bs-tooltip-padding-x: 15px;
    --bs-tooltip-padding-y: 12px;
    --bs-tooltip-font-size: 15px;
    margin: 0;
    font-family: "Roboto", "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0.005em;
    pointer-events: none;
}

body.front-page .tooltip.in,
body.front-page .tooltip.show {
    filter: none;
    opacity: 1 !important;
}

body.front-page .tooltip .tooltip-inner {
    max-width: min(400px, calc(100vw - 24px));
    padding: 12px 15px;
    overflow-wrap: anywhere;
    white-space: normal;
    color: #f8fafc;
    text-align: left;
    background: #162033;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 11px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.28), 0 3px 8px rgba(15, 23, 42, 0.16);
}

body.front-page .tooltip.top .tooltip-arrow,
body.front-page .tooltip.top-left .tooltip-arrow,
body.front-page .tooltip.top-right .tooltip-arrow {
    border-top-color: #162033;
}

body.front-page .tooltip.right .tooltip-arrow {
    border-right-color: #162033;
}

body.front-page .tooltip.bottom .tooltip-arrow,
body.front-page .tooltip.bottom-left .tooltip-arrow,
body.front-page .tooltip.bottom-right .tooltip-arrow {
    border-bottom-color: #162033;
}

body.front-page .tooltip.left .tooltip-arrow {
    border-left-color: #162033;
}

body.front-page .bs-tooltip-top .tooltip-arrow::before {
    border-top-color: #162033;
}

body.front-page .bs-tooltip-end .tooltip-arrow::before,
body.front-page .bs-tooltip-right .tooltip-arrow::before {
    border-right-color: #162033;
}

body.front-page .bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: #162033;
}

body.front-page .bs-tooltip-start .tooltip-arrow::before,
body.front-page .bs-tooltip-left .tooltip-arrow::before {
    border-left-color: #162033;
}

body.front-page .ui-tooltip {
    z-index: 1080;
    max-width: min(400px, calc(100vw - 24px));
    padding: 12px 15px;
    overflow-wrap: anywhere;
    color: #f8fafc;
    font-family: "Roboto", "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0.005em;
    background: #162033;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 11px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.28), 0 3px 8px rgba(15, 23, 42, 0.16);
}

body.front-page .help-icon,
body.front-page .scm-bootstrap-field .help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 21px;
    height: 21px;
    margin-left: 3px;
    flex: 0 0 21px;
    color: #1769c2;
    font-size: 14px;
    line-height: 1;
    vertical-align: -4px;
    background: #eaf3ff;
    border: 1px solid #c7dcf5;
    border-radius: 50%;
    cursor: help;
    transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

body.front-page .help-icon .fa {
    width: auto;
    margin: 0;
    line-height: 1;
}

body.front-page .help-icon:hover,
body.front-page .help-icon:focus,
body.front-page .scm-bootstrap-field .help-icon:hover,
body.front-page .scm-bootstrap-field .help-icon:focus {
    color: #fff;
    background: #1769c2;
    border-color: #1769c2;
    outline: 0;
    box-shadow: 0 0 0 4px rgba(23, 105, 194, 0.14);
}

@media (max-width: 767px) {
    body.front-page .tooltip,
    body.front-page .ui-tooltip {
        font-size: 15px;
    }
}
