/* =========================================================
   WATCHKEEPER OPERATIONS — ULTIMATE MEMBER
   Profiles, directories, member controls, badges and responsive rules
   ========================================================= */

/* =========================================================
   WATCHKEEPER OPERATIONS — MASTER CUSTOM CSS
   Includes Ultimate Member/profile styling and pages 2689/2787
   ========================================================= */

/* Ultimate Member Tab Styles */
.um-row-heading {
    font-family: "Montserrat", Sans-serif !important;
    font-size: 24px !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    font-style: normal !important;
    line-height: 28px !important;
    color: var(--e-global-color-accent) !important;
    padding: 20px 20px 0 20px !important;
}


/* Ultimate Member - remove forced text casing */
.um,
.um * {
    text-transform: none !important;
}


/* Ultimate Member date picker */
.picker__header {
    display: grid !important;
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
    position: relative;
}

.picker__nav--prev {
    grid-column: 1;
    grid-row: 1;
}

.picker__nav--next {
    grid-column: 3;
    grid-row: 1;
}

.picker__select--year,
.picker__month {
    grid-column: 2;
    justify-self: center;
}

.picker__select--year {
    grid-row: 1;
    width: auto !important;
    margin: 0 !important;
}

.picker__month {
    grid-row: 2;
}


/* Countries operated in: five entries per column */
@media (min-width: 768px) {
    #organisations_supported_7-2477 p {
        margin: 0;
        line-height: 1.6;
        height: 8em;
        column-width: 140px;
        column-gap: 30px;
        column-fill: auto;
    }

    #organisations_supported-2477 p {
        margin: 0;
        line-height: 1.6;
        height: 8em;
        column-width: 140px;
        column-gap: 30px;
        column-fill: auto;
    }
}

@media (max-width: 767px) {
    #organisations_supported_7-2477 p,
    #organisations_supported-2477 p {
        height: auto;
        columns: 1;
    }
}


/* =========================================================
   ULTIMATE MEMBER PROFILE TABS
   ========================================================= */

/*
 * Ultimate Member generates two links inside each tab.
 * Hide the first link and use the second link at all sizes.
 */
.um-profile .um-profile-nav-item > a:first-of-type {
    display: none !important;
}

.um-profile .um-profile-nav-item > a:nth-of-type(2) {
    display: flex !important;
}


/* Main tab bar */
.um-profile .um-profile-nav {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    padding: 0;
    margin: 0 0 30px;
    background: transparent !important;
    border-bottom: 2px solid #1a4d8f;
}


/* Individual tab containers */
.um-profile .um-profile-nav-item {
    float: none;
    margin: 0;
    padding: 0;
    background: transparent !important;
}


/* Remove Ultimate Member's default tab decoration */
.um-profile .um-profile-nav-item::before,
.um-profile .um-profile-nav-item::after {
    display: none !important;
}


/* Tab links */
.um-profile .um-profile-nav-item > a:nth-of-type(2) {
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 20px;
    margin: 0;
    border: 1px solid #d7d7d7;
    border-bottom: 0;
    border-radius: 3px 3px 0 0;
    background: #f5f5f5 !important;
    color: #404040 !important;

    font-family: "Oswald", Sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.7px;
    text-transform: uppercase !important;

    box-shadow: none;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}


/* Tab icons */
.um-profile .um-profile-nav-item > a:nth-of-type(2) i {
    display: inline-block;
    margin-right: 8px;
    color: #1a4d8f !important;
    font-size: 15px;
    transition: color 0.2s ease;
}


/* Tab text */
.um-profile .um-profile-nav-item > a:nth-of-type(2) .title {
    display: inline !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: inherit !important;
    font: inherit;
    text-transform: uppercase !important;
}


/* Hover state */
.um-profile
.um-profile-nav-item:not(.active)
> a:nth-of-type(2):hover {
    background: #ffffff !important;
    border-color: #1a4d8f;
    color: #1a4d8f !important;
}


/* Active tab */
.um-profile
.um-profile-nav-item.active
> a:nth-of-type(2) {
    position: relative;
    z-index: 2;
    margin-bottom: -2px;
    padding-bottom: 14px;
    background: #1a4d8f !important;
    border-color: #1a4d8f;
    color: #ffffff !important;
}


/* Active icon */
.um-profile
.um-profile-nav-item.active
> a:nth-of-type(2) i {
    color: #ffffff !important;
}


/* Remove Ultimate Member's active arrow/indicator */
.um-profile
.um-profile-nav-item.active
> a:nth-of-type(2)::after,
.um-profile
.um-profile-nav-item.active::after {
    display: none !important;
}


/* Clear element is unnecessary when tabs use flex */
.um-profile .um-profile-nav > .um-clear {
    display: none !important;
}


/* =========================================================
   MOBILE PROFILE TABS
   ========================================================= */

@media screen and (max-width: 800px) {

    .um-profile .um-profile-nav {
        display: flex;
        align-items: stretch;
        gap: 0;
        overflow-x: auto;
        overflow-y: hidden;
        margin: 50px 0 24px;
        border-bottom: 2px solid #1a4d8f;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    /* Prevent tabs from being compressed */
    .um-profile .um-profile-nav-item {
        flex: 0 0 auto;
    }

    /* Keep the second generated tab link visible */
    .um-profile
    .um-profile-nav-item
    > a:nth-of-type(2) {
        display: flex !important;
        min-width: max-content;
        min-height: 44px;
        padding: 11px 15px;
        font-size: 13px;
        letter-spacing: 0.5px;
        white-space: nowrap;
    }

    /* Hide icons on mobile */
    .um-profile
    .um-profile-nav-item
    > a:nth-of-type(2) i {
        display: none !important;
        margin: 0 !important;
    }

    /* Always display the tab words */
    .um-profile
    .um-profile-nav-item
    > a:nth-of-type(2) .title {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: auto !important;
        height: auto !important;
        overflow: visible !important;
        position: static !important;
        clip: auto !important;
        white-space: nowrap;
        text-transform: uppercase !important;
    }

    .um-profile
    .um-profile-nav-item.active
    > a:nth-of-type(2) {
        margin-bottom: -2px;
        padding-bottom: 13px;
    }
}


/* =========================================================
   PROFILE CONTACT ACTIONS
   ========================================================= */

.profile-contact-actions {
    margin: 12px 0 20px;
    padding-top: 0;
    border-top: 0;
    text-align: right;
}

.profile-contact-intro {
    margin: 0 0 8px;
    color: #707070;
    font-family: "Montserrat", Sans-serif;
    font-size: 12px;
    line-height: 1.5;
}

.profile-contact-buttons {
    display: flex;
    justify-content: flex-end;
    align-items: stretch;
    gap: 10px;
}


/* =========================================================
   SHARED CONTACT BUTTON DIMENSIONS
   ========================================================= */

.um-profile .profile-contact-buttons a.um-message-btn.um-button,
.um-profile .profile-contact-buttons a.watchkeeper-enquiry-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    width: 240px !important;
    min-width: 240px !important;
    max-width: 240px !important;
    min-height: 46px;
    box-sizing: border-box;

    margin: 0 !important;
    padding: 14px 28px !important;

    border-radius: 0 !important;
    box-shadow: none !important;

    font-family: "Oswald", Sans-serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    font-style: normal !important;
    line-height: 1 !important;
    letter-spacing: 1.2px !important;
    text-align: center;
    text-decoration: none !important;
    text-transform: uppercase !important;

    cursor: pointer;
    overflow: visible;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease !important;
}


/* =========================================================
   ULTIMATE MEMBER MESSAGE BUTTON
   ========================================================= */

.um-profile .profile-contact-buttons a.um-message-btn.um-button {
    background: #C75B12 !important;
    color: #ffffff !important;
    fill: #ffffff !important;
    border: 1px solid #C75B12 !important;
}

.um-profile .profile-contact-buttons a.um-message-btn.um-button span {
    color: inherit !important;
    font: inherit !important;
    letter-spacing: inherit !important;
    line-height: inherit !important;
    text-transform: inherit !important;
}

.um-profile .profile-contact-buttons a.um-message-btn.um-button:hover,
.um-profile .profile-contact-buttons a.um-message-btn.um-button:focus {
    background: #A9470B !important;
    color: #ffffff !important;
    border-color: #A9470B !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

.um-profile .profile-contact-buttons a.um-message-btn.um-button:active {
    background: #A9470B !important;
    border-color: #A9470B !important;
    transform: translateY(1px);
}


/* =========================================================
   WATCHKEEPER ENQUIRY BUTTON
   ========================================================= */

.um-profile .profile-contact-buttons a.watchkeeper-enquiry-button {
    background: #ffffff !important;
    color: #1A4D8F !important;
    border: 1px solid #1A4D8F !important;
}

.um-profile .profile-contact-buttons a.watchkeeper-enquiry-button:hover,
.um-profile .profile-contact-buttons a.watchkeeper-enquiry-button:focus {
    background: #1A4D8F !important;
    color: #ffffff !important;
    border-color: #1A4D8F !important;
    text-decoration: none !important;
}


/* =========================================================
   MOBILE AND TABLET CONTACT BUTTONS
   ========================================================= */

@media screen and (max-width: 800px) {

    .profile-contact-actions {
        margin: 20px 0 0;
        padding-top: 16px;
        border-top: 1px solid #d7d7d7;
        text-align: left;
    }

    .profile-contact-intro {
        margin-bottom: 10px;
        text-align: center;
    }

    .profile-contact-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .um-profile .profile-contact-buttons a.um-message-btn.um-button,
    .um-profile .profile-contact-buttons a.watchkeeper-enquiry-button {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }
}
/* =========================================================
   OWN-PROFILE INBOX BUTTON
   ========================================================= */

.um-profile .profile-contact-buttons a.watchkeeper-inbox-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    width: 240px !important;
    min-width: 240px !important;
    max-width: 240px !important;
    min-height: 46px;
    box-sizing: border-box;

    margin: 0 !important;
    padding: 14px 28px !important;

    background: #C75B12 !important;
    color: #ffffff !important;
    border: 1px solid #C75B12 !important;
    border-radius: 0 !important;
    box-shadow: none !important;

    font-family: "Oswald", Sans-serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    font-style: normal !important;
    line-height: 1 !important;
    letter-spacing: 1.2px !important;
    text-align: center;
    text-decoration: none !important;
    text-transform: uppercase !important;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease !important;
}

.um-profile .profile-contact-buttons a.watchkeeper-inbox-button:hover,
.um-profile .profile-contact-buttons a.watchkeeper-inbox-button:focus {
    background: #A9470B !important;
    color: #ffffff !important;
    border-color: #A9470B !important;
    text-decoration: none !important;
}

/* No introductory contact sentence on the owner's profile */
.profile-owner-actions {
    margin-top: 12px;
}

@media screen and (max-width: 800px) {

    .um-profile .profile-contact-buttons a.watchkeeper-inbox-button {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }
}
/* =========================================================
   ULTIMATE MEMBER PROFILE CONTENT CARDS
   ========================================================= */

/* Card heading */
.um-profile-body .um-row-heading {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;

    margin: 32px 0 0 !important;
    padding: 20px 24px !important;

    background: #ffffff !important;
    color: #1A4D8F !important;

    border: 2px solid #A4A4A4 !important;
    border-bottom: 0 !important;
    border-radius: 20px 20px 0 0 !important;

    font-family: "Montserrat", Sans-serif !important;
    font-size: 24px !important;
    font-weight: 500 !important;
    font-style: normal !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;

    box-sizing: border-box !important;
}


/* Heading icon */
.um-profile-body .um-row-heading .um-row-heading-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
}

.um-profile-body .um-row-heading .um-row-heading-icon i {
    color: #1A4D8F !important;
    font-size: 22px !important;
    line-height: 1 !important;
}


/* Card body */
.um-profile-body .um-row-heading + .um-row {
    margin: 0 0 40px !important;
    padding: 24px !important;

    background: #ffffff !important;

    border: 2px solid #A4A4A4 !important;
    border-top: 0 !important;
    border-radius: 0 0 20px 20px !important;

    box-shadow: 10px 10px 25px 5px rgba(0, 0, 0, 0.18) !important;

    box-sizing: border-box !important;
}


/* First card does not need excessive space above it */
.um-profile-body > .um-row-heading:first-of-type {
    margin-top: 20px !important;
}


/* =========================================================
   FIELD PRESENTATION INSIDE PROFILE CARDS
   ========================================================= */

/* Field spacing */
.um-profile-body .um-row .um-field {
    margin: 0 0 22px !important;
}

.um-profile-body .um-row .um-field:last-child {
    margin-bottom: 0 !important;
}


/* Field-label spacing */
.um-profile-body .um-row .um-field-label {
    margin: 0 0 6px !important;
}


/* Field labels, e.g. YEARS IN MEDIA SAFETY */
.um-profile-body .um-row .um-field-label label {
    color: var(--e-global-color-primary, #000000) !important;

    font-family: "Montserrat", Sans-serif !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    font-style: normal !important;
    line-height: 24px !important;
    letter-spacing: normal !important;
    text-transform: uppercase !important;
}


/* Displayed field values */
.um-profile-body .um-row .um-field-value {
    color: #404040 !important;

    font-family: "Montserrat", Sans-serif !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
}


/* Short profile values */
.um-profile-body .um-row .um-field:not(.um-field-textarea) .um-field-value {
    min-height: 0;
    padding: 2px 0 0;

    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;

    color: #404040 !important;
    box-sizing: border-box !important;
}


/* Long text areas should remain open and readable */
.um-profile-body .um-row .um-field-textarea .um-field-value {
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
}

.um-profile-body .um-row .um-field-textarea .um-field-value p {
    margin: 0 0 16px !important;
}

.um-profile-body .um-row .um-field-textarea .um-field-value p:last-child {
    margin-bottom: 0 !important;
}


/* Two-column spacing */
.um-profile-body .um-row .um-col-121,
.um-profile-body .um-row .um-col-122 {
    box-sizing: border-box !important;
}


/* =========================================================
   EMPTY PROFILE NOTE
   ========================================================= */

.um-profile-body .um-profile-note {
    margin: 0 0 24px !important;
    padding: 14px 18px !important;

    background: #f7f7f7 !important;
    border-left: 4px solid #1A4D8F !important;

    color: #404040 !important;

    font-family: "Montserrat", Sans-serif !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}


/* =========================================================
   MOBILE AND TABLET PROFILE CARDS
   ========================================================= */

@media screen and (max-width: 800px) {

    .um-profile-body .um-row-heading {
        margin-top: 24px !important;
        padding: 16px 18px !important;

        border-radius: 14px 14px 0 0 !important;

        font-size: 19px !important;
        line-height: 1.25 !important;
    }

    .um-profile-body .um-row-heading .um-row-heading-icon i {
        font-size: 18px !important;
    }

    .um-profile-body .um-row-heading + .um-row {
        margin-bottom: 28px !important;
        padding: 18px !important;

        border-radius: 0 0 14px 14px !important;
        box-shadow: 6px 8px 18px 2px rgba(0, 0, 0, 0.14) !important;
    }

    .um-profile-body .um-row .um-field {
        margin-bottom: 18px !important;
    }

    .um-profile-body .um-row .um-field-label label {
        font-size: 14px !important;
        line-height: 22px !important;
    }

    .um-profile-body .um-row .um-field-value {
        font-size: 14px !important;
    }
}
/* =========================================================
   Self-Declared Text Styling
   ========================================================= */
.um-profile .self-declared-text {
    color: #9a9a9a !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
}
/* =========================================================
   PASSPORT FIELD PANELS — READINESS FORM 2473
   Apply the same connected-card styling to Passport 1, 2 and 3
   Keep visa information visually separate
   ========================================================= */

/*
 * The rendered form does not wrap each passport pair in its own card.
 * Build each visual card from the exact issuing-country and expiry fields.
 */

/* Passport country forms the top half of each card */
#um_field_2473_country,
#um_field_2473_country_11,
#um_field_2473_country_11_13 {
    position: relative !important;

    margin: 0 !important;
    padding: 18px 18px 10px !important;

    background: #fbfbfb !important;
    border: 1px solid #b8b8b8 !important;
    border-bottom: 0 !important;
    border-radius: 8px 8px 0 0 !important;

    box-sizing: border-box !important;
}


/* Passport expiry forms the bottom half of each card */
#um_field_2473_passport_validity,
#um_field_2473_passport_validity_12,
#um_field_2473_passport_validity_12_14 {
    position: relative !important;

    margin: 0 0 24px !important;
    padding: 10px 18px 18px !important;

    background: #fbfbfb !important;
    border: 1px solid #b8b8b8 !important;
    border-top: 0 !important;
    border-radius: 0 0 8px 8px !important;

    box-sizing: border-box !important;
}


/* Remove the normal gap between the connected fields */
#um_field_2473_country + #um_field_2473_passport_validity,
#um_field_2473_country_11 + #um_field_2473_passport_validity_12,
#um_field_2473_country_11_13 + #um_field_2473_passport_validity_12_14 {
    margin-top: 0 !important;
}


/* Keep field labels and Select2 controls aligned consistently */
#um_field_2473_country .um-field-label,
#um_field_2473_country_11 .um-field-label,
#um_field_2473_country_11_13 .um-field-label,
#um_field_2473_passport_validity .um-field-label,
#um_field_2473_passport_validity_12 .um-field-label,
#um_field_2473_passport_validity_12_14 .um-field-label {
    margin-top: 0 !important;
}

#um_field_2473_country .um-field-area,
#um_field_2473_country_11 .um-field-area,
#um_field_2473_country_11_13 .um-field-area,
#um_field_2473_passport_validity .um-field-area,
#um_field_2473_passport_validity_12 .um-field-area,
#um_field_2473_passport_validity_12_14 .um-field-area,
#um_field_2473_country .select2-container,
#um_field_2473_country_11 .select2-container,
#um_field_2473_country_11_13 .select2-container,
#um_field_2473_passport_validity .select2-container,
#um_field_2473_passport_validity_12 .select2-container,
#um_field_2473_passport_validity_12_14 .select2-container {
    width: 100% !important;
}


/* Keep the visa record visually separate from Passport 1 */
#um_field_2473_visas_held {
    margin-top: 0 !important;
    padding: 0 !important;

    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
}


/* =========================================================
   MOBILE AND TABLET
   ========================================================= */

@media screen and (max-width: 800px) {

    /*
     * Qualification panels stack vertically.
     */
    .um-profile-body .um-row:has(
        [class*="um-field-medical_certification_"],
        [class*="um-field-other_qualifications_"]
    ) > .um-col-131,

    .um-profile-body .um-row:has(
        [class*="um-field-medical_certification_"],
        [class*="um-field-other_qualifications_"]
    ) > .um-col-132,

    .um-profile-body .um-row:has(
        [class*="um-field-medical_certification_"],
        [class*="um-field-other_qualifications_"]
    ) > .um-col-133 {
        width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 14px !important;
        padding: 16px !important;
    }

    /*
     * Passport country and expiry remain one connected card.
     */
    #um_field_2473_country,
    #um_field_2473_country_11,
    #um_field_2473_country_11_13 {
        padding: 16px 16px 8px !important;
    }

    #um_field_2473_passport_validity,
    #um_field_2473_passport_validity_12,
    #um_field_2473_passport_validity_12_14 {
        margin-bottom: 20px !important;
        padding: 8px 16px 16px !important;
    }
}


/* =========================================================
   DIRECTORY CNMSA BADGE
   Positioned against the complete member tile
   ========================================================= */

/*
 * Do not change .um-member's position property.
 * Ultimate Member's masonry layout already gives it
 * position: absolute, which can contain this badge.
 */
.um-member > .watchkeeper-cnmsa-directory-status {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    z-index: 20 !important;

    display: block !important;
    width: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    font-size: 0 !important;
    line-height: 0 !important;
}


/* Outlined badge */
.um-member
> .watchkeeper-cnmsa-directory-status
> .watchkeeper-cnmsa-badge {
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;

    width: auto !important;
    min-width: 0 !important;

    margin: 0 !important;
    padding: 7px 10px !important;

    background: rgba(255, 255, 255, 0.95) !important;
    color: #1A4D8F !important;

    border: 1px solid #1A4D8F !important;
    border-radius: 4px !important;

    font-family: "Oswald", Sans-serif !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    letter-spacing: 0.6px !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;

    box-shadow: none !important;
    box-sizing: border-box !important;
}


/* Inline tick */
.um-member
> .watchkeeper-cnmsa-directory-status
.watchkeeper-cnmsa-badge-check {
    display: inline-flex !important;
    position: static !important;
    align-items: center !important;
    justify-content: center !important;

    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    flex: 0 0 16px !important;

    margin: 0 !important;
    padding: 0 !important;

    background: #1A4D8F !important;
    color: #ffffff !important;
    border-radius: 50% !important;

    font-family: Arial, Helvetica, Sans-serif !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 16px !important;
}


/* Inline wording */
.um-member
> .watchkeeper-cnmsa-directory-status
.watchkeeper-cnmsa-badge-text {
    display: inline-block !important;
    position: static !important;

    margin: 0 !important;
    padding: 0 !important;

    color: inherit !important;
    font: inherit !important;
    line-height: 1 !important;
    letter-spacing: inherit !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
}


/* Mobile and tablet */
@media screen and (max-width: 800px) {

    .um-member > .watchkeeper-cnmsa-directory-status {
        top: 10px !important;
        right: 10px !important;
    }

    .um-member
    > .watchkeeper-cnmsa-directory-status
    > .watchkeeper-cnmsa-badge {
        gap: 5px !important;
        padding: 6px 8px !important;
        font-size: 10px !important;
        letter-spacing: 0.45px !important;
    }

    .um-member
    > .watchkeeper-cnmsa-directory-status
    .watchkeeper-cnmsa-badge-check {
        width: 15px !important;
        height: 15px !important;
        min-width: 15px !important;
        flex-basis: 15px !important;
        font-size: 9px !important;
        line-height: 15px !important;
    }
}
/* =========================================================
   PROFILE HEADER CNMSA BADGE
   Solid on desktop, outlined on mobile
   ========================================================= */

.um-profile .um-name {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
}

/* Badge wrapper */
.um-profile .watchkeeper-cnmsa-profile-header-status {
    display: inline-flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;

    margin: 0 0 0 22px !important;
    padding: 0 !important;

    font-size: 0 !important;
    line-height: 0 !important;
}

/* Desktop: solid blue badge */
.um-profile
.watchkeeper-cnmsa-profile-header-status
.watchkeeper-cnmsa-badge {
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;

    width: auto !important;
    min-width: 0 !important;

    margin: 0 !important;
    padding: 6px 9px !important;

    background: #1A4D8F !important;
    color: #ffffff !important;

    border: 1px solid #1A4D8F !important;
    border-radius: 4px !important;

    font-family: "Oswald", Sans-serif !important;
    font-size: 10px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    letter-spacing: 0.45px !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;

    box-shadow: none !important;
    box-sizing: border-box !important;
}

/* Desktop: white tick */
.um-profile
.watchkeeper-cnmsa-profile-header-status
.watchkeeper-cnmsa-badge-check {
    display: inline-flex !important;
    position: static !important;
    align-items: center !important;
    justify-content: center !important;

    width: 15px !important;
    height: 15px !important;
    min-width: 15px !important;
    flex: 0 0 15px !important;

    margin: 0 !important;
    padding: 0 !important;

    background: #ffffff !important;
    color: #1A4D8F !important;

    border-radius: 50% !important;

    font-family: Arial, Helvetica, Sans-serif !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    line-height: 15px !important;
}

.um-profile
.watchkeeper-cnmsa-profile-header-status
.watchkeeper-cnmsa-badge-text {
    display: inline-block !important;
    position: static !important;

    margin: 0 !important;
    padding: 0 !important;

    color: inherit !important;
    font: inherit !important;
    line-height: 1 !important;
    letter-spacing: inherit !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
}


/* =========================================================
   MOBILE AND TABLET
   ========================================================= */

@media screen and (max-width: 800px) {

    .um-profile .um-name {
        justify-content: center !important;
        text-align: center !important;
    }

    .um-profile .watchkeeper-cnmsa-profile-header-status {
        margin-left: 10px !important;
    }

    /* Mobile: outlined badge */
    .um-profile
    .watchkeeper-cnmsa-profile-header-status
    .watchkeeper-cnmsa-badge {
        gap: 4px !important;
        padding: 5px 8px !important;

        background: #ffffff !important;
        color: #1A4D8F !important;

        border-color: #1A4D8F !important;

        font-size: 9px !important;
        letter-spacing: 0.35px !important;
    }

    /* Mobile: blue tick */
    .um-profile
    .watchkeeper-cnmsa-profile-header-status
    .watchkeeper-cnmsa-badge-check {
        width: 14px !important;
        height: 14px !important;
        min-width: 14px !important;
        flex-basis: 14px !important;

        background: #1A4D8F !important;
        color: #ffffff !important;

        font-size: 8px !important;
        line-height: 14px !important;
    }
}
@media screen and (max-width: 800px) {

    .um-profile .um-name {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        text-align: center !important;
    }

    .um-profile .watchkeeper-cnmsa-profile-header-status {
        margin: 0 !important;
        width: auto !important;
        justify-content: center !important;
    }

    .um-profile
    .watchkeeper-cnmsa-profile-header-status
    .watchkeeper-cnmsa-badge {
        padding: 5px 8px !important;
        font-size: 9px !important;
        letter-spacing: 0.35px !important;
    }

    .um-profile .um-meta-text {
        margin-top: 10px !important;
    }
}
/* Profile header bio / role summary */
.um-profile .um-meta-text {
    color: #404040 !important;

    font-family: "Montserrat", Sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    letter-spacing: 0.1px !important;

    max-width: 620px;
    margin-top: 10px !important;
}

/* Mobile */
@media screen and (max-width: 800px) {
    .um-profile .um-meta-text {
        max-width: 360px;
        margin: 10px auto 0 !important;

        color: #505050 !important;
        font-size: 12px !important;
        font-weight: 500 !important;
        line-height: 1.55 !important;
        text-align: center !important;
    }
}/* =========================================================
   PROFILE OWNER: MANAGE PROFILE CONTROL
   ========================================================= */

/* Turn the unexplained cog into a compact labelled control */
.um-profile .um-profile-edit-a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;

    width: auto !important;
    min-width: 0 !important;
    height: 36px !important;

    padding: 0 12px !important;

    background: rgba(255, 255, 255, 0.95) !important;
    color: #1A4D8F !important;

    border: 1px solid #1A4D8F !important;
    border-radius: 4px !important;

    font-family: "Oswald", Sans-serif !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    letter-spacing: 0.6px !important;
    text-decoration: none !important;
    text-transform: uppercase !important;

    box-sizing: border-box !important;
}

.um-profile .um-profile-edit-a:hover,
.um-profile .um-profile-edit-a:focus {
    background: #1A4D8F !important;
    color: #ffffff !important;
}

.um-profile .um-profile-edit-a i {
    color: inherit !important;
    font-size: 14px !important;
    line-height: 1 !important;
}

.watchkeeper-manage-profile-label {
    color: inherit !important;
    font: inherit !important;
    letter-spacing: inherit !important;
    text-transform: inherit !important;
}


/* Wider, more usable dropdown */
.um-profile .um-profile-edit .um-dropdown {
    width: 250px !important;
    text-align: left !important;
}

.um-profile .um-profile-edit .um-dropdown-b {
    border-radius: 6px !important;
    overflow: hidden !important;
}

.um-profile .um-profile-edit .um-dropdown ul {
    margin: 0 !important;
    padding: 0 !important;
}


/* Dropdown heading */
.um-profile .watchkeeper-profile-menu-heading {
    padding: 12px 15px !important;

    background: #1A4D8F !important;
    color: #ffffff !important;

    font-family: "Oswald", Sans-serif !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    letter-spacing: 0.7px !important;
    text-transform: uppercase !important;
}


/* Section links */
.um-profile .watchkeeper-edit-section-link {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;

    padding: 11px 15px !important;

    color: #404040 !important;

    font-family: "Montserrat", Sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
    text-align: left !important;
    text-decoration: none !important;
}

.um-profile .watchkeeper-edit-section-link i {
    display: inline-flex !important;
    justify-content: center !important;

    width: 17px !important;
    flex: 0 0 17px !important;

    color: #1A4D8F !important;
    font-size: 14px !important;
}

.um-profile .watchkeeper-edit-section-link:hover,
.um-profile .watchkeeper-edit-section-link:focus {
    background: #f3f5f7 !important;
    color: #1A4D8F !important;
}


/* Separator between editing and account controls */
.um-profile .watchkeeper-profile-menu-separator {
    height: 1px !important;
    margin: 5px 12px !important;
    padding: 0 !important;
    background: #d7d7d7 !important;
}


/* Cancel remains visually secondary */
.um-profile .watchkeeper-menu-cancel {
    display: block !important;
    padding: 10px 15px !important;

    color: #777777 !important;

    font-family: "Montserrat", Sans-serif !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    text-align: center !important;
    text-decoration: none !important;
}


/* Mobile and tablet */
@media screen and (max-width: 800px) {

    .um-profile .um-profile-edit-a {
        height: 34px !important;
        padding: 0 10px !important;
        font-size: 11px !important;
    }

    .um-profile .um-profile-edit .um-dropdown {
        width: 240px !important;
    }
}
/* =========================================================
   ACCOUNT PAGE: BACK TO PROFILE
   ========================================================= */

.watchkeeper-account-back-link {
    display: flex;
    justify-content: flex-start;

    width: 100%;
    margin: 0 0 22px;
    padding: 0;

    box-sizing: border-box;
}

.watchkeeper-account-back-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;

    min-height: 42px;
    padding: 11px 17px !important;

    background: #ffffff !important;
    color: #1A4D8F !important;

    border: 1px solid #1A4D8F !important;
    border-radius: 4px !important;

    font-family: "Oswald", Sans-serif !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    letter-spacing: 0.7px !important;
    text-decoration: none !important;
    text-transform: uppercase !important;

    box-sizing: border-box;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.watchkeeper-account-back-button:hover,
.watchkeeper-account-back-button:focus {
    background: #1A4D8F !important;
    color: #ffffff !important;
    border-color: #1A4D8F !important;
    text-decoration: none !important;
}

.watchkeeper-account-back-button span {
    color: inherit !important;
    font: inherit !important;
    line-height: inherit !important;
    letter-spacing: inherit !important;
    text-transform: inherit !important;
}


/* =========================================================
   ULTIMATE MEMBER ACCOUNT UPDATE BUTTON
   ========================================================= */

.um-account input[type="submit"].um-button,
.um-account #um_account_submit_general {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: auto !important;
    min-width: 190px !important;
    min-height: 46px !important;

    margin: 0 !important;
    padding: 14px 28px !important;

    background: #C75B12 !important;
    color: #ffffff !important;

    border: 1px solid #C75B12 !important;
    border-radius: 0 !important;
    box-shadow: none !important;

    font-family: "Oswald", Sans-serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    font-style: normal !important;
    line-height: 1 !important;
    letter-spacing: 1.2px !important;
    text-align: center !important;
    text-decoration: none !important;
    text-transform: uppercase !important;

    cursor: pointer !important;
    box-sizing: border-box !important;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease !important;
}

.um-account input[type="submit"].um-button:hover,
.um-account input[type="submit"].um-button:focus,
.um-account #um_account_submit_general:hover,
.um-account #um_account_submit_general:focus {
    background: #A9470B !important;
    color: #ffffff !important;
    border-color: #A9470B !important;
    box-shadow: none !important;
}

.um-account input[type="submit"].um-button:active,
.um-account #um_account_submit_general:active {
    background: #A9470B !important;
    border-color: #A9470B !important;
    transform: translateY(1px);
}


/* =========================================================
   MOBILE AND TABLET
   ========================================================= */

@media screen and (max-width: 800px) {

    .watchkeeper-account-back-link {
        margin-bottom: 18px;
    }

    .watchkeeper-account-back-button {
        width: 100% !important;
        min-height: 44px;
    }

    .um-account input[type="submit"].um-button,
    .um-account #um_account_submit_general {
        width: 100% !important;
        min-width: 0 !important;
    }
}
/* Reliable outline for Back to My Profile button */
.watchkeeper-account-back-button {
    border: 0 !important;
    box-shadow: inset 0 0 0 1px #1A4D8F !important;
    overflow: visible !important;
}

.watchkeeper-account-back-button:hover,
.watchkeeper-account-back-button:focus {
    border: 0 !important;
    box-shadow: inset 0 0 0 1px #1A4D8F !important;
}
/* Hide only the View profile text link */
.um-account .um-account-profile-link {
    display: none !important;
}
/* =========================================================
   ADMIN-ONLY PROFILE COMPLETENESS STATUS
   ========================================================= */

/*
 * On profile pages, JavaScript moves this badge into .um-name
 * so it always sits alongside the CNMSA badge.
 */
.um-profile .watchkeeper-admin-profile-status {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    flex: 0 0 auto !important;

    margin: 0 0 0 10px !important;
    padding: 6px 9px !important;

    border: 1px solid !important;
    border-radius: 4px !important;

    font-family: "Oswald", Sans-serif !important;
    font-size: 10px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    letter-spacing: 0.45px !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
}

.um-profile .watchkeeper-admin-profile-status-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 15px !important;

    width: 15px !important;
    height: 15px !important;

    border-radius: 50% !important;

    font-family: Arial, Helvetica, Sans-serif !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    line-height: 15px !important;
}

.um-profile .watchkeeper-admin-profile-status-copy {
    display: inline-flex !important;
    align-items: center !important;
}

.um-profile .watchkeeper-admin-profile-status-text {
    color: inherit !important;
    font: inherit !important;
    line-height: inherit !important;
    letter-spacing: inherit !important;
    text-transform: uppercase !important;
}

.um-profile .watchkeeper-admin-profile-status-detail {
    display: none !important;
}

.um-profile .watchkeeper-admin-profile-status.is-complete {
    background: #2f7d49 !important;
    color: #ffffff !important;
    border-color: #2f7d49 !important;
}

.um-profile
.watchkeeper-admin-profile-status.is-complete
.watchkeeper-admin-profile-status-icon {
    background: #ffffff !important;
    color: #2f7d49 !important;
}

.um-profile .watchkeeper-admin-profile-status.is-incomplete {
    background: #ffffff !important;
    color: #8a3a16 !important;
    border-color: #8a3a16 !important;
}

.um-profile
.watchkeeper-admin-profile-status.is-incomplete
.watchkeeper-admin-profile-status-icon {
    background: #8a3a16 !important;
    color: #ffffff !important;
}

.um-profile .watchkeeper-admin-profile-status.is-unavailable {
    background: #ffffff !important;
    color: #5c6670 !important;
    border-color: #aeb6bd !important;
}

.um-profile
.watchkeeper-admin-profile-status.is-unavailable
.watchkeeper-admin-profile-status-icon {
    background: #5c6670 !important;
    color: #ffffff !important;
}


/* =========================================================
   ADMIN-ONLY DIRECTORY PROFILE-COMPLETE MARKER
   ========================================================= */

/*
 * Administrator-only marker for complete consultant profiles.
 * Styled as a restrained green line icon to mirror the visual
 * language of the blue CNMSA directory badge.
 */
.um-member .watchkeeper-admin-directory-complete-marker {
    position: absolute !important;
    top: 14px !important;
    left: 14px !important;
    z-index: 25 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 28px !important;
    height: 28px !important;
    margin: 0 !important;
    padding: 0 !important;

    background: rgba(255, 255, 255, 0.96) !important;
    color: #2f7d49 !important;

    border: 1px solid #2f7d49 !important;
    border-radius: 50% !important;

    box-shadow: none !important;

    font-family: Arial, Helvetica, Sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
}

.um-member .watchkeeper-admin-directory-complete-marker span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;
    height: 100% !important;

    color: inherit !important;
    font: inherit !important;
    line-height: 1 !important;
}

@media screen and (max-width: 800px) {

    .um-profile .watchkeeper-admin-profile-status {
        margin: 0 !important;
        padding: 5px 8px !important;
        font-size: 9px !important;
        letter-spacing: 0.35px !important;
    }

    .um-member .watchkeeper-admin-directory-complete-marker {
        top: 10px !important;
        left: 10px !important;
        width: 26px !important;
        height: 26px !important;
        font-size: 13px !important;
    }
}

/* =========================================================
   OWNER-ONLY INCOMPLETE PROFILE NOTICE
   ========================================================= */

.um-profile .watchkeeper-incomplete-profile-notice {
    display: flex !important;
    align-items: flex-start !important;
    gap: 14px !important;

    width: 100% !important;
    margin: 22px 0 26px !important;
    padding: 18px 20px !important;

    background: #fff8f4 !important;
    color: #3f3f3f !important;

    border: 1px solid #e1b49d !important;
    border-left: 4px solid #C75B12 !important;
    border-radius: 8px !important;

    box-shadow: none !important;
    box-sizing: border-box !important;
}

.um-profile .watchkeeper-incomplete-profile-notice-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 28px !important;

    width: 28px !important;
    height: 28px !important;
    margin-top: 1px !important;

    background: #C75B12 !important;
    color: #ffffff !important;

    border-radius: 50% !important;

    font-family: Arial, Helvetica, Sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}

.um-profile .watchkeeper-incomplete-profile-notice-content {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 22px !important;

    width: 100% !important;
    min-width: 0 !important;
}

.um-profile .watchkeeper-incomplete-profile-notice-text {
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
    min-width: 0 !important;

    font-family: "Montserrat", Sans-serif !important;
}

.um-profile .watchkeeper-incomplete-profile-notice-text strong {
    color: #8a3a16 !important;

    font-family: "Montserrat", Sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

.um-profile .watchkeeper-incomplete-profile-notice-text span {
    color: #4a4a4a !important;

    font-family: "Montserrat", Sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.55 !important;
}

.um-profile .watchkeeper-incomplete-profile-notice-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;

    min-height: 42px !important;
    padding: 12px 20px !important;

    background: #C75B12 !important;
    color: #ffffff !important;

    border: 1px solid #C75B12 !important;
    border-radius: 0 !important;
    box-shadow: none !important;

    font-family: "Oswald", Sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    letter-spacing: 0.9px !important;
    text-align: center !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
}

.um-profile .watchkeeper-incomplete-profile-notice-button:hover,
.um-profile .watchkeeper-incomplete-profile-notice-button:focus {
    background: #A9470B !important;
    color: #ffffff !important;
    border-color: #A9470B !important;
    text-decoration: none !important;
}

@media screen and (max-width: 800px) {

    .um-profile .watchkeeper-incomplete-profile-notice {
        gap: 12px !important;
        margin: 18px 0 22px !important;
        padding: 16px !important;
    }

    .um-profile .watchkeeper-incomplete-profile-notice-content {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 14px !important;
    }

    .um-profile .watchkeeper-incomplete-profile-notice-button {
        width: 100% !important;
    }
}

/* =========================================================
   MOBILE REVIEWS CARD
   ========================================================= */

/*
 * Hidden on desktop. On mobile, JavaScript creates this card
 * only when the Reviews tab is available to the current viewer.
 */
.um-profile .watchkeeper-mobile-reviews-card {
    display: none !important;
}

@media screen and (max-width: 800px) {

    /*
     * Remove Reviews from the horizontal tab strip because the
     * standalone Reviews card replaces it.
     */
    .um-profile
    .um-profile-nav-item.watchkeeper-mobile-reviews-source {
        display: none !important;
    }

    .um-profile .watchkeeper-mobile-reviews-card {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 18px !important;

        width: 100% !important;
        margin: 18px 0 20px !important;
        padding: 16px 18px !important;

        background: #ffffff !important;
        color: #1A4D8F !important;

        border: 1px solid #cfd8e1 !important;
        border-left: 4px solid #1A4D8F !important;
        border-radius: 8px !important;

        box-shadow: none !important;

        text-decoration: none !important;
        box-sizing: border-box !important;
    }

    .um-profile .watchkeeper-mobile-reviews-card:hover,
    .um-profile .watchkeeper-mobile-reviews-card:focus {
        background: #f6f9fc !important;
        color: #1A4D8F !important;
        border-color: #1A4D8F !important;
        text-decoration: none !important;
    }

    .um-profile .watchkeeper-mobile-reviews-copy {
        display: flex !important;
        flex-direction: column !important;
        gap: 4px !important;
        min-width: 0 !important;
    }

    .um-profile .watchkeeper-mobile-reviews-title {
        color: #1A4D8F !important;

        font-family: "Montserrat", Sans-serif !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        line-height: 1.25 !important;
        text-transform: none !important;
    }

    .um-profile .watchkeeper-mobile-reviews-subtitle {
        color: #505050 !important;

        font-family: "Montserrat", Sans-serif !important;
        font-size: 13px !important;
        font-weight: 400 !important;
        line-height: 1.45 !important;
        text-transform: none !important;
    }

    .um-profile .watchkeeper-mobile-reviews-arrow {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 0 0 30px !important;

        width: 30px !important;
        height: 30px !important;

        color: #1A4D8F !important;

        border: 1px solid #1A4D8F !important;
        border-radius: 50% !important;

        font-family: Arial, Helvetica, Sans-serif !important;
        font-size: 17px !important;
        font-weight: 400 !important;
        line-height: 1 !important;
    }
}

/* =========================================================
   MOBILE PROFILE CARDS — EXTRA BOTTOM PADDING
   ========================================================= */

@media screen and (max-width: 800px) {

    /*
     * Add more breathing room beneath the final field in each
     * Ultimate Member profile card.
     */
    .um-profile-body .um-row-heading + .um-row {
        padding-bottom: 30px !important;
    }

    /*
     * Ensure the final field does not sit hard against the
     * rounded lower edge of the card.
     */
    .um-profile-body .um-row .um-field:last-child {
        margin-bottom: 4px !important;
    }
}

/* =========================================================
   MOBILE PROFILE HEADER, PHOTO AND PHOTO MENU
   Definitive consolidated implementation
   ========================================================= */

/*
 * The PHP wrapper must not create another layout box.
 */
.um-profile .watchkeeper-responsive-profile-summary {
    display: contents !important;
}


@media screen and (max-width: 800px) {

    /* -----------------------------------------------------
       HEADER GRID
       ----------------------------------------------------- */

    .um-profile .um-header {
        --wk-mobile-photo-size: 146px;

        position: relative !important;

        display: grid !important;
        grid-template-columns:
            var(--wk-mobile-photo-size)
            minmax(0, 1fr)
            44px !important;
        grid-auto-rows: auto !important;
        align-items: start !important;
        column-gap: 16px !important;
        row-gap: 0 !important;

        width: 100% !important;
        min-height: 0 !important;

        margin: 0 !important;
        padding: 0 16px 24px !important;

        overflow: visible !important;

        box-sizing: border-box !important;
    }

    .um-profile .um-header .um-profile-meta,
    .um-profile .um-header .um-main-meta {
        display: contents !important;

        position: static !important;
        float: none !important;

        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;

        text-align: left !important;
    }


    /* -----------------------------------------------------
       PHOTO WRAPPER
       The outer wrapper must remain unclipped because Ultimate
       Member places the native dropdown inside it.
       ----------------------------------------------------- */

    .um-profile .um-header .um-profile-photo {
        position: relative !important;
        inset: auto !important;

        float: none !important;
        grid-column: 1 !important;
        grid-row: 1 !important;

        width: var(--wk-mobile-photo-size) !important;
        height: var(--wk-mobile-photo-size) !important;
        min-width: var(--wk-mobile-photo-size) !important;
        max-width: var(--wk-mobile-photo-size) !important;
        min-height: var(--wk-mobile-photo-size) !important;
        max-height: var(--wk-mobile-photo-size) !important;

        margin: -64px 0 0 !important;
        padding: 0 !important;

        align-self: start !important;
        justify-self: start !important;

        background: #ffffff !important;
        border: 6px solid #ffffff !important;
        border-radius: 50% !important;

        overflow: visible !important;

        clip-path: none !important;
        -webkit-clip-path: none !important;

        text-align: left !important;

        box-sizing: border-box !important;
        z-index: 20 !important;
    }


    /* -----------------------------------------------------
       VISIBLE PHOTO
       Target only the actual photo anchor and image. Never use
       ".um-profile-photo a", because that also targets menu links.
       ----------------------------------------------------- */

    .um-profile .um-header
    .um-profile-photo > a.um-profile-photo-img {
        position: absolute !important;
        inset: 0 !important;

        display: block !important;

        width: 100% !important;
        height: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        min-height: 0 !important;
        max-height: none !important;

        margin: 0 !important;
        padding: 0 !important;

        background-position: center center !important;
        background-repeat: no-repeat !important;
        background-size: cover !important;

        border: 0 !important;
        border-radius: 50% !important;

        overflow: hidden !important;

        clip-path: circle(50% at 50% 50%) !important;
        -webkit-clip-path: circle(50% at 50% 50%) !important;

        box-sizing: border-box !important;
        cursor: pointer !important;
        z-index: 1 !important;
    }

    .um-profile .um-header
    .um-profile-photo > a.um-profile-photo-img
    > img.um-avatar {
        position: absolute !important;
        inset: 0 !important;

        display: block !important;

        width: 100% !important;
        height: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        min-height: 0 !important;
        max-height: none !important;

        margin: 0 !important;
        padding: 0 !important;

        object-fit: cover !important;
        object-position: center center !important;

        border: 0 !important;
        border-radius: 50% !important;
        box-shadow: none !important;

        pointer-events: none !important;
        z-index: 1 !important;
    }


    /* -----------------------------------------------------
       CAMERA OVERLAY
       Full-photo tap target; icon visually centred.
       ----------------------------------------------------- */

    .um-profile .um-header
    .um-profile-photo-overlay {
        position: absolute !important;
        inset: 0 !important;
        z-index: 10 !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        width: 100% !important;
        height: 100% !important;

        margin: 0 !important;
        padding: 0 !important;

        background: transparent !important;

        border: 0 !important;
        border-radius: 50% !important;

        overflow: hidden !important;

        clip-path: circle(50% at 50% 50%) !important;
        -webkit-clip-path: circle(50% at 50% 50%) !important;

        box-sizing: border-box !important;
        pointer-events: auto !important;
        cursor: pointer !important;
    }

    .um-profile .um-header
    .um-profile-photo-overlay-s {
        position: static !important;
        inset: auto !important;
        z-index: auto !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        width: auto !important;
        height: auto !important;

        margin: 0 !important;
        padding: 0 !important;

        background: transparent !important;

        border: 0 !important;
        border-radius: 0 !important;

        overflow: visible !important;

        clip-path: none !important;
        -webkit-clip-path: none !important;

        pointer-events: none !important;
    }

    .um-profile .um-header
    .um-profile-photo-overlay-s ins {
        position: static !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        width: auto !important;
        height: auto !important;

        margin: 0 !important;
        padding: 0 !important;

        background: transparent !important;

        border: 0 !important;
        border-radius: 0 !important;

        text-decoration: none !important;

        transform: none !important;
        pointer-events: none !important;
    }

    .um-profile .um-header
    .um-profile-photo-overlay-s i {
        position: static !important;

        margin: 0 !important;
        padding: 0 !important;

        transform: none !important;
        pointer-events: none !important;
    }


    /* -----------------------------------------------------
       NATIVE ULTIMATE MEMBER PHOTO MENU
       Compact, left-aligned under the photo and fully tappable.
       ----------------------------------------------------- */

    .um-profile .um-header
    .um-profile-photo > .um-dropdown {
        position: absolute !important;

        top: calc(100% + 10px) !important;
        right: auto !important;
        bottom: auto !important;
        left: 0 !important;

        z-index: 1000 !important;

        width: 220px !important;
        min-width: 220px !important;
        max-width: calc(100vw - 24px) !important;

        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;

        margin: 0 !important;
        padding: 0 !important;

        transform: none !important;

        background: transparent !important;

        border: 0 !important;
        border-radius: 0 !important;

        box-shadow: none !important;

        overflow: visible !important;

        clip-path: none !important;
        -webkit-clip-path: none !important;

        text-align: left !important;

        box-sizing: border-box !important;
        pointer-events: auto !important;
    }

    .um-profile .um-header
    .um-profile-photo > .um-dropdown
    .um-dropdown-b {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;

        margin: 0 !important;
        padding: 6px 0 !important;

        background: #ffffff !important;

        border: 1px solid #d7d7d7 !important;
        border-radius: 6px !important;

        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16) !important;

        overflow: hidden !important;

        clip-path: none !important;
        -webkit-clip-path: none !important;

        box-sizing: border-box !important;
    }

    .um-profile .um-header
    .um-profile-photo > .um-dropdown
    .um-dropdown-arr {
        top: -17px !important;
        right: auto !important;
        left: calc(
            (var(--wk-mobile-photo-size) / 2) - 10px
        ) !important;

        margin: 0 !important;

        transform: none !important;
    }

    .um-profile .um-header
    .um-profile-photo > .um-dropdown ul {
        display: block !important;

        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;

        margin: 0 !important;
        padding: 0 !important;

        list-style: none !important;

        overflow: visible !important;

        clip-path: none !important;
        -webkit-clip-path: none !important;
    }

    .um-profile .um-header
    .um-profile-photo > .um-dropdown li {
        display: block !important;

        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;

        margin: 0 !important;
        padding: 0 !important;

        background: transparent !important;

        border: 0 !important;
        border-radius: 0 !important;

        overflow: visible !important;

        clip-path: none !important;
        -webkit-clip-path: none !important;
    }

    .um-profile .um-header
    .um-profile-photo > .um-dropdown li + li {
        border-top: 1px solid #eeeeee !important;
    }

    .um-profile .um-header
    .um-profile-photo > .um-dropdown a {
        position: static !important;
        inset: auto !important;

        display: block !important;

        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;

        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;

        margin: 0 !important;
        padding: 12px 16px !important;

        background: #ffffff !important;
        color: #404040 !important;

        border: 0 !important;
        border-radius: 0 !important;

        box-shadow: none !important;

        font-family: "Montserrat", Sans-serif !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        line-height: 1.35 !important;
        letter-spacing: 0 !important;
        text-align: left !important;
        text-decoration: none !important;
        text-transform: none !important;

        white-space: normal !important;

        overflow: visible !important;

        clip-path: none !important;
        -webkit-clip-path: none !important;

        transform: none !important;

        box-sizing: border-box !important;
        pointer-events: auto !important;
    }

    .um-profile .um-header
    .um-profile-photo > .um-dropdown a:hover,
    .um-profile .um-header
    .um-profile-photo > .um-dropdown a:focus {
        background: #f3f5f7 !important;
        color: #1A4D8F !important;
    }


    /* -----------------------------------------------------
       NAME, BADGES, BIO AND MANAGE CONTROL
       ----------------------------------------------------- */

    .um-profile .um-header .um-name {
        grid-column: 2 !important;
        grid-row: 1 !important;

        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 8px 10px !important;

        width: 100% !important;
        min-width: 0 !important;

        margin: 18px 0 0 !important;
        padding: 0 !important;

        text-align: left !important;
    }

    .um-profile .um-header .um-name > a {
        color: #555555 !important;

        font-family: "Montserrat", Sans-serif !important;
        font-size: 30px !important;
        font-weight: 600 !important;
        line-height: 1.12 !important;
        text-align: left !important;
    }

    .um-profile
    .um-header
    .watchkeeper-cnmsa-profile-header-status,
    .um-profile
    .um-header
    .watchkeeper-admin-profile-status {
        margin: 0 !important;
        justify-content: flex-start !important;
    }

    .um-profile .um-header .um-meta-text {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;

        width: 100% !important;
        max-width: none !important;

        margin: 18px 0 0 !important;
        padding: 0 !important;

        color: #505050 !important;

        font-family: "Montserrat", Sans-serif !important;
        font-size: 14px !important;
        font-weight: 400 !important;
        line-height: 1.6 !important;
        text-align: left !important;

        box-sizing: border-box !important;
    }

    .um-profile .um-header .um-profile-status,
    .um-profile .um-header .um-profile-note {
        grid-column: 2 !important;

        width: 100% !important;
        min-width: 0 !important;

        margin-left: 0 !important;
        margin-right: 0 !important;

        text-align: left !important;
    }

    .um-profile .um-header .um-profile-edit {
        position: static !important;
        inset: auto !important;

        float: none !important;
        grid-column: 3 !important;
        grid-row: 1 !important;

        margin: 18px 0 0 !important;

        align-self: start !important;
        justify-self: end !important;
        z-index: 30 !important;
    }

    .um-profile .um-header .um-profile-edit-a {
        width: 42px !important;
        min-width: 42px !important;
        height: 42px !important;

        padding: 0 !important;
        gap: 0 !important;

        border-radius: 4px !important;
    }

    .um-profile .um-header
    .watchkeeper-manage-profile-label {
        display: none !important;
    }


    /* -----------------------------------------------------
       FULL-WIDTH CONTENT BELOW HEADER
       ----------------------------------------------------- */

    .um-profile .um-header .profile-contact-actions,
    .um-profile .um-header
    .watchkeeper-incomplete-profile-notice {
        grid-column: 1 / -1 !important;

        width: 100% !important;
        min-width: 0 !important;

        margin-left: 0 !important;
        margin-right: 0 !important;

        box-sizing: border-box !important;
    }

    .um-profile .um-header .profile-contact-actions {
        grid-row: 3 !important;

        margin-top: 20px !important;
        padding-top: 18px !important;
        clear: both !important;
    }

    .um-profile .um-header > .um-clear,
    .um-profile .um-header
    .um-profile-meta > .um-clear {
        display: none !important;
    }
}


@media screen and (max-width: 520px) {

    .um-profile .um-header {
        --wk-mobile-photo-size: 122px;

        grid-template-columns:
            var(--wk-mobile-photo-size)
            minmax(0, 1fr)
            40px !important;
        column-gap: 12px !important;

        padding-left: 12px !important;
        padding-right: 12px !important;
        padding-bottom: 20px !important;
    }

    .um-profile .um-header .um-profile-photo {
        margin-top: -54px !important;
    }

    .um-profile .um-header .um-name {
        margin-top: 14px !important;
    }

    .um-profile .um-header .um-name > a {
        font-size: 27px !important;
    }

    .um-profile .um-header .um-meta-text {
        margin-top: 16px !important;
        font-size: 14px !important;
        line-height: 1.58 !important;
    }

    .um-profile .um-header .um-profile-edit {
        margin-top: 14px !important;
    }

    .um-profile .um-header .um-profile-edit-a {
        width: 38px !important;
        min-width: 38px !important;
        height: 38px !important;
    }
}

/* =========================================================
   DESKTOP PROFILE — REDUCE SPACE ABOVE COVER PHOTO
   ========================================================= */

@media screen and (min-width: 801px) {

    /*
     * Remove spacing added by the page/content wrappers around
     * Ultimate Member profile pages.
     */
    body.um-page-user #content,
    body.um-page-user .site-main,
    body.um-page-user .content-area,
    body.um-page-user .entry-content,
    body.um-page-user .page-content {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    /*
     * Pull the profile block upward to remove the remaining gap
     * between the site header and the cover image.
     */
    body.um-page-user .um-profile {
        margin-top: -105px !important;
    }

    body.um-page-user .um-profile .um-cover,
    body.um-page-user .um-profile .um-profile-cover {
        margin-top: 0 !important;
    }
}


/* =========================================================
   ULTIMATE MEMBER TAB VISIBILITY FALLBACK
   Some edit-mode profile views render only one tab link.
   The standard rules hide the first link because normal profile
   views contain a second link. Restore the first link only when
   no second link exists.
   ========================================================= */

.um-profile
.um-profile-nav-item:not(:has(> a:nth-of-type(2)))
> a:first-of-type {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}


/* Ensure the complete tab bar is not hidden by edit-mode states. */
.um-profile .um-profile-nav,
.um-profile .um-profile-nav-item {
    visibility: visible !important;
    opacity: 1 !important;
}

/* =========================================================
   MOBILE PROFILE PHOTO — DEFINITIVE EDIT-MODE OVERLAY
   Restores the dark photo treatment without changing the working
   camera alignment, tap target or native photo menu.
   ========================================================= */

@media screen and (max-width: 800px) {

    /*
     * Ultimate Member may reduce the native overlay opacity until hover.
     * Mobile has no reliable hover state, so force the complete overlay
     * visible while the profile form is in edit mode.
     */
    .um-profile.um-editing
    .um-header
    .um-profile-photo
    > a.um-profile-photo-img
    > .um-profile-photo-overlay {
        z-index: 20 !important;

        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;

        background: rgba(0, 0, 0, 0.36) !important;

        pointer-events: auto !important;
    }

    /*
     * Keep the camera control above the darkening layer and fully centred.
     */
    .um-profile.um-editing
    .um-header
    .um-profile-photo
    > a.um-profile-photo-img
    > .um-profile-photo-overlay
    > .um-profile-photo-overlay-s {
        z-index: 21 !important;

        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;

        background: transparent !important;

        pointer-events: none !important;
    }

    .um-profile.um-editing
    .um-header
    .um-profile-photo-overlay-s ins,
    .um-profile.um-editing
    .um-header
    .um-profile-photo-overlay-s i {
        visibility: visible !important;
        opacity: 1 !important;
    }
}