.otk-ba-widget {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    gap: 0;
}

.otk-ba-widget,
.otk-ba-widget * {
    box-sizing: border-box;
}

.otk-ba-heading {
    --otk-ba-heading-gap: 12px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--otk-ba-heading-gap);
    z-index: 3;
    max-width: 100%;
}

.otk-ba-heading-full {
    width: 100%;
}

.otk-ba-heading-inline {
    align-self: center;
    width: auto;
}

.otk-ba-heading-text {
    color: #111111;
    line-height: 1.25;
}

.otk-ba-heading-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    color: #111111;
    font-size: 32px;
    flex: 0 0 auto;
}

.otk-ba-heading-icon i,
.otk-ba-heading-icon svg {
    display: block;
    width: 1em;
    height: 1em;
}

.otk-ba-force-svg-color .otk-ba-heading-icon svg,
.otk-ba-force-svg-color .otk-ba-heading-icon svg * {
    fill: currentColor !important;
    stroke: currentColor !important;
}

.otk-ba-icon-left,
.otk-ba-icon-right {
    flex-direction: row;
}

.otk-ba-icon-top,
.otk-ba-icon-bottom {
    flex-direction: column;
}

.otk-ba-comparison {
    --otk-ba-position: 50%;
    --otk-ba-divider-color: #ffffff;
    --otk-ba-divider-width: 3px;
    --otk-ba-handle-size: 48px;
    --otk-ba-handle-bg: rgba(255, 255, 255, 0.92);
    --otk-ba-handle-hover-bg: rgba(255, 255, 255, 1);
    --otk-ba-handle-border-color: #ffffff;
    --otk-ba-handle-hover-border-color: #ffffff;
    --otk-ba-handle-border-width: 2px;
    --otk-ba-arrow-size: 10px;
    --otk-ba-arrow-color: #111111;
    --otk-ba-arrow-hover-color: #111111;
    position: relative;
    width: 100%;
    height: 420px;
    overflow: hidden;
    isolation: isolate;
    background: #f3f4f6;
    touch-action: none;
    user-select: none;
}

.otk-ba-image-panel {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.otk-ba-after-panel {
    z-index: 1;
}

.otk-ba-before-panel {
    z-index: 2;
}

.otk-ba-orientation-horizontal .otk-ba-before-panel {
    clip-path: inset(0 calc(100% - var(--otk-ba-position)) 0 0);
}

.otk-ba-orientation-horizontal .otk-ba-after-panel {
    clip-path: inset(0 0 0 var(--otk-ba-position));
}

.otk-ba-orientation-vertical .otk-ba-before-panel {
    clip-path: inset(0 0 calc(100% - var(--otk-ba-position)) 0);
}

.otk-ba-orientation-vertical .otk-ba-after-panel {
    clip-path: inset(var(--otk-ba-position) 0 0 0);
}

.otk-ba-image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    pointer-events: none;
}

.otk-ba-label {
    position: absolute;
    z-index: 6;
    padding: 0.45em 0.75em;
    border-radius: 999px;
    background: rgba(17, 17, 17, 0.72);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.02em;
    pointer-events: none;
    backdrop-filter: blur(4px);
}

.otk-ba-orientation-horizontal .otk-ba-before-label {
    top: 16px;
    left: 16px;
}

.otk-ba-orientation-horizontal .otk-ba-after-label {
    top: 16px;
    right: 16px;
}

.otk-ba-orientation-vertical .otk-ba-before-label {
    top: 16px;
    left: 16px;
}

.otk-ba-orientation-vertical .otk-ba-after-label {
    bottom: 16px;
    left: 16px;
}

.otk-ba-divider {
    position: absolute;
    z-index: 8;
    background: var(--otk-ba-divider-color);
    pointer-events: none;
}

.otk-ba-orientation-horizontal .otk-ba-divider {
    top: 0;
    bottom: 0;
    left: var(--otk-ba-position);
    width: var(--otk-ba-divider-width);
    transform: translateX(-50%);
}

.otk-ba-orientation-vertical .otk-ba-divider {
    left: 0;
    right: 0;
    top: var(--otk-ba-position);
    height: var(--otk-ba-divider-width);
    transform: translateY(-50%);
}

.otk-ba-handle {
    position: absolute;
    z-index: 12;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--otk-ba-handle-size);
    height: var(--otk-ba-handle-size);
    min-width: var(--otk-ba-handle-size);
    min-height: var(--otk-ba-handle-size);
    padding: 0;
    border: var(--otk-ba-handle-border-width) solid var(--otk-ba-handle-border-color);
    border-radius: 999px;
    background: var(--otk-ba-handle-bg) !important;
    color: var(--otk-ba-arrow-color) !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
    cursor: grab;
    appearance: none;
    -webkit-appearance: none;
    touch-action: none;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.otk-ba-handle:hover,
.otk-ba-handle:focus,
.otk-ba-handle:active,
.otk-ba-is-dragging .otk-ba-handle {
    background: var(--otk-ba-handle-hover-bg) !important;
    border-color: var(--otk-ba-handle-hover-border-color) !important;
    color: var(--otk-ba-arrow-hover-color) !important;
}

.otk-ba-handle:active,
.otk-ba-is-dragging .otk-ba-handle {
    cursor: grabbing;
}

.otk-ba-handle:focus-visible {
    outline: 3px solid rgba(59, 130, 246, 0.9);
    outline-offset: 3px;
}

.otk-ba-orientation-horizontal .otk-ba-handle {
    top: 50%;
    left: var(--otk-ba-position);
    transform: translate(-50%, -50%);
}

.otk-ba-orientation-vertical .otk-ba-handle {
    left: 50%;
    top: var(--otk-ba-position);
    transform: translate(-50%, -50%);
}

.otk-ba-arrow {
    position: absolute;
    display: block;
    width: 0;
    height: 0;
}

.otk-ba-orientation-horizontal .otk-ba-arrow-one {
    border-top: var(--otk-ba-arrow-size) solid transparent;
    border-bottom: var(--otk-ba-arrow-size) solid transparent;
    border-right: var(--otk-ba-arrow-size) solid currentColor;
    margin-left: calc(var(--otk-ba-arrow-size) * -1.4);
}

.otk-ba-orientation-horizontal .otk-ba-arrow-two {
    border-top: var(--otk-ba-arrow-size) solid transparent;
    border-bottom: var(--otk-ba-arrow-size) solid transparent;
    border-left: var(--otk-ba-arrow-size) solid currentColor;
    margin-left: calc(var(--otk-ba-arrow-size) * 1.4);
}

.otk-ba-orientation-vertical .otk-ba-arrow-one {
    border-left: var(--otk-ba-arrow-size) solid transparent;
    border-right: var(--otk-ba-arrow-size) solid transparent;
    border-bottom: var(--otk-ba-arrow-size) solid currentColor;
    margin-top: calc(var(--otk-ba-arrow-size) * -1.4);
}

.otk-ba-orientation-vertical .otk-ba-arrow-two {
    border-left: var(--otk-ba-arrow-size) solid transparent;
    border-right: var(--otk-ba-arrow-size) solid transparent;
    border-top: var(--otk-ba-arrow-size) solid currentColor;
    margin-top: calc(var(--otk-ba-arrow-size) * 1.4);
}

.otk-ba-clickable-link {
    position: absolute;
    inset: 0;
    z-index: 7;
    display: block;
    font-size: 0;
    line-height: 0;
    text-decoration: none;
    background: transparent;
}

.otk-ba-handle,
.otk-ba-divider {
    z-index: 12;
}

.elementor-widget-otk-before-after .elementor-widget-container {
    width: 100%;
}

@media (max-width: 767px) {
    .otk-ba-comparison {
        height: 320px;
    }

    .otk-ba-label {
        font-size: 12px;
        padding: 0.4em 0.65em;
    }
}