.no-37-wrapper {
    position: relative;
}
.no-37-trigger {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: opacity 0.3s ease;
}
.no-37-trigger:hover { opacity: 0.8; }
.no-37-trigger svg { width: 24px; height: 24px; fill: currentColor; }

.no-37-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 99999;
    display: flex;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    /* Transparent background to allow page content to show */
    background-color: transparent; 
}
.no-37-overlay.is-active {
    opacity: 1; visibility: visible; pointer-events: auto;
}
.no-37-overlay.align-left { flex-direction: row-reverse; justify-content: flex-end; }
.no-37-overlay.align-right { flex-direction: row; justify-content: flex-end; }

/* The actual sidebar panel */
.no-37-sidebar {
    width: 450px;
    background-color: #111; /* Fallback, controllable via widget settings */
    display: flex;
    flex-direction: column;
    padding: 40px;
    overflow-y: auto;
    color: #fff;
    box-shadow: -5px 0 20px rgba(0,0,0,0.2);
    /* Ensure it slides in/out */
    transition: transform 0.4s ease;
}
.no-37-overlay.align-right .no-37-sidebar {
    transform: translateX(100%);
}
.no-37-overlay.align-left .no-37-sidebar {
    transform: translateX(-100%);
    box-shadow: 5px 0 20px rgba(0,0,0,0.2);
}
.no-37-overlay.is-active .no-37-sidebar {
    transform: translateX(0);
}


.no-37-topbar {
    display: flex;
    /* justify-content is managed by the widget controls */
    align-items: center;
    margin-bottom: 60px;
}
.no-37-action-wrap {
    /* removed flex: 1 to allow justify-content to control placement */
}
.no-37-action {
    display: inline-block;
    background: #fff;
    color: #000;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: background 0.3s ease, color 0.3s ease;
}
.no-37-close {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transition: background 0.3s ease;
}
.no-37-close:hover { background: rgba(255,255,255,0.2); }
.no-37-close svg { width: 20px; height: 20px; fill: #fff; }
.no-37-close i { color: #fff; font-size: 20px; }

.no-37-primary {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 50px;
}
.no-37-primary-item {
    color: #fff;
    text-decoration: none;
    font-size: 32px;
    font-weight: 700;
    transition: color 0.3s ease, padding-left 0.3s ease;
}
.no-37-primary-item:hover { padding-left: 10px; }

.no-37-secondary {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: auto;
}
.no-37-secondary-item {
    color: #ccc;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s ease;
}

.no-37-social {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}
.no-37-social-item {
    color: #fff;
    transition: opacity 0.3s ease;
}
.no-37-social-item:hover { opacity: 0.7; }
.no-37-social-item svg { width: 24px; height: 24px; fill: currentColor; }
.no-37-social-item i { font-size: 24px; }

@media (max-width: 1024px) {
    .no-37-sidebar { width: 50%; }
}
@media (max-width: 767px) {
    .no-37-sidebar { width: 100%; height: 100vh; padding: 20px; }
    .no-37-overlay.align-left .no-37-sidebar,
    .no-37-overlay.align-right .no-37-sidebar {
        transform: translateY(-100%);
    }
    .no-37-overlay.is-active .no-37-sidebar {
        transform: translateY(0);
    }
}