/**
 * HBE Pump Comparison Styles
 * Styles for the breast pump comparison feature
 */

/* Floating Orb Styles */
.hbe-comparison-orb {
    position: fixed;
    bottom: 50%;
    right: 20px;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg,
            color-mix(in srgb, var(--hbe-purple, #564fa5) 80%, white),
            color-mix(in srgb, var(--hbe-purple, #564fa5) 90%, black));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(86, 79, 165, 0.25),
        0 4px 12px rgba(86, 79, 165, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transform: translateY(-50%);
}

.hbe-comparison-orb::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transform: translateX(-100%);
    transition: all 0.4s ease;
    pointer-events: none;
}

.hbe-comparison-orb:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 12px 32px rgba(86, 79, 165, 0.35),
        0 6px 16px rgba(86, 79, 165, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.hbe-comparison-orb:hover::before {
    opacity: 1;
    transform: translateX(100%);
}

/* Touch optimizations for floating orb */
@media (hover: none) and (pointer: coarse) {
    .hbe-comparison-orb {
        width: 68px;
        height: 68px;
        right: 15px;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    .hbe-comparison-orb:hover {
        transform: translateY(-50%) scale(1);
    }

    .hbe-comparison-orb:active {
        transform: translateY(-50%) scale(0.95);
        transition: transform 0.1s ease;
    }

    .hbe-orb-tooltip {
        display: none;
    }
}

.hbe-comparison-orb.hbe-orb-ready {
    animation: pulse 2s infinite;
}

.hbe-orb-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.hbe-orb-icon {
    width: 24px;
    height: 24px;
    color: white;
    pointer-events: none;
}

.hbe-orb-icon path {
    pointer-events: none;
}

.hbe-orb-count {
    position: absolute;
    top: -8px;
    right: -8px;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transform: translateZ(1px);
}

.hbe-orb-tooltip {
    position: absolute;
    right: 75px;
    top: 60%;
    transform: translateY(-50%) translateX(10px);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    backdrop-filter: blur(8px);
}

.hbe-comparison-orb:hover .hbe-orb-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* Mobile: Auto-show tooltip until first interaction */
.hbe-comparison-orb.show-tooltip-mobile .hbe-orb-tooltip {
    opacity: 1 !important;
    transform: translateY(-50%) translateX(0) !important;
    animation: gentle-bounce 2s ease-in-out infinite;
}

.hbe-orb-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: rgba(0, 0, 0, 0.8);
}

/* Gentle bounce animation for tooltips */
@keyframes gentle-bounce {
    0%, 100% {
        transform: translateY(-50%) translateX(0);
    }
    50% {
        transform: translateY(-50%) translateX(-4px);
    }
}

/* Maximum pumps reached message */
.hbe-comparison-max-message {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    margin: 20px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    color: #495057;
    font-size: 14px;
    line-height: 1.5;
}

.hbe-comparison-max-message svg {
    flex-shrink: 0;
    color: #6c757d;
}

.hbe-comparison-max-message span {
    flex: 1;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 8px 24px rgba(86, 79, 165, 0.25),
            0 4px 12px rgba(86, 79, 165, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }

    50% {
        box-shadow: 0 12px 36px rgba(86, 79, 165, 0.4),
            0 6px 20px rgba(86, 79, 165, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
}

/* Override shake animation to preserve vertical centering */
@keyframes shake {
    0%, 100% {
        transform: translateY(-50%) translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateY(-50%) translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateY(-50%) translateX(5px);
    }
}

/* Button Text Selection and Drag Prevention */
.select-pump,
.remove-pump,
.button,
.et_pb_button,
[data-compare-toggle],
[data-compare-select],
[data-compare-remove],
[data-modal-add-pump],
.hbe-comparison-add-toggle,
.hbe-comparison-remove-x {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-drag: none;
    -moz-user-drag: none;
    user-drag: none;
}

/* Notification Styles */
.hbe-notification {
    position: fixed;
    top: 80px;
    right: 20px;
    padding: 12px 16px;
    border-radius: 12px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    z-index: 10001;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 300px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Position notifications above orb when orb is present */
.hbe-notification--near-orb {
    bottom: calc(50% + 200px);
    right: 20px;
    top: auto;
}

.hbe-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.hbe-notification--success {
    border-left: 3px solid var(--hbe-green, #15c39a);
}

.hbe-notification--success::before {
    content: '✓';
    color: var(--hbe-green, #15c39a);
    font-weight: bold;
    font-size: 16px;
}

.hbe-notification--warning {
    border-left: 3px solid #ffa502;
}

.hbe-notification--warning::before {
    content: '⚠';
    color: #ffa502;
    font-size: 16px;
}

.hbe-notification--info {
    border-left: 3px solid var(--brand-purple, #635ea7);
}

.hbe-notification--info::before {
    content: 'ⓘ';
    color: var(--brand-purple, #635ea7);
    font-size: 16px;
}

/* Comparison Modal Styles */
.hbe-comparison-modal {
    border: none;
    border-radius: 16px;
    padding: 0;
    margin: auto;
    max-width: 90vw;
    max-height: 90vh;
    width: 1000px;
    background: white;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15),
        0 8px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

/* Fallback styles for non-native dialog support */
.hbe-comparison-modal[open] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
}

.hbe-comparison-modal[open] .hbe-comparison-modal-content {
    position: relative;
    z-index: 1001;
}

.hbe-comparison-modal::backdrop {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hbe-comparison-modal.hbe-comparison-modal-show {
    opacity: 1;
    transform: scale(1) translateY(0);
    height: 95dvh;
}

.hbe-comparison-modal.hbe-comparison-modal-show::backdrop {
    opacity: 1;
}

.hbe-comparison-modal-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    max-height: 90vh;
    background: white;
    border-radius: 16px;
    overflow: hidden;
}

.hbe-comparison-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px 16px;
    border-bottom: 1px solid #e0e0e0;
    background: linear-gradient(135deg,
            rgba(86, 79, 165, 0.02),
            rgba(86, 79, 165, 0.05));
}

.hbe-comparison-modal-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--hbe-purple, #564fa5);
    background: linear-gradient(135deg,
            var(--hbe-purple, #564fa5),
            color-mix(in srgb, var(--hbe-purple, #564fa5) 80%, #8b5cf6));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hbe-comparison-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
    color: #666;
}

.hbe-comparison-modal-close:hover {
    background: rgba(86, 79, 165, 0.1);
    color: var(--hbe-purple, #564fa5);
    transform: scale(1.1);
}

.hbe-comparison-modal-close span {
    pointer-events: none;
}

.hbe-comparison-modal-body {
    flex: 1;
    padding: 24px 32px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(86, 79, 165, 0.3) transparent;
}

.hbe-comparison-modal-body::-webkit-scrollbar {
    width: 8px;
}

.hbe-comparison-modal-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.hbe-comparison-modal-body::-webkit-scrollbar-thumb {
    background: rgba(86, 79, 165, 0.3);
    border-radius: 4px;
    transition: background 0.2s ease;
}

.hbe-comparison-modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(86, 79, 165, 0.5);
}

.hbe-comparison-modal-footer {
    display: flex;
    gap: 12px;
    padding: 16px 32px 24px;
    border-top: 1px solid #e0e0e0;
    background: rgba(248, 249, 250, 0.8);
    backdrop-filter: blur(10px);
}

.hbe-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hbe-btn-secondary {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

.hbe-btn-secondary:hover {
    background: #e9ecef;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hbe-btn-outline {
    background: white;
    color: var(--hbe-purple, #564fa5);
    border: 1px solid var(--hbe-purple, #564fa5);
}

.hbe-btn-outline:hover {
    background: var(--hbe-purple, #564fa5);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(86, 79, 165, 0.25);
}

/* Comparison table improvements */
.hbe-comparison-table-container {
    background: white;
    border-radius: 12px;
    border: 1px solid #ddd;
    overflow: hidden;
    margin-bottom: 20px;
    max-height: 700px;
    overflow-y: auto;

    /* Style the scrollbar for better appearance */
    &::-webkit-scrollbar {
        width: 8px;
    }

    &::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

    &::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 4px;

        &:hover {
            background: #555;
        }
    }
}

.hbe-comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.hbe-comparison-table th,
.hbe-comparison-table td {
    padding: 16px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

/* Zebra striping for table rows */
.hbe-comparison-table tr:nth-child(even) {
    background: rgba(86, 79, 165, 0.02);
}

.hbe-comparison-table th {
    background: rgba(86, 79, 165, 0.02);
    font-weight: 600;
}

.hbe-comparison-pump h4 {
    margin: 8px 0 12px;
    font-size: 16px;
    color: #333;
}

.hbe-comparison-price {
    text-align: center;
}

.hbe-comparison-msrp {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 4px;
}

.hbe-comparison-current-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--hbe-green, #15c39a);
    line-height: 1.2;
}

.hbe-comparison-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 8px;
    pointer-events: none;
}

.hbe-comparison-pump {
    position: relative;
}

/* Animation classes for new pump additions */
.hbe-pump-entering {
    animation: hbe-pump-enter 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes hbe-pump-enter {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.hbe-comparison-remove-x {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: #666;
    border-radius: 50%;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.hbe-comparison-pump:hover .hbe-comparison-remove-x {
    opacity: 1;
    transform: scale(1);
}

.hbe-comparison-remove-x:hover {
    background: #dc3545;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.hbe-comparison-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.3s ease;
}

.hbe-comparison-pump:hover .hbe-comparison-actions {
    opacity: 1;
    transform: translateY(0);
}

.hbe-comparison-select {
    background: color-mix(in srgb, var(--brand-purple, #635ea7) 25%, white);
    color: var(--brand-purple, #635ea7);
    border: 1px solid color-mix(in srgb, var(--brand-purple, #635ea7) 30%, transparent);
    padding: 12px 24px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--brand-purple, #635ea7) 15%, transparent);
}

.hbe-comparison-select:hover {
    background: var(--brand-purple, #635ea7);
    color: white;
    border-color: var(--brand-purple, #635ea7);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px color-mix(in srgb, var(--brand-purple, #635ea7) 25%, transparent);
}

/* Modal Pump Selection Styles */
.hbe-comparison-add-section {
    border-top: 1px solid #e0e0e0;
    margin-top: 20px;
    padding-top: 20px;
}

.hbe-comparison-add-section h4 {
    margin: 0 0 15px 0;
    color: var(--hbe-purple, #564fa5);
    font-size: 16px;
    font-weight: 600;
}

.hbe-comparison-add-header {
    margin-bottom: 12px;
}

.hbe-comparison-add-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 600;
    color: var(--hbe-purple, #564fa5);
    width: 100%;
    text-align: left;
    justify-content: space-between;
}

.hbe-comparison-add-toggle:hover {
    border-color: var(--hbe-purple, #564fa5);
    background: rgba(86, 79, 165, 0.02);
}

.hbe-comparison-add-toggle .hbe-add-icon {
    color: var(--hbe-purple, #564fa5);
}

.hbe-comparison-add-toggle .hbe-chevron-icon {
    transition: transform 0.3s ease;
    color: #666;
}

.hbe-comparison-carousel-container {
    position: relative;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.hbe-comparison-carousel-container.show {
    max-height: 240px;
    padding-top: 8px;
}

.hbe-comparison-add-pumps {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px 4px 4px;
    margin: 0 -4px;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(86, 79, 165, 0.3) transparent;
}

.hbe-comparison-add-pumps::-webkit-scrollbar {
    height: 6px;
}

.hbe-comparison-add-pumps::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.hbe-comparison-add-pumps::-webkit-scrollbar-thumb {
    background: rgba(86, 79, 165, 0.3);
    border-radius: 3px;
    transition: background 0.2s ease;
}

.hbe-comparison-add-pumps::-webkit-scrollbar-thumb:hover {
    background: rgba(86, 79, 165, 0.5);
}

.hbe-comparison-add-pump {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 140px;
    min-width: 120px;
    max-width: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-shrink: 0;
}

.hbe-comparison-add-pump:hover {
    border-color: var(--hbe-purple, #564fa5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(86, 79, 165, 0.15);
}

.hbe-comparison-add-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin: 0 auto 8px;
    border-radius: 4px;
    pointer-events: none;
}

.hbe-comparison-add-name {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    line-height: 1.2;
    text-overflow: ellipsis;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    pointer-events: none;
}

.hbe-comparison-add-price {
    font-size: 11px;
    color: var(--hbe-purple, #564fa5);
    font-weight: 600;
    pointer-events: none;
}

.hbe-comparison-scroll-hint {
    font-size: 12px;
    color: #666;
    font-style: italic;
    text-align: center;
    margin-top: 12px;
    padding-bottom: 8px;
    animation: fadeInOut 3s ease-in-out infinite;
}

@keyframes fadeInOut {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

/* Mobile vs Desktop Views */
.hbe-comparison-mobile-view {
    display: none;
}

.hbe-comparison-desktop-view {
    display: block;
}

/* Mobile Accordion Styles */
.hbe-comparison-mobile-accordion {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hbe-comparison-mobile-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.hbe-comparison-mobile-header {
    display: flex;
    align-items: center;
    padding: 16px;
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s ease;
}

.hbe-comparison-mobile-header:hover {
    background: rgba(86, 79, 165, 0.02);
}

.hbe-comparison-mobile-item .hbe-comparison-remove-x {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    z-index: 10;
}

.hbe-comparison-mobile-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    margin-right: 16px;
    flex-shrink: 0;
}

.hbe-comparison-mobile-info {
    flex: 1;
    min-width: 0;
}

.hbe-comparison-mobile-info h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.hbe-comparison-mobile-price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hbe-comparison-mobile-price .hbe-comparison-msrp {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 2px;
}

.hbe-comparison-mobile-price .hbe-comparison-current-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--hbe-green, #15c39a);
}

.hbe-comparison-mobile-chevron {
    margin-left: 12px;
    color: #666;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.hbe-comparison-mobile-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(248, 249, 250, 0.8);
}

.hbe-comparison-mobile-item.active .hbe-comparison-mobile-content {
    max-height: 400px;
    padding: 16px;
}

.hbe-comparison-mobile-details {
    margin-bottom: 16px;
}

.hbe-comparison-mobile-features {
    max-height: 300px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px 0;
}

.hbe-comparison-mobile-features p {
    margin: 0;
    color: #666;
    font-size: 14px;
    font-style: italic;
    text-align: center;
    padding: 12px 0;
}

.hbe-comparison-mobile-actions {
    display: flex;
    justify-content: center;
}

.hbe-comparison-mobile-actions .hbe-comparison-select {
    width: 100%;
    max-width: 200px;
}

/* Mobile modal adjustments */
@media (max-width: 768px) {
    .hbe-comparison-mobile-view {
        display: block;
    }

    .hbe-comparison-desktop-view {
        display: none;
    }

    .hbe-comparison-modal {
        max-width: 95vw;
        max-height: 95vh;
        border-radius: 12px;
        margin: 2.5vh auto;
    }

    .hbe-comparison-modal-header {
        padding: 20px 16px 12px;
    }

    .hbe-comparison-modal-header h3 {
        font-size: 20px;
    }

    .hbe-comparison-modal-body {
        padding: 16px;
    }

    .hbe-comparison-modal-footer {
        padding: 12px 16px 20px;
        flex-direction: column;
    }

    .hbe-comparison-table th,
    .hbe-comparison-table td {
        padding: 12px 8px;
    }

    .hbe-comparison-image {
        width: 60px;
        height: 60px;
    }

    .hbe-comparison-pump h4 {
        font-size: 14px;
    }

    .hbe-comparison-current-price {
        font-size: 16px;
    }

    .hbe-comparison-msrp {
        font-size: 11px;
    }

    .hbe-comparison-add-toggle {
        padding: 10px 12px;
        font-size: 13px;
    }

    .hbe-comparison-add-pump {
        padding: 8px;
        min-height: 120px;
        min-width: 100px;
        max-width: 100px;
    }

    .hbe-comparison-add-image {
        width: 50px;
        height: 50px;
    }

    .hbe-comparison-add-name {
        font-size: 11px;
    }

    .hbe-comparison-add-price {
        font-size: 10px;
    }

    .hbe-comparison-add-pumps {
        gap: 8px;
    }

    .hbe-comparison-scroll-hint {
        font-size: 11px;
    }

    .hbe-comparison-carousel-container.show {
        max-height: 200px;
    }

    /* Always show actions on mobile */
    .hbe-comparison-actions {
        opacity: 1;
        transform: translateY(0);
    }

    .hbe-comparison-remove-x {
        opacity: 1;
        transform: scale(1);
    }
}

/* Touch scrolling optimization */
@media (hover: none) and (pointer: coarse) {
    .hbe-comparison-add-pumps {
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
    }

    .hbe-comparison-add-pump {
        scroll-snap-align: start;
    }

    /* Always show actions on touch devices */
    .hbe-comparison-actions {
        opacity: 1;
        transform: translateY(0);
    }

    .hbe-comparison-remove-x {
        opacity: 1;
        transform: scale(1);
    }
}

/* Prevent body scroll when modal is open */
body.hbe-comparison-modal-open {
    overflow: hidden;
}
