.tooltip {
    position: relative;
    border-bottom: 1px dashed var(--secondary-blue);
}

.tooltip[data-tooltip]:hover:before,
.tooltip[data-tooltip]:focus:before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 25px;
    left: 0;
    background: var(--licorice);
    color: var(--milk);
    border-radius: 4px;
    padding: 5px 10px;
    width: 180px;
    z-index: 2;
    box-shadow: 3px 3px 4px rgba(0,0,0,.05);
    font-size:14px;
}

.tooltip[data-tooltip].mod-left:hover:before,
.tooltip[data-tooltip].mod-left:focus:before {
    right: 0;
    left: inherit;
}

.tooltip[data-tooltip].mod-bottom:hover:before,
.tooltip[data-tooltip].mod-bottom:focus:before {
    top: 25px;
    bottom: inherit;
}

.tooltip[data-tooltip]:hover:after,
.tooltip[data-tooltip]:focus:after {
    content: '';
    display: block;
    position: absolute;
    bottom: 19px;
    left: 10px;
    width: 0;
    height: 0;
    border-right: 8px solid transparent;
    border-left: 8px solid transparent;
    border-top: 8px solid var(--licorice);
    z-index: 1;
}

.tooltip[data-tooltip].mod-left:hover:after,
.tooltip[data-tooltip].mod-left:focus:after {
    right: 10px;
    left: inherit;
}

.tooltip[data-tooltip].mod-bottom:hover:after,
.tooltip[data-tooltip].mod-bottom:focus:after {
    bottom: inherit;
    border-bottom: 8px solid var(--licorice);
    border-top: none;
}

@media (--mini-screen) {
    .tooltip[data-tooltip]:focus:before {
        display: inline-block;
        position: fixed;
        left: 10%;
        width: 80%;
        top: 25%;
        bottom: auto;
    }
    .tooltip[data-tooltip]:focus:before { display: none; }
}


/* Eksempel på Overstyring for lavpriskalenderen, this is soooo not good but it kinda works for now
.lowfareTableLayoutFixed .tooltip[data-tooltip]:hover:before,
.lowfareTableLayoutFixed .tooltip[data-tooltip]:focus:before {
  bottom:37px;
}
.lowfareTableLayoutFixed .tooltip[data-tooltip]:hover:after,
.lowfareTableLayoutFixed .tooltip[data-tooltip]:focus:after {
  bottom:31px!important;
}
*/
