/**
 * Aero Product Comparison Tool Styles
 * Gorgeous Apple-esque design with #009CDE brand color
 */

/* Body lock when modal is open */
body.aero-comparison-active {
    overflow: hidden;
}

.aero-comparison-seo-data {
    display: none !important;
    content-visibility: hidden;
    contain-intrinsic-size: 0;
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

/* Result Count Wrapper */
.woocommerce-result-count {
    display: inline-block;
}

/* Compare Products Trigger Button */
.aero-compare-products-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 20px;
    padding: 10px 18px;
    background-color: #009CDE !important;
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 23px;
    font-size: 14px;
    font-weight: 700;
    transition: border-radius 0.4s linear, background-color 1s ease;
    -webkit-transition: border-radius 0.4s linear, background-color 1s ease;
    -moz-transition: border-radius 0.4s linear, background-color 1s ease;
    -o-transition: border-radius 0.4s linear, background-color 1s ease;
    box-shadow: 0 2px 8px rgba(0, 156, 222, 0.2);
    vertical-align: middle;
    -webkit-appearance: none;
}

.aero-compare-products-trigger:hover {
    background-color: #008bcd !important;
    border-radius: 23px 23px 23px 0;
    color: #ffffff !important;
    text-decoration: none;
}

.aero-compare-products-trigger svg {
    width: 18px;
    height: 18px;
    stroke: currentColor !important;
    fill: none !important;
}

.aero-compare-products-trigger .aero-arrow-right,
.aero-compare-products-trigger .aero-arrow-left {
    will-change: transform;
    transform-origin: center;
    transform-box: fill-box;
}

.aero-compare-products-trigger:hover .aero-arrow-right {
    animation: aero-wobble-right 0.95s cubic-bezier(.445, .05, .55, .95) infinite alternate;
}

.aero-compare-products-trigger:hover .aero-arrow-left {
    animation: aero-wobble-left 0.95s cubic-bezier(.445, .05, .55, .95) infinite alternate;
}

@keyframes aero-wobble-right {
    0%   { transform: translateX(0); }
    100% { transform: translateX(1.2px); }
}

@keyframes aero-wobble-left {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-1.2px); }
}

.woocommerce .woocommerce-result-count .aero-compare-products-page-link {
    margin-left: 12px;
}

.single-product .aero-compare-products-single {
    margin-left: 0;
    margin-top: 12px;
}

.single-product .aero-compare-products-single.aero-compare-products-trigger {
    padding-top: 9px;
    padding-bottom: 9px;
    line-height: 1.2;
    min-height: 0;
}

/* Single-product compare button — full styled like site buttons */
.aero-compare-single-product-link.aero-compare-products-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 0;
    margin-top: 12px;
    padding: 10px 18px;
    background-color: #009CDE !important;
    color: #ffffff !important;
    text-decoration: none !important;
    border: none !important;
    border-radius: 23px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    cursor: pointer;
    transition: border-radius 0.4s linear, background-color 1s ease;
    -webkit-transition: border-radius 0.4s linear, background-color 1s ease;
    box-shadow: 0 2px 8px rgba(0, 156, 222, 0.2);
    -webkit-appearance: none;
}

.aero-compare-single-product-link.aero-compare-products-trigger:hover {
    background-color: #008bcd !important;
    border-radius: 23px 23px 23px 0;
    color: #ffffff !important;
    text-decoration: none !important;
}

.woocommerce .woocommerce-result-count {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    float: none !important;
}

.woocommerce .woocommerce-result-count .aero-compare-products-page-link {
    margin-left: auto !important;
}

/* Modal Structure */
.aero-comparison-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
}

.aero-comparison-modal.active {
    display: flex;
}

.aero-comparison-inline {
    max-width: 1280px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
    box-sizing: border-box;
    overflow: visible;
}

/* Full-width mode: expand to full viewport */
.aero-comparison-inline[data-full-width="yes"] {
    max-width: none;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: var(--aero-full-width-gutter, 2vw);
    padding-right: var(--aero-full-width-gutter, 2vw);
}

.aero-comparison-inline .aero-comparison-container {
    width: 100%;
    max-width: none;
    max-height: none;
    box-shadow: none;
    animation: none;
    border-radius: 0;
}

.aero-comparison-inline .aero-comparison-content {
    flex: 0 0 auto;
    overflow: visible;
}

.aero-comparison-inline .aero-comparison-table-wrapper {
    height: auto;
    max-height: none;
    min-height: 0;
    overflow: visible;
}

.aero-comparison-inline .aero-comparison-header {
    padding: 18px 20px;
}

.aero-comparison-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(2px);
}

.aero-comparison-container {
    position: relative;
    width: min(1280px, calc(100vw - (var(--aero-modal-min-gutter, 2vw) * 2)));
    max-width: 1280px;
    max-height: 90vh;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    animation: slideUp 0.22s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
.aero-comparison-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid #e5e5e5;
}

.aero-comparison-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #1d1d1f;
}

.aero-comparison-close {
    width: 40px;
    height: 40px;
    border: none;
    background: #f5f5f7;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    color: #6e6e73;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aero-comparison-close:hover {
    background: #e8e8ed;
    color: #1d1d1f;
}

/* Content Area */
.aero-comparison-content {
    flex: 1;
    overflow: hidden;
    padding: 0;
}

.aero-comparison-inline .aero-comparison-content {
    position: relative;
    overflow: visible;
    padding-top: 56px;
}

.aero-comparison-inline[data-carousel-mode="carousel"] .aero-comparison-content {
    padding-top: 0;
}

.aero-comparison-inline .aero-comparison-floating-actions {
    position: absolute;
    top: 8px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    z-index: 120;
}

.aero-comparison-inline .aero-add-column-floating-btn {
    position: static;
    width: 48px;
    height: 48px;
    border: 2px dashed #009CDE;
    background: #ffffff;
    border-radius: 50%;
    color: #009CDE;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 120;
}

.aero-comparison-inline .aero-add-column-floating-btn:hover {
    background: #009CDE;
    color: #ffffff;
    border-style: solid;
}

.aero-comparison-inline .aero-add-column-cell,
.aero-comparison-inline .aero-add-column-spacer {
    display: none !important;
}

.aero-comparison-inline .aero-print-pdf-floating-btn {
    margin-top: 0;
    white-space: nowrap;
    min-height: 40px;
    padding: 10px 14px;
    background: #ffffff;
}

.aero-comparison-table-wrapper {
    width: 100%;
    height: 100%;
    overflow: auto;
    position: relative;
}

/* =========================================================
 * Scroll Fade Overlays – peek gradient at overflow edges
 * ========================================================= */
.aero-comparison-content {
    position: relative;
}

/* Right-side scroll fade overlay (on content, positioned to cover table wrapper only) */
.aero-scroll-fade-right {
    position: absolute;
    top: var(--fade-top, 0px);
    bottom: 0;
    right: 0;
    width: 60px;
    pointer-events: none;
    z-index: 30;
    opacity: 0;
    transition: opacity 0.35s ease;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
}

.aero-comparison-content.has-overflow-right .aero-scroll-fade-right {
    opacity: 1;
}

.aero-horizontal-scroll-controller {
    display: none;
    align-items: center;
    gap: 8px;
    margin: 8px 10px;
    padding: 6px 10px;
    border: 1px solid #d9e7f2;
    border-radius: 999px;
    background: #f8fbff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.aero-horizontal-scroll-controller.is-active {
    display: flex;
}

.aero-horizontal-scroll-controller.top.is-active:not(.aero-carousel-nav) {
    display: grid;
}
.aero-horizontal-scroll-controller.bottom {
    display: none !important;
}
.aero-horizontal-scroll-controller.top {
    grid-template-columns: 1fr minmax(280px, 860px) auto;
    align-items: center;
    column-gap: 12px;
}
.aero-horizontal-scroll-controller .aero-hscroll-main {
    grid-column: 2;
    min-width: 0;
}

.aero-horizontal-scroll-controller:not(.aero-carousel-nav) .aero-hscroll-main {
    display: flex;
    align-items: center;
    gap: 8px;
}
.aero-horizontal-scroll-controller .aero-hscroll-actions {
    grid-column: 3;
    justify-self: end;
    display: none;
    align-items: center;
    gap: 8px;
}
.aero-horizontal-scroll-controller .aero-hscroll-actions.is-active {
    display: inline-flex;
}
.aero-horizontal-scroll-controller .aero-hscroll-actions .aero-print-pdf-btn,
.aero-horizontal-scroll-controller .aero-hscroll-actions .aero-add-column-btn {
    margin: 0;
    min-height: 22px;
    height: 22px;
}
.aero-horizontal-scroll-controller .aero-hscroll-actions .aero-print-pdf-btn {
    border-radius: 999px;
    padding: 0 10px;
    font-size: 11px;
    line-height: 1;
}
.aero-horizontal-scroll-controller .aero-hscroll-actions .aero-add-column-btn {
    width: 22px;
    border-width: 1px;
    border-style: solid;
}
.aero-horizontal-scroll-controller .aero-hscroll-actions .aero-add-column-btn svg {
    width: 14px;
    height: 14px;
}
.aero-compact-top-actions .aero-add-column-cell .aero-print-pdf-btn,
.aero-compact-top-actions .aero-add-column-cell .aero-add-column-btn,
.aero-compact-top-actions .aero-comparison-floating-actions {
    display: none !important;
}

/* In carousel mode, hide the in-table buttons since carousel nav has its own */
[data-carousel-mode="carousel"] .aero-add-column-cell .aero-print-pdf-btn,
[data-carousel-mode="carousel"] .aero-add-column-cell .aero-add-column-btn {
    display: none !important;
}

/* In carousel mode, hide the floating actions since carousel nav has its own */
[data-carousel-mode="carousel"] .aero-comparison-floating-actions,
[data-carousel-mode="carousel"] .aero-comparison-content .aero-comparison-floating-actions,
.aero-comparison-inline[data-carousel-mode="carousel"] .aero-comparison-floating-actions {
    display: none !important;
}

.aero-horizontal-scroll-controller.top {
    margin-bottom: 10px;
}

.aero-horizontal-scroll-controller.bottom {
    margin-top: 10px;
}

.aero-hscroll-arrow {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border: 1px solid #cfe4f4;
    border-radius: 999px;
    background: #ffffff;
    color: #007ab7;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.aero-hscroll-arrow:hover {
    background: #009CDE;
    color: #ffffff;
    border-color: #009CDE;
}

.aero-hscroll-arrow:disabled {
    opacity: 0.45;
    cursor: default;
    background: #f3f6f9;
    color: #8aa9bf;
    border-color: #d8e6f0;
}

.aero-hscroll-track {
    flex: 1 1 auto;
    overflow-x: auto;
    overflow-y: hidden;
    height: 12px;
    border-radius: 999px;
    background: #eaf3fa;
}

.aero-hscroll-track-inner {
    height: 1px;
}

.aero-hscroll-track::-webkit-scrollbar {
    height: 12px;
}

.aero-hscroll-track::-webkit-scrollbar-track {
    background: #eaf3fa;
    border-radius: 999px;
}

.aero-hscroll-track::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #18aee7 0%, #009CDE 100%);
    border-radius: 999px;
    border: 2px solid #eaf3fa;
}

.aero-hscroll-track::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #11a4dd 0%, #008bc8 100%);
}

.aero-hscroll-track {
    scrollbar-color: #009CDE #eaf3fa;
    scrollbar-width: thin;
}

/* Custom Scrollbar */
.aero-comparison-table-wrapper::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

.aero-comparison-table-wrapper::-webkit-scrollbar-track {
    background: #f5f5f7;
    border-radius: 10px;
}

.aero-comparison-table-wrapper::-webkit-scrollbar-thumb {
    background: #d2d2d7;
    border-radius: 10px;
}

.aero-comparison-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #a1a1a6;
}

/* Table */
.aero-comparison-table {
    width: auto;
    border-collapse: collapse;
    border-spacing: 0;
    table-layout: auto;
    margin: 0 auto;
}

.aero-comparison-table thead tr {
    background: #f5f5f7;
}

.aero-comparison-table th,
.aero-comparison-table td {
    padding: 16px;
    text-align: left;
    border: 1px solid #d2d2d7;
    vertical-align: top;
}

.aero-comparison-modal .aero-comparison-table th,
.aero-comparison-modal .aero-comparison-table td {
    border-color: #ececf1;
}

/* First Column and Header Row (sticky behavior toggled via data attributes) */
.sticky-col {
    z-index: 10;
    background: #ffffff;
}

.aero-comparison-table thead .sticky-col {
    background: #f5f5f7;
    z-index: 20;
}

.aero-comparison-products-row {
    z-index: 15;
}

.aero-comparison-products-row .sticky-col {
    z-index: 25;
}

/* Key Header Cell */
.aero-comparison-key-header {
    white-space: normal;
    background: #f5f5f7 !important;
    border-top-left-radius: 0;
}

/* Product Cell */
.aero-comparison-product-cell {
    min-width: 250px;
    background: #f5f5f7;
    position: relative;
    overflow: visible;
}

/* Prevent search dropdown from widening the column */
.aero-comparison-product-cell .aero-product-selector {
    min-width: 0;
    max-width: 100%;
}

.aero-comparison-product-cell .aero-searchable-select {
    min-width: 0;
    max-width: 100%;
}

.aero-comparison-product-cell .aero-searchable-panel {
    min-width: 280px;
}

.aero-comparison-product-cell.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #009CDE;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Product Selector */
.aero-product-selector {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
}

.aero-selector-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    padding-right: 56px;
}

.aero-selector-controls .aero-product-dropdown {
    flex: 1 1 auto;
}

.aero-product-dropdown {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #d2d2d7;
    border-radius: 12px;
    font-size: 14px;
    color: #1d1d1f;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%236e6e73' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.aero-product-dropdown:hover {
    border-color: #009CDE;
}

.aero-product-dropdown:focus {
    outline: none;
    border-color: #009CDE;
    box-shadow: 0 0 0 4px rgba(0, 156, 222, 0.1);
}

.aero-native-select-hidden {
    display: none !important;
}

.aero-searchable-select {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.aero-searchable-toggle {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    border: 2px solid #d2d2d7;
    border-radius: 12px;
    font-size: 14px;
    color: #1d1d1f;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.aero-searchable-input {
    display: none;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    border: 0;
    background: transparent;
    font-size: 14px;
    color: #1d1d1f;
    padding: 0;
    margin: 0;
}

.aero-searchable-input::placeholder {
    color: #9aa3af;
}

.aero-searchable-select.is-open .aero-searchable-toggle-label {
    display: none;
}

.aero-searchable-select.is-open .aero-searchable-input {
    display: block;
}

.aero-searchable-toggle:hover,
.aero-searchable-select.is-open .aero-searchable-toggle {
    border-color: #009CDE;
}

.aero-searchable-select.is-open .aero-searchable-toggle {
    box-shadow: 0 0 0 4px rgba(0, 156, 222, 0.1);
}

/* Magnifier icon — hidden on desktop (label is shown), visible on mobile */
.aero-searchable-toggle-icon {
    display: none;
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    color: #6e6e73;
}

.aero-searchable-toggle-label {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.aero-searchable-toggle-caret {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 7px solid #6e6e73;
    flex: 0 0 auto;
}

.aero-searchable-panel {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    background: #ffffff;
    border: 1px solid #dbe2ea;
    border-radius: 12px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.14);
    z-index: 60;
    padding: 8px;
    box-sizing: border-box;
}

.aero-searchable-select.is-open .aero-searchable-panel {
    display: block;
}

/* Shield product selector search from global theme input[type="text"] overrides */
.aero-comparison-inline .aero-searchable-input,
.aero-comparison-modal .aero-searchable-input,
.aero-comparison-inline .aero-searchable-input[type="text"],
.aero-comparison-modal .aero-searchable-input[type="text"],
.aero-comparison-inline .aero-searchable-input[type="search"],
.aero-comparison-modal .aero-searchable-input[type="search"] {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    display: none;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #1d1d1f !important;
    font: inherit !important;
    font-size: 14px !important;
    line-height: 1.3 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    text-decoration: none !important;
    transition: none !important;
}

.aero-comparison-inline .aero-searchable-select.is-open .aero-searchable-input,
.aero-comparison-modal .aero-searchable-select.is-open .aero-searchable-input {
    display: block !important;
}

.aero-comparison-inline .aero-searchable-input:hover,
.aero-comparison-inline .aero-searchable-input:focus,
.aero-comparison-modal .aero-searchable-input:hover,
.aero-comparison-modal .aero-searchable-input:focus {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}

.aero-comparison-inline .aero-searchable-input::placeholder,
.aero-comparison-modal .aero-searchable-input::placeholder {
    color: #9aa3af !important;
    opacity: 1 !important;
    padding-left: 0 !important;
}

/* Shield product selector search from global theme input[type="text"] overrides */
.aero-comparison-inline .aero-searchable-input,
.aero-comparison-modal .aero-searchable-input,
.aero-comparison-inline .aero-searchable-input[type="text"],
.aero-comparison-modal .aero-searchable-input[type="text"],
.aero-comparison-inline .aero-searchable-input[type="search"],
.aero-comparison-modal .aero-searchable-input[type="search"] {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    display: none;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #1d1d1f !important;
    font: inherit !important;
    font-size: 14px !important;
    line-height: 1.3 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    text-decoration: none !important;
    transition: none !important;
}

.aero-comparison-inline .aero-searchable-select.is-open .aero-searchable-input,
.aero-comparison-modal .aero-searchable-select.is-open .aero-searchable-input {
    display: block !important;
}

.aero-comparison-inline .aero-searchable-input:hover,
.aero-comparison-inline .aero-searchable-input:focus,
.aero-comparison-modal .aero-searchable-input:hover,
.aero-comparison-modal .aero-searchable-input:focus {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}

.aero-comparison-inline .aero-searchable-input::placeholder,
.aero-comparison-modal .aero-searchable-input::placeholder {
    color: #9aa3af !important;
    opacity: 1 !important;
    padding-left: 0 !important;
}

.aero-searchable-input:focus {
    outline: none;
}

.aero-searchable-options {
    max-height: 260px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.aero-searchable-section-header {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #64748b;
    padding: 6px 10px 2px;
}

.aero-searchable-async-status {
    font-size: 12px;
    color: #64748b;
    padding: 6px 10px;
}

.aero-searchable-no-results {
    font-size: 12px;
    color: #64748b;
    padding: 6px 10px;
}

.aero-searchable-async-status-dots::after {
    content: '...';
    display: inline-block;
    width: 0;
    overflow: hidden;
    vertical-align: bottom;
    animation: aero-searching-dots 1s steps(4, end) infinite;
}

@keyframes aero-searching-dots {
    to {
        width: 1.4em;
    }
}

.aero-searchable-option {
    width: 100%;
    border: 0;
    background: transparent;
    border-radius: 8px;
    padding: 8px 10px;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.aero-searchable-option-main {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.aero-searchable-option-thumb {
    width: 18px;
    height: 18px;
    object-fit: cover;
    border-radius: 3px;
    flex: 0 0 18px;
    background: #f3f4f6;
}

.aero-searchable-option-thumb-placeholder {
    display: inline-block;
}

.aero-searchable-option:hover,
.aero-searchable-option.is-selected {
    background: #f1f7fb;
}

.aero-searchable-option-label {
    font-size: 13px;
    color: #0f172a;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.aero-searchable-option-sku {
    font-size: 12px;
    color: #64748b;
}

/* Product Display */
.aero-product-display {
    text-align: center;
    position: relative;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.aero-product-image-wrap {
    position: relative;
    display: inline-flex;
    align-self: center;
}

.aero-product-image-link {
    display: inline-block;
}

.aero-product-image {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 16px;
    margin-bottom: 12px;
    background: #ffffff;
}

.aero-product-title {
    font-size: 16px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.aero-product-title-link {
    color: inherit;
    text-decoration: none;
}

.aero-product-title-link:hover {
    text-decoration: underline;
}

.aero-product-review-stars {
    text-align: center;
    margin: 0 0 6px 0;
    min-height: 0;
    line-height: 1;
}

.aero-product-review-stars:empty {
    display: none;
}

.aero-stars-row {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 0;
}

.aero-star-icon {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.aero-review-count {
    font-size: 12px;
    font-weight: 400;
    color: #86868b;
    margin-left: 4px;
    vertical-align: middle;
    line-height: 14px;
}

.aero-product-cta-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 10px;
}

.aero-product-cta-actions .button {
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 14px;
    line-height: 1.2;
    padding: 8px 16px;
    min-height: 0;
    border-radius: 999px;
}

.aero-open-new-tab-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: 1px solid #d2d2d7;
    background: #ffffff;
    color: #4b5563;
    text-decoration: none;
    flex: 0 0 auto;
}

.aero-open-new-tab-link svg {
    width: 13px;
    height: 13px;
    display: block;
}

.aero-open-new-tab-link:hover {
    border-color: #009CDE;
    color: #009CDE;
}

.aero-product-cta-actions .add-request-quote-button.is-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.9;
    color: transparent !important;
}

.aero-product-cta-actions .add-request-quote-button.is-loading::before {
    content: none !important;
    display: none !important;
}

.aero-product-cta-actions .add-request-quote-button.is-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 14px;
    margin: -7px 0 0 -7px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.65);
    border-top-color: #ffffff;
    animation: spin 0.7s linear infinite;
}

.aero-product-cta-actions .add-request-quote-button.is-loading .spinner,
.aero-product-cta-actions .add-request-quote-button.is-loading .ajax-loading,
.aero-product-cta-actions .add-request-quote-button.is-loading + .spinner,
.aero-product-cta-actions .add-request-quote-button.is-loading + .ajax-loading {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.aero-product-cta-actions .add-request-quote-button.is-in-quote {
    background-color: #009cde;
}

.aero-remove-column-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 32px;
    height: 32px;
    border: 1.5px dashed #c7ccd2;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 50%;
    color: #8e8e93;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.aero-remove-column-btn:hover {
    border-color: #ff3b30;
    color: #ff3b30;
    background: rgba(255, 59, 48, 0.06);
}

/* Add Column Cell */
.aero-add-column-cell {
    width: 80px;
    min-width: 80px;
    background: #f5f5f7;
    text-align: center;
    border-left: none;
    white-space: nowrap;
}

.aero-add-column-cell .aero-print-pdf-btn,
.aero-add-column-cell .aero-add-column-btn {
    vertical-align: middle;
}

.aero-add-column-cell .aero-print-pdf-btn {
    margin-right: 8px;
}

@media (max-width: 1200px) and (min-width: 769px) {
    .aero-add-column-cell {
        width: 132px;
        min-width: 132px;
    }

    .aero-add-column-cell .aero-print-pdf-btn {
        font-size: 12px;
        padding: 7px 10px;
        margin-right: 6px;
    }

    .aero-add-column-cell .aero-add-column-btn {
        width: 34px;
        height: 34px;
    }
}

.aero-add-column-btn {
    width: 48px;
    height: 48px;
    border: 2px dashed #009CDE;
    background: transparent;
    border-radius: 50%;
    color: #009CDE;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.aero-add-column-btn:hover {
    background: #009CDE;
    border-style: solid;
    color: #ffffff;
    transform: rotate(90deg);
}

.aero-add-column-spacer {
    width: 80px;
    min-width: 80px;
    border-left: none;
    background: transparent;
    border-top: 1px solid #d2d2d7;
}

/* Heading Row */
.aero-comparison-heading-row {
    background: #f4f7fb !important;
}

.aero-comparison-heading-cell {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    padding: 12px 16px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border: 1px solid #e7ebf0;
}

/* Data Rows */
.aero-comparison-data-row.even {
    background: #f5f5f7;
}

.aero-comparison-data-row.odd {
    background: #ffffff;
}

.aero-comparison-data-row:hover {
    background: #e8f4fb;
}

.aero-comparison-inline .aero-comparison-table thead tr,
.aero-comparison-inline .aero-comparison-products-row,
.aero-comparison-inline .aero-comparison-product-cell,
.aero-comparison-inline .aero-add-column-cell,
.aero-comparison-inline .aero-add-column-spacer {
    background: transparent;
}

.aero-comparison-inline .aero-comparison-table th,
.aero-comparison-inline .aero-comparison-table td {
    border: none;
}

.aero-comparison-inline .aero-comparison-heading-row {
    background: transparent !important;
}

.aero-comparison-inline .aero-comparison-heading-cell {
    border: none;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    background: transparent;
    color: #111827;
    padding-left: 0;
}

.aero-comparison-inline .aero-comparison-data-row td {
    border-bottom: 1px solid #eceff3;
}

.aero-comparison-inline .aero-comparison-data-row:hover {
    background: transparent;
}

.aero-comparison-inline .sticky-col {
    background: #ffffff;
}

.aero-comparison-inline .aero-product-dropdown {
    border: none;
    border-bottom: 2px solid #e5e7eb;
    border-radius: 0;
    padding-left: 0;
    background-color: transparent;
}

/* Key Cell */
.aero-comparison-key-cell {
    font-size: 15px;
    font-weight: 600;
    color: #1d1d1f;
    background: inherit !important;
    white-space: normal;
    border-right: 0 !important;
}

.aero-comparison-value-cell {
    border-left: 0 !important;
}

/* Value Cell */
.aero-comparison-value-cell {
    font-size: 14px;
    color: #6e6e73;
    line-height: 1.6;
}

.aero-comparison-data-row .aero-comparison-key-cell {
    padding-right: 12px !important;
    padding-left: 22px !important;
}

.aero-comparison-key-label,
.aero-comparison-key-text {
    display: block;
}

.aero-comparison-data-row .aero-comparison-value-cell[data-column="1"] {
    padding-left: 0 !important;
}

/* Empty State */
.aero-no-products {
    text-align: center;
    padding: 60px 20px !important;
    font-size: 18px;
    color: #86868b;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .aero-comparison-container {
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .aero-comparison-header h2 {
        font-size: 22px;
    }
    
    .aero-comparison-key-header,
    .aero-comparison-key-cell {
        white-space: normal;
    }
    
    .aero-comparison-product-cell {
        min-width: 160px;
    }
    
    .aero-comparison-table th,
    .aero-comparison-table td {
        padding: 12px;
    }
    
    .aero-compare-products-trigger {
        font-size: 12px;
        padding: 6px 12px;
        margin-left: 10px;
    }

    .aero-comparison-inline {
        padding: 0;
    }

    .aero-comparison-inline .aero-comparison-container {
        border-radius: 0;
    }

    .aero-comparison-above-table {
        margin-bottom: 16px;
    }

    .aero-comparison-above-text {
        font-size: 14px;
    }

    /* =========================================================
     * MOBILE: Inline Comparison — One-product-per-swipe layout
     * ========================================================= */

    /* Scroll-snap: one product column per swipe */
    .aero-comparison-inline .aero-comparison-table-wrapper {
        scroll-snap-type: x mandatory;
        scroll-padding-left: 140px;         /* base offset; JS adjusts per viewport */
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;              /* Firefox */
        touch-action: pan-x pan-y;
    }

    .aero-comparison-inline .aero-comparison-table-wrapper::-webkit-scrollbar {
        display: none;                      /* Chrome/Safari */
    }

    .aero-comparison-inline .aero-comparison-product-cell,
    .aero-comparison-inline .aero-comparison-value-cell {
        scroll-snap-align: start;
    }

    /* Key (spec label) column on mobile — base fallback; JS overrides with
       computed widths per-viewport via #id rules. */
    .aero-comparison-inline .aero-comparison-key-header,
    .aero-comparison-inline .aero-comparison-key-cell,
    .aero-comparison-inline .aero-comparison-heading-cell.sticky-col {
        width: 140px;
        min-width: 120px;
        max-width: none;
    }

    /* Key cell text: tighter on mobile */
    .aero-comparison-inline .aero-comparison-key-label {
        font-size: 12px;
        line-height: 1.3;
    }

    /* Hide spec body text by default — toggled via JS caret */
    .aero-comparison-inline .aero-comparison-key-text,
    .aero-comparison-inline .aero-comparison-heading-text {
        font-size: 11px;
        display: none;
    }

    .aero-comparison-inline .aero-comparison-key-text.is-expanded,
    .aero-comparison-inline .aero-comparison-heading-text.is-expanded {
        display: block;
    }

    /* Caret toggle for spec body text */
    .aero-comparison-inline .aero-key-text-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 18px;
        height: 18px;
        padding: 0;
        border: none;
        background: none;
        color: #64748b;
        cursor: pointer;
        flex-shrink: 0;
        vertical-align: middle;
        transition: transform 0.2s ease;
        touch-action: manipulation;
    }

    .aero-comparison-inline .aero-key-text-toggle:hover {
        color: #009CDE;
    }

    .aero-comparison-inline .aero-key-text-toggle.is-open {
        transform: rotate(180deg);
    }

    .aero-comparison-inline .aero-comparison-heading-title {
        font-size: 13px;
    }

    /* Stack heading icons above text on mobile */
    .aero-comparison-inline .aero-comparison-heading-wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .aero-comparison-inline .aero-comparison-key-wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    /* Reduce indent: minimal left padding with small dash */
    .aero-comparison-inline .aero-comparison-data-row .aero-comparison-key-cell {
        padding-left: 8px !important;
    }

    .aero-comparison-inline .aero-comparison-data-row.aero-comparison-sub-item .aero-comparison-key-cell {
        padding-left: 14px !important;
    }

    .aero-comparison-inline .aero-comparison-data-row.aero-comparison-checklist-sub-row .aero-comparison-key-cell {
        padding-left: 20px !important;
    }

    .aero-comparison-inline .aero-comparison-heading-cell {
        padding-left: 8px !important;
    }

    /* Product cells: reduce padding, smaller images */
    .aero-comparison-inline .aero-comparison-product-cell {
        padding: 10px 8px;
    }

    .aero-comparison-inline .aero-product-image {
        max-width: 100px;
    }

    .aero-comparison-inline .aero-product-title,
    .aero-comparison-inline .aero-product-title-link {
        font-size: 12px;
        line-height: 1.3;
    }

    /* Value cells */
    .aero-comparison-inline .aero-comparison-value-cell {
        font-size: 12px;
        padding: 10px 8px;
    }

    /* Touch-friendly tap targets (WCAG 2.5.5 minimum 44×44px) */
    .aero-comparison-inline .aero-remove-column-btn {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }

    .aero-comparison-inline .aero-add-column-btn {
        width: 44px;
        height: 44px;
    }

    .aero-comparison-inline .aero-product-dropdown,
    .aero-comparison-inline .aero-searchable-toggle {
        min-height: 44px;
        font-size: 14px;
    }

    /* Mobile: show magnifier icon only, hide truncated text */
    .aero-comparison-inline .aero-searchable-toggle-icon {
        display: block;
        width: 18px;
        height: 18px;
        color: #6e6e73;
    }

    .aero-comparison-inline .aero-searchable-toggle-label {
        display: none;
    }

    .aero-comparison-inline .aero-searchable-toggle {
        justify-content: center;
        padding: 10px;
        gap: 6px;
    }

    /* When open, show the input instead of the icon */
    .aero-comparison-inline .aero-searchable-select.is-open .aero-searchable-toggle-icon {
        display: none;
    }

    .aero-comparison-inline .aero-searchable-select.is-open .aero-searchable-toggle {
        justify-content: flex-start;
        padding: 10px 12px;
    }

    .aero-comparison-inline .aero-product-cta-actions .button,
    .aero-comparison-inline .aero-product-cta-actions a {
        min-height: 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 11px;
        padding: 6px 10px;
        max-width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .aero-comparison-inline .aero-product-cta-actions {
        gap: 5px;
    }

    /* Selector controls: reduce right padding for mobile */
    .aero-comparison-inline .aero-selector-controls {
        padding-right: 46px;
    }

    /* Hide intro content in key header (it's in above-table) */
    .aero-comparison-inline .aero-comparison-intro h3,
    .aero-comparison-inline .aero-comparison-intro > p {
        display: none;
    }

    /* Spec search & PDF: stack vertically, full width */
    .aero-comparison-inline .aero-spec-search-box {
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    .aero-comparison-inline .aero-print-pdf-btn {
        width: 100%;
        text-align: center;
        min-height: 40px;
    }

    .aero-comparison-inline .aero-spec-search-select {
        width: 100%;
    }

    /* Floating add-column and PDF controls — stacked above scroll controller */
    .aero-comparison-inline .aero-comparison-floating-actions {
        position: relative;
        top: auto;
        right: auto;
        display: flex !important;
        justify-content: flex-end;
        gap: 8px;
        padding: 8px 12px 4px;
        z-index: 120;
    }

    .aero-comparison-inline .aero-add-column-floating-btn {
        width: 44px;
        height: 44px;
    }

    .aero-comparison-inline .aero-print-pdf-floating-btn {
        min-height: 44px;
        font-size: 12px;
        padding: 8px 12px;
    }

    /* Above-table section: mobile spacing */
    .aero-comparison-above-table {
        padding: 0 16px;
    }

    .aero-comparison-page-title {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .aero-comparison-inline .aero-comparison-heading-cell {
        position: relative;
    }

    /* Horizontal scroll controller: show simplified on mobile */
    .aero-comparison-inline .aero-horizontal-scroll-controller {
        display: flex !important;
        margin: 0 8px 6px;
        padding: 4px 8px;
        gap: 6px;
    }

    .aero-comparison-inline .aero-horizontal-scroll-controller.top {
        display: flex !important;
        grid-template-columns: none;
    }

    /* Hide carousel-specific widgets on mobile */
    .aero-comparison-inline .aero-carousel-center,
    .aero-comparison-inline .aero-carousel-dots-left,
    .aero-comparison-inline .aero-carousel-dots-right,
    .aero-comparison-inline .aero-carousel-position-bar {
        display: none !important;
    }

    /* Hide the scrollbar track on mobile — just arrows */
    .aero-comparison-inline .aero-horizontal-scroll-controller .aero-hscroll-main {
        display: none !important;
    }

    /* Center the arrows (both scrollbar and carousel types) */
    .aero-comparison-inline .aero-horizontal-scroll-controller .aero-hscroll-arrow,
    .aero-comparison-inline .aero-horizontal-scroll-controller .aero-carousel-arrow {
        width: 40px;
        height: 40px;
        flex: 0 0 40px;
    }

    /* Show a simple dot indicator between the arrows */
    .aero-comparison-inline .aero-horizontal-scroll-controller .aero-mobile-position-label {
        flex: 1;
        text-align: center;
        font-size: 12px;
        color: #64748b;
        font-weight: 500;
        line-height: 40px;
    }

    /* Spec search panel: bottom-sheet on mobile */
    .aero-comparison-inline .aero-spec-search-panel {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        max-height: 60vh;
        border-radius: 16px 16px 0 0;
        z-index: 10000;
        box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
    }

    .aero-comparison-inline .aero-spec-search-options {
        max-height: 50vh;
    }

    /* Prevent double-tap zoom on interactive elements */
    .aero-comparison-inline .aero-comparison-table-wrapper,
    .aero-comparison-inline .aero-comparison-product-cell,
    .aero-comparison-inline .aero-remove-column-btn,
    .aero-comparison-inline .aero-add-column-btn,
    .aero-comparison-inline .aero-add-column-floating-btn,
    .aero-comparison-inline .aero-product-dropdown,
    .aero-comparison-inline .aero-searchable-toggle,
    .aero-comparison-inline .aero-comparison-heading-row {
        touch-action: manipulation;
    }
}

/* =========================================================
 * MOBILE: Swipe indicator dots
 * ========================================================= */
.aero-swipe-indicator {
    display: none;
}

@media (max-width: 768px) {
    .aero-swipe-indicator {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        padding: 12px 16px;
        width: 100%;
        box-sizing: border-box;
    }

    .aero-swipe-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #d1d5db;
        border: none;
        padding: 0;
        cursor: pointer;
        transition: all 0.2s ease;
        flex-shrink: 0;
    }

    .aero-swipe-dot:hover {
        background: #9ca3af;
    }

    .aero-swipe-dot.is-active {
        background: #009CDE;
        width: 10px;
        height: 10px;
    }
}

/* =========================================================
 * MOBILE: Scroll hint overlay (first-time only)
 * ========================================================= */
.aero-scroll-hint {
    display: none;
}

@media (max-width: 768px) {
    .aero-scroll-hint {
        display: flex;
        position: absolute;
        top: 50%;
        right: 0;
        transform: translateY(-50%);
        width: 48px;
        height: 80px;
        align-items: center;
        justify-content: center;
        background: linear-gradient(to right, transparent, rgba(0, 156, 222, 0.12));
        border-radius: 8px 0 0 8px;
        z-index: 50;
        pointer-events: none;
        animation: aero-scroll-hint-pulse 1.5s ease-in-out infinite;
    }

    .aero-scroll-hint.is-dismissed {
        display: none;
    }

    .aero-scroll-hint-chevron {
        font-size: 28px;
        color: #009CDE;
        animation: aero-scroll-hint-slide 1.5s ease-in-out infinite;
    }

    @keyframes aero-scroll-hint-pulse {
        0%, 100% { opacity: 0.7; }
        50% { opacity: 1; }
    }

    @keyframes aero-scroll-hint-slide {
        0%, 100% { transform: translateX(0); }
        50% { transform: translateX(6px); }
    }
}

/* =========================================================
 * MOBILE: Ultra-narrow screens (≤480px)
 * ========================================================= */
@media (max-width: 480px) {
    .aero-comparison-inline .aero-comparison-table-wrapper {
        scroll-padding-left: 120px;         /* narrower key column on ultra-narrow */
    }

    .aero-comparison-inline .aero-comparison-key-header,
    .aero-comparison-inline .aero-comparison-key-cell,
    .aero-comparison-inline .aero-comparison-heading-cell.sticky-col {
        width: 120px !important;
        min-width: 120px !important;
        max-width: 130px !important;
    }

    .aero-comparison-inline .aero-comparison-key-label {
        font-size: 11px;
    }

    .aero-comparison-inline .aero-comparison-value-cell {
        font-size: 12px;
        padding: 8px 10px;
    }

    .aero-comparison-inline .aero-comparison-product-cell {
        padding: 10px 8px;
    }

    .aero-comparison-inline .aero-product-image {
        max-width: 80px;
    }

    .aero-comparison-inline .aero-product-title,
    .aero-comparison-inline .aero-product-title-link {
        font-size: 11px;
    }

    .aero-comparison-page-title {
        font-size: 22px;
    }

    .aero-comparison-above-text {
        font-size: 13px;
    }

    .aero-comparison-inline .aero-comparison-heading-title {
        font-size: 12px;
    }
}

/* Print Styles */
@media print {
    .aero-comparison-modal {
        position: static;
        display: block;
    }
    
    .aero-comparison-overlay {
        display: none;
    }
    
    .aero-comparison-header {
        border-bottom: 2px solid #000;
    }
    
    .aero-comparison-close {
        display: none;
    }
    
    .aero-add-column-btn,
    .aero-remove-column-btn {
        display: none;
    }
}

/* Reference-style comparison overrides */
.aero-comparison-modal .aero-comparison-overlay {
    background: rgba(15, 23, 42, 0.26);
    backdrop-filter: blur(10px);
}

.aero-comparison-modal .aero-comparison-container {
    width: 94%;
    max-width: 1240px;
    border-radius: 12px;
    box-shadow: 0 12px 38px rgba(2, 8, 23, 0.16);
    overflow: hidden;
}

.aero-comparison-modal .aero-comparison-content {
    overflow: auto;
}

.aero-comparison-modal .aero-comparison-table-wrapper {
    max-height: calc(90vh - 120px);
    overflow-x: auto;
    overflow-y: auto;
}

.aero-comparison-modal .aero-comparison-header,
.aero-comparison-inline .aero-comparison-header {
    border-bottom: 0;
    padding: 18px 22px;
}

.aero-comparison-modal .aero-comparison-header h2,
.aero-comparison-inline .aero-comparison-header h2 {
    font-size: 42px;
    line-height: 0.95;
    letter-spacing: -0.02em;
    color: #0f172a;
    text-transform: lowercase;
}

.aero-comparison-modal .aero-comparison-table,
.aero-comparison-inline .aero-comparison-table {
    table-layout: auto;
    width: auto;
}

.aero-comparison-modal .aero-comparison-table {
    border-collapse: separate;
    border-spacing: 0;
}

.aero-comparison-modal .aero-comparison-table thead tr,
.aero-comparison-inline .aero-comparison-table thead tr {
    background: transparent;
}

.aero-comparison-modal .aero-comparison-table th,
.aero-comparison-modal .aero-comparison-table td,
.aero-comparison-inline .aero-comparison-table th,
.aero-comparison-inline .aero-comparison-table td {
    border: none;
    border-bottom: 1px solid #e6e9ee;
    padding: 14px 12px;
}

.aero-comparison-modal .aero-comparison-products-row,
.aero-comparison-inline .aero-comparison-products-row {
    top: 0;
    background: #ffffff;
}

.aero-comparison-modal .aero-comparison-key-header,
.aero-comparison-inline .aero-comparison-key-header {
    min-width: 280px;
    white-space: normal;
    background: #ffffff !important;
}

.aero-comparison-modal .aero-comparison-product-cell,
.aero-comparison-inline .aero-comparison-product-cell {
    min-width: 250px;
    background: #ffffff;
}

.aero-comparison-modal .aero-add-column-cell,
.aero-comparison-inline .aero-add-column-cell,
.aero-comparison-modal .aero-add-column-spacer,
.aero-comparison-inline .aero-add-column-spacer {
    min-width: 64px;
    background: #ffffff;
}

.aero-comparison-modal .aero-product-dropdown,
.aero-comparison-inline .aero-product-dropdown {
    border: 2px solid #d2d2d7;
    border-radius: 12px;
    background-color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 16px;
}

.aero-comparison-modal .aero-product-dropdown:focus,
.aero-comparison-inline .aero-product-dropdown:focus {
    border-color: #009CDE;
    box-shadow: 0 0 0 4px rgba(0, 156, 222, 0.1);
}

.aero-comparison-modal .aero-comparison-heading-row,
.aero-comparison-inline .aero-comparison-heading-row {
    background: transparent !important;
}

.aero-comparison-modal .aero-comparison-heading-cell,
.aero-comparison-inline .aero-comparison-heading-cell {
    border: none;
    border-top: 1px solid #dce2e9;
    border-bottom: 1px solid #dce2e9;
    color: #0f172a;
    background: transparent;
    font-size: 12px;
    letter-spacing: 0.04em;
    padding: 14px 16px;
    text-align: left;
}

/* Empty spacer cells in heading rows (columns after the key column) */
.aero-comparison-heading-spacer {
    padding: 0 !important;
}

.aero-comparison-modal .aero-comparison-heading-cell.sticky-col,
.aero-comparison-inline .aero-comparison-heading-cell.sticky-col {
    min-width: 280px;
}

.aero-comparison-modal .aero-comparison-key-cell,
.aero-comparison-inline .aero-comparison-key-cell {
    min-width: 280px;
    white-space: normal;
    font-size: 14px;
    font-weight: 500;
    color: #0f172a;
    background: #ffffff !important;
}

.aero-comparison-key-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    vertical-align: middle;
    flex: 0 0 16px;
}

.aero-comparison-key-icon-placeholder {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
    flex: 0 0 16px;
}

.aero-comparison-key-label {
    vertical-align: middle;
}

.aero-comparison-key-cell {
    text-align: left;
}

.aero-comparison-key-wrap {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
}

.aero-comparison-key-copy {
    display: inline-flex;
    flex-direction: column;
    gap: 3px;
    align-items: flex-start;
    text-align: left;
}

.aero-comparison-key-text {
    font-size: 12px;
    line-height: 1.35;
    color: #64748b;
    font-weight: 400;
}

.aero-comparison-heading-wrap {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding-left: 0;
}

.aero-comparison-heading-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    margin-top: 1px;
    flex: 0 0 18px;
}

.aero-comparison-heading-icon-list {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    border-radius: 3px;
    display: inline-block;
    flex: 0 0 18px;
    background:
        linear-gradient(#64748b, #64748b) 3px 4px / 12px 1.5px no-repeat,
        linear-gradient(#64748b, #64748b) 3px 8px / 12px 1.5px no-repeat,
        linear-gradient(#64748b, #64748b) 3px 12px / 12px 1.5px no-repeat,
        linear-gradient(#cbd5e1, #cbd5e1) 0 0 / 100% 100% no-repeat;
}

.aero-comparison-heading-icon-placeholder {
    width: 18px;
    height: 18px;
    display: inline-block;
    flex: 0 0 18px;
}

.aero-comparison-heading-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
    align-items: flex-start;
    text-align: left;
}

.aero-comparison-heading-title {
    font-weight: 700;
    color: #0f172a;
}

.aero-comparison-heading-text {
    font-size: 12px;
    line-height: 1.35;
    color: #64748b;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
}

.aero-comparison-data-row.aero-comparison-sub-item .aero-comparison-key-cell {
    padding-left: 36px !important;
}

.aero-comparison-data-row.aero-comparison-checklist-sub-row .aero-comparison-key-cell {
    padding-left: 52px !important;
}

.aero-value-yes {
    color: #009CDE;
    font-weight: 700;
    font-size: 20px;
    line-height: 1;
}

.aero-value-no {
    color: #9ca3af;
    font-weight: 700;
    font-size: 20px;
    line-height: 1;
}

.aero-value-text {
    color: #334155;
    font-size: 14px;
    line-height: 1.5;
}

.aero-comparison-value-cell,
.aero-comparison-table td.aero-comparison-value-cell {
    text-align: center !important;
}

.aero-comparison-modal .aero-add-column-btn,
.aero-comparison-inline .aero-add-column-btn {
    width: 38px;
    height: 38px;
    border: 1px dashed #009CDE;
    color: #009CDE;
}

.aero-comparison-modal .aero-add-column-btn:hover,
.aero-comparison-inline .aero-add-column-btn:hover {
    background: #009CDE;
    color: #ffffff;
}

.aero-comparison-inline {
    max-width: 1280px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0 !important;
    overflow: visible;
}

.aero-comparison-inline[data-full-width="yes"] {
    max-width: none;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 0 2vw !important;
}

.aero-comparison-inline .aero-comparison-container {
    max-width: none;
    box-shadow: none !important;
    border-radius: 0 !important;
    border: none !important;
    background: transparent !important;
}

/* Final row treatment: subtle borders + zebra + subtle hover */
.aero-comparison-data-row td {
    border-top: 0 !important;
    border-bottom: 1px solid #e8edf2 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: 0 !important;
}

.aero-comparison-data-row.even {
    background: #f8fafc !important;
}

.aero-comparison-data-row.odd {
    background: #ffffff !important;
}

.aero-comparison-data-row:hover {
    background: #f3f6f8 !important;
}

.aero-comparison-data-row .sticky-col {
    background: transparent !important;
}

.aero-comparison-data-row,
.aero-comparison-data-row td,
.aero-comparison-data-row .sticky-col {
    transition: none !important;
}

/* Inline variant: fully borderless + natural height */
.aero-comparison-inline .aero-comparison-table,
.aero-comparison-inline .aero-comparison-table thead,
.aero-comparison-inline .aero-comparison-table tbody,
.aero-comparison-inline .aero-comparison-table tr,
.aero-comparison-inline .aero-comparison-table th,
.aero-comparison-inline .aero-comparison-table td,
.aero-comparison-inline .aero-comparison-heading-cell,
.aero-comparison-inline .aero-add-column-spacer,
.aero-comparison-inline .aero-comparison-data-row td {
    border: none !important;
    box-shadow: none;
}

.aero-comparison-inline .aero-comparison-content,
.aero-comparison-inline .aero-comparison-table-wrapper {
    background: transparent !important;
}

/* Final visual tune-up */
.aero-comparison-modal .aero-comparison-header {
    justify-content: flex-end;
    padding: 12px 18px 6px;
}

.aero-comparison-modal .aero-comparison-header h2 {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.aero-comparison-close {
    width: auto;
    height: auto;
    border: none;
    background: transparent;
    border-radius: 0;
    font-size: 14px;
    font-weight: 600;
    color: #009CDE;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
}

.aero-comparison-close:hover {
    background: transparent;
    color: #007fb5;
}

.aero-close-icon {
    font-size: 20px;
    line-height: 1;
    margin-top: -1px;
}

.aero-comparison-inline .aero-comparison-header {
    display: none;
}

/* =========================================================
 * Above-Table Intro (inline mode - standard page width)
 * ========================================================= */



.aero-comparison-above-table {
    width: min(1200px, 92vw);
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 24px;
    padding: 0 10px;
    box-sizing: border-box;
    text-align: left;
}

/* In full-width mode, let intro text span full width */
.aero-comparison-inline-wrap:has(.aero-comparison-inline[data-full-width="yes"]) .aero-comparison-above-table {
    max-width: none;
}

.aero-comparison-above-text {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #334155;
}

.aero-comparison-page-title {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 34px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.aero-comparison-above-text a {
    color: #009CDE;
    text-decoration: none;
    font-weight: 500;
}

.aero-comparison-above-text a:hover {
    text-decoration: underline;
    color: #007fb5;
}

/* Inline intro cell: wider when no h3/p (PDF + search only) */
.aero-comparison-inline .aero-comparison-intro {
    max-width: none;
}

.aero-comparison-inline .aero-comparison-products-row .aero-comparison-intro {
    max-width: none;
    padding: 0;
}

.aero-comparison-inline .aero-comparison-products-row .aero-comparison-key-header {
    position: relative;
}

.aero-comparison-inline .aero-comparison-products-row .aero-spec-search-box {
    position: absolute;
    left: 12px;
    right: auto;
    width: calc(100% - 24px);
    max-width: calc(100% - 24px);
    box-sizing: border-box;
    bottom: 12px;
    margin-top: 0;
}

.aero-comparison-inline .aero-spec-search-toggle,
.aero-comparison-inline .aero-searchable-toggle {
    min-height: 44px;
}

.aero-comparison-intro {
    max-width: 180px;
    padding: 6px 4px;
}

.aero-comparison-intro h3 {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 44px;
    line-height: 0.9;
    letter-spacing: -0.02em;
    text-transform: lowercase;
}

.aero-comparison-intro p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    color: #334155;
}

.aero-comparison-modal .aero-comparison-key-header,
.aero-comparison-inline .aero-comparison-key-header {
    white-space: normal;
    vertical-align: top;
    box-sizing: border-box;
    overflow: visible;
}

.aero-comparison-modal .aero-comparison-product-cell,
.aero-comparison-inline .aero-comparison-product-cell {
    min-width: 250px;
}

.aero-comparison-modal .aero-product-title,
.aero-comparison-inline .aero-product-title {
    font-size: 15px;
    line-height: 1.25;
    margin: 8px 0 4px;
}

.aero-comparison-modal .aero-product-image,
.aero-comparison-inline .aero-product-image {
    max-width: 140px;
    border-radius: 0;
}

.aero-comparison-modal .aero-comparison-data-row td,
.aero-comparison-inline .aero-comparison-data-row td {
    padding-top: 12px;
    padding-bottom: 12px;
}

.aero-comparison-modal .aero-remove-column-btn,
.aero-comparison-inline .aero-remove-column-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    width: 32px;
    height: 32px;
    border: 1.5px dashed #c7ccd2;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #8e8e93;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transform: translateY(-50%);
}

.aero-comparison-modal .aero-remove-column-btn:hover,
.aero-comparison-inline .aero-remove-column-btn:hover {
    border-color: #ff3b30;
    color: #ff3b30;
    background: rgba(255, 59, 48, 0.06);
    transform: translateY(-50%);
}

.aero-print-pdf-btn {
    margin-top: 14px;
    padding: 8px 14px;
    border: 1px solid #009CDE;
    background: #ffffff;
    color: #009CDE;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    line-height: 1;
}

.aero-print-pdf-btn:hover {
    background: #009CDE;
    color: #ffffff;
}

.aero-print-pdf-btn.is-generating {
    opacity: 0.7;
    pointer-events: none;
    cursor: wait;
}

.aero-pdf-spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: aero-pdf-spin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 4px;
}

@keyframes aero-pdf-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 900px) {
    .aero-comparison-intro h3 {
        font-size: 32px;
    }

    .aero-comparison-intro {
        max-width: 140px;
    }

    .aero-comparison-modal .aero-comparison-key-header,
    .aero-comparison-inline .aero-comparison-key-header {
        white-space: normal;
    }
}

.aero-comparison-value-cell-empty {
    color: transparent !important;
}

.aero-comparison-checklist-item .aero-comparison-key-label {
    font-weight: 500;
}

.aero-comparison-checklist-item .aero-comparison-key-copy {
    margin-left: 0;
}

.aero-comparison-checklist-value {
    text-align: center !important;
}

/* =========================================================
 * Sticky Header Column (left label column)
 * ========================================================= */

.aero-sticky-header-enabled .sticky-col {
    position: sticky;
    left: 0;
    z-index: 10;
    background: #ffffff !important;
}

.aero-sticky-header-enabled thead .sticky-col {
    z-index: 20;
    background: #ffffff !important;
}

/* Override inline key-header position:relative so sticky wins */
.aero-sticky-header-enabled .aero-comparison-products-row .aero-comparison-key-header.sticky-col {
    position: sticky;
    left: 0;
    z-index: 20;
    background: #ffffff !important;
}

.aero-sticky-header-enabled .aero-comparison-data-row .sticky-col {
    background: #ffffff !important;
}

.aero-sticky-header-enabled .aero-comparison-data-row.even .sticky-col {
    background: #f8fafc !important;
}

.aero-sticky-header-enabled .aero-comparison-data-row.odd .sticky-col {
    background: #ffffff !important;
}

.aero-sticky-header-enabled .aero-comparison-heading-row .sticky-col {
    background: #ffffff !important;
}

.aero-sticky-header-enabled .aero-comparison-data-row:hover .sticky-col {
    background: #f3f6f8 !important;
}

/* Subtle shadow when column is stuck */
.aero-sticky-header-enabled .sticky-col::after {
    content: '';
    position: absolute;
    top: 0;
    right: -6px;
    width: 6px;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.04), transparent);
    pointer-events: none;
}

/* =========================================================
 * Spec Search Dropdown
 * ========================================================= */

.aero-spec-search-box {
    margin-top: 14px;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: visible;
    box-sizing: border-box;
}

.aero-spec-search-box .aero-spec-search-select {
    order: 1;
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.aero-spec-search-box .aero-print-pdf-btn {
    order: 2;
    margin-top: 0;
    align-self: flex-start;
}

.aero-description-toggle {
    order: 3;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    margin: 0;
}

.aero-description-toggle-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.aero-description-toggle-check {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    border: 2px solid #94a3b8;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
    position: relative;
    transition: all 0.2s ease;
    flex: 0 0 18px;
}

.aero-description-toggle-check::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.15s ease;
}

.aero-description-toggle-input:checked + .aero-description-toggle-check {
    border-color: #009CDE;
    background: linear-gradient(180deg, #1db6f2 0%, #009CDE 100%);
    box-shadow: 0 0 0 3px rgba(0, 156, 222, 0.16);
}

.aero-description-toggle-input:checked + .aero-description-toggle-check::after {
    transform: rotate(45deg) scale(1);
}

.aero-description-toggle-text {
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    line-height: 1.2;
}

.aero-spec-search-box .aero-spec-search-hint {
    order: 4;
}

.aero-description-hidden .aero-comparison-description-row,
.aero-comparison-description-row-hidden {
    display: none !important;
}

.aero-comparison-description-row .aero-comparison-value-cell,
.aero-comparison-description-row .aero-comparison-value-cell.aero-comparison-description-value {
    text-align: left !important;
    vertical-align: top !important;
}

.aero-description-text {
    display: block;
    color: #334155;
    font-size: 13px;
    line-height: 1.55;
    white-space: normal;
}

.aero-spec-search-select {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    z-index: 80;
    margin: 0;
    box-sizing: border-box;
}

.aero-spec-search-toggle {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 44px;
    margin: 0;
    box-sizing: border-box;
    padding: 12px 16px;
    border: 2px solid #d2d2d7;
    border-radius: 12px;
    font-size: 14px;
    color: #1d1d1f;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.aero-spec-search-toggle:hover,
.aero-spec-search-select.is-open .aero-spec-search-toggle {
    border-color: #009CDE;
}

.aero-spec-search-select.is-open .aero-spec-search-toggle {
    box-shadow: none;
    border-radius: 12px;
    z-index: 240;
}

.aero-spec-search-icon {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    color: #9ca3af;
}

.aero-spec-search-toggle-label {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #9ca3af;
    font-weight: 400;
    font-weight: 600;
}

.aero-spec-search-select.is-open .aero-spec-search-toggle-label {
    display: none;
}

.aero-spec-search-input {
    display: none;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    border: 0;
    background: transparent;
    font-size: 14px;
    color: #1d1d1f;
    padding: 0;
    margin: 0;
    outline: none;
    font-family: inherit;
    line-height: 1.3;
}

.aero-spec-search-select.is-open .aero-spec-search-input {
    display: block;
}

.aero-spec-search-input::placeholder {
    color: #9ca3af;
}

.aero-spec-search-input:focus {
    outline: none;
}

/* Shield spec search from global theme input[type="text"] overrides */
.aero-comparison-inline .aero-spec-search-input,
.aero-comparison-modal .aero-spec-search-input,
.aero-comparison-inline .aero-spec-search-input[type="text"],
.aero-comparison-modal .aero-spec-search-input[type="text"],
.aero-comparison-inline .aero-spec-search-input[type="search"],
.aero-comparison-modal .aero-spec-search-input[type="search"] {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    display: none;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #1d1d1f !important;
    font: inherit !important;
    font-size: 14px !important;
    line-height: 1.3 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    text-decoration: none !important;
    transition: none !important;
}

.aero-comparison-inline .aero-spec-search-select.is-open .aero-spec-search-input,
.aero-comparison-modal .aero-spec-search-select.is-open .aero-spec-search-input {
    display: block !important;
}

.aero-comparison-inline .aero-spec-search-input:hover,
.aero-comparison-inline .aero-spec-search-input:focus,
.aero-comparison-modal .aero-spec-search-input:hover,
.aero-comparison-modal .aero-spec-search-input:focus {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}

.aero-comparison-inline .aero-spec-search-input::placeholder,
.aero-comparison-modal .aero-spec-search-input::placeholder {
    color: #9ca3af !important;
    opacity: 1 !important;
    padding-left: 0 !important;
}

.aero-spec-search-toggle-caret {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #9ca3af;
    flex: 0 0 auto;
    transition: transform 0.2s ease;
}

.aero-spec-search-select.is-open .aero-spec-search-toggle-caret {
    transform: rotate(180deg);
}

.aero-spec-search-panel {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    background: #ffffff;
    border: 1px solid #dbe2ea;
    border-radius: 12px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.14);
    z-index: 260;
    padding: 8px;
    margin: 0;
    box-sizing: border-box;
}

.aero-spec-search-select.is-open .aero-spec-search-panel {
    display: block;
}

.aero-spec-search-options {
    max-height: 260px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Section headers (headings) */
.aero-spec-search-section-header {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    padding: 8px 10px 3px;
    user-select: none;
}

/* Spec options */
.aero-spec-search-option {
    width: 100%;
    border: 0;
    background: transparent;
    border-radius: 6px;
    border-radius: 8px;
    padding: 8px 10px;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    transition: background 0.12s ease;
}

.aero-spec-search-option:hover {
    background: #f0f9ff;
}

.aero-spec-search-option--indent {
    padding-left: 24px;
}

.aero-spec-search-option-label {
    font-size: 13px;
    color: #0f172a;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.aero-spec-search-option-group {
    font-size: 12px;
    color: #94a3b8;
    flex: 0 0 auto;
    white-space: nowrap;
}

/* AI results */
.aero-spec-search-ai-header {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #0f172a;
    padding: 10px 10px 3px;
    border-top: 1px solid #e5e7eb;
    margin-top: 4px;
}

.aero-spec-search-option--ai {
    background: #f8fdff;
}

.aero-spec-search-option--ai:hover {
    background: #e0f4ff;
}

.aero-spec-search-option-ai-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    color: #0f172a;
    font-size: 11px;
    line-height: 1;
    font-weight: 700;
    flex: 0 0 auto;
}

.aero-ai-sparkle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    color: inherit;
}

.aero-ai-sparkle-icon svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.aero-ai-sparkle-icon--badge {
    font-size: 11px;
}

.aero-spec-search-ai-status {
    font-size: 12px;
    color: #64748b;
    padding: 6px 10px;
    border-top: 1px solid #e5e7eb;
    margin-top: 4px;
}

.aero-spec-search-ai-error {
    font-size: 11.5px;
    color: #92400e;
    background: #fffbeb;
    padding: 7px 10px;
    border-top: 1px solid #fde68a;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
    line-height: 1.35;
}
.aero-spec-search-ai-error-icon {
    font-size: 13px;
    flex-shrink: 0;
}

.aero-spec-search-no-text-results {
    font-size: 12px;
    color: #94a3b8;
    padding: 8px 10px;
    text-align: center;
}

.aero-spec-search-hint {
    margin: 5px 0 0;
    font-size: 11px;
    color: #9ca3af;
    line-height: 1.3;
    font-style: italic;
}

/* =========================================================
 * Spec Search - Blur & Highlight Effects
 * ========================================================= */

/*
 * Blur amount – change --aero-blur to adjust globally,
 * or set it via the data-blur-amount attribute in JS.
 */
.aero-comparison-inline,
.aero-comparison-modal {
    --aero-blur: 5px;
}

/* Blur non-matching rows */
.aero-spec-blur {
    opacity: 0.5 !important;
    filter: blur(var(--aero-blur)) saturate(0.2);
    transition: opacity 0.35s ease, filter 0.35s ease;
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 0;
}

.aero-spec-blur td,
.aero-spec-blur .sticky-col {
    background: transparent !important;
}

.aero-spec-blur:hover {
    opacity: 0.5 !important;
    filter: blur(var(--aero-blur)) saturate(0.2);
}

/* Matched row — keep normal colours, no special highlight */
.aero-spec-highlight {
    position: relative;
    z-index: 4;
}



/* Current (focused) match — no accent bar, no glow */
.aero-spec-current-match {
    position: relative;
    z-index: 5;
}

/* Optional subtle glow around found spec row */
.aero-spec-glow-enabled .aero-spec-current-match td,
.aero-comparison-inline[data-spec-glow="yes"] .aero-spec-current-match td,
.aero-comparison-modal[data-spec-glow="yes"] .aero-spec-current-match td {
    background: rgba(0, 156, 222, 0.22) !important;
    box-shadow: 0 0 44px rgba(0, 156, 222, 0.52), inset 0 3px 0 rgba(0, 156, 222, 0.9), inset 0 -3px 0 rgba(0, 156, 222, 0.9) !important;
    transition: box-shadow 0.7s ease, background-color 0.7s ease, opacity 0.35s ease, filter 0.35s ease;
}

.aero-spec-glow-enabled .aero-spec-current-match td:first-child,
.aero-comparison-inline[data-spec-glow="yes"] .aero-spec-current-match td:first-child,
.aero-comparison-modal[data-spec-glow="yes"] .aero-spec-current-match td:first-child {
    border-top-left-radius: 14px;
    border-bottom-left-radius: 14px;
    box-shadow: 0 0 64px rgba(0, 156, 222, 0.62), inset 3px 0 0 rgba(0, 156, 222, 0.9), inset 0 3px 0 rgba(0, 156, 222, 0.9), inset 0 -3px 0 rgba(0, 156, 222, 0.9) !important;
}

.aero-spec-glow-enabled .aero-spec-current-match td:last-child,
.aero-comparison-inline[data-spec-glow="yes"] .aero-spec-current-match td:last-child,
.aero-comparison-modal[data-spec-glow="yes"] .aero-spec-current-match td:last-child {
    border-top-right-radius: 14px;
    border-bottom-right-radius: 14px;
    box-shadow: 0 0 64px rgba(0, 156, 222, 0.62), inset -3px 0 0 rgba(0, 156, 222, 0.9), inset 0 3px 0 rgba(0, 156, 222, 0.9), inset 0 -3px 0 rgba(0, 156, 222, 0.9) !important;
}



/* Match badge (inline counter on current match key cell) */
.aero-spec-match-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    padding: 2px 7px;
    background: #009CDE;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 999px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    vertical-align: middle;
    white-space: nowrap;
    animation: aero-badge-pop 0.25s ease-out;
}

@keyframes aero-badge-pop {
    0% { transform: scale(0.5); opacity: 0; }
    70% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

/* Smooth transition on all table rows */
.aero-comparison-data-row,
.aero-comparison-heading-row {
    transition: opacity 0.35s ease, filter 0.35s ease, background 0.3s ease;
}

/* No-results shake animation */
.aero-spec-search-no-results {
    animation: aero-search-shake 0.4s ease-in-out;
}

@keyframes aero-search-shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-4px); }
    40% { transform: translateX(4px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(2px); }
}

/* Auto-fade blur effect */
.aero-spec-blur-fading .aero-spec-blur {
    opacity: 1 !important;
    filter: none !important;
    transition: opacity 0.6s ease, filter 0.6s ease;
}

.aero-spec-blur-fading .aero-spec-highlight,
.aero-spec-blur-fading .aero-spec-current-match {
    box-shadow: none !important;
    transition: box-shadow 0.6s ease;
}

.aero-spec-blur-fading .aero-spec-current-match td {
    box-shadow: none !important;
    background: transparent !important;
    transition: box-shadow 0.7s ease, background-color 0.7s ease;
}

.aero-spec-blur-fading .aero-spec-fab {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.aero-spec-blur-fading .aero-spec-match-badge {
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* =========================================================
 * Floating Dismiss Pill (positioned near current match)
 * ========================================================= */

.aero-spec-fab {
    position: absolute;
    z-index: 200;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px) saturate(1.8);
    -webkit-backdrop-filter: blur(12px) saturate(1.8);
    border: 1px solid rgba(0, 156, 222, 0.25);
    border-radius: 999px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10), 0 1px 3px rgba(0, 0, 0, 0.06);
    font-family: inherit;
    transition: opacity 0.2s ease, transform 0.15s ease;
    animation: aero-fab-in 0.25s ease-out;
    pointer-events: auto;
}

@keyframes aero-fab-in {
    0% { opacity: 0; transform: scale(0.85) translateY(6px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

.aero-spec-fab-label {
    font-size: 12px;
    font-weight: 600;
    color: #009CDE;
    white-space: nowrap;
    user-select: none;
}

.aero-spec-fab-dismiss {
    border: none;
    border-radius: 999px;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    font-size: 12px;
    font-weight: 500;
    font-family: inherit;
    transition: all 0.15s ease;
}

.aero-spec-fab-dismiss:hover {
    background: #fee2e2;
    color: #dc2626;
}

/* Print: hide search UI */
@media print {
    .aero-spec-search-box,
    .aero-spec-fab {
        display: none !important;
    }

    .aero-spec-blur {
        opacity: 1 !important;
        filter: none !important;
    }

    .aero-spec-match-badge {
        display: none !important;
    }
}

/* =========================================================
 * Carousel Mode — Dots + Position Bar navigation
 * ========================================================= */

.aero-carousel-nav {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 10px 8px;
    border: none;
    border-radius: 999px;
    background: transparent;
    box-shadow: none;
    user-select: none;
    -webkit-user-select: none;
    max-width: none;
    margin: 0;
    position: relative;
}

.aero-carousel-nav.is-active {
    display: flex;
}

.aero-carousel-nav.top {
    margin: 0;
}

.aero-carousel-nav.bottom {
    margin: 0;
}

/* --- Prev/Next Arrows --- */
.aero-carousel-arrow {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px) saturate(1.8);
    -webkit-backdrop-filter: blur(20px) saturate(1.8);
    box-shadow:
        0 0.5px 1px rgba(0, 0, 0, 0.04),
        0 1px 3px rgba(0, 0, 0, 0.06),
        0 4px 12px rgba(0, 0, 0, 0.04),
        inset 0 0.5px 0 rgba(255, 255, 255, 0.9);
    color: #1d1d1f;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition:
        background 0.24s ease,
        box-shadow 0.24s ease,
        color 0.2s ease,
        opacity 0.24s ease;
    position: relative;
    z-index: 2;
}

.aero-carousel-arrow svg {
    width: 20px;
    height: 20px;
}

.aero-carousel-arrow:hover:not(:disabled) {
    background: rgba(0, 156, 222, 0.10);
    box-shadow:
        0 2px 8px rgba(0, 156, 222, 0.15),
        0 6px 20px rgba(0, 0, 0, 0.05),
        inset 0 0.5px 0 rgba(255, 255, 255, 0.95);
    color: #009CDE;
}

.aero-carousel-arrow:active:not(:disabled) {
    background: rgba(0, 156, 222, 0.18);
    transition-duration: 0.08s;
}

.aero-carousel-arrow:disabled {
    opacity: 0.22;
    cursor: default;
    background: rgba(245, 245, 247, 0.5);
    box-shadow: none;
    color: #86868b;
}

/* --- Center section (dots + bar) --- */
.aero-carousel-center {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 6px 16px;
    min-width: 0;
    background: rgba(0, 0, 0, 0.035);
    border-radius: 999px;
    margin: 0 10px;
}

/* --- Position Bar (Apple-style scroll indicator pill) --- */
.aero-carousel-position-bar {
    width: 72px;
    height: 8px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.15);
    flex: 0 0 auto;
    margin: 0 6px;
    transition: opacity 0.3s ease, background 0.25s ease, height 0.2s ease;
    cursor: grab;
    -webkit-user-select: none;
    user-select: none;
    touch-action: none;
    position: relative;
}

.aero-carousel-position-bar:hover {
    background: rgba(0, 0, 0, 0.25);
    height: 10px;
    border-radius: 5px;
}

.aero-carousel-position-bar.is-dragging {
    cursor: grabbing;
    background: rgba(0, 0, 0, 0.35);
    height: 10px;
    border-radius: 5px;
}

/* --- Dots (Apple page-indicator style) --- */
.aero-carousel-dots-left,
.aero-carousel-dots-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    min-width: 0;
    padding: 0 5px;
    transition: opacity 0.3s ease;
}

.aero-carousel-dots-left {
    justify-content: flex-end;
}

.aero-carousel-dots-right {
    justify-content: flex-start;
}

.aero-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.18);
    display: block;
    cursor: pointer;
    transition:
        transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        opacity 0.4s ease,
        background 0.3s ease;
    flex: 0 0 auto;
}

.aero-carousel-dot:hover {
    background: rgba(0, 0, 0, 0.4);
}

/* --- Carousel Row (always visible wrapper) --- */
.aero-carousel-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    min-height: 48px;
    margin-bottom: 6px;
    padding: 2px 0;
}

.aero-carousel-row.has-overflow {
    justify-content: center;
}

/* --- Carousel Actions (PDF / + buttons, always visible) --- */
.aero-carousel-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    z-index: 2;
}

.aero-carousel-row.has-overflow .aero-carousel-actions {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.aero-carousel-actions .aero-print-pdf-btn {
    font-size: 13px;
    font-weight: 600;
    padding: 0 18px;
    height: 36px;
    border: 1.5px solid #009CDE;
    border-radius: 999px;
    background: transparent;
    color: #009CDE;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.aero-carousel-actions .aero-print-pdf-btn:hover {
    background: #009CDE;
    color: #fff;
    box-shadow: 0 2px 10px rgba(0, 156, 222, 0.22);
}

.aero-carousel-actions .aero-print-pdf-btn:active {
    transition-duration: 0.08s;
}

.aero-carousel-actions .aero-add-column-btn {
    width: 36px;
    height: 36px;
    border: 1.5px dashed #009CDE;
    border-radius: 50%;
    background: transparent;
    color: #009CDE;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
    flex: 0 0 36px;
    box-sizing: border-box;
}

.aero-carousel-actions .aero-add-column-btn:hover {
    background: rgba(0, 156, 222, 0.08);
    border-color: #007ab5;
    box-shadow: 0 2px 10px rgba(0, 156, 222, 0.18);
}

.aero-carousel-actions .aero-add-column-btn:active {
    transition-duration: 0.08s;
}

.aero-carousel-actions .aero-add-column-btn svg {
    width: 18px;
    height: 18px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .aero-horizontal-scroll-controller .aero-hscroll-actions {
        display: none !important;
    }

    .aero-carousel-actions {
        display: none !important;
    }

    .aero-carousel-nav {
        padding: 6px 4px;
    }

    .aero-carousel-arrow {
        width: 36px;
        height: 36px;
        flex: 0 0 36px;
    }

    .aero-carousel-arrow svg {
        width: 16px;
        height: 16px;
    }

    .aero-carousel-center {
        padding: 0 8px;
    }

    .aero-carousel-dot {
        width: 7px;
        height: 7px;
    }

    .aero-carousel-dots-left,
    .aero-carousel-dots-right {
        gap: 5px;
        padding: 0 3px;
    }

    .aero-carousel-position-bar {
        width: 52px;
        height: 6px;
        border-radius: 3px;
    }
}

.aero-side-scroll-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    pointer-events: none;
    z-index: 140;
    display: none;
}

.aero-side-scroll-nav.is-active {
    display: block;
}

.aero-side-scroll-nav .aero-side-scroll-btn {
    position: fixed;
    top: var(--aero-side-nav-top, 50%);
    transform: translateY(-50%);
    pointer-events: auto;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
}

.aero-side-scroll-nav .aero-side-scroll-btn.prev {
    left: var(--aero-side-prev-left, 12px);
}

.aero-side-scroll-nav .aero-side-scroll-btn.next {
    right: var(--aero-side-next-right, 12px);
}

@media (max-width: 768px) {
    .aero-side-scroll-nav {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .aero-carousel-arrow {
        width: 32px;
        height: 32px;
        flex: 0 0 32px;
    }

    .aero-carousel-arrow svg {
        width: 15px;
        height: 15px;
    }

    .aero-carousel-dots-left,
    .aero-carousel-dots-right {
        display: none;
    }

    .aero-carousel-position-bar {
        width: 44px;
        height: 5px;
        border-radius: 3px;
    }
}

/* =========================================================================
   Aero CSS Fix — Theme isolation layer
   =========================================================================
   Scoped under .aero-css-fix (added to root element when the admin toggle
   "Aero CSS Fix" is set to Yes).  Neutralises The7 / Aero_2018_v4 theme
   styles that leak into the comparison table — universal resets, button
   overrides, form-element min-heights, placeholder colours, etc.
   ========================================================================= */

/* ── 1. Universal box-sizing reset ─────────────────────────────────────── */
.aero-css-fix *,
.aero-css-fix *::before,
.aero-css-fix *::after {
    box-sizing: border-box;
}

/* ── 2. Targeted padding/margin resets ──────────────────────────────────── */
/* The7 sets * { padding:0; margin:0 } globally.  Rather than reverting
   everything (which injects unwanted browser-default spacing), we keep the
   theme's zero-base and let the plugin's own rules add spacing where
   needed.  Only elements the theme previously *added* padding/margin to
   need overriding here. */
.aero-css-fix .aero-comparison-table,
.aero-css-fix .aero-comparison-table thead,
.aero-css-fix .aero-comparison-table tbody,
.aero-css-fix .aero-comparison-table tr {
    padding: 0;
    margin: 0;
}

.aero-css-fix .aero-comparison-table th,
.aero-css-fix .aero-comparison-table td {
    padding: 14px 16px;
    margin: 0;
}

.aero-css-fix .aero-comparison-header {
    padding: 18px 20px;
    margin: 0;
}

.aero-css-fix .aero-comparison-header h2 {
    padding: 0;
    margin: 0;
}

/* ── 3. Button isolation — block The7's a.button / .button styling ───── */
.aero-css-fix .aero-product-cta-actions .button,
.aero-css-fix .aero-product-cta-actions a.button,
.aero-css-fix .aero-product-cta-actions .add-request-quote-button,
.aero-css-fix .aero-product-cta-actions a.add-request-quote-button {
    /* Strip The7 CSS-variable-driven sizing */
    --the7-btn-sm-padding-y: 0;
    --the7-btn-padding-y: 0;
    --the7-btn-sm-padding-x: 0;
    --the7-btn-padding-x: 0;
    --the7-btn-min-width: 0;
    --the7-btn-min-height: 0;
    --the7-btn-border-radius: 999px;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: none !important;
    width: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 8px 16px !important;
    margin: 0 !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    border-radius: 999px !important;
    box-sizing: border-box !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    vertical-align: middle !important;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease !important;
}

/* Where to Buy — blue pill */
.aero-css-fix .aero-product-cta-actions .sidebar-where-buy-button a,
.aero-css-fix .aero-product-cta-actions .sidebar-where-buy-button a.button {
    background-color: #009CDE !important;
    color: #ffffff !important;
    border: none !important;
    padding: 8px 16px !important;
    margin: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    border-radius: 999px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
}

.aero-css-fix .aero-product-cta-actions .sidebar-where-buy-button a:hover {
    background-color: #007bb5 !important;
}

/* Add to Quote — green pill */
.aero-css-fix .aero-product-cta-actions .add-request-quote-button {
    background-color: #34C759 !important;
    color: #ffffff !important;
    border: none !important;
    cursor: pointer !important;
}

.aero-css-fix .aero-product-cta-actions .add-request-quote-button:hover {
    background-color: #2aa84c !important;
}

.aero-css-fix .aero-product-cta-actions .add-request-quote-button.is-in-quote {
    background-color: #009cde !important;
}

/* Login for Distributor Pricing — outlined pill */
.aero-css-fix .aero-product-cta-actions .sidebar-distributor-button a,
.aero-css-fix .aero-product-cta-actions .sidebar-distributor-button a.button {
    background-color: transparent !important;
    color: #009CDE !important;
    border: 2px solid #009CDE !important;
    padding: 6px 14px !important;
    margin: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    border-radius: 999px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
}

.aero-css-fix .aero-product-cta-actions .sidebar-distributor-button a:hover {
    background-color: #009CDE !important;
    color: #ffffff !important;
}

/* CTA actions container */
.aero-css-fix .aero-product-cta-actions {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
    margin-top: auto !important;
    padding-top: 10px !important;
    padding-bottom: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* CTA sub-containers that theme * reset may have broken */
.aero-css-fix .aero-product-cta-actions > div {
    padding: 0 !important;
    margin: 0 !important;
}

/* YITH quote form label/input that may sneak in */
.aero-css-fix .aero-product-cta-actions .yith-ywraq-add-button {
    padding: 0 !important;
    margin: 0 !important;
}

/* YITH spinner/loading next to button */
.aero-css-fix .aero-product-cta-actions .ajax-loading,
.aero-css-fix .aero-product-cta-actions .spinner {
    display: none !important;
}

/* ── 4. Form elements — search inputs, selects, textareas ──────────────── */
.aero-css-fix input[type="text"],
.aero-css-fix input[type="search"],
.aero-css-fix input[type="number"],
.aero-css-fix select,
.aero-css-fix textarea {
    min-height: 0 !important;
    height: auto !important;
    margin-bottom: 0 !important;
    border-radius: 12px !important;
    box-sizing: border-box !important;
    font-family: inherit !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

/* Placeholder colour — theme sets #FFF which makes text vanish */
.aero-css-fix input::placeholder,
.aero-css-fix textarea::placeholder {
    color: #9aa3af !important;
    opacity: 1 !important;
    padding-left: 0 !important;
}

/* Searchable-select toggle — re-assert plugin styles with higher specificity */
.aero-css-fix .aero-searchable-toggle {
    padding: 12px 16px !important;
    margin: 0 !important;
    border: 2px solid #d2d2d7 !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    min-height: 0 !important;
    height: auto !important;
}

.aero-css-fix .aero-searchable-select.is-open .aero-searchable-toggle {
    border-color: #009CDE !important;
    box-shadow: 0 0 0 4px rgba(0, 156, 222, 0.1) !important;
}

/* Searchable input inside toggle */
.aero-css-fix .aero-searchable-input,
.aero-css-fix .aero-searchable-input[type="text"],
.aero-css-fix .aero-searchable-input[type="search"] {
    display: none;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.aero-css-fix .aero-searchable-select.is-open .aero-searchable-input {
    display: block !important;
}

.aero-css-fix .aero-searchable-input::placeholder {
    color: #9aa3af !important;
    padding-left: 0 !important;
}

/* ── 5. Links — prevent The7 colour/decoration from overriding ─────────── */
.aero-css-fix .aero-comparison-table a {
    text-decoration: none;
}

.aero-css-fix .aero-product-title-link {
    color: #1d1d1f !important;
    text-decoration: none !important;
}

.aero-css-fix .aero-product-title-link:hover {
    color: #009CDE !important;
}

/* ── 6. Overflow / clipping fix for highlight bar ──────────────────────── */
/* The glow & inset box-shadows on .aero-spec-current-match td can be
   clipped by ancestors that carry overflow:hidden.  Ensure the table
   wrapper and content area allow visible overflow so the blue bar
   extends edge-to-edge. */
.aero-css-fix .aero-comparison-content {
    overflow: visible !important;
}

.aero-css-fix .aero-comparison-table {
    overflow: visible !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

.aero-css-fix .aero-comparison-table-wrapper {
    overflow-x: auto !important;
    overflow-y: visible !important;
}

/* Highlight-row cells — safeguard against theme resets eating the padding
   that creates the visual bar effect. */
.aero-css-fix .aero-spec-current-match td {
    padding: 14px 16px !important;
}

/* ── 7. Image sizing — prevent The7 max-width:100% from collapsing ───── */
.aero-css-fix .aero-comparison-product-cell img,
.aero-css-fix .aero-product-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* ── 8. Product cell layout — protect flex/grid from theme resets ──────── */
.aero-css-fix .aero-comparison-product-cell {
    padding: 16px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.aero-css-fix .aero-comparison-product-cell .aero-product-display {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 0 !important;
    margin: 0 !important;
    height: 100% !important;
}

/* ── 9. Header row (sticky column) ─────────────────────────────────────── */
.aero-css-fix .sticky-col {
    padding: 14px 16px !important;
    margin: 0 !important;
}

/* ── 10. Remove column button — stop theme border/bg leaking ──────────── */
.aero-css-fix .aero-remove-column-btn {
    border: 1.5px dashed #c7ccd2 !important;
    background: rgba(255, 255, 255, 0.92) !important;
    padding: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
    min-width: 0 !important;
    color: #8e8e93 !important;
}

.aero-css-fix .aero-remove-column-btn:hover {
    border-color: #ff3b30 !important;
    color: #ff3b30 !important;
    background: rgba(255, 59, 48, 0.06) !important;
}

/* ── 11. New tab icon — stop The7 a.button from inflating it ─────────── */
.aero-css-fix .aero-open-new-tab-link {
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 22px !important;
    height: 22px !important;
    border-radius: 999px !important;
    border: 1px solid #d2d2d7 !important;
    background: #ffffff !important;
}

/* ── 12. Print / PDF — ensure fix class doesn't double-up ──────────────── */
/* ── 13. Mobile overrides inside CSS fix scope ────────────────────────── */
@media (max-width: 768px) {
    .aero-css-fix .aero-comparison-table th,
    .aero-css-fix .aero-comparison-table td {
        padding: 10px 8px !important;
    }

    .aero-css-fix .aero-comparison-product-cell {
        padding: 10px 8px !important;
    }

    .aero-css-fix .aero-product-cta-actions .button,
    .aero-css-fix .aero-product-cta-actions a.button,
    .aero-css-fix .aero-product-cta-actions .add-request-quote-button,
    .aero-css-fix .aero-product-cta-actions a.add-request-quote-button {
        padding: 6px 10px !important;
        font-size: 11px !important;
        min-height: 0 !important;
        white-space: nowrap !important;
    }

    .aero-css-fix .aero-product-cta-actions .sidebar-where-buy-button a,
    .aero-css-fix .aero-product-cta-actions .sidebar-distributor-button a {
        padding: 6px 10px !important;
        font-size: 11px !important;
        min-height: 0 !important;
        white-space: nowrap !important;
    }

    .aero-css-fix .aero-product-cta-actions {
        gap: 5px !important;
        padding-top: 6px !important;
    }

    .aero-css-fix .aero-product-cta-actions > div {
        width: 100% !important;
        text-align: center !important;
    }

    .aero-css-fix .aero-product-image {
        max-width: 100px !important;
    }

    .aero-css-fix .aero-comparison-header {
        padding: 12px 12px !important;
    }

    .aero-css-fix .aero-comparison-header h2 {
        font-size: 18px !important;
    }

    .aero-css-fix .sticky-col {
        padding: 10px 8px !important;
    }
}

@media (max-width: 480px) {
    .aero-css-fix .aero-comparison-table th,
    .aero-css-fix .aero-comparison-table td {
        padding: 8px 6px !important;
    }

    .aero-css-fix .aero-comparison-product-cell {
        padding: 8px 6px !important;
    }

    .aero-css-fix .aero-product-image {
        max-width: 80px !important;
    }

    .aero-css-fix .aero-product-cta-actions .button,
    .aero-css-fix .aero-product-cta-actions a.button,
    .aero-css-fix .aero-product-cta-actions .add-request-quote-button {
        font-size: 10px !important;
        padding: 5px 8px !important;
    }

    .aero-css-fix .aero-product-cta-actions .sidebar-where-buy-button a,
    .aero-css-fix .aero-product-cta-actions .sidebar-distributor-button a {
        font-size: 10px !important;
        padding: 5px 8px !important;
    }

    .aero-css-fix .sticky-col {
        padding: 8px 6px !important;
    }
}

/* ── 14. Print ─────────────────────────────────────────────────────────── */
@media print {
    .aero-css-fix .aero-product-cta-actions {
        display: none !important;
    }
}

/* Print: hide carousel nav */
@media print {
    .aero-carousel-nav {
        display: none !important;
    }
}
