.crop-container-square {
    position: relative;
    background: #767676;
}

.editor-action-bar {
    position: absolute;
    z-index: 1;
    top: 5px;
}

.editor-action-bar.left {
    left: 5px;
}

.editor-action-bar.right {
    right: 5px;
}

.action-label {
    font-size: 15px;
    font-weight: 400;
    margin-left: 3px;
}

.control-tabs {
    display: flex;
    justify-content: center;
    gap: 3px;
    display: none;
}

.control-tabs button {
    padding: 3px 10px !important;
}

.slider-row {
    display: flex;
    justify-content: space-between;
}

.slider-row [type="range"] {
    min-width: 100%;
    margin-top: -15px;
}

.slider-row [type="number"] {
    height: 29px;
    border: none;
    text-align: right;
    padding: 0;
}

.crop-container-square {
    max-width: 100%;
    height: auto;          /* or use aspect-ratio if needed */
}

video#webcam-video {
    max-width: 100%;
}

.webcam-wrapper {
    position: relative;
}

.crop-container-cover {
    position: relative;
}

.image-editor-bottom {
    display: flex;
    gap: 5px;
    margin-top: 10px;
    align-items: center;
}

.image-editor-preview canvas {
    width: 100%;
    border-radius: 50%;
    border: 1px solid gray;
}

.editor-controls {
    flex: 1;
}

.action-icon {
    padding: 3px 5px;
}

.image-editor-preview {
    max-width: 20%;
}

.buddypress .buddypress-wrap button.action-icon {
    padding: 0 5px;
    font-size: 20px;
}

body.buddypress.register.login-split-page main article.bp_register {
    margin-right: auto;
    margin-left: auto;
    width: 100%;
    max-width: 100%;
    padding: 15px;
}
body.buddypress.register.login-split-page #primary {
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: flex-start;
}

.widget_bp_profile_completeness_widget {
    padding: 0 !important;
    margin: 0 !important;
}

.select2-container.select2-container--default .select2-results__option[aria-selected=true] {
    color: var(--bb-alternate-text-color);
}

.air-datepicker-global-container {
    z-index: 999999;
}

body .standard-form,
.standard-form,
.edit-section:not(.ex_hide),
.repeater_group_inner,
.fields_group,
.field_type_socialnetworks,
.profile-fields tbody,
.grid-12 {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 5px;
    position: relative;
}
.standard-form > *,
.edit-section > *,
.repeater_group_inner > *,
.fields_group > *,
.field_type_socialnetworks > *,
tbody > * {
    -ms-grid-column-span: 12;
    grid-column: span 12;
}
body .standard-form {
    max-width: 100% !important;
}
.register-page .signup-form {
    margin: 0;
}
.standard-form {
    width: 100%
}
.standard-form fieldset {
    margin: 0;
    padding: 0;
    border: 0;
}
body.register #page #primary .entry-header,
body.register .buddypress-wrap {
    max-width: initial;
}
body.buddypress.register article.bp_register header.entry-header span {
    font-size: 16px;
}

/* Grid Spans */
body .conditional-span-1, .span-1 { grid-column: span 1; }
body .conditional-span-2, .span-2 { grid-column: span 2; }
body .conditional-span-3, .span-3 { grid-column: span 3; }
body .conditional-span-4, .span-4 { grid-column: span 4; }
body .conditional-span-5, .span-5 { grid-column: span 5; }
body .conditional-span-6, .span-6 { grid-column: span 6; }
body .conditional-span-7, .span-7 { grid-column: span 7; }
body .conditional-span-8, .span-8 { grid-column: span 8; }
body .conditional-span-9, .span-9 { grid-column: span 9; }
body .conditional-span-10, .span-10 { grid-column: span 10; }
body .conditional-span-11, .span-11 { grid-column: span 11; }
body .conditional-span-12, .span-12 { grid-column: span 12; }

/* ==========================================================================
   FORM ELEMENTS & INPUTS
   ========================================================================== */
.standard-form label:not(.bp-screen-reader-text),
#buddypress .standard-form legend:not(.bp-screen-reader-text) {
    display: block;
    font-size: 16px;
    font-style: normal;
    color: var(--bb-headings-color);
    margin-bottom: 5px
}
.standard-form input[type=text],
body .standard-form select {
    max-height: 41px;
    font-style: normal;
    width: 100%
}
body .standard-form .editfield input:not([type="checkbox"]):not([type="radio"]),
body .standard-form .editfield:not(.enhanced) select,
body .standard-form .select2-selection--single {
    height: 41px !important;
    border-radius: 0 !important;
}
body .standard-form textarea {
    padding: 5px 10px !important;
}
body .standard-form .editfield textarea:not(.select2-search__field) {
    height: 60px;
    min-height: 60px;
    padding-top: 5px;
    line-height: 1.5rem;
}
.standard-form .clear-value,
.checkbox-select span.select2-selection__choice__remove,
.checkbox-select .select2-selection__rendered li:not(:first-child):not(.select2-search),
.hide-label fieldset > legend,
select:not(.field-visibility-select) option[disabled],
.hide-value .select2 {
    display: none !important;
}
.editfield [type="date"]::-webkit-calendar-picker-indicator,
.editfield [type="month"]::-webkit-calendar-picker-indicator {
    display: none;
}
.editfield [type="date"],
.editfield [type="month"] {
    appearance: none;
    -webkit-appearance: none;
    padding: 0;
    margin: 0;
}
.iti {
    width: 100%;
}
.wd-full {
    width: 100%;
}
.standard-form .iti--allow-dropdown input[type=tel] {
    padding-left: 47px !important;
}

/* BuddyPress-only tweaks for repeater layout */
.buddypress .bb-model-content .editfield {
    max-width: 100%;
}
.validated .iti::after {
    content: "✔";
    position: absolute;
    right: 0;
    top: 10px;
    height: 21px;
    width: 21px;
    margin-right: 10px;
    background: #008000;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    color: white;
}
.invalid .editinput,
.invalid .select2,
.invalid input,
.invalid select,
.invalid textarea,
.invalid .bs-styled-checkbox+label:before,
.invalid_phone input {
    outline: 1px solid red !important;
}
.readonly:not(.admin-edit) .editinput,
.readonly:not(.admin-edit) .select2,
.condition_readonly:not(.admin-edit) .editinput,
.condition_readonly:not(.admin-edit) .select2 {
    pointer-events: none;
    opacity: 70%;
}

.readonly.admin-edit select,
.readonly.admin-edit textarea,
.readonly.admin-edit input,
.readonly.admin-edit .select2 {
    outline: yellow 1px solid !important;
}
.select2-selection,
.bs-bp-container-reg #buddypress #signup-form.standard-form input[type=color],
.bs-bp-container-reg #buddypress #signup-form.standard-form input[type=date],
.bs-bp-container-reg #buddypress #signup-form.standard-form input[type=datetime-local],
.bs-bp-container-reg #buddypress #signup-form.standard-form input[type=datetime],
.bs-bp-container-reg #buddypress #signup-form.standard-form input[type=email],
.bs-bp-container-reg #buddypress #signup-form.standard-form input[type=month],
.bs-bp-container-reg #buddypress #signup-form.standard-form input[type=number],
.bs-bp-container-reg #buddypress #signup-form.standard-form input[type=password],
.bs-bp-container-reg #buddypress #signup-form.standard-form input[type=range],
.bs-bp-container-reg #buddypress #signup-form.standard-form input[type=search],
.bs-bp-container-reg #buddypress #signup-form.standard-form input[type=tel],
.bs-bp-container-reg #buddypress #signup-form.standard-form input[type=text],
.bs-bp-container-reg #buddypress #signup-form.standard-form input[type=time],
.bs-bp-container-reg #buddypress #signup-form.standard-form input[type=url],
.bs-bp-container-reg #buddypress #signup-form.standard-form input[type=week],
.bs-bp-container-reg #buddypress #signup-form.standard-form select,
.bs-bp-container-reg #buddypress #signup-form.standard-form textarea {
    margin-bottom: 0 !important;
    border-color: var(--bb-headings-color) !important;
}
input#signup_email {
    margin-bottom: 5px !important;
}
body .standard-form div.submit {
    clear: none;
    padding: 0
}
body .standard-form div.submit input {
    margin-right: 0;
    height: 38px
}
#pass-strength-result.show {
    grid-column: span 12;
}

/* ==========================================================================
   SELECT2 & ENHANCED INPUTS
   ========================================================================== */
.enhanced .select2-results__option,
.enhanced .select2-selection__choice,
.select2-results__option--highlighted[aria-selected] {
    border-radius: 0 !important;
}
body .editfield .select2-container {
    min-width: 100%;
}

body .select2-container--default .select2-selection--multiple .select2-selection__rendered {
    display: inline-flex;
    padding: 0;
    flex-wrap: wrap;
}
.select2-container.select2-container--default .select2-search--dropdown .select2-search__field {
    padding-left: 6px !important;
}
body .select2-container--default .select2-selection .select2-selection__arrow {
    height: 100%;
}
body .select2-container .select2-search--inline {
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
}
body .select2-container--default .select2-search--inline .select2-search__field {
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
    border: none !important;
    -webkit-box-shadow: none !important;
            box-shadow: none !important;
    margin: 0 !important;
}
body .select2-container--default .select2-search--inline textarea.select2-search__field {
    height: 27px !important;
    resize: none;
    padding: 0 !important;
}
input.select2-search__field:focus,
.select2-search--inline input {
    background-image: unset !important;
}
button.select2-selection__choice__remove {
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    margin-top: -10px;
    margin-left: 2px;
    color: black !important;
}
.select2-container li+.select2-search--inline input {
    background-image: url(../images/svg/search.svg) !important;
}
.select2-container--default .select2-selection--multiple .select2 .select2-results__option,
.select2-selection__choice {
    border-radius: 0 !important;
}
body .select2-container--default .select2-selection--multiple .select2-selection__choice {
    padding: 5px;
    margin: 3px 0 0 3px;
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 35px;
}
body .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    margin-top: -2px;
    font-size: 20px;
}
body .select2-container .select2-dropdown li.select2-results__option {
    font-size: 17px;
}
body .select2-container .select2-dropdown {
    border-radius: 0;
    border: 1px solid #aaa;
    margin-left: -1px;
    padding: 0 !important;
}
.select2-container--default .select2-selection--multiple {
    border-radius: 0 !important;
}
body .select2-container:has(.select2-results) {
    z-index: 9999999999 !important;
}
span.select2-dropdown.select2-dropdown--below {
    border: 1px solid black;
    border-radius: 0;
    padding: 0;
}
.checkbox-select .select2-results__option:before {
    content: '\2713';
    border: 2px solid;
    height: 1.2em;
    width: 1.2em;
    display: inline-block;
}
.enhanced .select2-container .select2-dropdown li.select2-results__option {
    padding: 0px;
}
.select2-option-label {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 5px;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    cursor: pointer;
    padding: 2px 5px;
}
.select2-option-checkbox input {
    margin-top: -3px;
}
.select2-option-desc {
    font-size: 0.75rem;
    line-height: 1rem;
}
.select2-results__option--disabled {
    display: none !important;
}
.editfield_custom .select2 {
    display: none;
}

/* ==========================================================================
   FIELD VISIBILITY & PRIVACY
   ========================================================================== */
.visibility-label {
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
}
.visibility-text {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}
.visibility-display {
    display: none;
}
.privacy_show .visibility-display,
.visibility-option {
    gap: 5px;
    cursor: pointer;
    display: flex;
}
.visibility-option {
    margin: 5px;
    margin-bottom: 10px;
}
.visibility-icon {
    font-size: 32px;
}
body .buddypress-wrap .standard-form .field-visibility-settings-header {
    display: flex;
    margin: 0 !important;
}
#signup-form .field-visibility-settings-header {
    margin: 0px 0 5px 0 !important;
}
.hide-label .field-visibility-settings-header {
    display: none !important;
}
#buddypress #signup-form.standard-form .editfield p.field-visibility-settings-toggle {
    font-style: normal;
    grid-column: span 12;
}
body.no-js .buddypress-wrap .editfield .field-visibility-settings {
    display: none;
}
body .field-visibility-settings-toggle.bp-hide {
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
}
.buddypress-wrap .field-visibility-settings {
    position: absolute;
    background: white;
    z-index: 10;
    border: solid 1px #d6d9dd;
    padding: 10px !important;
    top: 38px;
}
.field-visibility-settings-header::after {
    position: absolute;
    right: 0;
    font-size: 12px;
    font-style: normal;
}
.editfield.required-field .field-visibility-settings-header::after {
    content: "Required";
    color: black;
}
.editfield:not(.required-field) .field-visibility-settings-header::after {
    content: "Optional";
}
.current-visibility-level {
    text-wrap: nowrap;
}
form:not(#signup-form) .readonly .field-visibility-settings-header::after {
    content: "Read Only";
}
form:not(#signup-form) .admin-edit .field-visibility-settings-header::after {
    content: "Admin Edit";
    color: #777717;
}
form:not(#signup-form) .admin-edit.released_update .field-visibility-settings-header::after {
    content: "Readonly Edit";
}
.visibility-toggle-link {
    margin: 0 5px !important;
    line-height: initial !important;
}
#buddypress #signup-form.standard-form .visibility-toggle-link {
    display: none;
}

/* ==========================================================================
   SECTIONS, HEADINGS & REPEATERS
   ========================================================================== */
h3.section-title,
.sections-list .section-title {
    font-weight: 500;
    font-size: 16px;
}
.section-heading {
    margin-bottom: 15px;
    border-bottom: 2px solid #e2e4e7;
}
.edit .section-heading {
    margin-top: 15px;
    margin-bottom: 15px;
}
body.buddypress .buddypress-wrap .section-heading > * {
    margin: 0;
}
body.buddypress .buddypress-wrap .section-description {
    font-size: 14px;
}
.sections-list {
    margin: 10px 0;
}
.sections-list ul {
    margin: 0 0 10px 0;
}
.sections-list li {
    list-style: none;
    color: black;
    border-bottom: #d6d9dd solid 1px;
    margin: 5px;
    position: relative;
}

.sections-list > h5 {
    border-bottom: 1px solid;
}
.section-add:hover .repeater-icon {
    position: absolute;
    right: 15px;
}
.section-add:hover .repeater-icon > i {
    display: none;
}
.section-add:hover .repeater-icon .repeater-reorder {
    display: block;
}
.repeater_sets {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    gap: 10px;
    position: relative;
}
.repeater_set:not(tr) {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 10px;
    position: relative;
}
.repeater-icon {
    width: 40px;
    font-size: 40px;
    position: relative;
}
.repeater_set:not(.bp-fields-add) .repeater-icon {
    width: 40px;
    font-size: 35px;
}
.repeater-reorder {
    cursor: move;
}
.repeater-reorder:not(td):not(.repeater-body) {
    position: absolute;
    top: 2px;
    left: 0;
    background: white;
    display: none;
}
.repeater-body {
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
    font-size: 14px;
}
.repeater-heading span + span::before {
    content: " - ";
}
.repeater-body .repeater-title {
    font-size: 16px;
    font-weight: 500;
}
.repeater-body .repeater-sub_title {
    font-weight: 500;
}
.repeater-grid .repeater_set:not(tr) .repeater-body {
    padding: 5px;
    display: flex;
    justify-content: center;
    text-align: center;
}
.repeater-heading div {
    line-height: 1.3rem;
}
.repeater-heading .repeater-meta {
    margin-bottom: 5px;
}
.profile-meta span+span::before,
.list-desc span+span::before {
    content: " ◦ ";
}
.hide_title .repeater-icon > i {
    visibility: hidden;
}
.repeater-content span {
    white-space: pre-wrap;
}
.hide_title .repeater-title,
.edit-mode .repeater-content,
.edit-mode .repeater-meta,
.bp-fields .repeater_set .section-tools i {
    display: none;
}
.edit-mode .hide_title .repeater-title,
.edit-mode .bp-fields .repeater_set .section-tools i,
.edit-mode .repeater-reorder,
.repeater_set:hover .section-tools i,
.repeater_set:not(tr):hover .repeater-reorder {
    display: initial;
}
.edit-mode .entry-header > .section-tools i,
.section-tools i:hover {
    font-weight: 600;
}
.clone_field {
    margin-top: 10px;
    position: relative;
}
.repeater_privacy {
    position: relative;
}
.field_type_spacer,
.field_type_html,
.field_type_section {
    margin: 0 !important;
}
.field_type_html .field-visibility-settings-toggle,
.field_type_spacer .field-visibility-settings-toggle,
.field_type_section .field-visibility-settings-toggle,
.clone_field legend,
.clone_field .description {
    display: none !important;
}
.edit-section:not(:has(.editfield:not(.ex_hide):not(.membertype-hidden))),
.profile-fields.bp-tables-user:not(:has(tr)) {
    display: none !important;
}
.edit-section.ex_hide {
    display: none;
}

/* ==========================================================================
   TABLES & ACADEMIC GRID
   ========================================================================== */
table.academic-grid th,
table.academic-grid td {
    padding: 5px;
}
table.academic-grid th {
    background: #e7e7e7;
}
table.academic-grid {
    border: 1px solid;
}
#buddypress table.profile-fields tr td {
    width: auto !important;
}
#buddypress table tr .data,
#buddypress table tr .label {
    font-size: 14px;
    padding: 5px;
}
#buddypress table tr th.label {
    color: var(--bb-alternate-text-color);
}
.bp-fields-table th {
    vertical-align: top;
}
.bp-fields-table thead,
.bp-fields-table tfoot {
    background: #d6d9dd;
}
.bp-profile-wrapper.need-separator .bp-widget:has(table) {
    overflow-x: auto;
}
.bp-profile-wrapper.need-separator .bp-widget > table {
    margin-bottom: 10px;
    width: 97%;
}
.bp-profile-wrapper.need-separator .bp-widget i {
    font-style: normal;
    min-height: 1.7rem;
}
.bp-profile-wrapper .bp-widget::after {
    z-index: 0;
}

body .standard-form .editfield .ts-control>input[type="text"] {
    height: 27px !important;
}

.ts-wrapper {
    min-height: 41px;
}

.ts-wrapper .ts-control input[type="text"] {
    flex: 1;
    margin: 0 !important;
    padding: 0px 0 !important;
}


.ts-control {
    padding: 0 10px;
    display: flex;
    align-items: center;
}

body .ts-wrapper.single .ts-control {
    --ts-pr-caret: 0;
    gap: 5px;
}

.ts-wrapper.single .ts-control {
    background: none;
    border-radius: 0;
    min-height: 41px;
}

.ts-control, .ts-control input, .ts-dropdown {
    font-size: 15px;
    font-family: inherit;
    border-radius: 0;
}

.ts-dropdown.single {
    margin-top: 1px;
}

.ts-wrapper.single .ts-control:after {
    display: none;
}

body .ts-wrapper.single .ts-control, body .ts-wrapper.single .ts-control input {
    cursor: text !important;
}

body .invalid .ts-wrapper.single .ts-control input {
    outline: none !important;
}

.ts-loading .option:not(.ts-loading) {
    display: none;
}

.option.ts-custom {
    display: none;
}

/* ==========================================================================
   PROFILE EDIT & NAVIGATION
   ========================================================================== */
#buddypress.buddypress-wrap .profile.edit .editfield {
    background: none;
    border: none;
}
#buddypress .profile.edit .button-nav li a {
    color: #9B9C9F;
}
body #buddypress .standard-form .editfield {
    margin: 0 !important;
    height: -webkit-fit-content;
    height: -moz-fit-content;
    height: fit-content;
    padding: 0;
}
#buddypress .standard-form .editfield.hide-label {
    margin-top: 0;
}
body #buddypress .standard-form label:not(.bp-screen-reader-text) {
    margin-bottom: 0;
    margin-top: 0;
}
.buddypress-wrap .standard-form .editfield {
    position: relative;
}
#buddypress .standard-form .editfield input[type=search] {
    padding-left: 5px;
}
#buddypress #signup-form.standard-form .editfield .checkbox-options label,
#buddypress #signup-form.standard-form .editfield .radio-button-options label {
    white-space: nowrap;
}
.bs-bp-container-reg #buddypress #signup-form.standard-form fieldset {
    margin-bottom: -5px;
}
#buddypress #signup-form.standard-form .editfield legend {
    margin-bottom: 5px;
}
.standard-form .datebox-selects {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex
}
.standard-form .datebox-selects select:not(:last-child) {
    margin-right: 10px
}
.standard-form .datebox-selects label {
    margin-right: 10px;
    -webkit-box-ordinal-group: 1;
    -ms-flex-order: 0;
    order: 0
}
.datebox-selects select {
    text-transform: capitalize;
}
.bp-optional-field-label,
.bp-required-field-label,
.datebox-selects label {
    display: none !important;
}
.standard-form .datebox-selects select {
    margin: 0 !important;
}
.profile-edit #subnav {
    display: none;
}
li#wp-admin-bar-my-account-xprofile-edit {
    display: none;
}
.buddypress .entry-header {
    -webkit-box-pack: justify !important;
        -ms-flex-pack: justify !important;
            justify-content: space-between !important;
    padding: 5px 1.25rem 5px 1.25rem !important;
    margin: 0 -1.25rem !important;
    position: relative;
}
.buddypress .profile.edit .entry-header {
    margin: 0 -10px !important;
}
.profile-table-header {
    position: relative;
    border-bottom: 2px solid #d6d9dd;
    margin-bottom: 5px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
}
.repeater_set .section-tools,
.profile-aboutme .section-tools {
    right: 0;
    top: 2px;
    display: flex;
    justify-content: end;
    align-items: center;
}
.profile-section:hover .section-tools {
    display: initial;
}
.profile-section .section-tools i {
    font-size: 22px;
    font-weight: 500;
}
.profile-section .section-tools .bp-fields-edit i {
    font-size: 25px;
}
.section-tools {
    position: absolute;
    right: 10px;
}
.section-tools span i {
    font-weight: 500;
}
.section-tools i {
    font-size: 28px;
}
.bp-fields-add {
    border-bottom: 2px solid #d6d9dd;
    padding-bottom: 5px;
    padding-top: 10px;
    cursor: pointer;
    margin-bottom: 10px;
}
.bp-fields-add:hover i {
    font-weight: 200;
}
.bp-fields-add i {
    font-weight: 100;
}
.bp-fields-ajax {
    min-height: 40px;
    position: relative;
}
.group-actions {
    display: flex;
    position: absolute;
    right: 0;
    gap: 5px;
}
.group-hide-checkbox input {
    margin-right: 5px;
}
.bp-profile-wrapper.need-separator .group-separator-block {
    padding: 0 1.25rem;
    margin-bottom: 1rem;
    position: relative;
}
.group-separator-block.accordin-section .repeater-edit {
    display: none;
}
.group-separator-block.accordin-section.active .repeater-edit {
    display: block;
    position: absolute;
    right: 12px;
    top: 18px;
    font-size: 25px;
}
.buddypress-wrap .profile.edit .accordin-section:not(.active) > *:not(.profile-table-header) {
    display: none;
}
.profile-edit .submit {
    margin-bottom: 15px;
}
body .standard-form .fields_group .editfield {
    margin: 0 !important;
}

#buddypress .profile.edit .field-visibility-settings-header {
    position: relative;
    min-height: 25px;
    overflow: hidden;
}

body .buddypress-wrap .standard-form .editfield .field-visibility-settings-header select.field-visibility-select {
    border: none !important;
    color: var(--bb-headings-color);
    font-size: 12px !important;
    font-style: normal !important;
    padding: 0 10px !important;
    width: auto !important;
    position: absolute;
    top: -7px;
    left: -7px;
    background-color: transparent !important;
}

#signup-form .fields_group .field-visibility-settings-header {
    margin-top: -5px !important;
}
.bb-model-content .editfield {
    margin: 0 !important;
    min-width: 100%;
}
.buddypress-wrap .field-visibility-settings:not(.bp-hide) {
    display: none;
}
body .bs-bp-container-reg #buddypress #signup-form.standard-form {
    overflow: visible;
}

/* ==========================================================================
   INPUT OPTIONS (RADIO/CHECKBOX)
   ========================================================================== */
.editfield .input-options {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    gap: 5px;
}
.inline.editfield .input-options {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
}
.input-options.enhanced label.option-label::before {
    position: absolute;
    left: -70px;
    height: 50px;
    width: 50px;
}
.input-options.enhanced .bp-radio-wrap {
    min-height: 50px;
    margin-bottom: 25px;
}
.input-options.enhanced label.option-label {
    margin-left: 70px;
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -ms-flex-pack: distribute;
        justify-content: space-around;
    gap: 7px;
}
.input-options.enhanced .option-title {
    font-weight: 500;
}
.input-options.enhanced .option-description {
    font-size: 14px;
}
.editfield .input-options .bs-styled-radio:checked+.bb-radio-label:after,
.editfield .input-options .bs-styled-radio:checked+label:after {
    top: 50%;
    transform: translate(0, -50%);
    margin-top: 1px;
}
.bp-radio-wrap {
    position: relative;
}
.standard-form .bp-checkbox-wrap {
    margin-bottom: 5px;
}
a.remove-repeatable {
    position: absolute;
    width: 14px;
    font-size: 14px;
    top: 50%;
    right: 0;
    -webkit-transform: translate(-100%, -50%);
        -ms-transform: translate(-100%, -50%);
            transform: translate(-100%, -50%);
}

/* ==========================================================================
   MESSAGES, ERRORS & FEEDBACK
   ========================================================================== */
.bp-messages.bp-feedback.error,
.editfield.membertype_hide:not(.ex_show),
.editfield.condition_hide:not(.ex_show) {
    display: none;
}
.editfield.ex_hide:not(.admin-edit),
.editfield.membertype-hidden:not(.admin-edit),
.editfield.readonly-hide:not(.admin-edit) {
    display: none !important;
}
body .ex_show {
    display: initial;
}
.editfield legend +.error {
    display: none;
}
body .bs-bp-container-reg #buddypress #signup-form.standard-form div.error {
    border-radius: 0;
    margin-bottom: 5px;
}
.standard-form .editfield p.description {
    margin-top: -10px;
    margin-bottom: 10px;
    line-height: 1.2rem;
}
.incomplete .completion-status {
    color: red;
}
.group-actions .issue-icon {
    color: red;
    font-size: 18px;
}

.item-body .step-contents .bp-widget {
    margin-bottom: 0;
}

/* ==========================================================================
   PROGRESS & COMPLETION
   ========================================================================== */
.pc_progress_wrap.is_obsolete .pc_progress_rate {
    stroke: #e7e7e8;
}
.pc_progress_wrap svg {
    width: 100%;
}
.pc_progress_wrap {
    margin: 0 0 10px;
}
.progress_text_wrap {
    margin-top: -75px;
}
.progress_text_wrap span.progress_text_value {
    font-size: 35px;
}
.progress_text_wrap span.progress_text_label,
.pc_progress_wrap span.progress_text_unit {
    font-size: 20px;
}
.profile_completion_wrap {
    gap: 0 2rem;
    padding: 20px;
}
.widget_bp_profile_completeness_widget:not(:has(.profile_completion_wrap)) {
    display: none !important;
}
.bp_profile_completeness_container {
    min-height: 0;
}
body .pc_detailed_progress_wrap .single_section_wrap {
    padding: 3px 0;
    position: relative;
    cursor: pointer;
    display: block;
}
body .pc_detailed_progress_wrap .single_section_wrap .section_ico:before {
    top: -12px;
}
body .pc_detailed_progress_wrap .single_section_wrap.incomplete .section_ico {
    border: 2px solid var(--bb-danger-color);
}
body .pc_detailed_progress_wrap .single_section_wrap.optional .section_ico {
    border: 2px solid var(--bb-content-border-color);
}
body .pc_detailed_progress_wrap .single_section_wrap.obsolete .section_ico {
    border: 2px solid var(--bb-danger-color);
}
.container-stats {
    margin-top: 10px;
}

/* ==========================================================================
   REPEATER EDIT MODE
   ========================================================================== */
.edit-mode .repeater-reorder {
    display: block !important;
}
.repeater_group_inner[style="display: block;"] {
    display: -ms-grid;
    display: grid;
}

/* ==========================================================================
   MISCELLANEOUS
   ========================================================================== */
.iti__country {
    font-size: 13px;
}
.iti-mobile .iti--container,
.iti-fullscreen-popup .iti--container {
    inset: 0 !important;
}
.iti-fullscreen-popup .iti__country-list {
    margin: 10px;
    max-width: calc(100vw - 20px);
    max-height: min(600px, 90vh);
}
button.cv-upload-start {
    margin-top: 10px;
    margin-bottom: 20px;
}
span.repeater-count {
    color: blue;
}
span.repeater-count:hover {
    color: var(--bb-primary-button-border-hover);
}
.list-count {
    font-size: 2rem;
    background-color: #003756;
    height: 100%;
    width: 40px;
    text-align: center;
    line-height: 100%;
}
.list-desc {
    white-space: nowrap;
    -o-text-overflow: ellipsis;
       text-overflow: ellipsis;
    overflow: hidden;
}

.visibility-options-list {
    position: absolute;
    bottom: -3px;
    background: white;
    left: -5px;
    border-color: var(--bb-content-border-color);
    box-shadow: 0 12px 28px 0 rgba(18, 43, 70, .15), 0 2px 7px 0 rgba(18, 43, 70, .08);
    padding: 10px 0;
}

body #header-notifications-dropdown-elem:not(:last-child) .notification-dropdown {
    right: initial;
}
body .bb-password-wrap a.bb-toggle-password {
    position: absolute;
    right: -10px;
    bottom: -5px;
}
.standard-form .wp-editor-container .button,
body .standard-form .wp-editor-container button {
    padding: 4px 2px;
    background: 0 0;
    border: 0;
    height: auto;
    margin: 0;
    min-height: 20px
}
.standard-form .wp-editor-container .mce-ico {
    color: #222
}
.standard-form .quicktags-toolbar {
    background: #ecf0f1
}
.standard-form .wp-editor-container textarea {
    border: 0;
    font-family: inherit;
    letter-spacing: -.24px;
    line-height: 1.5;
    font-size: 1rem;
    padding-top: 10px;
    padding-bottom: 10px;
    height: auto
}
#buddypress .standard-form .button-nav {
    overflow-x: auto;
    overflow-y: hidden;
}
.buddypress-wrap .standard-form #pass-strength-result {
    margin-bottom: 10px;
    margin-top: -5px;
}
.bp-profile-wrapper.need-separator .bp-widget {
    margin: 10px 0 20px 0;
}

.loading::before {
    position: absolute;
    inset: 0;
    content: "";
    background: rgb(255 255 255 / 75%);
    z-index: 2;
}
.loading::after {
    content: '';
    width: 40px;
    height: 40px;
    position: absolute;
    top: min(50%, 200px);
    left: 50%;
    margin-top: -20px;
    margin-left: -20px;
    border-top: 4px solid rgba(0, 0, 0, 0.1);
    border-right: 4px solid rgba(0, 0, 0, 0.1);
    border-bottom: 4px solid rgba(0, 0, 0, 0.1);
    border-left: 4px solid #000;
    border-radius: 50%;
    z-index: 999999;
    -webkit-animation: spin 1s infinite linear;
            animation: spin 1s infinite linear;
}
button.iti__selected-country {
    padding: 7px !important;
    background: none !important;
    border-radius: 0 !important;
    border-color: #d6d9dd !important;
}
.bs-bp-container-reg #buddypress #signup-form.standard-form button.iti__selected-country {
    min-height: 100%;
}
body div.calendar-date-picker input.calendar-date-picker-input:focus {
    border: initial;
    -webkit-box-shadow: none;
            box-shadow: none;
    max-height: unset;
}
body div.calendar-date-picker div.calendar {
    max-width: 100%;
    min-width: 320px;
}
body div.calendar-date-picker div.calendar-shadow-bottom {
    -webkit-box-shadow: none;
            box-shadow: none;
}

body #buddypress .bb-bp-settings-content {
    padding: 10px 20px;
}

.bp-social-row-content {
    display: flex;
}

.bp-social-url-wrapper {
    flex: 1;
}


/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}
@keyframes spin {
    0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}

/* ==========================================================================
   MEDIA QUERIES
   ========================================================================== */
@media (max-width: 359px) {
    .span-1:not(.no-resp),
    .span-2:not(.no-resp),
    .span-3:not(.no-resp),
    .span-4:not(.no-resp),
    .span-5:not(.no-resp),
    .span-6:not(.no-resp),
    .span-7:not(.no-resp),
    .span-8:not(.no-resp),
    .span-9:not(.no-resp),
    .span-10:not(.no-resp),
    .span-11:not(.no-resp) {
        grid-column: span 12;
    }
}
@media (max-width: 480px) {
    .bb-model-content { max-height: calc(100vh - 100px); }
    .hide-scroll::-webkit-scrollbar { width: 0; }
    .profile-builder-step ul { gap: 5px; }
    #members-list.item-list:not(.grid) .list-wrap .list-wrap-inner .member-buttons-wrap { display: none; }
    #members-list.item-list:not(.grid) .has_hook_content.list-wrap { padding: 10px; }
    #members-list.item-list:not(.grid) .list-wrap .list-wrap-inner { -ms-flex-wrap: nowrap; flex-wrap: nowrap; }
}
@media only screen and (max-width: 600px) {
    .profile_completion_wrap .pc_progress_wrap { display: none; }
    .select2-opening { pointer-events: none; }
    .select2-container--default:has(.select2-search) .select2-dropdown {
        left: unset !important;
        width: calc(100% - 20px) !important;
        top: 15%;
    }
    .select2-container:has(.select2-dropdown .select2-search) {
        position: fixed !important;
        inset: 0 !important;
        background: rgb(0 0 0 / 40%);
        z-index: 999999;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: center;
            -ms-flex-pack: center;
                justify-content: center;
        -webkit-box-align: center;
            -ms-flex-align: center;
                align-items: center;
    }
    .mobile-masked::after {
        content: "";
        position: fixed;
        background: rgb(255 255 255 / 75%);
        height: 100vh;
        width: 100vw;
        inset: 0;
    }
}
@media (max-width: 991px) {
    .login-split { display: none !important; }
}