#wuala-b2b-popup.wp-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000;
    align-items: center;
    justify-content: center;
    background: rgba(20, 20, 25, .55);
    padding: 20px;
    opacity: 0;
    transition: opacity .25s ease;
}
#wuala-b2b-popup.wp-overlay.wp-visible {
    display: flex;
    opacity: 1;
}
#wuala-b2b-popup .wp-modal {
    position: relative;
    background: #fff;
    width: 100%;
    max-width: 460px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 18px;
    padding: 40px 32px 32px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    transform: translateY(16px) scale(.98);
    transition: transform .25s ease;
}
#wuala-b2b-popup.wp-visible .wp-modal {
    transform: translateY(0) scale(1);
}
#wuala-b2b-popup .wp-close,
#wuala-b2b-popup .wp-cta {
    touch-action: manipulation;
}
#wuala-b2b-popup .wp-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: #f2f2f4;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .15s ease;
}
#wuala-b2b-popup .wp-close:hover { background: #e4e4e8; }
#wuala-b2b-popup .wp-logo { margin: 0 auto 20px; max-width: 220px; }
#wuala-b2b-popup .wp-logo img { max-width: 100%; height: auto; display: block; margin: 0 auto; }
#wuala-b2b-popup .wp-title {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 12px;
    color: #16171a;
}
#wuala-b2b-popup .wp-subtitle {
    font-size: 15px;
    line-height: 1.5;
    color: #55575e;
    margin: 0 0 24px;
}
#wuala-b2b-popup .wp-features {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    text-align: left;
}
#wuala-b2b-popup .wp-feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}
#wuala-b2b-popup .wp-feature:last-child { margin-bottom: 0; }
#wuala-b2b-popup .wp-feature-icon {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(0,0,0,.06);
    background: color-mix(in srgb, var(--wp-accent) 12%, white);
    color: var(--wp-accent);
    display: flex;
    align-items: center;
    justify-content: center;
}
#wuala-b2b-popup .wp-feature-copy { display: flex; flex-direction: column; gap: 2px; padding-top: 2px; }
#wuala-b2b-popup .wp-feature-copy strong { font-size: 15px; color: #16171a; }
#wuala-b2b-popup .wp-feature-copy span { font-size: 13.5px; color: #63656d; line-height: 1.4; }
#wuala-b2b-popup .wp-cta {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 15px 20px;
    border: none;
    border-radius: 12px;
    background: var(--wp-btn-bg);
    color: var(--wp-btn-text) !important;
    font-family: inherit;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.2;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: filter .15s ease, transform .1s ease;
    -webkit-tap-highlight-color: transparent;
}
#wuala-b2b-popup .wp-cta:hover { filter: brightness(0.92); }
#wuala-b2b-popup .wp-cta:active { transform: scale(.99); }
#wuala-b2b-popup .wp-login-row {
    margin: 16px 0 0;
    font-size: 13.5px;
    color: #55575e;
}
#wuala-b2b-popup .wp-login-row a {
    color: #2d6cdf;
    text-decoration: underline;
    margin-left: 4px;
    font-weight: 600;
}
body.wp-locked {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Mobile: bottom-sheet en vez de modal centrado - más natural para pulgar,
   evita que el modal quede recortado por el teclado o la barra de navegación. */
@media (max-width: 575.98px) {
    #wuala-b2b-popup.wp-overlay {
        align-items: flex-end;
        padding: 0;
    }
    #wuala-b2b-popup .wp-modal {
        max-width: none;
        width: 100%;
        max-height: 88vh;
        border-radius: 20px 20px 0 0;
        padding: 28px 20px calc(20px + env(safe-area-inset-bottom, 0px));
        transform: translateY(100%);
    }
    #wuala-b2b-popup.wp-visible .wp-modal {
        transform: translateY(0);
    }
    #wuala-b2b-popup .wp-title { font-size: 21px; }
    #wuala-b2b-popup .wp-subtitle { font-size: 14px; margin-bottom: 20px; }
    #wuala-b2b-popup .wp-logo { max-width: 160px; margin-bottom: 16px; }
    #wuala-b2b-popup .wp-close {
        width: 40px;
        height: 40px;
        top: 12px;
        right: 12px;
    }
    #wuala-b2b-popup .wp-feature { gap: 12px; margin-bottom: 14px; }
    #wuala-b2b-popup .wp-feature-icon { width: 40px; height: 40px; }
    #wuala-b2b-popup .wp-feature-copy strong { font-size: 14px; }
    #wuala-b2b-popup .wp-feature-copy span { font-size: 13px; }
    #wuala-b2b-popup .wp-cta { font-size: 16px; padding: 16px 20px; }
    #wuala-b2b-popup .wp-login-row { font-size: 13px; }
}

/* pantallas muy bajas en apaisado: evitar que el sheet tape todo el viewport */
@media (max-width: 575.98px) and (max-height: 480px) {
    #wuala-b2b-popup .wp-modal { max-height: 94vh; }
    #wuala-b2b-popup .wp-features { margin-bottom: 16px; }
    #wuala-b2b-popup .wp-feature { margin-bottom: 10px; }
}
