.rw-myaccount-trigger {
    display: inline-flex;
    align-items: center;
    margin-left: 1.5rem;
}

@media all and (max-width: 990px) {
    .rw-myaccount-trigger {
        margin-left: 0;
    }
}

.rw-myaccount-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
    cursor: pointer;
}

.rw-myaccount-link:hover {
    opacity: 0.7;
}

.rw-myaccount-guest {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.rw-myaccount-login {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.rw-myaccount-login:hover,
.rw-myaccount-register:hover {
    opacity: 0.7;
}

.rw-myaccount-register {
    color: inherit;
    text-decoration: none;
}

.rw-myaccount-separator {
    color: #ccc;
}

.rw-myaccount-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.rw-myaccount-overlay.active {
    opacity: 1;
    visibility: visible;
}

.rw-myaccount-sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 100%;
    max-width: 450px;
    height: 100%;
    background: #fff;
    z-index: 9999;
    overflow-y: auto;
    transition: right 0.3s ease;
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.1);
}

.rw-myaccount-sidebar.active {
    right: 0;
}

.rw-myaccount-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid #e5e5e5;
    background: #f8f8f8;
}

.rw-myaccount-header h2 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 600;
}

.rw-myaccount-close {
    background: var(--bs-primary);
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border-radius: 5px;
    transition: opacity 0.2s ease;
}

.rw-myaccount-close:hover {
    opacity: 0.6;
}

.rw-myaccount-close svg {
    width: 24px;
    height: 24px;
}

.rw-myaccount-content {
    padding: 2rem;
}

.rw-myaccount-content .account-guest {
    padding: 2rem 0;
    text-align: center;
}

.rw-myaccount-content .account-guest__message {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

.rw-myaccount-content .account-guest__actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rw-myaccount-content .account-guest__actions .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    text-transform: uppercase;
    cursor: pointer;
}

.rw-myaccount-content .account-guest__actions .btn-primary {
    background: var(--link-color);
    color: #fff;
}

.rw-myaccount-content .account-guest__actions .btn-primary:hover {
    background: var(--link-color-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(225, 169, 9, 0.3);
}

.rw-myaccount-content .account-guest__actions .btn-secondary {
    background: #fff;
    color: var(--sf-green-dark);
    border: 2px solid var(--sf-green-dark);
}

.rw-myaccount-content .account-guest__actions .btn-secondary:hover {
    background: #f0f3ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(9, 225, 70, 0.3);
}

.rw-myaccount-content .account-guest__actions .btn svg {
    display: inline-block;
    vertical-align: middle;
}

.rw-myaccount-content .account-customer {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8f8f8;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.rw-myaccount-content .account-customer__avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
    font-weight: 600;
    flex-shrink: 0;
    position: static;
    transform: none;
}

.rw-myaccount-content .account-customer__name {
    flex: 1;
    line-height: 1.2;
}

.rw-myaccount-content .account-customer__name span {
    color: #666;
}

.rw-myaccount-content .account-customer__name strong {
    font-size: 1.5rem;
    color: #333;
}

.rw-myaccount-content .account-customer__name .badge {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.55rem 1rem;
    color: #fff;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 500;
}

.rw-myaccount-content .account-links {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.rw-myaccount-content .account-links:last-child {
    margin-bottom: 0;
    padding-top: 1rem;
    border-top: 1px solid #e5e5e5;
}

.rw-myaccount-content .account-links li {
    margin: 0 0 0.5rem;
}

.rw-myaccount-content .account-links a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.3rem 2rem 1.3rem 6rem;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
    color: #333;
}

.rw-myaccount-content .account-links a.link-logout {
    color: white;
}
.rw-myaccount-content .account-links a.link-logout i {
    color: white;
}

.rw-myaccount-content .account-links a:hover {
    background: var(--link-color);
    color: white;
}

.rw-myaccount-content .account-links a.current {
    background: var(--link-color);
    color: white;
}

.rw-myaccount-content .account-links a i {
    color: #333;
}

.rw-myaccount-content .account-links a span {
    font-weight: 500;
}

.rw-myaccount-content .account-links .link-logout:hover {
    background: #da3a2b;
}

@media (max-width: 768px) {
    .rw-myaccount-sidebar {
        max-width: 100%;
        right: -100%;
    }

    .rw-myaccount-label {
        display: none;
    }

    .rw-myaccount-content {
        padding: 1.5rem;
    }

    .rw-myaccount-header {
        padding: 1.5rem;
    }

    .rw-myaccount-content .account-customer {
        padding: 1rem;
    }

    .rw-myaccount-content .account-customer__avatar {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .rw-myaccount-guest span:not(.rw-myaccount-separator) {
        font-size: 0.85rem;
    }
    
    .rw-myaccount-separator {
        margin: 0 0.25rem;
    }
}

/* =============================================
   Dark Mode
   ============================================= */

.rw-myaccount-sidebar.rw-dark {
    background: #1a1a1a;
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.4);
    color: #e8e8e8;
}

.rw-myaccount-sidebar.rw-dark .rw-myaccount-header {
    border-bottom-color: #3a3a3a;
    background: #242424;
}

.rw-myaccount-sidebar.rw-dark .rw-myaccount-header h2 {
    color: #e8e8e8;
}

.rw-myaccount-sidebar.rw-dark .rw-myaccount-close svg {
    color: #e8e8e8;
}

.rw-myaccount-sidebar.rw-dark .rw-myaccount-content .account-guest__message {
    color: #a0a0a0;
}

.rw-myaccount-sidebar.rw-dark .rw-myaccount-content .account-guest__actions .btn-secondary {
    background: #2e2e2e;
    color: #e8e8e8;
    border-color: #3a3a3a;
}

.rw-myaccount-sidebar.rw-dark .rw-myaccount-content .account-guest__actions .btn-secondary:hover {
    background: #3a3a3a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.rw-myaccount-sidebar.rw-dark .rw-myaccount-content .account-customer {
    background: #242424;
}

.rw-myaccount-sidebar.rw-dark .rw-myaccount-content .account-customer__name span {
    color: #a0a0a0;
}

.rw-myaccount-sidebar.rw-dark .rw-myaccount-content .account-customer__name strong {
    color: #e8e8e8;
}

.rw-myaccount-sidebar.rw-dark .rw-myaccount-content .account-links:last-child {
    border-top-color: #3a3a3a;
}

.rw-myaccount-sidebar.rw-dark .rw-myaccount-content .account-links a {
    color: #e8e8e8;
}

.rw-myaccount-sidebar.rw-dark .rw-myaccount-content .account-links a i {
    color: #e8e8e8;
}

.rw-myaccount-sidebar.rw-dark .rw-myaccount-content .account-links a:hover {
    color: white;
}

.rw-myaccount-sidebar.rw-dark .rw-myaccount-content .account-links a.link-logout {
    color: white;
}

.rw-myaccount-sidebar.rw-dark .rw-myaccount-content .account-links a.link-logout i {
    color: white;
}
