/**
 * CSS common to all megapages pages.
 */

/* region Tables */

/* Hide scrollbar for Chrome, Safari and Opera */
figure.wp-block-table::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
figure.wp-block-table {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

figure.wp-block-table table td,
figure.wp-block-table table th {
    padding: var(--spacing-5);
}

figure.wp-block-table td.has-text-align-center {
    text-align: center;
}

figure.wp-block-table table td.has-text-align-center .icon-box {
    margin: 0 auto;
}

figure.wp-block-table table td.has-text-align-center .icon-box .icon.x {
    color: var(--color-link-disabled);
}

figure.wp-block-table figcaption {
    margin-top: var(--spacing-7);
    font: var(--font-copy-sm);
    color: var(--color-copy-secondary);
}

/* endregion */

figure.wp-block-image figcaption {
    margin: var(--spacing-7) 0 0;
    font: var(--font-copy-sm);
    color: var(--color-copy-secondary);
}

/* region Inputs */

input.hidden-input {
    height: 0;
    margin: 0;
    padding: 0;
    position: absolute;
    width: 0;
    border: none;
    outline: none;
}

/* endregion */

.page-container a:link:not(.button, .text-button, .link) {
    color: var(--color-secondary-cobalt-500);
}

.theme-dark .page-container a:link:not(.button,.text-button, .link),
.page-container a:visited:not(.text-button,.button, .link) {
    color: var(--color-secondary-cobalt-700);
}

.theme-dark .page-container a:visited:not(.button, .text-button, .link) {
    color: var(--color-secondary-cobalt-800);
}

.icon.color-primary-red-500 {
    color: var(--color-primary-red-500)
}

.backup-page-table table thead th:nth-child(2) {
    color: var(--color-primary-red-500);
}

/* Breakpoint S */
@media screen and (min-width: 0) and (max-width: 768px) {
    .heading {
        hyphens: auto;
        hyphenate-limit-chars: 10 4 4;
    }

    /* Override default WP table width for megapages pages */
    figure.wp-block-table table {
        width: 720px;
    }
}

/* endregion */
