/*
Theme Name: MTU Child Theme
Description: Child theme by Moonburn
Author: Moonburn
Author URI: https://moonburn.com
Template: hello-elementor
Version: 1.0.0
Text Domain: mtu-child-theme
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: Requires at least: 6.4
Tested up to: 6.4
Requires PHP: 7.0
Version: 1.0 License: GNU General Public License v2 or later
License URI: http: //www.gnu.org/licenses/gpl-2.0.html
Tags: one-column,
custom-colors,
custom-menu,
custom-logo,
editor-style,
featured-images,
full-site-editing,
block-patterns,
rtl-language-support,
sticky-post,
threaded-comments,
translation-ready,
wide-blocks,
block-styles,
style-variations,
accessibility-ready,
blog,
portfolio,
news
*/

/* Fix footer issue on larger screens */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

div[data-elementor-type="wp-post"],
div[data-elementor-type="wp-page"],
body > main.site-main,
body > .page {
    flex: 1;
}

/* Background blur effect
 * Usage:
 * - Add .bg-blur to elementor container
 * - Set the image as background image
 * - For overlay, set opacity setting to 1 and use
 * RGBA to get opacity level
 */
.bg-blur::before {
    backdrop-filter: blur(3px);
}

/*
 * Hide shortcodes if empty
 */
.collapse-empty:has(div:empty) {
    display: none;
}

/*
 * Members info table
 */
.mtu-members-table {
    border-collapse: collapse;
    border: none !important;
}

.mtu-members-table thead,
.mtu-members-table thead tr,
.mtu-members-table thead th {
    visibility: collapse;
    height: 0 !important;
}

.mtu-members-table tr,
.mtu-members-table td,
.mtu-members-table th {
    border: inherit;
    background-color: transparent !important;
}

.mtu-members-table td {
    padding: 20px 0;
}

.mtu-members-table__row:not(:last-child) {
    border-bottom: 1px solid #ddddddBF;
}

.mtu-members-table__avatar {
    width: 90px;
    padding: 0;
}

.mtu-members-table__avatar img {
    width: 100%;
}

.mtu-members-table__info {
    padding-left: 25px !important;
}

.mtu-members-table__info__name {
    font-size: 20px;
    line-height: 20px;
    padding: 0;
    margin: 0 0 10px;
}

.mtu-members-table__info ul {
    list-style: none;
    padding: 0;
}

.mtu-members-table__info__name {
    font-weight: bold;
    color: #1755AF !important;
    font-size: 1.2em;
}


.mtu-members-table thead tr th {
    border: none !important;
}

.mtu-members-table__letters {
    margin-bottom: 10px;
}

.mtu-members-table__letters ul {
    --gap: 15px;
    list-style-type: none;
    display: flex;
    padding: var(--gap) 0;
    gap: var(--gap);
    font-size: 15px;
    overflow: scroll;
}

.mtu-members-table__letters__item.letter-item-enabled {
    font-weight: bold;
}

.mtu-members-table__letters__item.letter-item-disabled {
    cursor: not-allowed;
    opacity: .7;
}

.mtu-members-table__letter-divider {
    /*   border-color: transparent !important; */
    border: none !important;
    border-top: none !important;
}

.mtu-members-table__letter-divider td {
    background-color: #c2bebe !important;
    padding: 10px;
    border-radius: 5px;
    border-color: transparent !important;
    border: none !important;

    color: white;
    font-weight: bold;
}

tr:has( +.mtu-members-table__letter-divider) {
    border-bottom: none !important;
}

.mtu-members-table__search form {
    --gap: 15px;
    display: flex;
    flex-direction: column;
    gap: calc(var(--gap) / 2);
    margin: var(--gap) 0;
}

.mtu-members-table__search__group {
    display: flex;
    gap: var(--gap);
    align-items: flex-start;
    flex-wrap: wrap;
}

.mtu-members-table__search input[type="text"],
.mtu-members-table__search select {
    max-width: 350px;
}

.mtu-members-table__search__button {
    min-width: 100px;
}

/** Other */
.form-table:has(tr.user-rich-editing-wrap) {
    display: none !important;
}

tr:has(td a.button) {
    display: none;
}

h2#e-notes,
h2#e-notes + table {
    display: none;
}

tr:has(div#wp-mepr_user_message-wrap) {
    display: none;
}

add_filter('mepr-admin-product-options', function($options) {
  return isset($options[42]) ? [42=>$options[42]] : [];
});