/* Container Wrapper Setup */
.csc-captcha-wrapper {
    width: 100%;
    max-width: 384px;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    user-select: none;
    -webkit-user-select: none;
}

/* Label style matching your enterprise branding */
.csc-captcha-label {
    display: block;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #063559;
    margin-bottom: 0.625rem;
}

/* Slider Track Base */
.csc-slider-track {
    position: relative;
    height: 56px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;

    /* Restored smooth corner layout */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

/* Success State for the track background frame */
.csc-slider-track.csc-verified {
    border-color: #10b981;
    background-color: rgba(240, 253, 250, 0.3);
}

/* Dynamic slide overlay accent */
.csc-slider-bg {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 0;
    background-color: rgba(16, 185, 129, 0.1);
}

/* Center Prompt Text Typography */
.csc-slider-text {
    position: absolute;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    letter-spacing: 0.025em;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 2;
}

/* Success Typography State */
.csc-slider-text.csc-verified-text {
    color: #059669;
    font-weight: 600;
}

/* Premium Floating Handle Element */
.csc-slider-handle {
    position: absolute;
    top: 4px;
    bottom: 4px;
    width: 48px;
    left: 4px;
    /* Initial LTR load state */
    right: auto;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
  
    /* Restored clean rounded handle alignment */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    z-index: 10;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.3s ease;
}

/* Ensure Right-to-Left multisites snap right cleanly on load without blocking styles */
html[dir="rtl"] .csc-slider-handle,
body.rtl .csc-slider-handle,
[dir="rtl"] .csc-slider-handle {
    right: 4px;
    left: auto;
}

/* Ensure the label ignores western character tracking properties in RTL */
html[dir="rtl"] .csc-captcha-label,
body.rtl .csc-captcha-label,
[dir="rtl"] .csc-captcha-label {
    letter-spacing: normal;
}

.csc-slider-handle:active {
    cursor: grabbing;
}

.csc-slider-handle:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
}

/* Dynamic Success handle configuration */
.csc-slider-handle.csc-verified-handle {
    background-color: #10b981;
    border-color: #10b981;
    color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.2), 0 2px 4px -1px rgba(16, 185, 129, 0.1);
}

/* Core SVG Arrow Icon Dimensions */
.csc-handle-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.csc-arrow-svg {
    width: 20px;
    height: 20px;
    color: #64748b;
    transition: color 0.15s ease, transform 0.15s ease;
}

/* Hover effects on the handle changes arrow focus color */
.csc-slider-handle:hover .csc-arrow-svg {
    color: #063559;
}

/* Success Checkmark configuration state */
.csc-slider-handle.csc-verified-handle .csc-arrow-svg {
    color: #ffffff;
    width: 22px;
    height: 22px;
}