/* CookieYes icon is hidden via JS (shadow DOM style injection) */

.accessibility-widgets {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1006;
}

/*.accessibility-main-btn {*/
/*    width: 60px;*/
/*    height: 60px;*/
/*    border-radius: 50%;*/
/*    background-color: var(--primary-color);*/
/*    cursor: pointer;*/
/*    transition: all 0.3s ease;*/
/*    box-shadow: 0 4px 15px rgba(23, 52, 112, 0.4);*/
/*    display: flex;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*    position: fixed;*/
/*    bottom: 125px;*/
/*    z-index: 1000;*/
/*    right: 20px;*/
/*}*/

.screen-reader-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(23, 52, 112, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 105px;
    z-index: 1000;
    right: 20px;
    overflow: hidden;
}

.screen-reader-btn img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}

#MrAccessInHand,
#DeafServicePlace {
    width: 60px !important;
    height: 60px !important;
}

.screen-reader-btn:hover,
.messenger-btn:hover,
#MrAccessInHand:hover,
#DeafServicePlace:hover,
.accessibility-main-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(23, 52, 112, 0.5);
}

.accessibility-main-btn svg {
    width: 30px;
    height: 30px;
}

.messenger-btn {
    width: 60px;
    height: 60px;
    position: fixed;
    bottom: 35px;
    border-radius: 50%;
    right: 20px;
}

.access-sidebar-item {
    position: fixed;
    left: 0;
    top: calc(50% - (var(--sidebar-total, 1) * 50px / 2) + (var(--sidebar-index, 0) * 50px));
    z-index: 1000;
    display: flex;
    align-items: center;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
    overflow: hidden;
    white-space: nowrap;
    transition: width 0.35s ease, background-color 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
}

.access-sidebar-item--first {
    border-top-right-radius: 10px;
}

.access-sidebar-item--last {
    border-bottom-right-radius: 10px;
}

.access-sidebar-item--only {
    border-radius: 0 10px 10px 0;
}

@media (hover: hover) {
    .access-sidebar-item:hover {
        width: 260px;
        background-color: #1e4493;
    }

    .access-sidebar-item:hover .access-sidebar-label {
        opacity: 1;
    }
}

.access-sidebar-item:focus-visible,
.access-sidebar-item.expanded {
    width: 260px;
    background-color: #1e4493;
}

.access-sidebar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.access-sidebar-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.access-sidebar-label {
    padding-right: 16px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    opacity: 0;
    transition: opacity 0.25s ease 0.1s;
}

@media (hover: hover) {
    .access-sidebar-item:hover .access-sidebar-label {
        opacity: 1;
    }
}

.access-sidebar-item:focus-visible .access-sidebar-label,
.access-sidebar-item.expanded .access-sidebar-label {
    opacity: 1;
}

.accessibility-menu {
    position: fixed;
    bottom: 35px;
    right: -55px;
    width: 360px;
    height: 360px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0;
    visibility: hidden;
    transform: scale(0);
    transform-origin: bottom right;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    align-items: center;
    justify-content: center;
    padding: 50px 40px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    z-index: 500015;
}

.accessibility-menu.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.menu-items {
    position:relative;
    width: 100%;
    max-width: 280px;
    height:100%;
}

.menu-item {
    position:absolute;
    align-items: center;
    padding: 14px 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 20px;
    font-weight: 400;
}

.menu-item:hover {
    transform: translateX(-3px);
}

.menu-item svg {
    width: 85px;
    height: 85px;
    flex-shrink: 0;
    fill: white;
}
.menu-item:nth-child(1) {
    top: -8%;
    left: 0%;
}

.menu-item:nth-child(2) {
    top: 26%;
    left: -12%;
}

.menu-item:nth-child(3) {
    top: 60%;
    left: 4%;
}

.close-btn {
    position: absolute;
    bottom: 40px;
    right: 90px;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 500020;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

.close-btn:hover {
    transform: translateX(-3px);
}

.close-btn::before,
.close-btn::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 2px;
    background: white;
    border-radius: 1px;
}

.close-btn::before {
    transform: rotate(45deg);
}

.close-btn::after {
    transform: rotate(-45deg);
}

.chatbot {
    position: fixed;
    bottom: 160px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(23, 52, 112, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s ease;
}

.chatbot:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(23, 52, 112, 0.4);
}

.chatbot img {
    width: 40px;
    height: 40px;
}

@media (max-width: 768px) {
    .access-sidebar-item {
        width: 44px;
        height: 44px;
        top: calc(50% - (var(--sidebar-total, 1) * 44px / 2) + (var(--sidebar-index, 0) * 44px));
    }

    .access-sidebar-icon {
        min-width: 44px;
        width: 44px;
        height: 44px;
    }

    .access-sidebar-icon img {
        width: 24px;
        height: 24px;
    }

    .access-sidebar-label {
        font-size: 13px;
    }

    .accessibility-widgets,
    #MrAccessInHand,
    #DeafServicePlace {
        bottom: 15px;
        right: 15px !important;
    }

    .accessibility-main-btn,
    .screen-reader-btn,
    .chatbot,
    .messenger-btn,
    #MrAccessInHand,
    #DeafServicePlace {
        width: 55px !important;
        height: 55px !important;
    }

    .accessibility-main-btn svg {
        width: 26px;
        height: 26px;
    }

    .screen-reader-btn,
    .accessibility-main-btn {
        right: 15px;
    }

    .accessibility-menu {
        width: 280px;
        height: 280px;
        padding: 35px 25px;
        bottom: 30px;
        right: -40px;
    }

    .menu-items {
        max-width: 230px;
        height: 100%;
    }

    .menu-item {
        font-size: 17px;
        padding: 12px;
    }

    .menu-item svg {
        width: 65px;
        height: 65px;
    }

    .menu-item:nth-child(1) {
        top: -6%;
        left: 2%;
    }

    .menu-item:nth-child(2) {
        top: 25%;
        left: -10%;
    }

    .menu-item:nth-child(3) {
        top: 55%;
        left: 4%;
    }

    .close-btn {
        bottom: 30px;
        right: 55px;
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 480px) {
    .access-sidebar-item {
        width: 40px;
        height: 40px;
        top: calc(50% - (var(--sidebar-total, 1) * 40px / 2) + (var(--sidebar-index, 0) * 40px));
    }

    .access-sidebar-icon {
        min-width: 40px;
        width: 40px;
        height: 40px;
    }

    .access-sidebar-icon img {
        width: 20px;
        height: 20px;
    }

    .access-sidebar-label {
        font-size: 12px;
        padding-right: 12px;
    }

    .accessibility-widgets {
        bottom: 10px;
        right: 10px;
    }

    .accessibility-main-btn,
    .screen-reader-btn,
    .chatbot,
    .messenger-btn,
    #MrAccessInHand,
    #DeafServicePlace {
        width: 50px !important;
        height: 50px !important;
    }

    .accessibility-main-btn svg {
        width: 22px;
        height: 22px;
    }

    .chatbot,
    .accessibility-main-btn,
    .screen-reader-btn,
    .messenger-btn
     {
        right: 10px !important;
    }

    .chatbot {
        bottom: 135px;
    }

    .screen-reader-btn {
        bottom: 90px;
    }

    #MrAccessInHand {
        bottom: 210px !important;
    }
    
    #DeafServicePlace{
        bottom: 265px !important;
    }
    
    .accessibility-menu {
        width: 280px;
        height: 280px;
        padding: 25px 20px;
        bottom: 50px;
        right: -40px;
    }

    .menu-items {
        max-width: 230px;
    }

    .menu-item {
        font-size: 15px;
        padding: 10px;
    }

    .menu-item svg {
        width: 60px;
        height: 60px;
    }

    .menu-item:nth-child(1) {
        top: -5%;
        left: 2%;
    }

    .menu-item:nth-child(2) {
        top: 25%;
        left: -8%;
    }

    .menu-item:nth-child(3) {
        top: 55%;
        left: 4%;
    }

    .close-btn {
        bottom: 25px;
        right: 55px;
        width: 28px;
        height: 28px;
    }

    .close-btn::before,
    .close-btn::after {
        width: 14px;
    }
}

/* TTS */
/* ===========================================
   FLOATING BUTTON
   =========================================== */

#tts-btn {
    display: none;
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #4675EF;
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(70, 117, 239, 0.4);
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
    z-index: 9999;
}

#tts-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(70, 117, 239, 0.5);
}

#tts-btn:focus-visible {
    outline: 3px solid #4675EF;
    outline-offset: 3px;
}

#tts-btn svg {
    width: 24px;
    height: 24px;
}

/* Hide on mobile/tablet */
@media (max-width: 1280px) {
    #tts-btn {
        display: none;
    }
}



/* ===========================================
   HOVER-TO-READ MODE
   =========================================== */

#tts-hover-tooltip {
    position: fixed;
    max-width: 220px;
    background: rgba(30, 30, 40, 0.92);
    color: #fff;
    font-size: 12px;
    line-height: 1.4;
    padding: 6px 10px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.15s ease, transform 0.15s ease;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#tts-hover-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Highlight element under hover */
body.tts-hover-active [data-tts-hovered] {
    outline: 2px solid rgba(70, 117, 239, 0.5);
    outline-offset: 2px;
    border-radius: 3px;
    background-color: rgba(70, 117, 239, 0.06);
    transition: background-color 0.15s, outline 0.15s;
}

/* ===========================================
   REDUCED MOTION
   =========================================== */

@media (prefers-reduced-motion: reduce) {
    #tts-btn {
        transition: none;
    }

    #tts-btn:hover {
        transform: none;
    }
}

/* ===========================================
   PRINT
   =========================================== */

@media print {
    #tts-btn {
        display: none !important;
    }
}

#MrAccessInHand,
#DeafServicePlace {
    display: flex !important;
    z-index: 1000 !important;
    border-radius: 50% !important;
    justify-content: center !important;
    align-items: center !important;
}

#MrAccessInHand img {
    margin: 0 !important;
}

@media (min-width: 992px) {
    #MrAccessInHand,
    #DeafServicePlace {
        width: 60px !important;
        height: 60px !important;
    }
    
    #MrAccessInHand {
        bottom: 250px !important;
    }
    
    #DeafServicePlace {
        bottom: 325px !important;
    }
}

.cya11y-widget-icon {
    display: none !important;
}

@media (min-width: 480px) and (max-width: 992px) {
    #MrAccessInHand {
        bottom: 245px !important;
    }

    #DeafServicePlace {
        bottom: 315px !important;
    }
}

@media (min-width: 767.98px) and (max-width: 992px) {
    #MrAccessInHand,
    #DeafServicePlace {
        right: 15px !important;
    }
}