/* ==========================================================================
   Royal Addons - Shared 3D & Motion Slider Base Styles
   ========================================================================== */

.rs3d-widget {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    user-select: none;
    -webkit-user-select: none;
}

.rs3d-widget *,
.rs3d-widget *::before,
.rs3d-widget *::after {
    box-sizing: border-box;
}

.rs3d-widget img {
    display: block;
    max-width: 100%;
    -webkit-user-drag: none;
    user-drag: none;
}

/* Art fallback card when no custom image is chosen */
.rs3d-art-fallback {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 20px;
}

.rs3d-art-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}

.rs3d-art-orb-1 {
    width: 160px;
    height: 160px;
    top: -36px;
    right: -36px;
}

.rs3d-art-orb-2 {
    width: 90px;
    height: 90px;
    bottom: 24px;
    right: 28px;
}

.rs3d-art-label {
    position: relative;
    z-index: 2;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.88);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

/* Navigation Arrows */
.rs3d-nav-group {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    z-index: 20;
}

.rs3d-nav-btn {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.68);
    color: #ffffff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    line-height: 1;
    transition: transform 0.24s ease, background-color 0.24s ease, color 0.24s ease, border-color 0.24s ease, opacity 0.24s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.rs3d-nav-btn svg {
    width: 18px;
    height: 18px;
    display: block;
}

.rs3d-nav-btn:hover {
    background: #2563eb;
    border-color: transparent;
    color: #ffffff;
    transform: translateY(-2px);
}

.rs3d-nav-btn:focus-visible,
.rs3d-dot:focus-visible {
    outline: 2px solid #38bdf8;
    outline-offset: 2px;
}

.rs3d-nav-btn.is-disabled,
.rs3d-nav-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
}

/* Pagination Dots & Fraction */
.rs3d-controls-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
    position: relative;
    z-index: 20;
}

.rs3d-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.rs3d-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(100, 116, 139, 0.35);
    cursor: pointer;
    transition: width 0.28s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.28s ease, transform 0.28s ease, opacity 0.28s ease;
}

.rs3d-dot:hover {
    background: rgba(59, 130, 246, 0.7);
}

.rs3d-dot.is-active {
    width: 24px;
    background: #2563eb;
}

.rs3d-dots.is-dynamic .rs3d-dot {
    transform: scale(0.75);
    opacity: 0.45;
}

.rs3d-dots.is-dynamic .rs3d-dot.is-near {
    transform: scale(0.92);
    opacity: 0.75;
}

.rs3d-dots.is-dynamic .rs3d-dot.is-active {
    transform: scale(1);
    opacity: 1;
}

.rs3d-fraction {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #475569;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.rs3d-fraction-current {
    font-weight: 700;
}

.rs3d-fraction-sep {
    opacity: 0.45;
}

.rs3d-is-grab {
    cursor: grab;
}

.rs3d-is-grabbing {
    cursor: grabbing !important;
}

@media (prefers-reduced-motion: reduce) {
    .rs3d-nav-btn,
    .rs3d-dot {
        transition: none !important;
    }
}
