#floating-window {
    position: fixed;
    top: 40%;
    right: 20px;
    width: 300px;
    background: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    z-index: 9999;
    transform: translateX(0);
    opacity: 1;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

#floating-window.closed {
    display: block;
    transform: translateX(120%);
    opacity: 0;
    pointer-events: none;
}

#floating-window.open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.fw-header {
    display: flex;
    justify-content: flex-end;
}

.fw-header>.close-cursor {
    position: relative;
    top: -20px;
    right: 30px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.fw-header>.close-cursor:hover {
    transform: scale(1.1) rotate(90deg);
}

.fw-content {
    padding: 15px;
    animation: fadeIn 0.5s ease;
}

#fw-reopen-button {
    position: fixed;
    top: 50%;
    right: 0px;
    transform: translateY(-50%)rotate(180deg);
    padding: 22px 10px !important;
    background: #2534fa;
    color: white;
    cursor: pointer;
    border-radius: 3px;
    z-index: 9998;
    writing-mode: vertical-lr;
    text-orientation: mixed;
    transition: all 0.3s ease;
	font-size:20px;
	font-weight:bold;
}


.fw-toggle>img {
    width: 40px !important;
    transition: transform 0.3s ease;
}

/* Keyframe animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@keyframes slideOut {
    from { transform: translateX(0); }
    to { transform: translateX(120%); }
}

/* Add this at the bottom of your existing CSS */
/* Initial state - hidden */
#floating-window {
    display: block; /* Important for the transitions to work */
}

#fw-reopen-button {
    display: none; /* Initially hidden */
}
/* No changes needed to your existing CSS */
/* Just make sure these styles exist: */
#floating-window.closed {
    transform: translateX(120%);
    opacity: 0;
    pointer-events: none;
}

#floating-window.open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

#fw-reopen-button {
    display: none; /* Initially hidden */
}

