/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

.prime-wcag-container {
    font-family: 'Poppins', sans-serif;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.prime-wcag-container * {
    font-family: 'Poppins', sans-serif;
}

.prime-wcag-container.wcag-lazy-loading,
.prime-wcag-container.wcag-initializing {
    display: none !important;
}

.prime-wcag-container.icon-visible {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}
.profile-option-icon{
    width: 30px;
    height: auto;
    filter: brightness(0) invert(0);
}
.profile-option.active .profile-option-icon{
    filter: brightness(0) invert(1);
}
.profile-option-icon img{
    width: 30px;
    height: auto;
    filter: brightness(0) invert(1);
}
.profile-logo img{
    width: 30px;
    height: auto;
    filter: brightness(0) invert(1);
}
.prime-wcag-container.icon-hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    fill: #000000;
    color: #000000;
}
.XL-widget-wrapper{
    display: flex;
    gap: 15px;
}
.XL-logo{
    font-size: 30px;
}
.prime-wcag-title{
    margin: auto 0;
}
.prime-wcag-toggle {
    background-color: var(--wcag-close-color);
    position: fixed;
    z-index: 9999999;
    cursor: pointer;
    width: 50px;
    height: 50px;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s;
}
.prime-wcag-toggle:hover {
    transform: scale(1.05);
}

.prime-wcag-toggle .prime-wcag-icon {
    width: 100%;
    height: auto;
}

.prime-wcag-content {
    z-index: 10000000;
    position: fixed;
    width: 100%;
    max-width: 550px;
    height: 0;
    opacity: 0;
    transition: all 0.3s;
    pointer-events: none;
    overflow: hidden;
    max-height: 100%;
    overflow-y: auto;

    scrollbar-width: thin;
    scrollbar-color: var(--wcag-close-color) #EFF1F5;
}

.prime-wcag-content::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.prime-wcag-content::-webkit-scrollbar-track {
    background: #EFF1F5;
    border-radius: 10px;
}

.prime-wcag-content::-webkit-scrollbar-thumb {
    background-color: var(--wcag-close-color);
    border-radius: 10px;
    border: 2px solid #EFF1F5;
}

.prime-wcag-content::-webkit-scrollbar-thumb:hover {
    filter: brightness(0.9);
}

.prime-wcag-content.open {
    pointer-events: auto;
    opacity: 1;
}

.prime-wcag-close {
    position: relative;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #EFF1F5;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.prime-wcag-close::before,
.prime-wcag-close::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 2px;
    border-radius: 1px;
    top: 50%;
    left: 50%;
    transform-origin: center;
    background-color: var(--wcag-close-color);
}

.prime-wcag-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.prime-wcag-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.prime-wcag-close:hover {
    opacity: 0.8;
}
.prime-row{
    display: flex;
    padding: 10px;
    justify-content: space-between;
}
.prime-wcag-tile{
    background-color: #EFF1F5;
    padding: 15px;
    border-bottom: 1px solid #D4D4D4;
}
.prime-wcag-tile:first-of-type{
    border-radius: 20px 20px 0 0;
}
.prime-wcag-tile.reset{
    padding: 0px;
}
.prime-wcag-tile .reset-states{
    margin: 15px;
    border-radius: 10px;
    padding: 15px;
    width: calc(100% - 30px);
    background-color: var(--wcag-close-color);
    color: #fff;
    transition: all 0.3s;
    position: relative;
}
.prime-wcag-tile .reset-states img{
    position: absolute;
    width: 25px;
    height: auto;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}
.widget-size-toggle{
    color: black;
    transition: all 0.3s;
    display: flex;
    justify-content: space-between;
}
.toggler{
    width: 40px;
    height: 20px;
    position: relative;
    background-color: #D4D4D4;
    border-radius: 10px;
    border: 1px solid #D4D4D4;
    transition: all 0.3s;
    margin: auto 0;
}
.toggler::after{
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%) translateX(0);
    content: "";
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #fff;
    transition: all 0.3s;
}
.widget-size-toggle:hover{
    cursor: pointer;
    background-color: var(--wcag-close-color);
    color: #fff;
}
.prime-wcag-container.big-widget .widget-size-toggle .toggler{
    background-color: #fff;
    border: 1px solid #fff;
}
.prime-wcag-container.big-widget *{
    font-size: 110% !important;
    font-weight: 500 !important;
    word-break: break-all;
    @media (max-width:991px) {
        font-size: 105% !important;
    }
}
.prime-wcag-container.big-widget .lang-logo, .prime-wcag-container.big-widget .profile-logo{
    width: 60px;
    height: 60px;
    align-content: center;
}
.prime-wcag-container.big-widget .widget-size-toggle .toggler::after{
    transform: translateY(-50%) translateX(15px);
    background-color: #D4D4D4;
}
.widget-size-toggle:hover .toggler{
    border: 1px solid #fff;
}
.prime-wcag-tile .reset-states:hover{
    cursor: pointer;
    opacity: 0.8;
}
.prime-wcag-tile .reset-states:hover img{
    animation: rotate360 0.3s linear;
}

@keyframes rotate360 {
    from { transform: translateY(-50%) rotate(0deg); }
    to { transform: translateY(-50%) rotate(-360deg); }
}

.prime-wcag-tile.lang {
    position: relative;
    cursor: pointer;
    padding: 15px;
    transition: background-color 0.3s ease;
}
.prime-wcag-tile.lang:hover {
    background-color: #E5E7EB;
}
.prime-wcag-tile.lang .lang-current {
    display: flex;
    align-items: center;
    gap: 15px;
}
.prime-wcag-tile.lang p {
    margin: auto 0;
}
.prime-wcag-tile.lang .lang-name {
    flex: 1;
}
.prime-wcag-tile.lang .lang-arrow {
    transition: transform 0.3s ease;
    color: #333;
}
.prime-wcag-tile.lang.open .lang-arrow {
    transform: rotate(180deg);
}
.lang-logo {
    background-color: var(--wcag-close-color);
    border-radius: 50%;
    color: #fff;
    padding: 10px;
    text-transform: uppercase;
    width: 38px;
    height: 38px;
    text-align: center;
    font-weight: 600;
}

.lang-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease;
    opacity: 0;
    margin-top: 0;
}
.prime-wcag-tile.lang.open .lang-dropdown {
    max-height: 300px;
    opacity: 1;
    margin-top: 15px;
    overflow-y: auto;
}
.lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    margin-bottom: 5px;
    background-color: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}
.lang-option:last-child {
    margin-bottom: 0;
}
.lang-option:hover {
    background-color: #f3f4f6;
    border-color: var(--wcag-close-color);
}
.lang-option.active {
    background-color: var(--wcag-close-color);
    color: #fff;
}
.lang-option.active:hover {
    opacity: 0.9;
}
.lang-option-code {
    font-weight: 600;
    min-width: 30px;
    text-transform: uppercase;
}
.lang-option-name {
    flex: 1;
}

.prime-wcag-tile.profile {
    position: relative;
    cursor: pointer;
    padding: 15px;
    transition: background-color 0.3s ease;
}
.prime-wcag-tile.profile:hover {
    background-color: #E5E7EB;
}
.prime-wcag-tile.profile .profile-current {
    display: flex;
    align-items: center;
    gap: 15px;
}
.prime-wcag-tile.profile p {
    margin: auto 0;
}
.prime-wcag-tile.profile .profile-name {
    flex: 1;
}
.prime-wcag-tile.profile .profile-arrow {
    transition: transform 0.3s ease;
    color: #333;
}
.prime-wcag-tile.profile.open .profile-arrow {
    transform: rotate(180deg);
}
.profile-logo {
    background-color: var(--wcag-close-color);
    border-radius: 50%;
    color: #fff;
    padding: 10px;
    width: 38px;
    height: 38px;
    text-align: center;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.profile-logo.has-profile {
    background-color: var(--wcag-close-color);
}

.profile-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease;
    opacity: 0;
    margin-top: 0;
}
.prime-wcag-tile.profile.open .profile-dropdown {
    max-height: 250px;
    opacity: 1;
    margin-top: 15px;
    overflow-y: auto;
}
.profile-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    margin-bottom: 5px;
    background-color: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}
.profile-option.active span img {
    filter: brightness(0) invert(1);
}

.profile-option:last-child {
    margin-bottom: 0;
}
.profile-option:hover {
    background-color: #f3f4f6;
    border-color: var(--wcag-close-color);
}
.profile-option.active {
    background-color: var(--wcag-close-color);
    color: #fff;
    border-color: var(--wcag-close-color);
}
.profile-option.active:hover {
    opacity: 0.9;
}
.profile-option-icon {
    font-size: 20px;
    min-width: 30px;
    text-align: center;
}
.profile-option-name {
    flex: 1;
    font-weight: 500;
}

/* .prime-wcag-tile.profile.profile-active .profile-current {
    color: #fff;
} */

.profile-dropdown::-webkit-scrollbar {
    width: 6px;
}
.profile-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}
.profile-dropdown::-webkit-scrollbar-thumb {
    background: #c3c4c7;
    border-radius: 3px;
}
.profile-dropdown::-webkit-scrollbar-thumb:hover {
    background: #a7aaad;
}

.prime-wcag-options-tiles {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.prime-wcag-options-tiles .tile{
    position: relative;
    width: calc(33% - 4px);
    padding: 10px;
    border-radius: 15px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-height: 100px;
    justify-content: center;
    cursor: pointer;
    border: 2px solid #fff;
    transition: all 0.3s;
}
.prime-wcag-container.big-widget .prime-wcag-options-tiles .tile{
    width: calc(50% - 6px);
    min-height: 140px;
}
.prime-wcag-options-tiles .tile:hover, .prime-wcag-options-tiles .tile.active{
    border: 2px solid var(--wcag-close-color);
}
.prime-wcag-options-tiles .tile::after{
    content: "";
    background-image: url("/wp-content/plugins/WCAG/public/icons/check.svg");
    background-repeat: no-repeat;
    background-size: contain;
    position: absolute;
    z-index: 1;
    right: 10px;
    top: 10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s;
}
.prime-wcag-options-tiles .tile.active::after{
    opacity: 1;
}
.prime-wcag-options-tiles .tile:hover {
    background-color: #EFF1F5;
}
.prime-wcag-options-tiles .tile.hide {
    display: none !important;
}
.prime-white{
    color: #fff;
    margin: auto 0 ;
}

.prime-wcag-icon{
    width: 30px;
    height: auto;
    margin: 0 auto;
}
.tile p{
    text-align: center;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3;
}
@media (max-width:991px) {
    .tile p{
        font-size: 12px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        word-break: break-word;
        hyphens: auto;
    }
}

.prime-wcag-options-tiles .tile.tile-double {
    width: calc(66% - 2px);
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    min-height: auto;
    padding: 15px;
    cursor: default;
}

.prime-wcag-options-tiles .tile.tile-double::after {
    display: none;
}

.prime-wcag-container.big-widget .prime-wcag-options-tiles .tile.tile-double {
    width: calc(100% - 6px);
}

.tile-double .tile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

@media (max-width:991px) {
    .wcag-desktop-only{
        display: none !important;
    }
}

.tile-double .tile-header .prime-wcag-icon {
    width: 30px;
    height: auto;
}

.tile-double .tile-header p {
    text-align: center;
    font-size: 14px;
    margin: 0;
}

.tile-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tile-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--wcag-close-color);
    background-color: #fff;
    color: var(--wcag-close-color);
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    padding: 0;
    line-height: 1;
    @media (max-width:991px) {
        width: 28px;
        height: 28px;
    }
}
.wcag-sticky{
    position: sticky;
    width: 100%;
    z-index: 2;
}
.wcag-sticky.bottom{
    bottom: 0px;
}
.wcag-sticky.top{
    top: 0px;
    background-color: var(--wcag-close-color);
}
.tile-btn:hover {
    background-color: var(--wcag-close-color);
    color: #fff;
}

.tile-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.tile-value {
    min-width: 50px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.text-align-icon {
    color: #333;
}

.text-align-icon path {
    transition: d 0.3s ease-in-out;
}

[data-align-state="off"] .align-line-1 { d: path("M3 6H21"); }
[data-align-state="off"] .align-line-2 { d: path("M3 12H21"); }
[data-align-state="off"] .align-line-3 { d: path("M3 18H21"); }

[data-align-state="start"] .align-line-1 { d: path("M3 6H21"); }
[data-align-state="start"] .align-line-2 { d: path("M3 12H15"); }
[data-align-state="start"] .align-line-3 { d: path("M3 18H18"); }

[data-align-state="center"] .align-line-1 { d: path("M3 6H21"); }
[data-align-state="center"] .align-line-2 { d: path("M6 12H18"); }
[data-align-state="center"] .align-line-3 { d: path("M5 18H19"); }

[data-align-state="end"] .align-line-1 { d: path("M3 6H21"); }
[data-align-state="end"] .align-line-2 { d: path("M9 12H21"); }
[data-align-state="end"] .align-line-3 { d: path("M6 18H21"); }


.wcag-hide-images img,
.wcag-hide-images picture,
.wcag-hide-images svg,
.wcag-hide-images video,
.wcag-hide-images [role="img"],
.wcag-hide-images *::before,
.wcag-hide-images *::after {
    visibility: hidden !important; 
}
.wcag-hide-images * {
    background-image: none !important;
}

.wcag-hide-images .prime-wcag-container img,
.wcag-hide-images .prime-wcag-container picture,
.wcag-hide-images .prime-wcag-container svg,
.wcag-hide-images .prime-wcag-container video,
.wcag-hide-images .prime-wcag-container [role="img"],
.wcag-hide-images .prime-wcag-container *::before,
.wcag-hide-images .prime-wcag-container *::after {
    visibility: visible !important;
}
.wcag-hide-images .prime-wcag-container,
.wcag-hide-images .prime-wcag-container * {
    background-image: revert !important;
}

.wcag-disable-animations,
.wcag-disable-animations *,
.wcag-disable-animations *::before,
.wcag-disable-animations *::after {
    animation: none !important;
    animation-duration: 0s !important;
    transition: none !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
}  

html.wcag-keyboard-navigation :focus {
  outline: 3px solid #005fcc !important;
  outline-offset: 3px !important;
}

html.wcag-keyboard-navigation .wcag-structure:focus {
  outline: 2px dashed #999 !important;
}
