html {
    font-size: var(--df-a11y-font-size, 100%);
}

.df-a11y,
.df-a11y * {
    box-sizing: border-box;
}

.df-a11y {
    position: fixed !important;
    right: 23px !important;
    bottom: 92px !important;
    z-index: 2147483000 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    color: #111827 !important;
    filter: none !important;
}

.df-a11y__toggle {
    width: 54px;
    height: 54px;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    background: #ffffff;
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 30px rgba(17, 24, 39, 0.18);
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
    padding: 0;
}

.df-a11y__toggle:hover,
.df-a11y__toggle:focus {
    background: #f9fafb;
    transform: translateY(-1px);
    outline: 2px solid #82439e;
    outline-offset: 2px;
}

.df-a11y__icon {
    display: inline-flex;
    width: 29px;
    height: 29px;
}

.df-a11y__icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
    display: block;
}

.df-a11y__modal[hidden] {
    display: none !important;
}

.df-a11y__modal {
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 2147483001 !important;
    filter: none !important;
}

.df-a11y__backdrop {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(17, 24, 39, 0.72);
}

.df-a11y__panel {
    position: absolute !important;
    right: 24px !important;
    bottom: 24px !important;
    width: 480px;
    max-width: calc(100vw - 48px);
    max-height: calc(100vh - 120px) !important;
    overflow: auto !important;
    background: #ffffff;
    color: #111827;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    padding: 20px;
    box-shadow: 0 22px 70px rgba(17, 24, 39, 0.30);
    text-align: left;
    filter: none !important;
}

.df-a11y__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.df-a11y__title {
    margin: 0;
    font-size: 20px !important;
    font-weight: 700;
    line-height: 1.4;
    color: #111827;
}

.df-a11y__close {
    width: 32px;
    height: 32px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #ffffff;
    color: #111827;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.df-a11y__close:hover,
.df-a11y__close:focus {
    background: #f3f4f6;
    outline: 2px solid #82439e;
    outline-offset: 2px;
}

.df-a11y__header-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.df-a11y__header-btn {
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #111827;
    font-weight: 700;
    text-align: left;
    line-height: 1.25;
    cursor: pointer;
}

.df-a11y__header-btn:hover,
.df-a11y__header-btn:focus {
    background: #f9fafb;
    outline: 2px solid #82439e;
    outline-offset: 2px;
}

.df-a11y__section {
    margin: 18px 0 0;
}

.df-a11y__section-title {
    margin: 0 0 10px;
    font-size: 15px !important;
    font-weight: 700;
    color: #374151;
}

.df-a11y__card {
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    padding: 8px;
}

.df-a11y__stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px;
    border-radius: 14px;
    background: #ffffff;
}

.df-a11y__stepper-label {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    font-weight: 700;
}

.df-a11y__stepper-icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
}

.df-a11y__stepper-controls {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.df-a11y__stepper-btn {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    background: #f3e8ff;
    color: #111827;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
}

.df-a11y__stepper-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.df-a11y__stepper-value {
    min-width: 52px;
    text-align: center;
    font-weight: 700;
}

.df-a11y__item {
    display: grid;
    grid-template-columns: 32px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 14px;
    background: #ffffff;
    cursor: pointer;
    user-select: none;
    margin: 0;
}

.df-a11y__item + .df-a11y__item {
    margin-top: 8px;
}

.df-a11y__item-icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #374151;
    font-weight: 700;
    font-size: 18px;
}

.df-a11y__item-text {
    font-weight: 700;
    color: #111827;
}

.df-a11y__check,
.df-a11y__radio {
    width: 17px;
    height: 17px;
    border-radius: 5px;
    border: 2px solid #9ca3af;
    display: inline-block;
}

.df-a11y__radio {
    border-radius: 999px;
}

.df-a11y__sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.df-a11y__sr-only:focus + .df-a11y__item-icon,
.df-a11y__item:focus-within {
    outline: 2px solid #82439e;
    outline-offset: 2px;
}

.df-a11y__sr-only:checked ~ .df-a11y__check {
    border-color: #82439e;
    background: #82439e;
    box-shadow: inset 0 0 0 3px #ffffff;
}

.df-a11y__sr-only:checked ~ .df-a11y__radio {
    border-color: #82439e;
    box-shadow: inset 0 0 0 5px #82439e;
}

@media (prefers-reduced-motion: reduce) {
    .df-a11y__toggle,
    .df-a11y__close,
    .df-a11y__header-btn,
    .df-a11y__stepper-btn {
        transition: none;
    }
}

/* Stronger link underline for Magento 1 menus and nested spans */
html.df-a11y-link-underline body a:not(.df-a11y__toggle):not(.df-a11y__header-btn):not(.df-a11y__close),
html.df-a11y-link-underline body a:not(.df-a11y__toggle):not(.df-a11y__header-btn):not(.df-a11y__close) > span,
html.df-a11y-link-underline body #nav a,
html.df-a11y-link-underline body #nav a > span,
html.df-a11y-link-underline body .nav a,
html.df-a11y-link-underline body .nav a > span,
html.df-a11y-link-underline body .nav-primary a,
html.df-a11y-link-underline body .nav-primary a > span,
html.df-a11y-link-underline body .nav-menu a,
html.df-a11y-link-underline body .nav-menu a > span,
html.df-a11y-link-underline body .level-top,
html.df-a11y-link-underline body .level-top > span,
html.df-a11y-link-underline body li.nav-item a,
html.df-a11y-link-underline body li.nav-item a > span {
    text-decoration: underline !important;
    text-decoration-thickness: 1.5px !important;
    text-underline-offset: 0.14em !important;
}

html.df-a11y-title-underline body h1,
html.df-a11y-title-underline body h2,
html.df-a11y-title-underline body h3,
html.df-a11y-title-underline body h4,
html.df-a11y-title-underline body h5,
html.df-a11y-title-underline body h6 {
    text-decoration: underline !important;
    text-decoration-thickness: 1.5px !important;
    text-underline-offset: 0.15em !important;
}

html.df-a11y-no-animations *,
html.df-a11y-no-animations *:before,
html.df-a11y-no-animations *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
}

/* Apply color filters to page wrappers while keeping accessibility/chat widgets usable. */
html.df-a11y-filter-active body > :not(.df-a11y):not(#bilanciaChatbotIframe):not(.bilanciaChatbotIframe):not([id*="chat"]):not([class*="chat"]):not([id*="Chat"]):not([class*="Chat"]):not(script):not(style):not(noscript) {
    filter: var(--df-a11y-filter-stack, none) !important;
}

html.df-a11y-filter-active .df-a11y,
html.df-a11y-filter-active .df-a11y *,
html.df-a11y-filter-active #bilanciaChatbotIframe,
html.df-a11y-filter-active .bilanciaChatbotIframe,
html.df-a11y-filter-active [id*="chat"],
html.df-a11y-filter-active [class*="chat"],
html.df-a11y-filter-active [id*="Chat"],
html.df-a11y-filter-active [class*="Chat"] {
    filter: none !important;
}

html.df-a11y-cursor-white,
html.df-a11y-cursor-white * {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 32 32'%3E%3Cpath fill='white' stroke='black' stroke-width='2' d='M4 3v26l7-7 5 9 4-2-5-9h10L4 3z'/%3E%3C/svg%3E") 4 2, auto !important;
}

html.df-a11y-cursor-black,
html.df-a11y-cursor-black * {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 32 32'%3E%3Cpath fill='black' stroke='white' stroke-width='2' d='M4 3v26l7-7 5 9 4-2-5-9h10L4 3z'/%3E%3C/svg%3E") 4 2, auto !important;
}

@media (max-width: 767px) {
    .df-a11y {
        right: 26px !important;
        bottom: 90px !important;
    }

    .df-a11y__toggle {
        width: 50px;
        height: 50px;
    }

    .df-a11y__panel {
        right: 12px !important;
        bottom: 12px !important;
        width: auto !important;
        max-width: calc(100vw - 24px) !important;
        max-height: calc(100vh - 96px) !important;
        padding: 18px;
    }

    .df-a11y__header-actions {
        grid-template-columns: 1fr;
    }

    .df-a11y__stepper {
        align-items: flex-start;
        flex-direction: column;
    }
}
