﻿
/* ==========================================================
   KITCHIN WITCHIN, LLC
   ACCESSIBILITY DRAWER
   Complete stylesheet — cart remove button correction
========================================================== */

:root {
    --kw-a11y-purple: #94227C;
    --kw-a11y-yellow: #EFE40A;
    --kw-a11y-body-yellow: #FAFACF;
    --kw-a11y-link-blue: #007BFF;
    --kw-a11y-selected-pink: #E89AD7;
    --kw-a11y-white: #FFFFFF;
    --kw-a11y-black: #000000;
    --kw-a11y-gray: #666666;
    --kw-a11y-divider: #D4D4C4;
    --kw-a11y-remove-red: #DC3545;
    --kw-a11y-button-shadow:
        0 2px 3px 2px rgba(0, 0, 0, .3);
}

/* ==========================================================
   ACCESSIBILITY TOOL CONTAINER
========================================================== */

.kw-a11y-tools {
    position: fixed;
    left: 0;
    bottom: 16px;
    z-index: 1040;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.4;
}

.kw-a11y-tools *,
.kw-a11y-tools *::before,
.kw-a11y-tools *::after {
    box-sizing: border-box;
}

/* ==========================================================
   LAUNCHER BUTTONS
========================================================== */

.kw-a11y-launchers {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-left: 16px;
}

.kw-a11y-launcher {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;
    padding: 0;

    border: 0;
    border-radius: 50%;

    background: var(--kw-a11y-purple);
    color: var(--kw-a11y-white);

    box-shadow: var(--kw-a11y-button-shadow);

    font-size: 23px;
    line-height: 1;
    cursor: pointer;

    transition:
        background-color .2s ease,
        color .2s ease;
}

.kw-a11y-launcher i {
    line-height: 1;
}

/* Accessibility button — inactive */

#kw-a11y-open {
    background: var(--kw-a11y-purple);
    color: var(--kw-a11y-white);
    opacity: 1;
}

/* Accessibility button — drawer open */

#kw-a11y-open[aria-expanded="true"] {
    background: var(--kw-a11y-selected-pink);
    color: var(--kw-a11y-purple);
}

/* Music button — disabled / muted */

#kw-music-open,
.kw-music-launcher {
    background: var(--kw-a11y-purple);
    color: var(--kw-a11y-white);
    opacity: .55;
}

#kw-music-open:disabled,
.kw-music-launcher:disabled {
    cursor: not-allowed;
    opacity: .55;
}

/* ==========================================================
   LEFT-EDGE DRAWER
========================================================== */

.kw-a11y-panel {
    position: fixed;
    left: 0;
    bottom: 145px;

    display: flex;
    flex-direction: column;

    width: 400px;
    max-width: calc(100vw - 12px);
    max-height: calc(100vh - 160px);
    max-height: calc(100dvh - 160px);

    margin: 0;

    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;

    background: var(--kw-a11y-body-yellow);
    color: var(--kw-a11y-black);

    border: 1px solid var(--kw-a11y-purple);
    border-left: 0;
    border-radius: 0 12px 12px 0;

    box-shadow: none;

    opacity: 0;
    visibility: hidden;
    transform: translateX(-100%);
    pointer-events: none;

    transition:
        transform .3s ease,
        opacity .3s ease,
        visibility 0s linear .3s;
}

.kw-a11y-panel.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;

    transition:
        transform .3s ease,
        opacity .3s ease,
        visibility 0s;
}

/* ==========================================================
   DRAWER HEADER
========================================================== */

.kw-a11y-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    padding: 14px 16px;
    margin: 0;

    background: var(--kw-a11y-purple);
    color: var(--kw-a11y-white);

    border: 0;
    border-radius: 0 11px 0 0;

    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, .3),
        0 0 6px rgba(255, 255, 255, .25);
}

.kw-a11y-header h2 {
    display: flex;
    align-items: center;
    gap: 10px;

    margin: 0;
    padding: 0;

    color: var(--kw-a11y-white);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

.kw-a11y-header h2 i {
    font-size: 22px;
}

.kw-a11y-close {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 34px;

    width: 34px;
    height: 34px;
    padding: 0;

    border: 0;
    border-radius: 4px;

    background: transparent;
    color: var(--kw-a11y-white);

    font-size: 24px;
    cursor: pointer;
}

.kw-a11y-close:hover,
.kw-a11y-close:focus-visible {
    background: rgba(255, 255, 255, .15);
    color: var(--kw-a11y-white);
}

/* ==========================================================
   DRAWER BODY
========================================================== */

.kw-a11y-body {
    padding: 18px 20px 20px;
    background: var(--kw-a11y-body-yellow);
    color: var(--kw-a11y-black);
}

.kw-a11y-section {
    padding: 16px 0;
    border-bottom: 1px solid var(--kw-a11y-divider);
}

.kw-a11y-section:first-child {
    padding-top: 0;
}

.kw-a11y-section:last-of-type {
    margin-bottom: 20px;
}

.kw-a11y-label {
    display: flex;
    align-items: center;
    gap: 10px;

    color: var(--kw-a11y-black);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

.kw-a11y-label i {
    width: 22px;
    text-align: center;
    font-size: 20px;
}

/* ==========================================================
   TEXT SIZE CONTROLS
========================================================== */

.kw-a11y-size-buttons {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.kw-a11y-size-buttons button {
    flex: 1;
    min-width: 0;

    height: 48px;
    padding: 8px;

    border: 2px solid var(--kw-a11y-link-blue);
    border-radius: 6px;

    background: var(--kw-a11y-white);
    color: var(--kw-a11y-link-blue);

    font-family: Arial, Helvetica, sans-serif;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
}

.kw-a11y-size-buttons button[aria-pressed="true"] {
    background: var(--kw-a11y-link-blue);
    border-color: var(--kw-a11y-link-blue);
    color: var(--kw-a11y-white);
}

.kw-a11y-size-buttons button:hover:not([aria-pressed="true"]) {
    background: #EAF3FF;
}

/* ==========================================================
   SETTING ROWS
========================================================== */

.kw-a11y-setting {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* ==========================================================
   TOGGLE SWITCHES
========================================================== */

.kw-a11y-toggle {
    position: relative;
    flex: 0 0 72px;

    width: 72px;
    height: 42px;
    padding: 0;

    border: 2px solid var(--kw-a11y-gray);
    border-radius: 24px;

    background: var(--kw-a11y-gray);
    cursor: pointer;

    transition:
        background-color .2s ease,
        border-color .2s ease;
}

.kw-a11y-toggle-thumb {
    position: absolute;
    top: 4px;
    left: 4px;

    width: 30px;
    height: 30px;

    border-radius: 50%;
    background: var(--kw-a11y-white);

    transition: transform .2s ease;
}

.kw-a11y-toggle[aria-checked="true"] {
    background: var(--kw-a11y-link-blue);
    border-color: var(--kw-a11y-link-blue);
}

.kw-a11y-toggle[aria-checked="true"]
.kw-a11y-toggle-thumb {
    transform: translateX(30px);
}

/* ==========================================================
   RESET TO DEFAULT
========================================================== */

.kw-a11y-reset {
    display: block;
    width: 100%;
    min-height: 52px;
    padding: 12px 16px;

    border: 2px solid var(--kw-a11y-link-blue);
    border-radius: 6px;

    background: var(--kw-a11y-link-blue);
    color: var(--kw-a11y-white);

    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
}

.kw-a11y-reset:hover {
    background: #0056B3;
    border-color: #0056B3;
    color: var(--kw-a11y-white);
}

/* ==========================================================
   KEYBOARD FOCUS
========================================================== */

.kw-a11y-tools button:focus-visible {
    outline: 3px solid var(--kw-a11y-link-blue);
    outline-offset: 3px;
}

/* ==========================================================
   TEXT SIZE PREFERENCES
========================================================== */

html.kw-font-small {
    font-size: 87.5%;
}

html.kw-font-normal {
    font-size: 100%;
}

html.kw-font-large {
    font-size: 125%;
}

/* ==========================================================
   BOLD TEXT PREFERENCE
========================================================== */

html.kw-bold-text body {
    font-weight: 700;
}

html.kw-bold-text body p,
html.kw-bold-text body li,
html.kw-bold-text body span,
html.kw-bold-text body label,
html.kw-bold-text body td,
html.kw-bold-text body th,
html.kw-bold-text body a,
html.kw-bold-text body button {
    font-weight: 700;
}

/* ==========================================================
   HIGH CONTRAST — GENERAL SITE
========================================================== */

html.kw-high-contrast body {
    background-color: #000 !important;
    color: #fff !important;
}

html.kw-high-contrast body main,
html.kw-high-contrast body section:not(.kw-a11y-panel),
html.kw-high-contrast body article {
    background-color: #000 !important;
    color: #fff !important;
}

html.kw-high-contrast body h1,
html.kw-high-contrast body h2,
html.kw-high-contrast body h3,
html.kw-high-contrast body h4,
html.kw-high-contrast body h5,
html.kw-high-contrast body h6,
html.kw-high-contrast body p {
    color: #fff !important;
}

html.kw-high-contrast body a {
    color: var(--kw-a11y-yellow) !important;
}

html.kw-high-contrast body button:not(
    .kw-a11y-launcher,
    .kw-a11y-close,
    .kw-a11y-toggle,
    .kw-a11y-reset,
    .remove-from-cart
),
html.kw-high-contrast body input[type="button"],
html.kw-high-contrast body input[type="submit"] {
    background: #000 !important;
    color: #fff !important;
    border-color: var(--kw-a11y-yellow) !important;
}

html.kw-high-contrast body input:not([type="hidden"]),
html.kw-high-contrast body select,
html.kw-high-contrast body textarea {
    background: #000 !important;
    color: #fff !important;
    border-color: #fff !important;
}

/* ==========================================================
   HIGH CONTRAST — DRAWER
========================================================== */

html.kw-high-contrast .kw-a11y-panel,
html.kw-high-contrast .kw-a11y-body {
    background: #fff !important;
    color: #000 !important;
}

html.kw-high-contrast .kw-a11y-header {
    background: var(--kw-a11y-purple) !important;
    color: #fff !important;
}

html.kw-high-contrast .kw-a11y-header h2,
html.kw-high-contrast .kw-a11y-header h2 span,
html.kw-high-contrast .kw-a11y-header h2 i {
    color: #fff !important;
}

html.kw-high-contrast .kw-a11y-label,
html.kw-high-contrast .kw-a11y-label span,
html.kw-high-contrast .kw-a11y-label i {
    color: #000 !important;
}

html.kw-high-contrast .kw-a11y-size-buttons button {
    background: #fff !important;
    color: #000 !important;
    border: 2px solid #000 !important;
}

html.kw-high-contrast
.kw-a11y-size-buttons button[aria-pressed="true"] {
    background: #000 !important;
    color: #fff !important;
}

html.kw-high-contrast .kw-a11y-toggle {
    background: #666 !important;
    border-color: #000 !important;
}

html.kw-high-contrast
.kw-a11y-toggle[aria-checked="true"] {
    background: var(--kw-a11y-purple) !important;
}

html.kw-high-contrast .kw-a11y-close {
    background: transparent !important;
    color: #fff !important;
}

html.kw-high-contrast .kw-a11y-reset {
    background: #000 !important;
    color: #fff !important;
    border-color: #000 !important;
}

/* ==========================================================
   HIGH CONTRAST — SHOPPING CART
========================================================== */

/* Cart container */

html.kw-high-contrast .cart_wrapper {
    color: #000 !important;
    border-color: var(--kw-a11y-purple) !important;
}

/* Purple header */

html.kw-high-contrast .cart_wrapper .cart_header {
    background: var(--kw-a11y-purple) !important;
    color: #fff !important;
}

html.kw-high-contrast .cart_wrapper .cart_header,
html.kw-high-contrast .cart_wrapper .cart_header * {
    color: #fff !important;
}

/* Cart body */

html.kw-high-contrast .cart_wrapper .cart_body,
html.kw-high-contrast .cart_wrapper .cart_items {
    background: var(--kw-a11y-body-yellow) !important;
    color: #000 !important;
}

/* Cart table */

html.kw-high-contrast .cart_wrapper #cartTable,
html.kw-high-contrast .cart_wrapper #cartTable thead,
html.kw-high-contrast .cart_wrapper #cartTable tbody,
html.kw-high-contrast .cart_wrapper #cartTable tfoot,
html.kw-high-contrast .cart_wrapper #cartTable tr,
html.kw-high-contrast .cart_wrapper #cartTable th,
html.kw-high-contrast .cart_wrapper #cartTable td {
    background-color: var(--kw-a11y-body-yellow) !important;
    color: #000 !important;
}

/* Product text */

html.kw-high-contrast .cart_wrapper #cartTable th,
html.kw-high-contrast .cart_wrapper #cartTable td,
html.kw-high-contrast .cart_wrapper #cartTable td span,
html.kw-high-contrast .cart_wrapper #cartTable td strong,
html.kw-high-contrast .cart_wrapper .cart-item,
html.kw-high-contrast .cart_wrapper .item-subtotal {
    color: #000 !important;
}

/* Table separators */

html.kw-high-contrast .cart_wrapper #cartTable th,
html.kw-high-contrast .cart_wrapper #cartTable td {
    border-color: #777 !important;
}

/* Cart footer */

html.kw-high-contrast .cart_wrapper .cart_footer {
    background: var(--kw-a11y-body-yellow) !important;
    color: #000 !important;
}

html.kw-high-contrast .cart_wrapper .cart_footer,
html.kw-high-contrast .cart_wrapper .cart_footer
    :not(button):not(button *) {
    color: #000 !important;
}

/* Total */

html.kw-high-contrast .cart_wrapper .cart_total,
html.kw-high-contrast .cart_wrapper .cart_total strong,
html.kw-high-contrast .cart_wrapper #cart-total {
    background: transparent !important;
    color: #000 !important;
}

/* Quantity input */

html.kw-high-contrast .cart_wrapper
input.cart-quantity {
    background: #fff !important;
    color: #000 !important;
    border: 2px solid #000 !important;
    opacity: 1 !important;
}

/* Quantity help */

html.kw-high-contrast .cart_wrapper
button.quantity-help {
    background: transparent !important;
    color: #0056B3 !important;
    border: 0 !important;
}

html.kw-high-contrast .cart_wrapper
button.quantity-help .fa {
    color: #0056B3 !important;
}

/* ==========================================================
   REMOVE PRODUCT — PRESERVE ORIGINAL RED X

   Transparent background, no black square.
   Red icon remains visible on pale yellow.
========================================================== */

html.kw-high-contrast .cart_wrapper
button.remove-from-cart,
html.kw-high-contrast .cart_wrapper
.remove-from-cart {
    background: transparent !important;
    background-color: transparent !important;
    color: var(--kw-a11y-remove-red) !important;
    border: 0 !important;
    box-shadow: none !important;
    opacity: 1 !important;
}

html.kw-high-contrast .cart_wrapper
.remove-from-cart *,
html.kw-high-contrast .cart_wrapper
.remove-from-cart .fa,
html.kw-high-contrast .cart_wrapper
.remove-from-cart i,
html.kw-high-contrast .cart_wrapper
.remove-from-cart span {
    color: var(--kw-a11y-remove-red) !important;
}

html.kw-high-contrast .cart_wrapper
.remove-from-cart:hover,
html.kw-high-contrast .cart_wrapper
.remove-from-cart:focus-visible {
    background: transparent !important;
    color: #B02A37 !important;
}

html.kw-high-contrast .cart_wrapper
.remove-from-cart:hover *,
html.kw-high-contrast .cart_wrapper
.remove-from-cart:focus-visible * {
    color: #B02A37 !important;
}

/* ==========================================================
   CLEAR CART
========================================================== */

html.kw-high-contrast .cart_wrapper
#clear-cart {
    background: #000 !important;
    color: #fff !important;
    border: 2px solid var(--kw-a11y-yellow) !important;
}

html.kw-high-contrast .cart_wrapper
#clear-cart * {
    color: #fff !important;
}

/* ==========================================================
   CHECKOUT BUTTONS
========================================================== */

html.kw-high-contrast .cart_wrapper
#checkoutButton,
html.kw-high-contrast .cart_wrapper
button.btn_buynow {
    background: #000 !important;
    color: #fff !important;
    border: 2px solid var(--kw-a11y-yellow) !important;
}

html.kw-high-contrast .cart_wrapper
button.btn_buynow * {
    color: #fff !important;
}

/* ==========================================================
   PAYMENT INFORMATION
========================================================== */

html.kw-high-contrast .cart_wrapper
.cards_wrapper {
    background: var(--kw-a11y-body-yellow) !important;
    color: #000 !important;
}

html.kw-high-contrast .cart_wrapper
.cards_wrapper small,
html.kw-high-contrast .cart_wrapper
.cards_wrapper span {
    color: #000 !important;
}

html.kw-high-contrast .cart_wrapper
.cards_wrapper img {
    filter: none !important;
    opacity: 1 !important;
}

/* ==========================================================
   CHECKOUT FORM
========================================================== */

html.kw-high-contrast .cart_wrapper
#checkoutPanel,
html.kw-high-contrast .cart_wrapper
.checkout_panel,
html.kw-high-contrast .cart_wrapper
.checkout_customer_info {
    background: var(--kw-a11y-body-yellow) !important;
    color: #000 !important;
}

html.kw-high-contrast .cart_wrapper
.checkout_customer_info label,
html.kw-high-contrast .cart_wrapper
.checkout_customer_info p,
html.kw-high-contrast .cart_wrapper
.checkout_customer_info span {
    color: #000 !important;
}

html.kw-high-contrast .cart_wrapper
.checkout_customer_info input:not([type="hidden"]),
html.kw-high-contrast .cart_wrapper
.checkout_customer_info select,
html.kw-high-contrast .cart_wrapper
.checkout_customer_info textarea {
    background: #fff !important;
    color: #000 !important;
    border: 1px solid #000 !important;
}

html.kw-high-contrast .cart_wrapper
.checkout_customer_info input::placeholder {
    color: #555 !important;
    opacity: 1;
}

html.kw-high-contrast .cart_wrapper
#termsAccepted {
    accent-color: #000;
}

html.kw-high-contrast .cart_wrapper
.checkout_customer_info a {
    color: #0056B3 !important;
    text-decoration: underline;
}

html.kw-high-contrast .cart_wrapper
#squareLoading,
html.kw-high-contrast .cart_wrapper
#squareLoading * {
    color: #000 !important;
}

/* ==========================================================
   CART KEYBOARD FOCUS
========================================================== */

html.kw-high-contrast .cart_wrapper
button:focus-visible,
html.kw-high-contrast .cart_wrapper
input:focus-visible,
html.kw-high-contrast .cart_wrapper
select:focus-visible {
    outline: 3px solid #0056B3 !important;
    outline-offset: 2px;
}

/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 575.98px) {

    .kw-a11y-tools {
        left: 0;
        bottom: 10px;
    }

    .kw-a11y-launchers {
        margin-left: 10px;
    }

    .kw-a11y-launcher {
        width: 44px;
        height: 44px;
        font-size: 21px;
    }

    .kw-a11y-panel {
        left: 0;
        bottom: 120px;

        width: 320px;
        max-width: calc(100vw - 12px);
        max-height: calc(100vh - 135px);
        max-height: calc(100dvh - 135px);
    }

    .kw-a11y-header {
        padding: 12px 14px;
    }

    .kw-a11y-header h2 {
        font-size: 20px;
    }

    .kw-a11y-body {
        padding: 16px;
    }

    .kw-a11y-label {
        font-size: 16px;
    }

    .kw-a11y-size-buttons {
        gap: 8px;
    }

    .kw-a11y-size-buttons button {
        height: 44px;
        font-size: 18px;
    }

    .kw-a11y-toggle {
        flex-basis: 64px;
        width: 64px;
        height: 38px;
    }

    .kw-a11y-toggle-thumb {
        width: 26px;
        height: 26px;
    }

    .kw-a11y-toggle[aria-checked="true"]
    .kw-a11y-toggle-thumb {
        transform: translateX(26px);
    }

    .kw-a11y-reset {
        min-height: 48px;
        font-size: 16px;
    }
}

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

@media (prefers-reduced-motion: reduce) {

    .kw-a11y-panel,
    .kw-a11y-launcher,
    .kw-a11y-toggle,
    .kw-a11y-toggle-thumb {
        transition: none !important;
    }
}