
.rezerwacja-tooltip-icon {
    width: 20px;
    height: 20px;
    display:block;
    background-color:#737373;
    -webkit-mask:url('/static/gfx2/IcoInfotip20.svg') center / contain no-repeat;
    mask:url('/static/gfx2/IcoInfotip20.svg') center / contain no-repeat;
}

.kod-polecenia-input-wrapper{
    position:relative;
}

.kod-polecenia-input-wrapper #id_kod_polecenia{
    padding-right:52px;
}

.rezerwacja-tooltip-trigger{
    position:absolute;
    top:50%;
    right:8px;
    display:flex;
    width:36px;
    height:36px;
    align-items:center;
    justify-content:center;
    padding:0;
    border:0;
    background:transparent;
    cursor:pointer;
    transform:translateY(-50%);
}

.rezerwacja-tooltip-trigger:focus-visible{
    outline:2px solid #737373;
    outline-offset:2px;
    border-radius:50%;
}

.rezerwacja-tooltip-mobile,
.rezerwacja-tooltip-mobile-legacy,
.rezerwacja-tooltip-legacy{
    display:none;
}

.rezerwacja-tooltip {
    /*position: absolute;*/
    right: 0;
    top: 0;
    /*pointer-events: none;*/
    font-family: Inter;
    width: 20px;
    height: 20px;
}

.rezerwacja-tooltip-box {
    position: absolute;
    bottom: calc(100% + 12px);
    left: calc(50% - 0px);
    transform: translateX(-50%);
    width: 400px;
    background: #FEFEFF 0% 0% no-repeat padding-box;
    padding: 24px 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 30px #2E2E2E1A;
    font-size: 14px;
    line-height: 20px;
    text-align: left;
    color:#737373;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 999;
}


.rezerwacja-tooltip-box::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #fff;
}


.rezerwacja-tooltip:hover .rezerwacja-tooltip-box {
    opacity: 1;
}

.rezerwacja-tooltip-mobile-text{
    font-size: 14px;
    line-height: 20px;
    text-align: left;
    color:#737373;
}

.mobile-help-modal .offcanvas-body{
    padding: 30px 30px;
}


.tooltip-inner {
    max-width: 200px;
    padding: 9px 13px;
    color: #737373;
    text-align: center;
    background-color: #fff;
    border-radius: 4px;
}

@media (max-width: 991px) {
    .rezerwacja-tooltip{
        left:0;
    }
    .rezerwacja-tooltip-box {
        width: 100%;
        left: 0;
        transform: none;
        bottom: calc(100% + 12px);
        text-align: left;
        padding: 14px 18px;
    }

    .rezerwacja-tooltip-box::after {
        display: none;
    }
    .rezerwacja-tooltip-box:hover {
        opacity: 0;
    }


    .rezerwacja-tooltip{
        display:none;
    }

    .rezerwacja-tooltip-desktop{
        display:none;
    }

    .rezerwacja-tooltip-mobile{
        display:flex;
    }

    /* Pełny, biały panel pomocy zgodny z makietą mobilną. */
    .mobile-help-modal {
        position-anchor:none;
        top:calc(100dvh * 0.6);
        right:0 !important;
        bottom:0 !important;
        left:0 !important;
        width:100vw;
        max-height:none !important;
        height:calc(100dvh - 26px) !important;
        margin-top:0;
        padding:20px;
        background:#fff;
    }

    /* Treść panelu nie może przykrywać przycisku zamknięcia. */
    .mobile-help-modal .modal-top-decoration{
        top:-26px;
        right:auto;
        left:50%;
        width:44px;
        height:44px;
        transform:translateX(-50%);
        z-index:1;
    }

    .mobile-help-modal .modal-top-decoration .btn-close{
        width:44px;
        height:44px;
        top:27px;
        z-index:1;
    }
}
