.althea-espa {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 9998;
    font-family: Arial, sans-serif;
}

.althea-espa__buttons {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.althea-espa__toggle {
    border: 2px solid #307cbc !important;
    border-radius: 4px;
    padding: 11px 14px;
    background: #fff !important;
    color: #307cbc !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .22);
}

.althea-espa__toggle:hover,
.althea-espa__toggle:focus-visible,
.althea-espa__toggle[aria-expanded="true"] {
    background: #307cbc !important;
    color: #fff !important;
}

.althea-espa__viewer {
    position: absolute;
    left: 0;
    bottom: calc(100% + 10px);
    width: min(520px, calc(100vw - 36px));
    max-height: calc(100vh - 100px);
    padding: 10px;
    overflow: auto;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 5px 24px rgba(0, 0, 0, .32);
}

.althea-espa__viewer[hidden] {
    display: none;
}

.althea-espa__poster {
    display: block;
    width: 100%;
    height: auto;
}

.althea-espa__close {
    position: sticky;
    float: right;
    top: 0;
    z-index: 1;
    width: 34px;
    height: 34px;
    margin: 0 0 -34px 0;
    border: 0;
    border-radius: 50%;
    background: #307cbc;
    color: #fff;
    font-size: 25px;
    line-height: 30px;
    cursor: pointer;
}

@media (max-width: 600px) {
    .althea-espa {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }

    .althea-espa__buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .althea-espa__viewer {
        width: 100%;
        max-height: calc(100vh - 125px);
    }
}
