/*
 * accessibility Styles

 * Provides default styling for accessibility features such as alt captions
 *
 * @package     iw-wp-utils
 * @subpackage  assets/style/accessibility
 * @since       1.0.0
 -------------------------------------------------------------- */

/* Alt caption for images */
.iw-image-alt-caption {
    display: none;
    position: absolute;
    padding: 1em;
    color: #333;
    font-size: 1rem;
}

.iw-image-alt-caption--center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.iw-image-alt-caption--left {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.9);
    white-space: normal;
    word-break: break-word;
    text-align: left;
}

.iw-a11y-hide_images .iw-image-alt-caption {
    display: block;
}

/* Widget */
.iw-a11y-widget {
    position: fixed;
    right: 0;
    z-index: 11;
    cursor: pointer;
    display: none;
    background-color: #ef17ef;
    border: 4px solid #ef17ef;
    padding: 17px;
    bottom: 50px;
}

.iw-a11y-contrast_mode .iw-a11y-widget {
    background-color: #101010;
    border: 4px solid #101010;
}

.no-touchevents .iw-a11y-widget:hover,
.no-touchevents .iw-a11y-widget.active,
.touchevents .iw-a11y-widget.active {
    background-color: #17ef17;
}

.iw-a11y-widget .iw-a11y-widget__button {
    width: 48px;
    height: 48px;
}

.iw-a11y-widget .iw-a11y-widget__button svg {
    width: 100%;
    height: 100%;
}

.iw-a11y-widget.active .iw-a11y-widget__button.open,
.iw-a11y-widget .iw-a11y-widget__button.close {
    display: none;
}

.iw-a11y-widget.active .iw-a11y-widget__button.close {
    display: inherit;
}

/* Menu */
.iw-a11y-widget__menu {
    position: fixed;
    right: 0;
    z-index: 11;
    cursor: pointer;
    flex-direction: column;
    display: none;
    background-color: #17ef17;
    bottom: 138px;
    border: 4px solid #ef17ef;
    padding: 17px;
    gap: 17px;
}

.iw-a11y-contrast_mode .iw-a11y-widget__menu {
    background-color: #FFFFFF;
    border: 4px solid #101010;
}

.iw-a11y-widget__menu.active {
    display: flex;
}

.iw-a11y-widget__menu .menu-item {
    display: flex;
    gap: 17px;
    border: 2px solid #17ef17;
    padding: 17px;
}

.iw-a11y-widget__menu .menu-item.active,
.iw-a11y-widget__menu .menu-item:hover {
    border: 2px solid #ef17ef;
}

.iw-a11y-contrast_mode .iw-a11y-widget__menu .menu-item.active,
.iw-a11y-contrast_mode .iw-a11y-widget__menu .menu-item:hover {
    border: 2px solid #101010;
}

.iw-a11y-widget__menu .menu-item .icon {
    width: 32px;
    height: 32px;
}

.iw-a11y-widget__menu .menu-item .icon svg {
    width: 100%;
    height: 100%;
}

.iw-a11y-widget__menu .menu-item .text {
    line-height: 32px;
}
