.page-template-page-deflatehae-patient .patient-excess-bradykinin {
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 2rem;
    background-color: var(--color-white);
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.page-template-page-deflatehae-patient .patient-excess-bradykinin__intro {
    margin-bottom: 2rem;
}

.page-template-page-deflatehae-patient .patient-excess-bradykinin__intro p {
    font-style: italic;
    text-align: center;
    font-family: var(--font-body);
}

.page-template-page-deflatehae-patient .patient-excess-bradykinin__container {
    width: 100%;
    max-width: 1090px;
    margin: 0 auto;
    position: relative;
}

.page-template-page-deflatehae-patient .patient-excess-bradykinin__image-container {
    height: 500px;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.page-template-page-deflatehae-patient .patient-excess-bradykinin__bg-image {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 112px;
    object-fit: cover;
}

.page-template-page-deflatehae-patient .patient-excess-bradykinin__hand-container {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.page-template-page-deflatehae-patient .patient-excess-bradykinin__hand-sequence {
    position: absolute;
    bottom: 17px;
    left: 50%;
    transform: translateX(-50%);
    height: 500px;
    width: 319px;
    margin: 0;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: none;
}

.page-template-page-deflatehae-patient .patient-excess-bradykinin__hand-sequence img {
    position: absolute;
    top: 0;
    left: 0;
    height: 500px;
    width: auto;
    object-fit: contain;
    object-position: bottom;
    opacity: 0;
    pointer-events: none;
    transition: none; /* Disable any CSS transitions that might cause flickering */
}

.page-template-page-deflatehae-patient .patient-excess-bradykinin__hand-sequence img.active {
    opacity: 1;
}

.page-template-page-deflatehae-patient .patient-excess-bradykinin__overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 112px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 2rem;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: none;
}

.page-template-page-deflatehae-patient .patient-excess-bradykinin__text-left p,
.page-template-page-deflatehae-patient .patient-excess-bradykinin__text-right p {
    font-size: 24px;
    line-height: 30px;
    font-weight: 600;
    text-align: center;
    flex: 1;
    color: var(--color-white);
}

.page-template-page-deflatehae-patient .patient-excess-bradykinin__slider-container {
    width: 660px;
    height: 50px;
    margin: -40px auto 0;
    position: relative;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.page-template-page-deflatehae-patient .patient-excess-bradykinin__slider-track {
    width: 100%;
    height: 10px;
    background-color: var(--color-yellow);
    border-radius: 5px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.page-template-page-deflatehae-patient .patient-excess-bradykinin__slider-handle {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(-50%, -50%);
    cursor: pointer;
    width: 50px;
    height: 50px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

.page-template-page-deflatehae-patient .patient-excess-bradykinin__slider-handle svg {
    width: 100%;
    height: 100%;
    display: block;
}

.page-template-page-deflatehae-patient .patient-excess-bradykinin__slider-handle.loading {
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.page-template-page-deflatehae-patient .patient-excess-bradykinin__slider-container.loading {
    pointer-events: none;
}

.page-template-page-deflatehae-patient .patient-excess-bradykinin__slider-container.loading::after {
    content: "Loading frames...";
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: var(--color-nav-gray);
    font-style: italic;
}

.page-template-page-deflatehae-patient .patient-excess-bradykinin__content {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    gap: 2rem;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: none;
}

.page-template-page-deflatehae-patient .patient-excess-bradykinin__content-left,
.page-template-page-deflatehae-patient .patient-excess-bradykinin__content-right {
    flex: 1;
}

.page-template-page-deflatehae-patient .patient-excess-bradykinin__content-left p,
.page-template-page-deflatehae-patient .patient-excess-bradykinin__content-right p {
    font-family: var(--font-body);
    color: var(--color-nav-gray);
    text-align: center;
    padding: 0 80px;
}

.page-template-page-deflatehae-patient .patient-excess-bradykinin__content-left {
    opacity: 1;
}

.page-template-page-deflatehae-patient .patient-excess-bradykinin__content-right {
    opacity: 0;
}

/* Re-enable pointer events when not dragging */
.page-template-page-deflatehae-patient .patient-excess-bradykinin:not(.dragging) .patient-excess-bradykinin__hand-sequence,
.page-template-page-deflatehae-patient .patient-excess-bradykinin:not(.dragging) .patient-excess-bradykinin__overlay-text,
.page-template-page-deflatehae-patient .patient-excess-bradykinin:not(.dragging) .patient-excess-bradykinin__content {
    pointer-events: auto;
}

/* Responsive adjustments */
@media screen and (max-width: 1024px) {
    .page-template-page-deflatehae-patient .patient-excess-bradykinin__container {
        max-width: 100%;
    }

    .page-template-page-deflatehae-patient .patient-excess-bradykinin__slider-container {
        width: 60%;
        margin: -35px auto 0;
    }

    .page-template-page-deflatehae-patient .patient-excess-bradykinin__hand-container {
        bottom: 440px;
        left: 47%;
    }

    .page-template-page-deflatehae-patient .patient-excess-bradykinin__hand-sequence {
        height: auto;
        width: 100%;
        max-height: 464px;
        max-width: 300px;
    }

    .page-template-page-deflatehae-patient .patient-excess-bradykinin__hand-sequence img {
        height: auto;
        width: 100%;
        max-height: 464px;
        max-width: 300px;
        object-fit: contain;
        object-position: bottom;
    }

    .page-template-page-deflatehae-patient .patient-excess-bradykinin__bg-image {
        height: 90px;
    }

    .page-template-page-deflatehae-patient .patient-excess-bradykinin__overlay-text {
        height: 90px;
    }
}

@media screen and (max-width: 768px) {
    .page-template-page-deflatehae-patient .patient-excess-bradykinin__container {
        position: relative;
        overflow: visible;
    }

    .page-template-page-deflatehae-patient .patient-excess-bradykinin__image-container {
        height: 300px;
        margin-bottom: 0;
        overflow: visible;
        position: relative;
        z-index: 1;
    }

    .page-template-page-deflatehae-patient .patient-excess-bradykinin__slider-container {
        width: 80%;
        margin: 15px auto 0;
        position: relative;
        z-index: 2;
    }

    .page-template-page-deflatehae-patient .patient-excess-bradykinin__hand-container {
        bottom: 310px;
        left: 40%;
    }

    .page-template-page-deflatehae-patient .patient-excess-bradykinin__hand-sequence {
        height: auto;
        width: 100%;
        max-height: 464px;
        max-width: 250px;
    }

    .page-template-page-deflatehae-patient .patient-excess-bradykinin__hand-sequence img {
        height: auto;
        width: 100%;
        max-height: 464px;
        max-width: 250px;
        object-fit: contain;
        object-position: bottom;
        left: 50%;
        transform: translateX(-45%);
    }

    .page-template-page-deflatehae-patient .patient-excess-bradykinin__bg-image {
        display: none;
    }

    .page-template-page-deflatehae-patient .patient-excess-bradykinin__overlay-text {
        position: absolute;
        height: auto;
        min-height: 150px;
        top: 340px;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        max-width: 80%;
        margin-bottom: 0;
        padding: 0;
        z-index: 3;
    }

    .page-template-page-deflatehae-patient .patient-excess-bradykinin__text-left,
    .page-template-page-deflatehae-patient .patient-excess-bradykinin__text-right {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        padding: 0;
        background-repeat: no-repeat;
        background-position: center;
        background-size: cover;
    }

    .page-template-page-deflatehae-patient .patient-excess-bradykinin__text-left p,
    .page-template-page-deflatehae-patient .patient-excess-bradykinin__text-right p {
        padding: 20px 0;
        margin: 0;
        font-size: 20px;
        line-height: 26px;
    }

    .page-template-page-deflatehae-patient .patient-excess-bradykinin__text-left {
        background-image: url('/wp-content/uploads/static/red-flag.png');
    }

    .page-template-page-deflatehae-patient .patient-excess-bradykinin__text-right {
        background-image: url('/wp-content/uploads/static/blue-flag.png');
    }

    .page-template-page-deflatehae-patient .patient-excess-bradykinin__content {
        margin-top: 110px;
        position: relative;
        z-index: 1;
        min-height: 120px;
    }

    .page-template-page-deflatehae-patient .patient-excess-bradykinin__content-left,
    .page-template-page-deflatehae-patient .patient-excess-bradykinin__content-right {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
    }

    .page-template-page-deflatehae-patient .patient-excess-bradykinin__content-left p,
    .page-template-page-deflatehae-patient .patient-excess-bradykinin__content-right p {
        padding: 0 1rem;
        margin: 0;
    }

    .page-template-page-deflatehae-patient .patient-excess-bradykinin__slider-container.loading::after {
        font-size: 11px;
        top: -25px;
    }
} 