.settings_page_block_editor_roles :where(td, th, p, .switch-label, .role-label) {
    font-size: 14px !important;
}

.settings_page_block_editor_roles .notice {
    max-width: 982px;
    margin: 20px auto;
    background: #fff;
    padding: 5px 20px;
    border: 1px solid #ddd;
    border-left: 5px solid #4BAE50;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.settings_page_block_editor_roles .fs-notice {
    max-width: 1010px;
    margin-left: auto;
    margin-right: auto;
}

/* Container for the entire settings page */
.block-editor-roles-settings-page {
    max-width: 1000px;
    margin: 20px auto;
    background: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.block-editor-roles-settings-page h1 {
    color: #007cba;
}

.block-editor-roles-settings-page h2:where(:not(.block-editor-roles-license-section h2)) {
    margin-top: 35px;
    padding-top: 35px;
    border-top: 1px dashed #ddd;
    color: #007cba;
    font-weight: bold;
}

/* Spacing between sections */
.block-editor-roles-settings-page .form-table>tbody>tr {
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* Visually separate sections */
.block-editor-roles-settings-page .form-table>tbody>tr th {
    padding: 15px;
    border-right: 1px solid #ddd;
    width: 250px;
}

.block-editor-roles-settings-page .form-table .description {
    font-size: 0.8em;
}

/* Section headings */
.block-editor-roles-settings-page h4 {
    margin-top: 30px;
    padding-bottom: 0;
    margin-bottom: 10px;
    font-size: 1em;
}

/* Dropdown buttons */
.block-editor-roles-settings-page .dropdown {
    position: relative;
    display: inline-block;
}

.block-editor-roles-settings-page .dropdown .dropdown-toggle-icon {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 2px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #2271b1;
    vertical-align: middle;
}

.block-editor-roles-settings-page .dropdown-toggle {
    cursor: pointer;
}

.block-editor-roles-settings-page .dropdown-menu {
    display: none;
    position: absolute;
    margin-top: 5px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #2271b1;
    z-index: 1000;
    padding: 10px;
    border-radius: 4px;
}

.block-editor-roles-settings-page .dropdown-menu #select-all-editable {
    margin-bottom: 5px;
}

/* Container for checkboxes */
.block-editor-roles-settings-page .block-editor-roles-checkbox-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
    margin-bottom: 50px;
}

.block-editor-roles-settings-page .block-editor-roles-checkbox-item {
    display: flex;
    align-items: center;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px 15px;
    transition: background 0.3s, border-color 0.3s;
}

.block-editor-roles-settings-page .block-editor-roles-checkbox-item:hover {
    background: #f1f1f1;
    border-color: #ccc;
}

.block-editor-roles-settings-page .block-editor-roles-checkbox-label {
    margin-left: 8px;
    color: #333;
}

.block-editor-roles-settings-page .block-editor-roles-checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #007cba;
}

/* Overview of activated blocks */
.block-editor-roles-settings-page .block-editor-roles-active-blocks {
    margin-bottom: 20px;
    padding: 10px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    max-height: 350px;
    overflow-y: auto;
}

/* Scrollbar styling for Webkit browsers (Chrome, Edge, Safari) */
.block-editor-roles-settings-page .block-editor-roles-active-blocks::-webkit-scrollbar {
    width: 8px;
    /* Width of the scrollbar */
}

.block-editor-roles-settings-page .block-editor-roles-active-blocks::-webkit-scrollbar-thumb {
    background-color: #007cba;
    /* Color of the scrollbar */
    border-radius: 4px;
    /* Rounded corners */
}

.block-editor-roles-settings-page .block-editor-roles-active-blocks::-webkit-scrollbar-thumb:hover {
    background-color: #005a9c;
    /* Color on hover */
}

.block-editor-roles-settings-page .block-editor-roles-active-blocks::-webkit-scrollbar-track {
    background-color: #f1f1f1;
    /* Background of the scrollbar */
}

.block-editor-roles-settings-page .block-editor-roles-active-blocks h4 {
    margin: 0 0 10px;
    font-size: 1.25em;
    color: #333;
}

.block-editor-roles-settings-page .block-editor-roles-active-blocks ul {
    margin: 0;
    padding-left: 20px;
    list-style: disc;
}

.block-editor-roles-settings-page .block-editor-roles-active-blocks li {
    color: #555;
}

.block-editor-roles-settings-page .block-editor-roles-active-blocks p {
    margin: 0;
    color: #999;
}

/* Textarea */
.block-editor-roles-settings-page textarea {
    width: 100%;
    max-width: 100%;
    min-height: 100px;
    padding: 10px;
    font-size: 14px;
    font-family: Arial, sans-serif;
    color: #333;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.block-editor-roles-settings-page textarea:focus {
    border-color: #007cba;
    box-shadow: 0 0 5px rgba(0, 124, 186, 0.5);
    outline: none;
}

.block-editor-roles-settings-page textarea::placeholder {
    color: #aaa;
    font-style: italic;
}

/* Tooltip container */
.block-editor-roles-settings-page .block-editor-roles-checkbox-label {
    position: relative;
    cursor: pointer;
}

/* Tooltip text */
.block-editor-roles-settings-page .block-editor-roles-checkbox-label[data-tooltip]::after {
    content: attr(data-tooltip);
    /* Tooltip text from the data-tooltip attribute */
    position: absolute;
    bottom: 100%;
    /* Show tooltip above the element */
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 12px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease-in-out;
    z-index: 10;
}

/* Tooltip arrow */
.block-editor-roles-settings-page .block-editor-roles-checkbox-label[data-tooltip]::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease-in-out;
    z-index: 10;
}

/* Show tooltip when hovering over the element */
.block-editor-roles-settings-page .block-editor-roles-checkbox-label:hover::after,
.block-editor-roles-settings-page .block-editor-roles-checkbox-label:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Switch styling only for Block Editor Roles */
.block-editor-roles-settings-page .switch input:disabled+.slider {
    background-color: #cdcdcd;
    cursor: not-allowed;
    opacity: 0.7;
}

.block-editor-roles-settings-page .switch input:disabled+.slider:before {
    background-color: #aaaaaa;
}

.block-editor-roles-settings-page .switch-container {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-end;
    gap: 10px;
}


/* Additional styles for the Block Editor Roles page */
.block-editor-roles-settings-page h1 {
    font-size: 24px;
    margin-bottom: 20px;
}

.block-editor-roles-settings-page .block-editor-roles-active-blocks {
    margin-bottom: 20px;
    padding: 10px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.block-editor-roles-settings-page .block-editor-roles-active-blocks h4 {
    margin: 0 0 10px;
    font-size: 1.25em;
    color: #333;
}

.block-editor-roles-settings-page .block-editor-roles-active-blocks ul {
    margin: 0;
    padding-left: 20px;
}

.block-editor-roles-settings-page .block-editor-roles-active-blocks li {
    color: #555;
}

.block-editor-roles-settings-page .block-editor-roles-controls {
    margin: 20px 0 10px 0;
}

.block-editor-roles-settings-page .block-editor-roles-checkbox-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/*
 * User Roles
 */
.block-editor-roles-settings-page .block-editor-roles-user-roles {
    margin-top: 10px;
}

.block-editor-roles-settings-page .block-editor-roles-user-roles label {
    display: block;
    margin-bottom: 5px;
}

.block-editor-roles-settings-page .block-editor-roles-user-roles .switch-container {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.block-editor-roles-settings-page .block-editor-roles-user-roles .role-label {
    margin-bottom: 5px;
}

/*
 * Submit Button
 */
.block-editor-roles-settings-page .button-container {
    display: flex;
    justify-content: center;
}

.block-editor-roles-settings-page .button-container .button-primary {
    margin: 50px 0 35px 0;
    background-color: #007cba;
    color: #fff;
    border: none;
    padding: 7px 20px;
    font-size: 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.block-editor-roles-settings-page .button-container .button-primary:hover {
    background-color: #005a9c;
}

/* Highlight license section */
.block-editor-roles-license-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #fef3c7;
    border: 2px solid #fbbf24;
    padding: 20px;
    gap: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.block-editor-roles-license-section .settings-section-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.block-editor-roles-license-section h2 {
    color: #b45309;
    font-size: 1.25em;
    margin: 0;
    padding: 0;
}

.block-editor-roles-license-section .description {
    color: #92400e;
    margin-bottom: 0;
}

/* Block table */
.block-editor-roles-settings-page .wp-list-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.block-editor-roles-settings-page .wp-list-table th,
.block-editor-roles-settings-page .wp-list-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.block-editor-roles-settings-page .wp-list-table :where(td, th):nth-of-type(2),
.block-editor-roles-settings-page .wp-list-table :where(td, th):nth-of-type(3),
.block-editor-roles-settings-page .wp-list-table :where(td, th):nth-of-type(4) {
    text-align: center;
    border-left: 1px solid #ccc;
}

.block-editor-roles-settings-page .wp-list-table th.block-name,
.block-editor-roles-settings-page .wp-list-table td.block-name {
    width: 50%;
}

.block-editor-roles-settings-page .wp-list-table th {
    background-color: #f9f9f9;
    font-weight: bold;
}

.block-editor-roles-settings-page .wp-list-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.block-editor-roles-settings-page .switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 20px;
}

.block-editor-roles-settings-page .switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.block-editor-roles-settings-page .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 20px;
}

.block-editor-roles-settings-page .slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

.block-editor-roles-settings-page input:checked+.slider {
    background-color: #007cba;
}

.block-editor-roles-settings-page input:checked+.slider:before {
    transform: translateX(14px);
}

/*
 * Custom Block Message
 */
.block-editor-page .custom-block-message {
    z-index: 999999;
    position: absolute;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: center;
    height: 100%;
    background-color: #fff;
    padding: 35vh 10px 10px 10px;
    margin-bottom: 20px;
}

/*
 * Premium Label
 */
.block-editor-roles-settings-page .premium-label {
    background-color: #FFD700;
    color: #000;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
}