.hasepost-ki-hase {
    --hasepost-ki-hase-blue: #061f58;
    --hasepost-ki-hase-line: #c9cdd3;
    --hasepost-ki-hase-muted: #6f747b;
    --hasepost-ki-hase-focus: #0b4b91;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

.hasepost-ki-hase *,
.hasepost-ki-hase *::before,
.hasepost-ki-hase *::after,
.hasepost-ki-hase-modal,
.hasepost-ki-hase-modal *,
.hasepost-ki-hase-modal *::before,
.hasepost-ki-hase-modal *::after {
    box-sizing: border-box;
}

.hasepost-ki-hase-host {
    position: relative;
}

.hasepost-ki-hase--auto {
    left: 12px;
    margin: 0;
    max-width: min(390px, calc(100% - 24px));
    position: absolute;
    bottom: calc(var(--hasepost-ki-hase-caption-offset, 0px) + 12px);
    width: 390px;
    z-index: 25;
}

.hasepost-ki-hase--fallback-position {
    margin: 12px 0;
    max-width: 390px;
    position: static;
    width: 100%;
}

.hasepost-ki-hase__form {
    display: block;
    margin: 0;
    width: 100%;
}

.hasepost-ki-hase__field {
    align-items: center;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid var(--hasepost-ki-hase-line);
    border-radius: 5px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
    display: flex;
    height: 34px;
    min-width: 0;
    overflow: visible;
    position: relative;
    transition: border-color 160ms ease, box-shadow 160ms ease;
    width: 100%;
}

.hasepost-ki-hase__field:focus-within {
    border-color: var(--hasepost-ki-hase-focus);
    box-shadow: 0 0 0 2px rgba(11, 75, 145, 0.14), 0 8px 22px rgba(0, 0, 0, 0.14);
}

.hasepost-ki-hase__badge {
    align-items: center;
    align-self: stretch;
    background: #fff;
    border: 0;
    border-right: 1px solid #d7dbe0;
    border-radius: 4px 0 0 4px;
    cursor: text;
    display: inline-flex;
    flex: 0 0 34px;
    height: 100%;
    justify-content: center;
    margin: 0;
    min-width: 34px;
    padding: 0 5px;
}

.hasepost-ki-hase__badge picture {
    align-items: center;
    display: inline-flex;
    height: 100%;
    justify-content: center;
    width: 100%;
}

.hasepost-ki-hase__badge img {
    display: block;
    height: auto;
    max-height: 20px;
    max-width: 23px;
    object-fit: contain;
    width: auto;
}

.hasepost-ki-hase__input {
    appearance: none;
    background: transparent;
    border: 0;
    color: #23262a;
    flex: 1 1 auto;
    font: italic 13px/1.2 Arial, Helvetica, sans-serif;
    height: 100%;
    letter-spacing: 0;
    min-width: 0;
    outline: 0;
    padding: 0 5px 0 8px;
}

.hasepost-ki-hase__input::-webkit-search-decoration,
.hasepost-ki-hase__input::-webkit-search-cancel-button {
    appearance: none;
}

.hasepost-ki-hase__input::placeholder {
    color: var(--hasepost-ki-hase-muted);
    opacity: 1;
}

.hasepost-ki-hase__info {
    align-items: center;
    display: inline-flex;
    flex: 0 0 auto;
    height: 100%;
    justify-content: center;
    padding: 0 8px 0 3px;
    position: static;
}

.hasepost-ki-hase__info-button {
    align-items: center;
    background: #fff;
    border: 1px solid #6d7074;
    border-radius: 50%;
    color: #5a5f64;
    cursor: help;
    display: inline-flex;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    height: 17px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    text-transform: none;
    width: 17px;
}

.hasepost-ki-hase__info-button:focus-visible {
    outline: 3px solid rgba(0, 70, 120, 0.28);
    outline-offset: 3px;
}

.hasepost-ki-hase__tooltip {
    background: #fff;
    border: 1px solid #d7dde6;
    border-radius: 2px;
    bottom: calc(100% + 11px);
    box-shadow: 0 12px 30px rgba(5, 35, 62, 0.18);
    color: #043b66;
    display: block;
    font-size: 13px;
    font-weight: 400;
    left: 0;
    line-height: 1.35;
    opacity: 0;
    overflow-wrap: break-word;
    padding: 10px 12px;
    pointer-events: none;
    position: absolute;
    text-align: left;
    transform: translateY(4px);
    transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease;
    visibility: hidden;
    width: 100%;
    z-index: 30;
}

.hasepost-ki-hase__tooltip strong,
.hasepost-ki-hase__tooltip span {
    display: block;
}

.hasepost-ki-hase__tooltip strong {
    font-weight: 700;
}

.hasepost-ki-hase__tooltip span {
    font-weight: 400;
    margin-top: 4px;
}

.hasepost-ki-hase__tooltip::before,
.hasepost-ki-hase__tooltip::after {
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    content: "";
    position: absolute;
    right: 8px;
    top: 100%;
}

.hasepost-ki-hase__tooltip::before {
    border-top: 13px solid #d7dde6;
}

.hasepost-ki-hase__tooltip::after {
    border-top: 12px solid #fff;
    margin-top: -1px;
}

.hasepost-ki-hase__info:hover .hasepost-ki-hase__tooltip,
.hasepost-ki-hase__info:focus-within .hasepost-ki-hase__tooltip,
.hasepost-ki-hase__info.is-tooltip-open .hasepost-ki-hase__tooltip {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.hasepost-ki-hase__status {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 4px;
    color: #33383f;
    display: none;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    margin: 6px 0 0;
    padding: 5px 8px;
    width: fit-content;
}

.hasepost-ki-hase__status.has-message {
    display: block;
}

.hasepost-ki-hase-modal[hidden] {
    display: none !important;
}

.hasepost-ki-hase-modal {
    --hasepost-ki-hase-blue: #061f58;
    align-items: center;
    background: rgba(0, 0, 0, 0.42);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 22px;
    position: fixed;
    z-index: 2147483000;
}

.hasepost-ki-hase-modal__dialog {
    background: #e1efff;
    border: 1px solid #aecaef;
    border-radius: 6px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
    color: #22262b;
    max-height: min(720px, calc(100vh - 44px));
    max-width: 360px;
    overflow: auto;
    padding: 24px 26px 26px;
    position: relative;
    width: min(360px, 100%);
}

.hasepost-ki-hase-modal__close {
    align-items: center;
    background: #fff;
    border: 1px solid #c8cdd3;
    border-radius: 50%;
    color: #30343a;
    cursor: pointer;
    display: inline-flex;
    font: 700 23px/1 Arial, Helvetica, sans-serif;
    height: 32px;
    justify-content: center;
    padding: 0 0 2px;
    position: absolute;
    right: 12px;
    top: 12px;
    width: 32px;
}

.hasepost-ki-hase-modal__close:hover,
.hasepost-ki-hase-modal__close:focus-visible {
    border-color: var(--hasepost-ki-hase-blue);
    color: var(--hasepost-ki-hase-blue);
    outline: 0;
}

.hasepost-ki-hase-modal__title {
    color: var(--hasepost-ki-hase-blue);
    font: 800 21px/1.25 Arial, Helvetica, sans-serif;
    letter-spacing: 0;
    margin: 0 42px 15px 0;
}

.hasepost-ki-hase-modal__body {
    font: 16px/1.58 Arial, Helvetica, sans-serif;
    padding-right: 28px;
}

.hasepost-ki-hase-modal__body p {
    margin: 0 0 12px;
}

.hasepost-ki-hase-modal__body p:last-child,
.hasepost-ki-hase-modal__body ul {
    margin-bottom: 0;
}

.hasepost-ki-hase-modal__body ul {
    padding-left: 20px;
}

.hasepost-ki-hase-modal__body li {
    margin: 0 0 7px;
}

.hasepost-ki-hase-modal__body strong {
    color: var(--hasepost-ki-hase-blue);
}

.hasepost-ki-hase-modal-open {
    overflow: hidden;
}

@media (max-width: 520px) {
    .hasepost-ki-hase--auto {
        bottom: calc(var(--hasepost-ki-hase-caption-offset, 0px) + 10px);
        left: 10px;
        max-width: min(260px, calc(100% - 20px));
        width: calc(100% - 20px);
    }

    .hasepost-ki-hase__field {
        height: 34px;
    }

    .hasepost-ki-hase__badge {
        flex-basis: 37px;
        min-width: 37px;
        padding: 0 6px;
    }

    .hasepost-ki-hase__input {
        font-size: 13px;
        padding-left: 8px;
    }

    .hasepost-ki-hase__tooltip {
        font-size: 12px;
        padding: 9px 10px;
    }

    .hasepost-ki-hase-modal {
        align-items: stretch;
        display: block;
        padding: 0;
    }

    .hasepost-ki-hase-modal__dialog {
        left: 30px;
        margin: 0;
        max-height: calc(100vh - 90px);
        max-height: calc(100dvh - 90px);
        max-width: none;
        padding: 20px 18px 22px;
        position: fixed;
        right: 30px;
        top: 60px;
        width: auto;
    }

    .hasepost-ki-hase-modal__title {
        font-size: 19px;
    }

    .hasepost-ki-hase-modal__body {
        font-size: 15px;
        padding-right: 26px;
    }
}

@media (max-width: 767px), (hover: none) and (pointer: coarse) {
    .hasepost-ki-hase-modal {
        align-items: stretch !important;
        display: block !important;
        justify-content: flex-start !important;
        padding: 0 !important;
    }

    .hasepost-ki-hase-modal__dialog {
        box-sizing: border-box !important;
        inset: 60px 30px auto 30px !important;
        left: 30px !important;
        margin: 0 !important;
        max-height: calc(100vh - 90px) !important;
        max-height: calc(100dvh - 90px) !important;
        max-width: calc(100vw - 60px) !important;
        min-width: 0 !important;
        padding: 20px 18px 22px !important;
        position: fixed !important;
        right: 30px !important;
        top: 60px !important;
        transform: none !important;
        width: calc(100vw - 60px) !important;
    }
}

@media (hover: none) and (pointer: coarse) {
    .hasepost-ki-hase__info:not(.is-tooltip-open):hover .hasepost-ki-hase__tooltip,
    .hasepost-ki-hase__info:not(.is-tooltip-open):focus-within .hasepost-ki-hase__tooltip {
        opacity: 0;
        transform: translateY(4px);
        visibility: hidden;
    }

    .hasepost-ki-hase__info.is-tooltip-open .hasepost-ki-hase__tooltip {
        opacity: 1;
        transform: translateY(0);
        visibility: visible;
    }
}
