.sl-account-widget {
    position: relative;
    z-index: 9999;
}
.sl-account-toggle {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}
.sl-account-username {
    white-space: nowrap;
    overflow: hidden;
    max-width: 2ch;
}
.sl-account-panel {
    position: absolute;
    top: 100%;
    right: 0;
    width: 280px;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 999;
    border: solid 1px transparent;
    border-radius: 30px;
    height: auto;
    color: #fff;
    background-color: #7a3e24;
    display: block;
    pointer-events: none;
}
.sl-account-panel.show {
    opacity: 1;
    transform: translateY(0);
    border-color: #7a3e24;
    pointer-events: auto;
}
.sl-account-panel-inner {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.sl-account-widget .sl-account-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    font-size: 2rem;
    line-height: 1;
    border: none;
    cursor: pointer;
    color: white;
}
.sl-account-header {
    font-weight: bold;
    margin-bottom: 1rem;
}
.sl-account-link {
    color: white;
}
.sl-account-register-wrapper {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    text-align: center;
}
.sl-account-widget .sl-account-register {
    display: inline-block;
    margin-top: 0.5rem;
    color: white;
    text-decoration: underline;
    font-weight: bold;
}
.sl-account-register:hover {
    text-decoration: none;
    color: var(--accent-color, #d28b2f);
}

/* Login button inside SL account widget */
.sl-account-widget input[type="submit"].button-primary {
    color: #fff;
    border-color: #444; /* optional */
}

@media only screen and (max-width: 768px) {
    .sl-account-panel {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100vw;
        max-width: none;
        height: 100vh;
        border-radius: 0;
        z-index: 9999;
        opacity: 1;
        transform: none;
        box-shadow: none;
        background: #7a3e24;
        color: #fff;
        display: block;
        pointer-events: none;
    }
    .sl-account-panel.show {
        pointer-events: auto;
    }
    .sl-account-panel-inner {
        padding: 2rem 1rem;
        max-width: 400px;
        margin: 0 auto;
    }
    .sl-account-widget .sl-account-close {
        color: white;
        top: 1rem;
        right: 1rem;
        z-index: 10000;
    }
}
