
.wshr-fa-sidebar,
.wshr-fa-reopen {
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

.wshr-fa-sidebar {
    position: fixed;
    top: 50%;
    z-index: 99999;
    width: var(--rasa-width, 140px);
    height: min(var(--rasa-height, 78vh), 900px);
    aspect-ratio: 9 / 16;
    overflow: hidden;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.16);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(-50%);
    transition:
        transform 0.4s ease,
        opacity 0.3s ease,
        visibility 0s linear 0s;
}

.wshr-fa-sidebar.wshr-fa-left {
    left: var(--rasa-edge, 12px);
}

.wshr-fa-sidebar.wshr-fa-right {
    right: var(--rasa-edge, 12px);
}

.wshr-fa-sidebar .wshr-fa-link,
.wshr-fa-sidebar .wshr-fa-image {
    display: block;
    width: 100%;
    height: 100%;
}

.wshr-fa-sidebar .wshr-fa-link {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.wshr-fa-sidebar .wshr-fa-image {
    object-fit: cover;
    object-position: center;
    border: 0;
}

.wshr-fa-sidebar .wshr-fa-close {
    position: absolute;
    top: 4px;
    right: 4px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.78);
    color: #fff;
    font-size: 21px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    box-shadow: none;
}

.wshr-fa-sidebar .wshr-fa-close:hover,
.wshr-fa-sidebar .wshr-fa-close:focus-visible {
    background: #000;
    color: #fff;
}

.wshr-fa-sidebar .wshr-fa-label {
    position: absolute;
    right: auto;
    bottom: 0;
    left: 0;
    z-index: 2;
    padding: 3px 6px;
    background: rgba(255, 255, 255, 0.92);
    color: #333;
    font: 10px/1.4 Arial, sans-serif;
    pointer-events: none;
}

.wshr-fa-sidebar.wshr-fa-left.wshr-fa-hidden {
    transform: translate(-130%, -50%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        transform 0.4s ease,
        opacity 0.3s ease,
        visibility 0s linear 0.4s;
}

.wshr-fa-sidebar.wshr-fa-right.wshr-fa-hidden {
    transform: translate(130%, -50%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        transform 0.4s ease,
        opacity 0.3s ease,
        visibility 0s linear 0.4s;
}

.wshr-fa-reopen {
    position: fixed;
    top: 50%;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 64px;
    padding: 0;
    border: 1px solid #ddd;
    background: #fff;
    color: #222;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.3s ease,
        transform 0.3s ease,
        visibility 0s linear 0.3s;
}

.wshr-fa-reopen.wshr-fa-reopen-left {
    left: 0;
    border-radius: 0 6px 6px 0;
    transform: translate(-12px, -50%);
}

.wshr-fa-reopen.wshr-fa-reopen-right {
    right: 0;
    border-radius: 6px 0 0 6px;
    transform: translate(12px, -50%);
}

.wshr-fa-reopen.wshr-fa-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(0, -50%);
}

.wshr-fa-reopen:focus-visible,
.wshr-fa-sidebar button:focus-visible,
.wshr-fa-sidebar a:focus-visible {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .wshr-fa-sidebar,
    .wshr-fa-reopen {
        transition: none !important;
    }
}

@media print {
    .wshr-fa-sidebar,
    .wshr-fa-reopen {
        display: none !important;
    }
}
