/**
 * WC Product Bundles Pro - 3D Carousel
 * Radio button single selection with deselect capability, collapsible toggle, compact cards
 *
 * @version 1.4.3
 */

/* ===== COLOR VARIABLES (YITH GREEN THEME) ===== */
:root {
    --wc-bundle-primary: #5a8f7b;
    --wc-bundle-primary-hover: #6fa890;
    --wc-bundle-primary-dark: #4a7866;
    --wc-bundle-white: #ffffff;
    --wc-bundle-text-dark: #1a3c34;
    --wc-bundle-border: #E8E8E8;
    --wc-bundle-shadow: rgba(0, 0, 0, 0.1);
    --wc-bundle-shadow-hover: rgba(0, 0, 0, 0.15);
    --wc-bundle-radius: 12px;
    --wc-bundle-transition: 0.3s ease;
}

/* ===== BUNDLE CONTAINER ===== */
.wc-product-bundles {
    all: initial;
    margin: 1.5rem 0 !important;
    padding: 1.75rem !important;
    background: #ffffff !important;
    border: 1px solid #E8E8E8 !important;
    border-radius: var(--wc-bundle-radius) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06) !important;
    display: block;
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    z-index: 10;
    isolation: isolate;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Reset box-sizing after all: initial */
.wc-product-bundles,
.wc-product-bundles * {
    font-family: inherit;
    line-height: 1.5;
    box-sizing: border-box;
}

/* WooCommerce wrapper compatibility */
.woocommerce div.product .wc-product-bundles,
.woocommerce-page div.product .wc-product-bundles {
    all: initial;
    margin: 1.5rem 0 !important;
    padding: 1.75rem !important;
    background: #ffffff !important;
    border: 1px solid #E8E8E8 !important;
    border-radius: var(--wc-bundle-radius) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06) !important;
    display: block;
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Inner wrapper for proper spacing */
.wc-product-bundles .wc-bundle-inner {
    display: block;
    width: 100%;
}

/* ===== TOGGLE BUTTON ===== */
.wc-bundle-toggle-button {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    margin: 0 0 1rem 0 !important;
    padding: 0 0 0.75rem 0 !important;
    font-weight: 600 !important;
    font-size: 0.9375rem !important;
    color: #1a1a1a !important;
    text-align: left !important;
    letter-spacing: -0.02em !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid #F0F0F0 !important;
    border-radius: 0 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
    outline: none !important;
    position: relative !important;
    line-height: 1.4 !important;
}

.wc-bundle-toggle-button:hover {
    color: #000000 !important;
    border-bottom-color: #000000 !important;
}

.wc-bundle-toggle-button.open {
    border-bottom-color: var(--wc-bundle-primary) !important;
}

.wc-bundle-plus-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0 !important;
    font-weight: bold;
    color: var(--wc-bundle-primary);
    font-size: 18px;
    line-height: 1;
}

.wc-bundle-toggle-button.open .wc-bundle-plus-icon::before {
    content: '−';
}

.wc-bundle-toggle-button:not(.open) .wc-bundle-plus-icon::before {
    content: '+';
}

.wc-bundle-toggle-button:hover .wc-bundle-plus-icon {
    color: #000000;
}

/* ===== BUNDLE CONTENT (COLLAPSIBLE) ===== */
.wc-bundle-content {
    display: block;
    overflow: hidden;
}

/* ===== 3D CAROUSEL CONTAINER ===== */
.wc-bundle-options.wc-bundle-carousel {
    position: relative;
    padding: 30px 50px;
    margin: 0 auto;
    perspective: 1000px;
    perspective-origin: center center;
    min-height: 300px;
    overflow: hidden;
}

/* ===== CAROUSEL VIEWPORT ===== */
.wc-bundle-carousel .carousel-viewport {
    position: relative;
    width: 100%;
    height: 270px;
    transform-style: preserve-3d;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* ===== BUNDLE CARDS (SMALLER SIZE) ===== */
.wc-bundle-carousel .wc-bundle-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 180px;
    height: 260px;
    margin: 0;
    transform-origin: center center;
    transform-style: preserve-3d;
    transition: all 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    backface-visibility: hidden;
    border: none;
    box-sizing: border-box;
}

/* ===== PRODUCT IMAGE AS BACKGROUND ===== */
.wc-bundle-carousel .wc-bundle-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.wc-bundle-carousel .wc-bundle-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
}

.wc-bundle-carousel .wc-bundle-card:hover .wc-bundle-card-image img {
    transform: scale(1.05);
}

/* ===== RADIO BUTTON OVERLAY (TOP-RIGHT) ===== */
.wc-bundle-carousel .wc-bundle-option-radio {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 22px;
    height: 22px;
    z-index: 10;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: rgba(255, 255, 255, 0.96);
    border: 2px solid var(--wc-bundle-border);
    border-radius: 50%;
    margin: 0;
    padding: 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.wc-bundle-carousel .wc-bundle-option-radio:checked {
    background: var(--wc-bundle-primary);
    border-color: var(--wc-bundle-primary);
    border-width: 2px;
}

/* Checkmark tick icon when radio is checked */
.wc-bundle-carousel .wc-bundle-option-radio:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
}

.wc-bundle-carousel .wc-bundle-option-radio:hover {
    border-color: var(--wc-bundle-primary);
    box-shadow: 0 3px 12px rgba(90, 143, 123, 0.4);
}

/* ===== PRODUCT DETAILS (BOTTOM GRADIENT OVERLAY) ===== */
.wc-bundle-carousel .wc-bundle-card-details {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5;
    padding: 40px 12px 14px;
    background: linear-gradient(to top,
        rgba(0, 0, 0, 0.92) 0%,
        rgba(0, 0, 0, 0.8) 40%,
        rgba(0, 0, 0, 0.4) 70%,
        transparent 100%);
    color: var(--wc-bundle-white);
    text-align: center;
}

.wc-bundle-carousel .wc-bundle-card-title {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--wc-bundle-white);
    line-height: 1.35;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
    letter-spacing: 0.01em;
}

.wc-bundle-carousel .wc-bundle-variable-note {
    display: block;
    font-size: 9px;
    color: rgba(255, 255, 255, 0.75);
    font-weight: normal;
    margin-top: 2px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.wc-bundle-carousel .wc-bundle-card-price {
    font-size: 15px;
    font-weight: 800;
    color: #7dcea0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
    letter-spacing: 0.02em;
}

.wc-bundle-carousel .wc-bundle-card-price .amount {
    color: #7dcea0;
}

.wc-bundle-carousel .wc-bundle-card-price del {
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    margin-right: 4px;
}

.wc-bundle-carousel .wc-bundle-card-price ins {
    text-decoration: none;
}

/* ===== CARD POSITIONS (3D TRANSFORMS) ===== */

/* Hide all cards by default */
.wc-bundle-carousel .wc-bundle-card {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Center card - Position 0 */
.wc-bundle-carousel .wc-bundle-card[data-position="0"] {
    transform: translate(-50%, -50%) translateZ(0) scale(1);
    z-index: 10;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Right card - Position 1 */
.wc-bundle-carousel .wc-bundle-card[data-position="1"] {
    transform: translate(-50%, -50%) translateX(200px) translateZ(-150px) rotateY(-30deg) scale(0.8);
    z-index: 5;
    opacity: 0.6;
    visibility: visible;
    pointer-events: auto;
}

/* Left card - Position -1 */
.wc-bundle-carousel .wc-bundle-card[data-position="-1"] {
    transform: translate(-50%, -50%) translateX(-200px) translateZ(-150px) rotateY(30deg) scale(0.8);
    z-index: 5;
    opacity: 0.6;
    visibility: visible;
    pointer-events: auto;
}

/* Hide far cards - Position 2 and beyond */
.wc-bundle-carousel .wc-bundle-card[data-position="2"],
.wc-bundle-carousel .wc-bundle-card[data-position="-2"],
.wc-bundle-carousel .wc-bundle-card[data-position="3"],
.wc-bundle-carousel .wc-bundle-card[data-position="-3"] {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* ===== SELECTED STATE ===== */
.wc-bundle-carousel .wc-bundle-card.selected {
    box-shadow: 0 0 0 3px var(--wc-bundle-primary), 0 10px 35px rgba(90, 143, 123, 0.5);
}

.wc-bundle-carousel .wc-bundle-card.selected .wc-bundle-card-details {
    background: linear-gradient(to top,
        rgba(90, 143, 123, 0.95) 0%,
        rgba(90, 143, 123, 0.85) 35%,
        rgba(90, 143, 123, 0.4) 65%,
        transparent 100%);
}

/* ===== NAVIGATION BUTTONS ===== */
.wc-bundle-carousel .carousel-nav-prev,
.wc-bundle-carousel .carousel-nav-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--wc-bundle-primary);
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    color: var(--wc-bundle-primary);
    font-weight: bold;
    line-height: 1;
}

.wc-bundle-carousel .carousel-nav-prev {
    left: 5px;
}

.wc-bundle-carousel .carousel-nav-next {
    right: 5px;
}

.wc-bundle-carousel .carousel-nav-prev::before {
    content: '‹';
    font-size: 24px;
    line-height: 1;
    display: block;
    margin-top: -2px;
}

.wc-bundle-carousel .carousel-nav-next::before {
    content: '›';
    font-size: 24px;
    line-height: 1;
    display: block;
    margin-top: -2px;
}

.wc-bundle-carousel .carousel-nav-prev:hover,
.wc-bundle-carousel .carousel-nav-next:hover {
    background: var(--wc-bundle-primary);
    color: var(--wc-bundle-white);
    border-color: var(--wc-bundle-primary-dark);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(90, 143, 123, 0.4);
}

.wc-bundle-carousel .carousel-nav-prev:active,
.wc-bundle-carousel .carousel-nav-next:active {
    transform: translateY(-50%) scale(0.95);
}

/* ===== HOVER EFFECTS FOR SIDE CARDS ===== */
.wc-bundle-carousel .wc-bundle-card[data-position="1"]:hover,
.wc-bundle-carousel .wc-bundle-card[data-position="-1"]:hover {
    opacity: 0.85;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

/* ===== CART STYLING ===== */
.bundle-parent-item {
    border-top: 2px solid var(--wc-bundle-primary);
    padding-top: 15px !important;
}

.bundle-child-item {
    background-color: #f9f9f9;
}

.bundle-item-indicator {
    color: var(--wc-bundle-primary);
    font-weight: bold;
}

.woocommerce-cart-form .bundle-child-item td {
    padding-left: 30px;
}

.woocommerce-cart-form .bundle-parent-item .product-name:before {
    content: "📦 ";
    font-size: 14px;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablets (landscape) */
@media (max-width: 1024px) {
    .wc-bundle-options.wc-bundle-carousel {
        padding: 25px 45px;
        min-height: 280px;
    }

    .wc-bundle-carousel .carousel-viewport {
        height: 250px;
    }

    .wc-bundle-carousel .wc-bundle-card {
        width: 165px;
        height: 240px;
    }

    .wc-bundle-carousel .wc-bundle-card[data-position="1"] {
        transform: translate(-50%, -50%) translateX(160px) translateZ(-120px) rotateY(-25deg) scale(0.78);
    }

    .wc-bundle-carousel .wc-bundle-card[data-position="-1"] {
        transform: translate(-50%, -50%) translateX(-160px) translateZ(-120px) rotateY(25deg) scale(0.78);
    }
}

/* Tablets (portrait) */
@media (max-width: 768px) {
    .wc-product-bundles {
        padding: 1.5rem !important;
        margin: 1.25rem 0 !important;
    }

    .wc-bundle-toggle-button {
        font-size: 0.9rem !important;
    }

    .wc-bundle-options.wc-bundle-carousel {
        padding: 20px 45px;
        min-height: 220px;
        perspective: 800px;
    }

    .wc-bundle-carousel .carousel-viewport {
        height: 200px;
    }

    .wc-bundle-carousel .wc-bundle-card {
        width: 140px;
        height: 200px;
    }

    .wc-bundle-carousel .wc-bundle-card[data-position="1"] {
        transform: translate(-50%, -50%) translateX(130px) translateZ(-80px) rotateY(-20deg) scale(0.7);
    }

    .wc-bundle-carousel .wc-bundle-card[data-position="-1"] {
        transform: translate(-50%, -50%) translateX(-130px) translateZ(-80px) rotateY(20deg) scale(0.7);
    }

    .wc-bundle-carousel .carousel-nav-prev,
    .wc-bundle-carousel .carousel-nav-next {
        width: 38px;
        height: 38px;
        min-width: 38px;
        min-height: 38px;
    }

    .wc-bundle-carousel .carousel-nav-prev::before,
    .wc-bundle-carousel .carousel-nav-next::before {
        font-size: 22px;
    }

    .wc-bundle-carousel .wc-bundle-card-title {
        font-size: 11px;
    }

    .wc-bundle-carousel .wc-bundle-card-price {
        font-size: 13px;
    }

    .wc-bundle-carousel .wc-bundle-card-details {
        padding: 35px 10px 12px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .wc-product-bundles {
        padding: 1.25rem !important;
        margin: 1rem 0 !important;
        border-radius: 10px !important;
    }

    .wc-bundle-toggle-button {
        padding: 0 0 0.625rem 0 !important;
        font-size: 0.875rem !important;
        gap: 8px !important;
        /* Ensure minimum touch target */
        min-height: 44px;
    }

    .wc-bundle-plus-icon {
        width: 16px !important;
        height: 16px !important;
        font-size: 16px !important;
    }

    .wc-bundle-options.wc-bundle-carousel {
        padding: 15px 42px;
        min-height: 185px;
        perspective: 600px;
    }

    .wc-bundle-carousel .carousel-viewport {
        height: 170px;
    }

    .wc-bundle-carousel .wc-bundle-card {
        width: 115px;
        height: 165px;
        border-radius: 10px;
    }

    .wc-bundle-carousel .wc-bundle-card[data-position="1"] {
        transform: translate(-50%, -50%) translateX(100px) translateZ(-50px) rotateY(-15deg) scale(0.65);
        opacity: 0.5;
    }

    .wc-bundle-carousel .wc-bundle-card[data-position="-1"] {
        transform: translate(-50%, -50%) translateX(-100px) translateZ(-50px) rotateY(15deg) scale(0.65);
        opacity: 0.5;
    }

    .wc-bundle-carousel .carousel-nav-prev {
        left: 4px;
    }

    .wc-bundle-carousel .carousel-nav-next {
        right: 4px;
    }

    /* Ensure minimum 44px touch target for mobile */
    .wc-bundle-carousel .carousel-nav-prev,
    .wc-bundle-carousel .carousel-nav-next {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
        border-width: 1.5px;
    }

    .wc-bundle-carousel .carousel-nav-prev::before,
    .wc-bundle-carousel .carousel-nav-next::before {
        font-size: 20px;
    }

    .wc-bundle-carousel .wc-bundle-option-radio {
        width: 20px;
        height: 20px;
        top: 8px;
        right: 8px;
    }

    .wc-bundle-carousel .wc-bundle-option-radio:checked::after {
        font-size: 11px;
    }

    .wc-bundle-carousel .wc-bundle-card-details {
        padding: 28px 8px 10px;
    }

    .wc-bundle-carousel .wc-bundle-card-title {
        font-size: 11px;
        margin-bottom: 5px;
        line-height: 1.3;
    }

    .wc-bundle-carousel .wc-bundle-card-price {
        font-size: 12px;
    }

    .wc-bundle-carousel .wc-bundle-variable-note {
        font-size: 8px;
    }
}

/* Very small mobile */
@media (max-width: 480px) {
    .wc-product-bundles {
        padding: 1rem !important;
        margin: 0.875rem 0 !important;
        border-radius: 8px !important;
    }

    .wc-bundle-toggle-button {
        font-size: 0.8125rem !important;
        padding: 0 0 0.5rem 0 !important;
        gap: 6px !important;
    }

    .wc-bundle-plus-icon {
        width: 14px !important;
        height: 14px !important;
        font-size: 14px !important;
    }

    .wc-bundle-options.wc-bundle-carousel {
        padding: 12px 38px;
        min-height: 160px;
        perspective: 500px;
    }

    .wc-bundle-carousel .carousel-viewport {
        height: 145px;
    }

    .wc-bundle-carousel .wc-bundle-card {
        width: 100px;
        height: 145px;
        border-radius: 8px;
    }

    .wc-bundle-carousel .wc-bundle-card[data-position="1"] {
        transform: translate(-50%, -50%) translateX(85px) translateZ(-40px) rotateY(-12deg) scale(0.6);
        opacity: 0.4;
    }

    .wc-bundle-carousel .wc-bundle-card[data-position="-1"] {
        transform: translate(-50%, -50%) translateX(-85px) translateZ(-40px) rotateY(12deg) scale(0.6);
        opacity: 0.4;
    }

    .wc-bundle-carousel .carousel-nav-prev,
    .wc-bundle-carousel .carousel-nav-next {
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
        border-width: 1.5px;
    }

    .wc-bundle-carousel .carousel-nav-prev {
        left: 2px;
    }

    .wc-bundle-carousel .carousel-nav-next {
        right: 2px;
    }

    .wc-bundle-carousel .carousel-nav-prev::before,
    .wc-bundle-carousel .carousel-nav-next::before {
        font-size: 18px;
    }

    .wc-bundle-carousel .wc-bundle-option-radio {
        width: 18px;
        height: 18px;
        top: 6px;
        right: 6px;
    }

    .wc-bundle-carousel .wc-bundle-option-radio:checked::after {
        font-size: 10px;
    }

    .wc-bundle-carousel .wc-bundle-card-details {
        padding: 22px 6px 8px;
    }

    .wc-bundle-carousel .wc-bundle-card-title {
        font-size: 10px;
        margin-bottom: 4px;
        line-height: 1.25;
    }

    .wc-bundle-carousel .wc-bundle-card-price {
        font-size: 11px;
    }

    .wc-bundle-carousel .wc-bundle-variable-note {
        font-size: 7px;
    }
}

/* Extra small mobile (iPhone SE, etc) */
@media (max-width: 375px) {
    .wc-product-bundles {
        padding: 0.875rem !important;
        margin: 0.75rem 0 !important;
    }

    .wc-bundle-toggle-button {
        font-size: 0.75rem !important;
        gap: 6px !important;
    }

    .wc-bundle-plus-icon {
        width: 12px !important;
        height: 12px !important;
        font-size: 12px !important;
    }

    .wc-bundle-options.wc-bundle-carousel {
        padding: 10px 32px;
        min-height: 135px;
    }

    .wc-bundle-carousel .carousel-viewport {
        height: 120px;
    }

    .wc-bundle-carousel .wc-bundle-card {
        width: 88px;
        height: 128px;
        border-radius: 6px;
    }

    .wc-bundle-carousel .wc-bundle-card[data-position="1"] {
        transform: translate(-50%, -50%) translateX(72px) translateZ(-30px) rotateY(-10deg) scale(0.55);
        opacity: 0.35;
    }

    .wc-bundle-carousel .wc-bundle-card[data-position="-1"] {
        transform: translate(-50%, -50%) translateX(-72px) translateZ(-30px) rotateY(10deg) scale(0.55);
        opacity: 0.35;
    }

    .wc-bundle-carousel .carousel-nav-prev,
    .wc-bundle-carousel .carousel-nav-next {
        width: 30px;
        height: 30px;
        min-width: 30px;
        min-height: 30px;
    }

    .wc-bundle-carousel .carousel-nav-prev::before,
    .wc-bundle-carousel .carousel-nav-next::before {
        font-size: 16px;
    }

    .wc-bundle-carousel .wc-bundle-option-radio {
        width: 16px;
        height: 16px;
        top: 5px;
        right: 5px;
    }

    .wc-bundle-carousel .wc-bundle-option-radio:checked::after {
        font-size: 9px;
    }

    .wc-bundle-carousel .wc-bundle-card-details {
        padding: 18px 5px 6px;
    }

    .wc-bundle-carousel .wc-bundle-card-title {
        font-size: 9px;
        margin-bottom: 3px;
    }

    .wc-bundle-carousel .wc-bundle-card-price {
        font-size: 10px;
    }

    .wc-bundle-carousel .wc-bundle-variable-note {
        display: none;
    }
}

/* ===== ACCESSIBILITY ===== */
.wc-bundle-carousel .wc-bundle-card:focus-within {
    outline: 3px solid var(--wc-bundle-primary);
    outline-offset: 2px;
}

.wc-bundle-carousel .carousel-nav-prev:focus,
.wc-bundle-carousel .carousel-nav-next:focus {
    outline: 3px solid var(--wc-bundle-primary);
    outline-offset: 2px;
}

.wc-bundle-toggle-button:focus {
    outline: 2px solid var(--wc-bundle-primary);
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .wc-bundle-carousel .wc-bundle-card,
    .wc-bundle-carousel .carousel-viewport,
    .wc-bundle-carousel .carousel-nav-prev,
    .wc-bundle-carousel .carousel-nav-next,
    .wc-bundle-content {
        transition-duration: 0.01ms !important;
    }
}

/* ===== TOUCH DEVICE ENHANCEMENTS ===== */
@media (hover: none) and (pointer: coarse) {
    /* Increase touch targets on touch devices */
    .wc-bundle-carousel .carousel-nav-prev,
    .wc-bundle-carousel .carousel-nav-next {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }

    .wc-bundle-carousel .wc-bundle-option-radio {
        width: 24px;
        height: 24px;
    }

    /* Remove hover effects on touch - use active instead */
    .wc-bundle-carousel .carousel-nav-prev:hover,
    .wc-bundle-carousel .carousel-nav-next:hover {
        transform: translateY(-50%);
        background: rgba(255, 255, 255, 0.95);
        color: var(--wc-bundle-primary);
    }

    .wc-bundle-carousel .carousel-nav-prev:active,
    .wc-bundle-carousel .carousel-nav-next:active {
        background: var(--wc-bundle-primary);
        color: var(--wc-bundle-white);
        transform: translateY(-50%) scale(0.95);
    }

    /* Card tap feedback */
    .wc-bundle-carousel .wc-bundle-card:active {
        transform: translate(-50%, -50%) scale(0.98);
    }

    .wc-bundle-carousel .wc-bundle-card[data-position="0"]:active {
        transform: translate(-50%, -50%) translateZ(0) scale(0.98);
    }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
    .wc-product-bundles {
        border-width: 2px !important;
        border-color: #000 !important;
    }

    .wc-bundle-carousel .wc-bundle-card {
        border: 2px solid #000;
    }

    .wc-bundle-carousel .wc-bundle-card.selected {
        box-shadow: 0 0 0 4px var(--wc-bundle-primary);
    }

    .wc-bundle-toggle-button {
        border-bottom-width: 3px !important;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .wc-product-bundles {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }

    .wc-bundle-carousel .carousel-nav-prev,
    .wc-bundle-carousel .carousel-nav-next {
        display: none !important;
    }
}
