/*
 * MySLBots Customer Unified UI V1
 * MB_CUSTOMER_UNIFIED_UI_CSS_V01
 *
 * This file is standalone. Do not force it into live pages until preview is approved.
 */

:root {
    --mb-font-body: Inter, "Segoe UI", Roboto, Arial, Helvetica, sans-serif;
    --mb-font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

    --mb-bg: #eef3f8;
    --mb-surface: #ffffff;
    --mb-surface-soft: #f8fafc;
    --mb-text: #172033;
    --mb-muted: #64748b;
    --mb-border: #cbd5e1;

    --mb-blue: #1d9bf0;
    --mb-blue-dark: #0b76bd;
    --mb-green: #16a34a;
    --mb-red: #dc2626;

    --mb-radius: 10px;
    --mb-shadow: 0 10px 25px rgba(15, 23, 42, 0.10);

    --mb-font-size-page: 17px;
    --mb-font-size-small: 15px;
    --mb-font-size-top: 17px;
    --mb-font-size-menu: 17px;
    --mb-font-size-token: 17px;
    --mb-line: 1.55;
}

html {
    font-size: 17px;
}

body.mb-customer-ui {
    margin: 0;
    background: var(--mb-bg);
    color: var(--mb-text);
    font-family: var(--mb-font-body);
    font-size: var(--mb-font-size-page);
    line-height: var(--mb-line);
}

.mb-ui-shell,
.mb-ui-shell * {
    box-sizing: border-box;
}

.mb-topbar {
    min-height: 58px;
    background: #f8fafc;
    border-bottom: 1px solid var(--mb-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    font-size: var(--mb-font-size-top);
    position: sticky;
    top: 0;
    z-index: 50;
}

.mb-topbar-left,
.mb-topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.mb-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #0f172a;
    text-decoration: none;
    font-weight: 800;
    font-size: 20px;
}

.mb-brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: linear-gradient(135deg, #1d9bf0, #0f172a);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.mb-top-link,
.mb-wallet-pill,
.mb-account-button {
    border: 1px solid var(--mb-border);
    background: #ffffff;
    color: #172033;
    border-radius: 999px;
    padding: 9px 14px;
    text-decoration: none;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.mb-top-link:hover,
.mb-wallet-pill:hover,
.mb-account-button:hover {
    border-color: var(--mb-blue);
    color: var(--mb-blue-dark);
}

.mb-wallet-pill {
    color: #14532d;
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.mb-account {
    position: relative;
}

.mb-account-button {
    cursor: pointer;
}

.mb-account-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: 260px;
    background: #ffffff;
    border: 1px solid var(--mb-border);
    border-radius: 12px;
    box-shadow: var(--mb-shadow);
    padding: 8px;
    z-index: 100;
    font-size: var(--mb-font-size-menu);
}

.mb-account:focus-within .mb-account-menu,
.mb-account:hover .mb-account-menu {
    display: block;
}

.mb-account-menu a,
.mb-account-menu button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 12px;
    color: #172033;
    text-decoration: none;
    background: transparent;
    border: 0;
    border-radius: 8px;
    font: inherit;
    cursor: pointer;
}

.mb-account-menu a:hover,
.mb-account-menu button:hover {
    background: #eef6ff;
    color: var(--mb-blue-dark);
}

.mb-headbar {
    background: linear-gradient(135deg, #0f172a, #1d4ed8);
    color: #ffffff;
    padding: 34px 30px;
}

.mb-headbar-inner {
    max-width: 1220px;
    margin: 0 auto;
}

.mb-headbar-title {
    margin: 0;
    font-size: 34px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.mb-headbar-subtitle {
    margin: 10px 0 0;
    font-size: 18px;
    color: #dbeafe;
    max-width: 900px;
}

.mb-layout {
    max-width: 1220px;
    margin: 26px auto;
    padding: 0 22px;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 22px;
}

.mb-sidebar {
    background: #ffffff;
    border: 1px solid var(--mb-border);
    border-radius: var(--mb-radius);
    padding: 14px;
    align-self: start;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.mb-side-title {
    font-size: 14px;
    color: var(--mb-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 18px 10px 8px;
    font-weight: 800;
}

.mb-side-title:first-child {
    margin-top: 4px;
}

.mb-side-link {
    display: block;
    padding: 11px 12px;
    border-radius: 8px;
    color: #1e293b;
    text-decoration: none;
    font-size: 16px;
    font-weight: 650;
}

.mb-side-link:hover,
.mb-side-link.active {
    background: #eef6ff;
    color: var(--mb-blue-dark);
}

.mb-content {
    min-width: 0;
}

.mb-card {
    background: #ffffff;
    border: 1px solid var(--mb-border);
    border-radius: var(--mb-radius);
    padding: 24px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
    margin-bottom: 20px;
}

.mb-card-title {
    margin: 0 0 12px;
    font-size: 24px;
    line-height: 1.2;
    color: #0f172a;
}

.mb-card p {
    font-size: 17px;
    margin: 0 0 12px;
}

.mb-form-label {
    display: block;
    font-size: 16px;
    color: #334155;
    font-weight: 800;
    margin-bottom: 7px;
}

.mb-input-row {
    display: flex;
    gap: 0;
    max-width: 720px;
}

.mb-input,
.mb-token-input {
    width: 100%;
    min-height: 42px;
    border: 1px solid #94a3b8;
    border-radius: 8px;
    padding: 9px 11px;
    color: #111827;
    background: #ffffff;
    font-size: 17px;
    line-height: 1.3;
}

.mb-input-row .mb-input,
.mb-input-row .mb-token-input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.mb-token-input,
.mb-token,
.mb-token-visible,
code.mb-token-code {
    font-family: var(--mb-font-mono);
    font-size: var(--mb-font-size-token);
    letter-spacing: 0.01em;
}

.mb-btn {
    appearance: none;
    border: 1px solid var(--mb-blue-dark);
    background: var(--mb-blue);
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
}

.mb-input-row .mb-btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.mb-btn:hover {
    background: var(--mb-blue-dark);
}

.mb-btn-secondary {
    border-color: var(--mb-border);
    background: #ffffff;
    color: #172033;
}

.mb-btn-secondary:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.mb-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    font-size: 16px;
}

.mb-table th,
.mb-table td {
    border-bottom: 1px solid #e2e8f0;
    padding: 13px 12px;
    text-align: left;
    vertical-align: middle;
}

.mb-table th {
    color: #334155;
    background: #f8fafc;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.mb-table td {
    font-size: 16px;
}

.mb-footer {
    margin-top: 38px;
    padding: 24px 30px;
    border-top: 1px solid var(--mb-border);
    background: #f8fafc;
    color: #64748b;
    font-size: 15px;
}

.mb-footer-inner {
    max-width: 1220px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.mb-muted {
    color: var(--mb-muted);
}

.mb-success {
    color: var(--mb-green);
    font-weight: 800;
}

.mb-error {
    color: var(--mb-red);
    font-weight: 800;
}

@media (max-width: 900px) {
    .mb-topbar {
        position: static;
        padding: 12px 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .mb-topbar-left,
    .mb-topbar-right {
        flex-wrap: wrap;
    }

    .mb-layout {
        grid-template-columns: 1fr;
        padding: 0 14px;
    }

    .mb-headbar {
        padding: 26px 18px;
    }

    .mb-headbar-title {
        font-size: 28px;
    }

    .mb-card {
        padding: 18px;
    }
}


/* MB_CUSTOMER_UNIFIED_UI_LANGUAGE_SELECTOR_V01 */
.mb-language {
    position: relative;
}

.mb-language-select {
    min-height: 38px;
    border: 1px solid var(--mb-border);
    background: #ffffff;
    color: #172033;
    border-radius: 999px;
    padding: 8px 36px 8px 13px;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 700;
    cursor: pointer;
}

.mb-language-select:hover,
.mb-language-select:focus {
    border-color: var(--mb-blue);
    outline: none;
}

.mb-language-hint {
    display: block;
    margin-top: 8px;
    color: var(--mb-muted);
    font-size: 14px;
}



/* MB_CUSTOMER_UNIFIED_UI_TOKEN_TABLE_ALIGN_V01 */
.mb-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.mb-token-table {
    table-layout: fixed;
    min-width: 760px;
}

.mb-token-table th,
.mb-token-table td {
    vertical-align: middle;
    text-align: left;
}

.mb-token-table th {
    white-space: nowrap;
}

.mb-token-table .mb-col-id {
    width: 52px;
}

.mb-token-table .mb-col-name {
    width: 145px;
}

.mb-token-table .mb-col-expiration {
    width: 125px;
}

.mb-token-table .mb-col-last-used {
    width: 160px;
}

.mb-token-table .mb-col-token {
    width: auto;
}

.mb-token-table .mb-token-cell,
.mb-token-table .mb-token-code {
    display: block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mb-token-table .mb-token-code {
    font-size: 16px;
    line-height: 1.35;
}



/* MB_CUSTOMER_UNIFIED_UI_TOKEN_CARD_ENGLISH_ONLY_V01 */
.mb-token-card-list {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.mb-token-card {
    border: 1px solid #dbe3ef;
    background: #f8fafc;
    border-radius: 10px;
    padding: 14px;
}

.mb-token-card-grid {
    display: grid;
    grid-template-columns: 90px 160px 140px 170px minmax(260px, 1fr);
    gap: 14px;
    align-items: start;
}

.mb-token-label {
    display: block;
    font-size: 13px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 800;
    margin-bottom: 5px;
    white-space: nowrap;
}

.mb-token-value {
    display: block;
    font-size: 16px;
    color: #172033;
    font-weight: 700;
    line-height: 1.35;
}

.mb-token-value-code {
    font-family: var(--mb-font-mono);
    font-size: 16px;
    line-height: 1.4;
    word-break: break-all;
    white-space: normal;
    color: #0f172a;
    display: block;
}

.mb-production-note {
    margin-top: 12px;
    padding: 10px 12px;
    background: #eef6ff;
    border: 1px solid #bfdbfe;
    color: #1e3a8a;
    border-radius: 8px;
    font-size: 15px;
}

@media (max-width: 1100px) {
    .mb-token-card-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 700px) {
    .mb-token-card-grid {
        grid-template-columns: 1fr;
    }
}


/* MB_CUSTOMER_UNIFIED_UI_WIDE_TOKEN_LAYOUT_V01 */
.mb-headbar-inner,
.mb-layout,
.mb-footer-inner {
    max-width: 1540px !important;
}

.mb-layout {
    grid-template-columns: 260px minmax(0, 1180px) !important;
    gap: 26px !important;
}

.mb-content {
    width: 100% !important;
    max-width: 1180px !important;
}

.mb-card {
    width: 100% !important;
}

.mb-token-card {
    width: 100% !important;
}

.mb-token-card-grid {
    grid-template-columns: 60px 170px 130px 190px minmax(480px, 1fr) !important;
    gap: 18px !important;
    align-items: start !important;
}

.mb-token-value-code {
    white-space: nowrap !important;
    word-break: normal !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
}

@media (max-width: 1250px) {
    .mb-layout {
        grid-template-columns: 240px minmax(0, 1fr) !important;
    }

    .mb-content {
        max-width: none !important;
    }

    .mb-token-card-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    .mb-token-value-code {
        white-space: normal !important;
        word-break: break-all !important;
    }
}

/* MB_CUSTOMER_UNIFIED_UI_FULL_TOKEN_COPY_V01 */
.mb-token-meta-grid {
    display: grid;
    grid-template-columns: 70px 1fr 150px 210px;
    gap: 18px;
    align-items: start;
}

.mb-token-full-row {
    margin-top: 16px;
}

.mb-secret-row {
    display: flex;
    width: 100%;
    gap: 0;
}

.mb-secret-input {
    flex: 1;
    min-width: 0;
    min-height: 44px;
    border: 1px solid #94a3b8;
    border-right: 0;
    border-radius: 8px 0 0 8px;
    background: #ffffff;
    color: #0f172a;
    padding: 10px 12px;
    font-family: var(--mb-font-mono);
    font-size: 16px;
    line-height: 1.35;
}

.mb-secret-row .mb-btn {
    border-radius: 0 8px 8px 0;
    white-space: nowrap;
}

.mb-token-warning {
    margin-top: 12px;
    color: #64748b;
    font-size: 15px;
}

@media (max-width: 900px) {
    .mb-token-meta-grid {
        grid-template-columns: 1fr 1fr;
    }

    .mb-secret-row {
        flex-direction: column;
        gap: 8px;
    }

    .mb-secret-input {
        border-right: 1px solid #94a3b8;
        border-radius: 8px;
    }

    .mb-secret-row .mb-btn {
        border-radius: 8px;
    }
}

/* MB_CUSTOMER_UNIFIED_UI_FONT_PRESETS_V01 */

/*
 * Font presets use safe system fonts only.
 * No external font files, no Google Fonts dependency.
 */

body.mb-font-modern {
    --mb-font-body: Aptos, "Segoe UI Variable", "Segoe UI", Roboto, Arial, sans-serif;
    --mb-font-mono: "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    --mb-font-size-page: 17px;
    --mb-line: 1.55;
}

body.mb-font-humanist {
    --mb-font-body: "Trebuchet MS", "Segoe UI", Verdana, Arial, sans-serif;
    --mb-font-mono: "Cascadia Mono", Consolas, "Liberation Mono", monospace;
    --mb-font-size-page: 17px;
    --mb-line: 1.58;
}

body.mb-font-classic {
    --mb-font-body: Georgia, "Times New Roman", serif;
    --mb-font-mono: "Cascadia Mono", Consolas, "Liberation Mono", monospace;
    --mb-font-size-page: 17px;
    --mb-line: 1.62;
}

body.mb-font-compact {
    --mb-font-body: "Segoe UI", Tahoma, Arial, sans-serif;
    --mb-font-mono: Consolas, "Liberation Mono", monospace;
    --mb-font-size-page: 16px;
    --mb-line: 1.45;
}

/* Make headings less flat and more readable */
body.mb-font-modern .mb-headbar-title,
body.mb-font-humanist .mb-headbar-title,
body.mb-font-classic .mb-headbar-title,
body.mb-font-compact .mb-headbar-title {
    font-weight: 850;
    letter-spacing: -0.025em;
}

body.mb-font-modern .mb-card-title,
body.mb-font-humanist .mb-card-title,
body.mb-font-classic .mb-card-title,
body.mb-font-compact .mb-card-title {
    font-weight: 850;
    letter-spacing: -0.018em;
}

body.mb-font-humanist .mb-card-title,
body.mb-font-humanist .mb-side-link,
body.mb-font-humanist .mb-btn,
body.mb-font-humanist .mb-top-link,
body.mb-font-humanist .mb-wallet-pill,
body.mb-font-humanist .mb-account-button {
    font-weight: 800;
}

body.mb-font-classic .mb-card-title,
body.mb-font-classic .mb-headbar-title {
    letter-spacing: -0.01em;
}

body.mb-font-classic .mb-side-link,
body.mb-font-classic .mb-btn,
body.mb-font-classic .mb-token-label,
body.mb-font-classic .mb-top-link,
body.mb-font-classic .mb-wallet-pill,
body.mb-font-classic .mb-account-button {
    font-family: Aptos, "Segoe UI", Arial, sans-serif;
}

.mb-font-preview-switch {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0 0 18px;
}

.mb-font-preview-switch a {
    display: inline-flex;
    padding: 8px 12px;
    border: 1px solid var(--mb-border);
    border-radius: 999px;
    background: #fff;
    color: #172033;
    text-decoration: none;
    font-size: 15px;
    font-weight: 800;
}

.mb-font-preview-switch a:hover,
.mb-font-preview-switch a.active {
    border-color: var(--mb-blue);
    background: #eef6ff;
    color: var(--mb-blue-dark);
}

/* MB_CUSTOMER_UNIFIED_UI_HUMANIST_ITALIC_ACCENTS_V01 */
body.mb-font-humanist .mb-headbar-subtitle,
body.mb-font-humanist .mb-copy-italic,
body.mb-font-humanist .mb-token-warning,
body.mb-font-humanist .mb-card .mb-muted {
    font-style: italic;
}

body.mb-font-humanist .mb-copy-italic strong {
    font-style: italic;
}

body.mb-font-humanist .mb-card-title,
body.mb-font-humanist .mb-side-link,
body.mb-font-humanist .mb-btn,
body.mb-font-humanist .mb-token-value,
body.mb-font-humanist .mb-token-value-code,
body.mb-font-humanist .mb-token-label {
    font-style: normal;
}

/* MB_CUSTOMER_UNIFIED_UI_HEADER_LOGO_LEFT_V02 */
.mb-topbar {
    min-height: 82px !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

.mb-brand-link {
    display: inline-flex !important;
    align-items: center !important;
    text-decoration: none !important;
    flex: 0 0 auto !important;
}

.mb-brand-logo {
    display: block !important;
    height: 64px !important;
    width: auto !important;
    max-width: 340px !important;
    object-fit: contain !important;
}

.mb-brand,
.mb-brand-mark {
    display: none !important;
}

.mb-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 900px) {
    .mb-topbar {
        min-height: auto !important;
    }

    .mb-brand-logo {
        height: 48px !important;
        max-width: 250px !important;
    }
}

/* MB_CUSTOMER_UNIFIED_UI_HEADER_LOGO_TRIMMED_BIG_V03 */
.mb-topbar {
    min-height: 96px !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

.mb-brand-logo {
    height: 78px !important;
    width: auto !important;
    max-width: 420px !important;
    object-fit: contain !important;
}

@media (max-width: 900px) {
    .mb-topbar {
        min-height: auto !important;
    }

    .mb-brand-logo {
        height: 56px !important;
        max-width: 300px !important;
    }
}

/* MB_CUSTOMER_UNIFIED_UI_HEADER_LOGO_CLEAN_BIG_V04 */
.mb-topbar {
    min-height: 100px !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

.mb-brand-logo {
    height: 82px !important;
    width: auto !important;
    max-width: 520px !important;
    object-fit: contain !important;
}

@media (max-width: 900px) {
    .mb-topbar {
        min-height: auto !important;
    }

    .mb-brand-logo {
        height: 58px !important;
        max-width: 340px !important;
    }
}

/* MB_CUSTOMER_UNIFIED_UI_HEADER_COMPACT_LOGO_V01 */
.mb-topbar {
    min-height: 74px !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

.mb-topbar-left {
    display: flex !important;
    align-items: center !important;
    min-width: 280px !important;
}

.mb-brand-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-decoration: none !important;
    flex: 0 0 auto !important;
}

.mb-brand-logo {
    display: block !important;
    height: 52px !important;
    width: auto !important;
    max-width: 320px !important;
    object-fit: contain !important;
}

.mb-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 900px) {
    .mb-topbar {
        min-height: auto !important;
    }

    .mb-topbar-left {
        min-width: 0 !important;
    }

    .mb-brand-logo {
        height: 42px !important;
        max-width: 240px !important;
    }
}

/* MB_CUSTOMER_DASHBOARD_UNIFIED_TEST_SKIN_V02 */
.mb-dashboard-unified {
    margin: 0 !important;
    background: #eef5fb !important;
    color: #0f1d33 !important;
    font-family: "Segoe UI", "Trebuchet MS", "Lucida Grande", Arial, sans-serif !important;
}

.mb-dashboard-unified .site-wrap {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.mb-dashboard-unified .topbar {
    min-height: 74px !important;
    padding: 8px 32px !important;
    background: #f8fbff !important;
    border-bottom: 1px solid rgba(15, 29, 51, .12) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    box-sizing: border-box !important;
}

.mb-dashboard-unified .topbar a {
    color: inherit !important;
}

.mb-dashboard-unified .mb-brand-link {
    display: inline-flex !important;
    align-items: center !important;
    text-decoration: none !important;
}

.mb-dashboard-unified .mb-brand-logo {
    display: block !important;
    height: 52px !important;
    width: auto !important;
    max-width: 320px !important;
    object-fit: contain !important;
}

.mb-dashboard-unified .mb-topbar-actions {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-left: auto !important;
}

.mb-dashboard-unified .mb-pill {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 34px !important;
    padding: 0 16px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(86, 111, 143, .28) !important;
    background: #fff !important;
    color: #0f1d33 !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    font-size: 14px !important;
}

.mb-dashboard-unified .mb-pill-green {
    color: #047344 !important;
    background: #f0fff8 !important;
    border-color: rgba(24, 191, 113, .35) !important;
}

.mb-dashboard-unified .hero {
    height: auto !important;
    min-height: 118px !important;
    background: linear-gradient(110deg, #0d1f43, #2454d8) !important;
    color: #fff !important;
    display: block !important;
}

.mb-dashboard-unified .mb-dashboard-hero-inner {
    max-width: 1180px !important;
    margin: 0 auto !important;
    padding: 34px 24px !important;
    box-sizing: border-box !important;
}

.mb-dashboard-unified .mb-dashboard-hero h1 {
    margin: 0 0 10px !important;
    font-size: 34px !important;
    letter-spacing: -.04em !important;
    color: #fff !important;
}

.mb-dashboard-unified .mb-dashboard-hero p {
    margin: 0 !important;
    font-style: italic !important;
    font-weight: 700 !important;
    opacity: .92 !important;
}

.mb-dashboard-unified .content {
    max-width: 1180px !important;
    margin: 28px auto 54px !important;
    padding: 0 24px !important;
    display: grid !important;
    grid-template-columns: 260px 1fr !important;
    gap: 28px !important;
    width: auto !important;
    box-sizing: border-box !important;
}

.mb-dashboard-unified .sidebar {
    width: auto !important;
    background: #fff !important;
    border: 1px solid rgba(86, 111, 143, .22) !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 28px rgba(20, 44, 74, .08) !important;
    padding: 18px !important;
    align-self: start !important;
}

.mb-dashboard-unified .sidebar a,
.mb-dashboard-unified .home-link {
    display: block !important;
    padding: 10px 12px !important;
    border-radius: 8px !important;
    color: #12213a !important;
    text-decoration: none !important;
    font-weight: 800 !important;
}

.mb-dashboard-unified .sidebar a:hover,
.mb-dashboard-unified .sidebar a.active,
.mb-dashboard-unified .home-link.active {
    color: #0b83d7 !important;
    background: #eaf5ff !important;
}

.mb-dashboard-unified .section-title {
    margin: 18px 0 8px !important;
    text-transform: uppercase !important;
    color: #667998 !important;
    font-size: 12px !important;
    letter-spacing: .11em !important;
    font-weight: 900 !important;
}

.mb-dashboard-unified .main {
    width: auto !important;
    min-width: 0 !important;
    background: transparent !important;
    padding: 0 !important;
}

.mb-dashboard-unified .page-title,
.mb-dashboard-unified .breadcrumb {
    display: none !important;
}

.mb-dashboard-unified .notice,
.mb-dashboard-unified .main > h3,
.mb-dashboard-unified .card-row,
.mb-dashboard-unified .main > table,
.mb-dashboard-unified .main > p.small {
    background: #fff !important;
    border: 1px solid rgba(86, 111, 143, .22) !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 28px rgba(20, 44, 74, .08) !important;
}

.mb-dashboard-unified .notice {
    padding: 22px 24px !important;
    color: #45627f !important;
    font-style: italic !important;
    font-weight: 700 !important;
    margin-bottom: 18px !important;
}

.mb-dashboard-unified .main > h3 {
    margin: 18px 0 0 !important;
    padding: 22px 24px 0 !important;
    border-bottom: 0 !important;
    border-radius: 12px 12px 0 0 !important;
    box-shadow: 0 10px 28px rgba(20, 44, 74, .08) !important;
    font-size: 22px !important;
    letter-spacing: -.03em !important;
    color: #0f1d33 !important;
}

.mb-dashboard-unified .card-row {
    margin-top: 0 !important;
    padding: 20px 24px 24px !important;
    border-top: 0 !important;
    border-radius: 0 0 12px 12px !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
}

.mb-dashboard-unified .bot-card {
    border: 1px solid rgba(86, 111, 143, .22) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background: #f8fbff !important;
    width: auto !important;
}

.mb-dashboard-unified .bot-card .head {
    min-height: 38px !important;
    padding: 0 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: #5f6b76 !important;
    color: #fff !important;
    font-weight: 900 !important;
}

.mb-dashboard-unified .bot-card .body {
    display: grid !important;
    grid-template-columns: 74px 1fr !important;
    gap: 14px !important;
    padding: 16px !important;
}

.mb-dashboard-unified .bot-avatar {
    width: 62px !important;
    height: 62px !important;
    border-radius: 999px !important;
    background: #eaf5ff !important;
    border: 1px solid #bad8f0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #2098e8 !important;
    font-weight: 900 !important;
}

.mb-dashboard-unified .action-link {
    display: block !important;
    color: #168fe0 !important;
    font-weight: 900 !important;
    text-decoration: none !important;
}

.mb-dashboard-unified .small {
    color: #5f738d !important;
    font-style: italic !important;
    font-weight: 700 !important;
}

.mb-dashboard-unified .blue-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 40px !important;
    padding: 0 18px !important;
    border-radius: 8px !important;
    background: #2098e8 !important;
    color: #fff !important;
    text-decoration: none !important;
    border: 0 !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
}

.mb-dashboard-unified table {
    width: 100% !important;
    border-collapse: collapse !important;
    overflow: hidden !important;
    font-size: 14px !important;
}

.mb-dashboard-unified .main > table {
    display: table !important;
    margin-top: 0 !important;
    border-radius: 0 0 12px 12px !important;
}

.mb-dashboard-unified th {
    background: #2098e8 !important;
    color: #fff !important;
    text-align: left !important;
    padding: 11px 12px !important;
    font-weight: 900 !important;
}

.mb-dashboard-unified td {
    padding: 11px 12px !important;
    border-top: 1px solid rgba(86, 111, 143, .15) !important;
}

.mb-dashboard-unified tbody tr:nth-child(even) {
    background: #f4f9fe !important;
}

.mb-dashboard-unified .footer {
    border-top: 1px solid rgba(86, 111, 143, .18) !important;
    background: #f8fbff !important;
    color: #667998 !important;
    display: flex !important;
    justify-content: space-between !important;
    gap: 20px !important;
    padding: 22px max(24px, calc((100vw - 1180px) / 2 + 24px)) !important;
    font-weight: 700 !important;
    margin: 0 !important;
}

@media (max-width: 900px) {
    .mb-dashboard-unified .topbar {
        align-items: flex-start !important;
        flex-direction: column !important;
        gap: 12px !important;
    }

    .mb-dashboard-unified .mb-topbar-actions {
        flex-wrap: wrap !important;
        margin-left: 0 !important;
    }

    .mb-dashboard-unified .content {
        grid-template-columns: 1fr !important;
    }

    .mb-dashboard-unified .card-row {
        grid-template-columns: 1fr !important;
    }

    .mb-dashboard-unified .mb-brand-logo {
        height: 42px !important;
        max-width: 240px !important;
    }
}

/* MB_CUSTOMER_DASHBOARD_REAL_STANDARD_UI_TEST_V01 */
.mb-dashboard-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.mb-dashboard-stat {
    margin-bottom: 0 !important;
}

.mb-dashboard-stat-label {
    text-transform: uppercase;
    color: #667998;
    font-size: 12px;
    letter-spacing: .11em;
    font-weight: 900;
}

.mb-dashboard-stat-value {
    margin-top: 8px;
    font-size: 34px;
    line-height: 1;
    font-weight: 900;
    color: #0d2b59;
}

.mb-dashboard-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.mb-dashboard-bot-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.mb-dashboard-bot-card {
    border: 1px solid rgba(86, 111, 143, .22);
    border-radius: 12px;
    overflow: hidden;
    background: #f8fbff;
}

.mb-dashboard-bot-head {
    min-height: 38px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #5f6b76;
    color: #fff;
    font-weight: 900;
}

.mb-dashboard-dot {
    width: 11px;
    height: 11px;
    border-radius: 999px;
    background: #d92f2f;
    flex: 0 0 auto;
}

.mb-dashboard-dot.is-ok {
    background: #42c56b;
}

.mb-dashboard-bot-body {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 14px;
    padding: 16px;
}

.mb-dashboard-bot-avatar {
    width: 62px;
    height: 62px;
    border-radius: 999px;
    background: #eaf5ff;
    border: 1px solid #bad8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2098e8;
    font-weight: 900;
}

.mb-dashboard-link {
    display: block;
    color: #168fe0;
    font-weight: 900;
    text-decoration: none;
}

.mb-dashboard-table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(86, 111, 143, .18);
    border-radius: 10px;
}

.mb-dashboard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.mb-dashboard-table th {
    background: #2098e8;
    color: #fff;
    text-align: left;
    padding: 11px 12px;
    font-weight: 900;
}

.mb-dashboard-table td {
    padding: 11px 12px;
    border-top: 1px solid rgba(86, 111, 143, .15);
}

.mb-dashboard-table tbody tr:nth-child(even) {
    background: #f4f9fe;
}

@media (max-width: 900px) {
    .mb-dashboard-summary,
    .mb-dashboard-bot-grid {
        grid-template-columns: 1fr;
    }

    .mb-dashboard-card-head {
        flex-direction: column;
    }
}

/* MB_CUSTOMER_DASHBOARD_COMPACT_BOT_CARDS_V01 */
.mb-dashboard-bot-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    gap: 14px !important;
    align-items: stretch !important;
}

.mb-dashboard-bot-card {
    max-width: 100% !important;
}

.mb-dashboard-bot-head {
    min-height: 34px !important;
    padding: 0 12px !important;
    font-size: 14px !important;
}

.mb-dashboard-bot-body {
    grid-template-columns: 54px 1fr !important;
    gap: 12px !important;
    padding: 14px !important;
    min-height: 86px !important;
}

.mb-dashboard-bot-avatar {
    width: 48px !important;
    height: 48px !important;
    font-size: 14px !important;
}

.mb-dashboard-link {
    font-size: 14px !important;
    line-height: 1.35 !important;
}

.mb-dashboard-bot-body .mb-muted {
    font-size: 13px !important;
    line-height: 1.35 !important;
}

@media (min-width: 1200px) {
    .mb-dashboard-bot-grid {
        grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)) !important;
    }
}

@media (max-width: 900px) {
    .mb-dashboard-bot-grid {
        grid-template-columns: 1fr !important;
    }
}

/* MB_CUSTOMER_DASHBOARD_COMPACT_BOT_CARDS_FIXED_V02 */
.mb-dashboard-bot-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(185px, 205px)) !important;
    gap: 14px !important;
    justify-content: start !important;
    align-items: stretch !important;
}

.mb-dashboard-bot-card {
    width: 100% !important;
    max-width: 205px !important;
}

.mb-dashboard-bot-head {
    min-height: 32px !important;
    padding: 0 10px !important;
    font-size: 13px !important;
    line-height: 1.15 !important;
}

.mb-dashboard-bot-head strong {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    max-width: 150px !important;
}

.mb-dashboard-bot-body {
    grid-template-columns: 44px 1fr !important;
    gap: 10px !important;
    padding: 12px !important;
    min-height: 76px !important;
}

.mb-dashboard-bot-avatar {
    width: 40px !important;
    height: 40px !important;
    font-size: 12px !important;
}

.mb-dashboard-link {
    font-size: 13px !important;
    line-height: 1.3 !important;
}

.mb-dashboard-bot-body .mb-muted {
    font-size: 12px !important;
    line-height: 1.3 !important;
}

@media (min-width: 1180px) {
    .mb-dashboard-bot-grid {
        grid-template-columns: repeat(auto-fill, minmax(185px, 205px)) !important;
    }
}

@media (max-width: 900px) {
    .mb-dashboard-bot-grid {
        grid-template-columns: 1fr !important;
    }

    .mb-dashboard-bot-card {
        max-width: none !important;
    }

    .mb-dashboard-bot-head strong {
        max-width: none !important;
    }
}

/* MB_CUSTOMER_BOT_CONTROL_REAL_STANDARD_UI_TEST_V01 */
.mb-control-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.mb-control-bot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 16px;
}

.mb-control-bot-card {
    border: 1px solid rgba(86, 111, 143, .22);
    border-radius: 12px;
    overflow: hidden;
    background: #f8fbff;
}

.mb-control-bot-head {
    min-height: 38px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #5f6b76;
    color: #fff;
    font-weight: 900;
}

.mb-control-bot-body {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 14px;
    padding: 16px;
}

.mb-control-bot-avatar {
    width: 62px;
    height: 62px;
    border-radius: 999px;
    background: #eaf5ff;
    border: 1px solid #bad8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2098e8;
    font-weight: 900;
}

.mb-control-status-list {
    color: #334a66;
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 12px;
}

.mb-control-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.mb-control-actions form {
    margin: 0;
}

.mb-control-result .result-panel,
.mb-control-result .result-grid,
.mb-control-result pre {
    max-width: 100%;
}

.mb-control-result pre {
    overflow: auto;
    background: #f5f9fe;
    border: 1px solid rgba(86, 111, 143, .18);
    border-radius: 10px;
    padding: 14px;
}

.mb-control-result table,
.mb-control-result .group-list {
    width: 100%;
    border-collapse: collapse;
}

.mb-control-result th,
.mb-control-result td {
    padding: 9px 10px;
    border-top: 1px solid rgba(86, 111, 143, .15);
}

@media (max-width: 900px) {
    .mb-control-bot-grid {
        grid-template-columns: 1fr;
    }

    .mb-control-bot-body {
        grid-template-columns: 58px 1fr;
    }

    .mb-control-bot-avatar {
        width: 50px;
        height: 50px;
    }
}





/* MB_CUSTOMER_UI_PUBLIC_TOP_NAV_LIVE_V01 */
.mb-public-top-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 8px;
    flex-wrap: wrap;
}

.mb-public-top-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 11px;
    border-radius: 999px;
    color: #13233d;
    text-decoration: none;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.mb-public-top-nav a:hover {
    background: #eaf5ff;
    color: #0b83d7;
}

@media (max-width: 1100px) {
    .mb-public-top-nav {
        width: 100%;
        justify-content: flex-end;
        order: 10;
    }
}

/* MB_CUSTOMER_UI_PUBLIC_TOP_NAV_LIVE_V02
   Public topbar links now use the existing .mb-top-link UI class.
   The old .mb-public-top-nav wrapper is no longer emitted by customer_ui.php. */

/* MB_CUSTOMER_BOTS_STANDARD_UI_TEST_V01 */
.mb-bots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 18px;
}

.mb-bot-card {
    border: 1px solid rgba(86,111,143,.22);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(20,44,74,.08);
    padding: 18px;
}

.mb-bot-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.mb-bot-card-head strong {
    color: #0d2b59;
    font-size: 18px;
}

.mb-bot-status {
    border-radius: 999px;
    padding: 6px 10px;
    background: #fff7df;
    color: #8a5a00;
    font-weight: 900;
    font-size: 12px;
}

.mb-bot-status.is-ready {
    background: #eafff2;
    color: #087034;
}

.mb-bot-card-body {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.mb-bot-avatar {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: #eaf5ff;
    border: 1px solid #bad8f0;
    color: #2098e8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.mb-bot-meta {
    color: #4d6682;
    line-height: 1.6;
    font-size: 14px;
}

.mb-bot-card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

/* MB_CUSTOMER_GROUPS_POLISH_TEST_V02 */
.sb-bot-switch {
    margin: 12px 0 16px;
}

.sb-bot-switch form {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #274763;
    font-weight: 800;
}

.sb-bot-switch select,
.sb-groups-filter input {
    border: 1px solid rgba(86,111,143,.28);
    border-radius: 10px;
    background: #fff;
    color: #173553;
    padding: 9px 12px;
    font-weight: 700;
    min-height: 38px;
}

.sb-bot-switch button,
.sb-groups-filter button {
    border: 1px solid rgba(32,152,232,.35);
    border-radius: 10px;
    background: #2098e8;
    color: #fff;
    padding: 9px 13px;
    font-weight: 900;
    cursor: pointer;
}

.sb-groups-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 14px 0 16px;
    max-width: 560px;
}

.sb-groups-filter input {
    flex: 1;
}

/* MB_CUSTOMER_GROUP_NOTICES_POLISH_TEST_V02 */
.notice-standard-card .notice-promo,
.notice-standard-card .notice-status-box,
.notice-standard-card .notice-filter-row {
    border: 1px solid rgba(86,111,143,.22);
    border-radius: 12px;
    background: #f7fbff;
    padding: 14px;
    margin: 12px 0;
}

.notice-standard-card .notice-toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin: 14px 0;
}

.notice-standard-card .notice-toolbar a,
.notice-standard-card .notice-link-button {
    border-radius: 10px;
    background: #2098e8;
    color: #fff;
    padding: 10px 14px;
    font-weight: 900;
}

.notice-standard-card .notice-tabs {
    display: flex;
    gap: 8px;
    margin: 14px 0 0;
    border-bottom: 1px solid rgba(86,111,143,.22);
}

.notice-standard-card .notice-tabs a {
    border: 1px solid rgba(86,111,143,.22);
    border-bottom: 0;
    border-radius: 10px 10px 0 0;
    background: #eef7ff;
    color: #0d2b59;
    padding: 10px 14px;
    font-weight: 900;
}

.notice-standard-card .notice-tabs a.active {
    background: #2098e8;
    color: #fff;
}

.notice-standard-card .notice-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border: 1px solid rgba(86,111,143,.22);
    border-radius: 12px;
    background: #fff;
}

.notice-standard-card .notice-table th {
    background: #eaf5ff;
    color: #0d2b59;
    padding: 12px;
    text-align: left;
}

.notice-standard-card .notice-table td {
    padding: 12px;
    border-top: 1px solid rgba(86,111,143,.16);
}

.notice-standard-card .notice-table tr:nth-child(even) td {
    background: #f8fbff;
}

/* MB_CUSTOMER_LIVE_IMS_POLISH_TEST_V03 */
.live-ims-standard-card .live-ims-board {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 16px;
    min-height: 430px;
    margin-top: 14px;
}

.live-ims-standard-card .live-ims-contact-list {
    border: 1px solid rgba(86,111,143,.22);
    border-radius: 12px;
    background: #f7fbff;
    padding: 10px;
}

.live-ims-standard-card .live-im-contact {
    display: block;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 8px;
    color: #173553;
    text-decoration: none;
    background: #fff;
    border: 1px solid rgba(86,111,143,.18);
}

.live-ims-standard-card .live-im-contact.selected {
    background: #eaf5ff;
    border-color: rgba(32,152,232,.45);
}

.live-ims-standard-card .live-ims-conversation {
    border: 1px solid rgba(86,111,143,.22);
    border-radius: 12px;
    background: #fff;
    padding: 12px;
}

.live-ims-standard-card .live-im-chat-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(86,111,143,.18);
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.live-ims-standard-card .live-im-chat-scroll {
    max-height: 330px;
    overflow-y: auto;
    padding-right: 8px;
}

.live-ims-standard-card .live-im-message {
    margin-bottom: 12px;
}

.live-ims-standard-card .live-im-meta {
    color: #6d8198;
    font-size: 12px;
    margin-bottom: 4px;
}

.live-ims-standard-card .live-im-bubble {
    border-radius: 12px;
    padding: 10px 12px;
    background: #eef7ff;
    color: #173553;
    line-height: 1.45;
}

.live-ims-standard-card .live-im-message.outbound .live-im-bubble {
    background: #eafff2;
}

.live-ims-standard-card .live-im-composer {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.live-ims-standard-card .live-im-composer textarea {
    flex: 1;
    border: 1px solid rgba(86,111,143,.28);
    border-radius: 10px;
    padding: 10px;
}

.live-ims-standard-card .live-im-composer button,
.live-ims-standard-card .live-ims-actions a,
.live-ims-standard-card .live-im-settings-actions button,
.live-ims-standard-card .live-im-search-actions button {
    border: 0;
    border-radius: 10px;
    background: #2098e8;
    color: #fff;
    padding: 9px 13px;
    font-weight: 900;
    text-decoration: none;
}

.live-ims-standard-card .live-ims-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.live-im-settings-layer,
.live-im-search-layer {
    display: none;
}

body.live-im-settings-open .live-im-settings-layer,
body.live-im-search-open .live-im-search-layer {
    display: flex;
}

/* MB_CUSTOMER_BOT_CONTROL_BUTTON_LAYOUT_TEST_V02 */
.bot-control-standard-card .bot-card p {
    margin: 12px 0 0;
}

.bot-control-standard-card .bot-card form {
    display: block !important;
    margin: 0 0 10px 0 !important;
}

.bot-control-standard-card .bot-card button,
.bot-control-standard-card .bot-card .blue-button {
    display: block;
    width: 100%;
    text-align: center;
    margin: 0 0 10px 0;
    box-sizing: border-box;
}

.bot-control-standard-card .MB_CUSTOMER_LIVE_IMS_V17_LINK {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(86,111,143,.18);
}

/* MB_CUSTOMER_BOT_CONTROL_STATUS_BADGE_TEST_V03 */
.bot-control-standard-card .bot-control-title {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.bot-control-standard-card .bot-control-status-badge {
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
}

.bot-control-standard-card .bot-control-status-badge.is-active {
    background: #eafff2;
    color: #087034;
}

.bot-control-standard-card .bot-control-status-badge.is-inactive {
    background: #fff1f1;
    color: #9d1c1c;
}

/* MB_CUSTOMER_BOT_CONTROL_GREEN_RED_DOT_TEST_V04 */
.bot-control-standard-card .bot-control-name-with-dot {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bot-control-standard-card .bot-control-state-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    flex: 0 0 auto;
}

.bot-control-standard-card .bot-control-state-dot.is-active {
    background: #16a34a;
    box-shadow: 0 0 0 3px rgba(22,163,74,.14);
}

.bot-control-standard-card .bot-control-state-dot.is-inactive {
    background: #dc2626;
    box-shadow: 0 0 0 3px rgba(220,38,38,.14);
}

/* MB_CUSTOMER_BOT_CONTROL_GREEN_RED_DOT_SIZE_TEST_V05 */
.bot-control-standard-card .bot-control-state-dot {
    width: 11px;
    height: 11px;
}



/* MB_BOT_MANAGE_EMBED_MODAL_CENTER_SIZE_TEST_V02 */

/* nasconde il form Edit bot profile: deve essere popup, non visibile in pagina */
.mb-bot-manage-embed .mb-profile-modal-backdrop {
    display: none !important;
}

body.mb-profile-modal-open .mb-bot-manage-embed .mb-profile-modal-backdrop {
    display: flex !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 9999 !important;
    background: rgba(8,24,48,.55) !important;
    align-items: center !important;
    justify-content: center !important;
}

body.mb-profile-modal-open .mb-bot-manage-embed .mb-profile-modal-window {
    width: min(720px, 96vw) !important;
    max-height: 90vh !important;
    overflow: auto !important;
    background: #fff !important;
    border-radius: 16px !important;
    padding: 24px !important;
    box-shadow: 0 24px 70px rgba(0,0,0,.25) !important;
}

/* centra il pannello originale dentro la card */
.mb-bot-manage-embed .main {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

/* ingrandisce leggermente il pannello senza rifarlo */
.mb-bot-manage-embed .msb12-control-panel {
    zoom: 1.12 !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* lascia un po' di aria sotto */
.mb-bot-manage-embed {
    padding-bottom: 28px !important;
}

/* MB_BOT_MANAGE_SHIFT_PANEL_RIGHT_TEST_V03 */

/* non centrare più matematicamente: lascia spazio a sinistra per il box Automatic permissions */
.mb-bot-manage-embed .main {
    align-items: flex-start !important;
}

/* sposta tutto il pannello originale verso destra */
.mb-bot-manage-embed .msb12-control-panel {
    position: relative !important;
    left: 105px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* riduce spazio inutile sul lato destro della card */
.mb-bot-manage-embed {
    padding-left: 20px !important;
    padding-right: 20px !important;
}

/* MB_BOT_MANAGE_GET_MORE_ADDONS_BUTTON_TEST_V04 */
.mb-bot-manage-embed .msb12-bot-addons p a {
    display: inline-block !important;
    margin-top: 12px !important;
    padding: 9px 12px !important;
    border-radius: 10px !important;
    background: #2098e8 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    box-shadow: 0 8px 18px rgba(32,152,232,.18) !important;
}

.mb-bot-manage-embed .msb12-bot-addons p a:hover {
    background: #167dca !important;
    text-decoration: none !important;
}

/* MB_CUSTOMER_BOT_CREATE_STANDARD_UI_TEST_V01 */
.mb-create-bot-card {
    max-width: 860px;
}

.mb-create-bot-form {
    margin-top: 20px;
}

.mb-form-row {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 18px;
    align-items: start;
    padding: 16px 0;
    border-top: 1px solid rgba(86,111,143,.16);
}

.mb-form-row label {
    color: #0d2b59;
    font-weight: 900;
}

.mb-form-row input,
.mb-form-row select {
    width: 100%;
    max-width: 420px;
    border: 1px solid rgba(86,111,143,.28);
    border-radius: 10px;
    background: #fff;
    color: #173553;
    padding: 10px 12px;
    font-weight: 700;
    box-sizing: border-box;
}

.mb-form-separator {
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #eaf5ff;
    color: #0d2b59;
    font-weight: 900;
}

.mb-form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(86,111,143,.16);
}

/* MB_CUSTOMER_BOT_CREDENTIALS_STANDARD_UI_TEST_V01 */
.mb-credentials-card {
    max-width: 880px;
}

.mb-readonly-value {
    display: inline-block;
    min-width: 260px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f4f8fc;
    border: 1px solid rgba(86,111,143,.20);
    color: #173553;
    font-weight: 900;
}

.mb-required {
    color: #d12b2b;
}

.mb-check-row {
    padding: 13px 0;
    border-top: 1px solid rgba(86,111,143,.12);
}

.mb-check-row label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: #173553;
    font-weight: 800;
}

.mb-check-row input {
    margin-top: 3px;
}

.mb-note-box {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #fff8e6;
    border: 1px solid rgba(212,153,31,.25);
    color: #604211;
    font-weight: 700;
    line-height: 1.45;
}

/* MB_CUSTOMER_BOT_CREDENTIALS_SL_PASSWORD_WARNING_TEST_V02 */
.mb-sl-password-warning {
    margin: 16px 0 18px;
    padding: 15px 16px;
    border-radius: 12px;
    background: #fff8e6;
    border: 1px solid rgba(212,153,31,.35);
    color: #5c3c00;
    font-weight: 800;
    line-height: 1.45;
}

/* MB_CUSTOMER_PROFILE_STANDARD_UI_TEST_V01 */
.mb-profile-card {
    max-width: 920px;
}

.mb-profile-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 18px 0 20px;
    padding: 8px;
    border-radius: 14px;
    background: #f4f9ff;
    border: 1px solid rgba(86,111,143,.15);
}

.mb-profile-tabs a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 130px;
    padding: 10px 14px;
    border-radius: 11px;
    color: #0d2b59;
    text-decoration: none;
    font-weight: 900;
}

.mb-profile-tabs a.active {
    background: #2098e8;
    color: #fff;
    box-shadow: 0 8px 18px rgba(32,152,232,.18);
}

.mb-profile-form {
    margin-top: 8px;
}

.mb-info-box {
    margin: 14px 0;
    padding: 14px 16px;
    border-radius: 12px;
    background: #eef7ff;
    border: 1px solid rgba(86,111,143,.16);
    color: #173553;
    font-weight: 750;
    line-height: 1.45;
}

.mb-radio-stack {
    display: grid;
    gap: 8px;
    color: #173553;
    font-weight: 800;
}

.mb-radio-stack label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mb-danger-zone {
    margin-top: 24px;
    padding: 15px 16px;
    border-radius: 12px;
    background: #fff1f1;
    border: 1px solid rgba(214,69,69,.25);
    color: #842222;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.mb-danger-zone a {
    color: #b42323;
    font-weight: 900;
    text-decoration: none;
}

.mb-danger-zone a:hover {
    text-decoration: underline;
}

/* MB_CUSTOMER_PROFILE_RADIO_ALIGNMENT_TEST_V02 */
.mb-profile-card .mb-radio-stack {
    display: flex !important;
    flex-direction: column !important;
    gap: 9px !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
}

.mb-profile-card .mb-radio-stack label {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    white-space: nowrap !important;
}

.mb-profile-card .mb-radio-stack input[type="radio"] {
    margin: 0 !important;
    flex: 0 0 auto !important;
}

/* MB_CUSTOMER_PROFILE_RADIO_HARD_ALIGNMENT_TEST_V03 */
.mb-profile-card .mb-form-row > .mb-radio-stack {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    justify-items: start !important;
    align-items: start !important;
    width: 100% !important;
    max-width: 360px !important;
}

.mb-profile-card .mb-form-row > .mb-radio-stack > label {
    display: grid !important;
    grid-template-columns: 18px auto !important;
    column-gap: 10px !important;
    align-items: center !important;
    justify-content: start !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    white-space: nowrap !important;
}

.mb-profile-card .mb-form-row > .mb-radio-stack > label input[type="radio"] {
    display: block !important;
    width: 14px !important;
    height: 14px !important;
    margin: 0 !important;
    padding: 0 !important;
    justify-self: start !important;
}

/* MB_CUSTOMER_GROUP_NOTICE_EDIT_STANDARD_UI_TEST_V01 */
.mb-notice-edit-card {
    max-width: 1080px;
}

.mb-notice-edit-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 18px;
    align-items: start;
}

.mb-notice-edit-form input,
.mb-notice-edit-form select,
.mb-notice-edit-form textarea {
    width: 100%;
    max-width: 560px;
    border: 1px solid rgba(86,111,143,.28);
    border-radius: 10px;
    background: #fff;
    color: #173553;
    padding: 10px 12px;
    font-weight: 700;
    box-sizing: border-box;
}

.mb-notice-edit-form textarea {
    resize: vertical;
    line-height: 1.45;
}

.mb-repeat-inline {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.mb-repeat-inline input {
    width: 110px;
}

.mb-repeat-inline select {
    width: 150px;
}

.mb-notice-edit-side {
    padding: 16px;
    border-radius: 14px;
    background: #f4f9ff;
    border: 1px solid rgba(86,111,143,.16);
    color: #173553;
    font-weight: 750;
    line-height: 1.45;
}

.mb-notice-edit-side strong {
    display: block;
    color: #0d2b59;
    font-size: 15px;
    font-weight: 900;
    margin-bottom: 10px;
}

.mb-error-box {
    padding: 14px 16px;
    border-radius: 12px;
    background: #fff1f1;
    border: 1px solid rgba(214,69,69,.25);
    color: #842222;
    font-weight: 800;
}

@media (max-width: 980px) {
    .mb-notice-edit-grid {
        grid-template-columns: 1fr;
    }
}

/* MB_CUSTOMER_GROUP_NOTICES_INVENTORY_STANDARD_UI_TEST_V01 */
.mb-notice-inventory-card {
    max-width: 1080px;
}

.mb-notice-feature-box,
.mb-notice-bot-box {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin: 16px 0;
    padding: 14px 16px;
    border-radius: 14px;
    background: #f4f9ff;
    border: 1px solid rgba(86,111,143,.16);
    color: #173553;
}

.mb-notice-feature-box strong,
.mb-notice-bot-box strong {
    color: #0d2b59;
    font-weight: 900;
}

.mb-notice-feature-box span,
.mb-notice-bot-box span {
    color: #5a718c;
    font-weight: 800;
}

.mb-notice-toolbar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 18px 0;
}

.mb-notice-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 16px 0;
    padding: 8px;
    border-radius: 14px;
    background: #f4f9ff;
    border: 1px solid rgba(86,111,143,.15);
}

.mb-notice-tabs a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 145px;
    padding: 10px 14px;
    border-radius: 11px;
    color: #0d2b59;
    text-decoration: none;
    font-weight: 900;
}

.mb-notice-tabs a.active {
    background: #2098e8;
    color: #fff;
    box-shadow: 0 8px 18px rgba(32,152,232,.18);
}

.mb-table-wrap {
    width: 100%;
    overflow-x: auto;
    margin-top: 16px;
}

.mb-notice-inventory-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.mb-notice-inventory-table th {
    background: #2098e8;
    color: #fff;
    text-align: left;
    padding: 11px 12px;
    font-weight: 900;
}

.mb-notice-inventory-table td {
    padding: 13px 12px;
    border-bottom: 1px solid rgba(86,111,143,.14);
    vertical-align: top;
    color: #173553;
    font-weight: 700;
}

.mb-notice-inventory-table tbody tr:nth-child(even) td {
    background: #f7fbff;
}

.mb-code-inline {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    color: #0d2b59;
    word-break: break-all;
}

.mb-danger-text {
    color: #b42323;
    font-weight: 900;
}

/* MB_CUSTOMER_LOGIN_STANDARD_UI_TEST_V01 */
.mb-login-public {
    min-height: calc(100vh - 40px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 42px 18px;
    background:
        radial-gradient(circle at top left, rgba(32,152,232,.16), transparent 34%),
        linear-gradient(135deg, #f4f9ff 0%, #ffffff 52%, #eef7ff 100%);
    box-sizing: border-box;
}

.mb-login-card {
    width: min(460px, 100%);
    padding: 34px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid rgba(86,111,143,.16);
    box-shadow: 0 24px 70px rgba(13,43,89,.14);
}

.mb-login-brand {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: #e8f4ff;
    color: #0876bd;
    font-weight: 950;
    margin-bottom: 18px;
}

.mb-login-card h1 {
    margin: 0 0 8px;
    color: #0d2b59;
    font-size: 30px;
    font-weight: 950;
}

.mb-login-card p {
    margin: 0 0 22px;
    color: #5a718c;
    font-weight: 700;
    line-height: 1.45;
}

.mb-login-form {
    display: grid;
    gap: 10px;
}

.mb-login-form label {
    color: #0d2b59;
    font-weight: 900;
    margin-top: 8px;
}

.mb-login-form input {
    width: 100%;
    border: 1px solid rgba(86,111,143,.28);
    border-radius: 12px;
    background: #fff;
    color: #173553;
    padding: 12px 13px;
    font-weight: 750;
    box-sizing: border-box;
}

.mb-login-form button {
    margin-top: 14px;
    border: 0;
    border-radius: 12px;
    background: #2098e8;
    color: #fff;
    padding: 12px 14px;
    font-weight: 950;
    cursor: pointer;
}

.mb-login-form button:hover {
    background: #167dca;
}

.mb-login-links {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.mb-login-links a {
    color: #0876bd;
    font-weight: 900;
    text-decoration: none;
}

.mb-login-links a:hover {
    text-decoration: underline;
}

.mb-login-error,
.mb-login-success {
    margin: 16px 0;
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 800;
}

.mb-login-error {
    background: #fff1f1;
    border: 1px solid rgba(214,69,69,.25);
    color: #842222;
}

.mb-login-success {
    background: #ecfff4;
    border: 1px solid rgba(36,160,88,.25);
    color: #166534;
}

/* MB_CUSTOMER_STANDARD_FOOTER_ENABLED_V01 */
.mb-footer {
    margin-top: 34px;
    padding: 22px 18px;
    background: #103b63;
    color: #dceafa;
}

.mb-footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    align-items: center;
    font-weight: 800;
}

.mb-footer a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 900;
}

.mb-footer a:hover {
    text-decoration: underline;
}

/* MB_CUSTOMER_INTERNAL_FOOTER_LOGO_LEGAL_V02 */
.mb-footer-internal {
    margin-top: 34px !important;
    padding: 24px 18px !important;
    background: #103b63 !important;
    color: #dceafa !important;
    border-top: 1px solid rgba(255,255,255,.12) !important;
}

.mb-footer-internal .mb-footer-inner {
    max-width: 1180px !important;
    margin: 0 auto !important;
    display: grid !important;
    grid-template-columns: 190px 1fr !important;
    gap: 24px !important;
    align-items: center !important;
}

.mb-footer-logo {
    display: inline-block !important;
    color: #ffffff !important;
    font-size: 26px !important;
    font-weight: 950 !important;
    letter-spacing: -.03em !important;
    line-height: 1 !important;
}

.mb-footer-logo span {
    color: #ffc400 !important;
}

.mb-footer-copy {
    color: #dceafa !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.45 !important;
}

.mb-footer-legal {
    margin-top: 4px !important;
    color: rgba(220,234,250,.82) !important;
    font-size: 12px !important;
    font-weight: 650 !important;
}

@media (max-width: 720px) {
    .mb-footer-internal .mb-footer-inner {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        text-align: center !important;
    }
}

/* MB_CUSTOMER_FOOTER_NO_WHITE_BOTTOM_V01 */
body.mb-customer-ui {
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    background: #103b63 !important;
}

body.mb-customer-ui .mb-ui-shell {
    flex: 1 0 auto !important;
    background: #eaf2f8 !important;
}

.mb-footer-internal {
    flex-shrink: 0 !important;
    margin-top: 0 !important;
    padding: 24px 18px !important;
    background: #103b63 !important;
    color: #dceafa !important;
    border-top: 1px solid rgba(255,255,255,.12) !important;
}

.mb-footer-internal .mb-footer-inner {
    max-width: 1180px !important;
    margin: 0 auto !important;
    display: grid !important;
    grid-template-columns: 190px 1fr !important;
    gap: 24px !important;
    align-items: center !important;
}

.mb-footer-logo-img {
    max-width: 150px !important;
    height: auto !important;
    display: block !important;
}

.mb-footer-logo {
    color: #ffffff !important;
    font-size: 26px !important;
    font-weight: 950 !important;
}

.mb-footer-logo span {
    color: #ffc400 !important;
}

.mb-footer-copy {
    color: #dceafa !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.45 !important;
}

.mb-footer-legal {
    margin-top: 4px !important;
    color: rgba(220,234,250,.84) !important;
    font-size: 12px !important;
    font-weight: 650 !important;
}

@media (max-width: 720px) {
    .mb-footer-internal .mb-footer-inner {
        grid-template-columns: 1fr !important;
        text-align: center !important;
    }

    .mb-footer-logo-img {
        margin: 0 auto !important;
    }
}

/* MB_HOME_FOOTER_LEGAL_ADVERS_V01 */
.home-footer-legal {
    max-width: 1180px;
    margin: 18px auto 0;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,.16);
    color: rgba(220,234,250,.88);
    font-size: 12px;
    line-height: 1.45;
}

/* MB_FOOTER_CENTER_ALIGNMENT_FINAL_V01 */

/* FOOTER INTERNE */
.mb-footer-internal {
    text-align: center !important;
}

.mb-footer-internal .mb-footer-inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    text-align: center !important;
}

.mb-footer-internal .mb-footer-brand {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
}

.mb-footer-internal .mb-footer-copy {
    width: 100% !important;
    max-width: 980px !important;
    margin: 0 auto !important;
    text-align: center !important;
}

.mb-footer-internal .mb-footer-copy > div:first-child {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
}

.mb-footer-internal .mb-footer-legal {
    display: block !important;
    width: 100% !important;
    max-width: 980px !important;
    margin: 6px auto 0 auto !important;
    text-align: center !important;
}

/* FOOTER HOME */
.home-footer-legal {
    max-width: 980px !important;
    margin: 18px auto 0 auto !important;
    text-align: center !important;
}

.home-footer-legal > div {
    width: 100% !important;
    text-align: center !important;
}

.home-footer-legal > div:first-child {
    margin-bottom: 4px !important;
}

/* eventuale footer home classico */
footer .home-footer-legal,
.site-footer .home-footer-legal,
.footer .home-footer-legal {
    text-align: center !important;
}

/* mobile */
@media (max-width: 720px) {
    .mb-footer-internal .mb-footer-inner,
    .mb-footer-internal .mb-footer-copy,
    .mb-footer-internal .mb-footer-legal,
    .home-footer-legal {
        text-align: center !important;
    }
}

/* MB_FOOTER_LOGO_LEFT_TEXT_CENTER_FINAL_V01 */

/* FOOTER INTERNE: logo a sinistra, testo centrato nella colonna destra */
.mb-footer-internal .mb-footer-inner {
    max-width: 1180px !important;
    margin: 0 auto !important;
    display: grid !important;
    grid-template-columns: 190px 1fr !important;
    gap: 24px !important;
    align-items: center !important;
    justify-content: normal !important;
    text-align: left !important;
}

.mb-footer-internal .mb-footer-brand {
    width: auto !important;
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    text-align: left !important;
}

.mb-footer-internal .mb-footer-logo-img {
    margin: 0 !important;
    display: block !important;
    max-width: 150px !important;
    height: auto !important;
}

.mb-footer-internal .mb-footer-logo {
    display: inline-block !important;
    text-align: left !important;
}

.mb-footer-internal .mb-footer-copy {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    text-align: center !important;
}

.mb-footer-internal .mb-footer-copy > div,
.mb-footer-internal .mb-footer-legal {
    width: 100% !important;
    max-width: none !important;
    text-align: center !important;
}

/* HOME: la nota legale resta centrata */
.home-footer-legal {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.home-footer-legal > div {
    text-align: center !important;
}

/* Mobile: sotto 720px torna impilata per non schiacciare il testo */
@media (max-width: 720px) {
    .mb-footer-internal .mb-footer-inner {
        grid-template-columns: 1fr !important;
        text-align: center !important;
    }

    .mb-footer-internal .mb-footer-brand {
        justify-content: center !important;
        text-align: center !important;
    }

    .mb-footer-internal .mb-footer-logo-img {
        margin: 0 auto !important;
    }
}

/* MB_HOME_FOOTER_LEGAL_CENTER_ROW_FINAL_V01 */

/* La nota legale della HOME deve stare sotto le colonne, su riga piena */
footer .home-footer-legal,
.home-footer-legal {
    grid-column: 1 / -1 !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 980px !important;
    margin: 18px auto 0 auto !important;
    padding-top: 12px !important;
    border-top: 1px solid rgba(255,255,255,.16) !important;
    color: rgba(220,234,250,.92) !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
    text-align: center !important;
    clear: both !important;
    display: block !important;
}

footer .home-footer-legal div,
.home-footer-legal div {
    width: 100% !important;
    max-width: 980px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    display: block !important;
}

footer .home-footer-legal div:first-child,
.home-footer-legal div:first-child {
    margin-bottom: 4px !important;
    font-weight: 800 !important;
}

/* Se la footer della home usa flex/grid, la nota legale deve rompere la riga */
footer > .home-footer-legal,
footer div > .home-footer-legal,
footer section > .home-footer-legal {
    align-self: center !important;
    justify-self: center !important;
}

/* MB_HOME_FOOTER_LEGAL_CENTER_ROW_FINAL_V01 */

/* La nota legale della HOME deve stare sotto le colonne, su riga piena */
footer .home-footer-legal,
.home-footer-legal {
    grid-column: 1 / -1 !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 980px !important;
    margin: 18px auto 0 auto !important;
    padding-top: 12px !important;
    border-top: 1px solid rgba(255,255,255,.16) !important;
    color: rgba(220,234,250,.92) !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
    text-align: center !important;
    clear: both !important;
    display: block !important;
}

footer .home-footer-legal div,
.home-footer-legal div {
    width: 100% !important;
    max-width: 980px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    display: block !important;
}

footer .home-footer-legal div:first-child,
.home-footer-legal div:first-child {
    margin-bottom: 4px !important;
    font-weight: 800 !important;
}

/* Se la footer della home usa flex/grid, la nota legale deve rompere la riga */
footer > .home-footer-legal,
footer div > .home-footer-legal,
footer section > .home-footer-legal {
    align-self: center !important;
    justify-self: center !important;
}

/* MB_CUSTOMER_REGISTER_CLEAN_TEST_V01 */
.mb-register-card {
    width: min(520px, 100%);
    padding: 34px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid rgba(86,111,143,.16);
    box-shadow: 0 24px 70px rgba(13,43,89,.14);
}

.mb-register-card h1 {
    margin: 0 0 8px;
    color: #0d2b59;
    font-size: 30px;
    font-weight: 950;
}

.mb-register-card p {
    margin: 0 0 22px;
    color: #5a718c;
    font-weight: 700;
    line-height: 1.45;
}

.mb-form-help {
    margin: -3px 0 6px;
    color: #6d8196;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.35;
}

.mb-form-warning {
    color: #b42318;
}

/* MB_SUBSCRIPTION_EXTEND_STANDARD_TEST_V01 */
.mb-renew-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.mb-renew-box {
    border: 1px solid rgba(86,111,143,.16);
    border-radius: 18px;
    background: #fff;
    padding: 20px;
    box-shadow: 0 12px 32px rgba(13,43,89,.07);
}

.mb-renew-box h3 {
    margin: 10px 0 16px;
    color: #0d2b59;
    font-size: 18px;
    font-weight: 950;
}

.mb-renew-step {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: #2098e8;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 950;
}

.mb-renew-option {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 14px;
    border: 1px solid rgba(86,111,143,.18);
    background: #f8fbff;
    cursor: pointer;
}

.mb-renew-option input {
    margin-top: 3px;
}

.mb-renew-option strong {
    display: block;
    color: #0d2b59;
    font-weight: 950;
}

.mb-renew-option small {
    display: block;
    margin-top: 3px;
    color: #6d8196;
    font-weight: 750;
}

.mb-renew-option.is-disabled {
    opacity: .55;
    cursor: not-allowed;
}

.mb-renew-total {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(86,111,143,.16);
    color: #f97316;
    font-size: 22px;
    font-weight: 950;
    text-align: right;
}

.mb-renew-actions {
    margin-top: 16px;
    text-align: right;
}

.mb-renew-button {
    display: inline-flex;
    border-radius: 12px;
    background: #2098e8;
    color: #fff !important;
    padding: 11px 16px;
    font-weight: 950;
    text-decoration: none;
}

.mb-renew-button:hover {
    background: #167dca;
    text-decoration: none;
}

@media (max-width: 900px) {
    .mb-renew-grid {
        grid-template-columns: 1fr;
    }

    .mb-renew-total,
    .mb-renew-actions {
        text-align: left;
    }
}
