.floating-card {
    /* Existing styles from manage-subscriptions.css that define base appearance */
    background-color: #ffffff;
    border-radius: 1rem; /* Tailwind rounded-2xl */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); /* Tailwind shadow-2xl */
    position: relative;
    max-height: 95vh; /* Increased height for scrollability, overridden on mobile */
    overflow-y: auto; /* Enable scrolling for long forms */
}

/* Fix scrollbar edge rounding */
.floating-card::-webkit-scrollbar {
    width: 12px;
}

.floating-card::-webkit-scrollbar-track {
    background: transparent;
}

.floating-card::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 0; /* Remove rounding */
    border: none;
}

.floating-card::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

/* For Firefox */
.floating-card {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

@media (max-width: 768px) {
    .floating-card {
        width: 95vw;
        max-width: 95vw;
        height: 80vh;
        max-height: 80vh;
    }
}

@media (min-width: 769px) {
    .floating-card {
        width: auto;
        max-width: 50vw;
    }
}
