/*
 * Ruoli Visitatore 0.1.1
 * Regole: nasconde .admin-menu e blocca visivamente aree riservate per visitatori, ospiti e cloni subscriber.
 * Niente !important.
 */

html.neetly-rv-hide-admin-menu .admin-menu,
body.neetly-rv-hide-admin-menu .admin-menu,
.neetly-rv-hide-admin-menu .admin-menu,
html.neetly-rv-visitor .admin-menu,
body.neetly-rv-visitor .admin-menu,
.neetly-rv-visitor .admin-menu,
.admin-menu.neetly-rv-hidden-admin-menu {
    display: none;
    visibility: hidden;
}

.neetly-rv-reserved-message {
    width: 100%;
    max-width: 980px;
    margin: 36px auto;
    padding: 0 18px;
    box-sizing: border-box;
}

.neetly-rv-reserved-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-top: 5px solid #c70000;
    border-radius: 24px;
    padding: clamp(22px, 4vw, 38px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    color: #111827;
}

.neetly-rv-reserved-card h2 {
    margin: 0 0 10px;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.08;
    font-weight: 900;
    color: #08111f;
}

.neetly-rv-reserved-card p {
    margin: 0;
    color: #4b5563;
    font-size: 16px;
    line-height: 1.55;
}

.neetly-rv-reserved-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
    min-height: 44px;
    padding: 11px 18px;
    border-radius: 999px;
    background: #c70000;
    color: #ffffff;
    font-weight: 800;
    text-decoration: none;
    line-height: 1.2;
}

.neetly-rv-reserved-link:hover,
.neetly-rv-reserved-link:focus {
    color: #ffffff;
    filter: brightness(0.96);
    text-decoration: none;
}

/* Ruoli Visitatore 0.1.2 - pagina scelta ruolo */
.neetly-rv-role-choice-notice {
    max-width: 1080px;
    margin: 18px auto 8px;
    padding: 14px 18px;
    border: 1px solid #fecaca;
    border-left: 5px solid #c70000;
    border-radius: 16px;
    background: #fff7f7;
    color: #111827;
    box-sizing: border-box;
    display: grid;
    gap: 4px;
}

.neetly-rv-role-choice-notice strong {
    color: #c70000;
    font-weight: 900;
}

.neetly-rv-role-choice-notice span {
    color: #374151;
    line-height: 1.45;
}

.neetly-rv-visitor-role-card {
    margin-top: 16px;
    border-style: dashed;
}

.neetly-rv-visitor-role-card h3 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.neetly-rv-visitor-role-card h3::before {
    content: "👤";
    font-size: 18px;
}

.neetly-rv-visitor-current-notice {
    margin-top: 12px;
}

@media (max-width: 760px) {
    .neetly-rv-role-choice-notice {
        margin: 12px 10px 8px;
        padding: 13px 14px;
    }

    .neetly-rv-visitor-role-card {
        margin-top: 12px;
    }
}


/* Ruoli Visitatore 0.1.4 - landing uniforme area riservata con card ruolo */
.neetly-rv-access-hub {
    width: 100%;
    max-width: 980px;
    margin: 32px auto;
    padding: 0 18px 24px;
    box-sizing: border-box;
}

.neetly-rv-access-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-top: 5px solid #c70000;
    border-radius: 24px;
    padding: clamp(22px, 4vw, 38px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.neetly-rv-access-copy h1 {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.06;
    font-weight: 900;
    color: #08111f;
}

.neetly-rv-access-copy p {
    margin: 0;
    color: #4b5563;
    font-size: 16px;
    line-height: 1.6;
}

.neetly-rv-access-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.neetly-rv-primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 20px;
    border-radius: 999px;
    background: #c70000;
    color: #ffffff;
    font-weight: 800;
    text-decoration: none;
}

.neetly-rv-primary-button:hover,
.neetly-rv-primary-button:focus {
    color: #ffffff;
    text-decoration: none;
    filter: brightness(0.97);
}

.neetly-rv-role-grid-wrap {
    margin-top: 22px;
}

.neetly-rv-role-grid-header {
    margin-bottom: 14px;
}

.neetly-rv-role-grid-header h2 {
    margin: 0 0 8px;
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.15;
    color: #08111f;
}

.neetly-rv-role-grid-header p {
    margin: 0;
    color: #4b5563;
    line-height: 1.55;
}

.neetly-rv-role-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.neetly-rv-role-option {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.neetly-rv-role-option-inner {
    display: grid;
    gap: 10px;
    padding: 20px;
}

.neetly-rv-role-option.is-current {
    border-color: #f2b6b6;
    box-shadow: 0 12px 28px rgba(199, 0, 0, 0.08);
}

.neetly-rv-role-kicker {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #fff2f2;
    color: #c70000;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.03em;
}

.neetly-rv-role-option h3 {
    margin: 0;
    font-size: 24px;
    line-height: 1.15;
    color: #08111f;
}

.neetly-rv-role-option p {
    margin: 0;
    color: #4b5563;
    line-height: 1.55;
}

.neetly-rv-role-current-pill {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #f6fdf7;
    color: #166534;
    border: 1px solid #bbf7d0;
    font-weight: 800;
    font-size: 13px;
}

.neetly-rv-role-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 999px;
    background: #08111f;
    color: #ffffff;
    text-decoration: none;
    font-weight: 800;
}

.neetly-rv-role-button:hover,
.neetly-rv-role-button:focus {
    color: #ffffff;
    text-decoration: none;
    filter: brightness(1.05);
}

@media (max-width: 760px) {
    .neetly-rv-access-hub {
        margin: 18px auto;
        padding: 0 12px 18px;
    }

    .neetly-rv-role-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .neetly-rv-role-option-inner {
        padding: 18px;
    }
}


/* Ruoli Visitatore 0.1.5 - card contatto secondo negozio */
.neetly-rv-extra-store-contact-card {
    display: grid;
    gap: 12px;
    padding: 22px;
    border: 1px solid #f3d3d3;
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #fff8f8 100%);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.neetly-rv-extra-store-kicker {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    justify-content: center;
    min-height: 27px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #fff2f2;
    color: #c70000;
    font-size: 12px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.neetly-rv-extra-store-contact-card h3 {
    margin: 0;
    color: #08111f;
    font-size: clamp(22px, 2.8vw, 30px);
    line-height: 1.12;
    font-weight: 900;
}

.neetly-rv-extra-store-contact-card p {
    margin: 0;
    color: #4b5563;
    line-height: 1.55;
}

.neetly-rv-extra-store-button {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 18px;
    border-radius: 999px;
    background: #c70000;
    color: #ffffff;
    font-weight: 900;
    text-decoration: none;
}

.neetly-rv-extra-store-button:hover,
.neetly-rv-extra-store-button:focus {
    color: #ffffff;
    text-decoration: none;
    filter: brightness(0.97);
}

.neetly-rv-extra-store-hint {
    font-size: 13px;
    color: #6b7280;
}

@media (max-width: 760px) {
    .neetly-rv-extra-store-contact-card {
        padding: 18px;
    }

    .neetly-rv-extra-store-button {
        width: 100%;
    }
}

/* Ruoli Visitatore 0.1.6 - guardia vista Fornitori e secondo negozio su Area Lavoro */
body.neetly-rv-role-merchant .ntl-work-tabs a[href*="ntl_view=suppliers"] {
    display: none;
    visibility: hidden;
}

body.neetly-rv-extra-store-locked #ntl-new-store > .ntl-panel,
body.neetly-rv-extra-store-locked #ntl-new-store form.ntl-form {
    display: none;
    visibility: hidden;
}

.neetly-rv-extra-store-target > .neetly-rv-extra-store-contact-card,
#neetly-rv-extra-store > .neetly-rv-extra-store-contact-card {
    margin-bottom: 18px;
}
