/*
 * Cartridge People GA - Motion theme refresh
 * Loaded last from Views/Shared/Head.cshtml so theme and SevenSpikes
 * components can be updated without modifying vendor plugin files.
 */

:root {
    --cp-navy: #153f69;
    --cp-navy-dark: #0e2f51;
    --cp-blue: #1479bb;
    --cp-blue-dark: #08669f;
    --cp-green: #79bf35;
    --cp-green-dark: #63a728;
    --cp-ink: #172f49;
    --cp-muted: #617186;
    --cp-line: #dfe7ef;
    --cp-soft: #f4f7fa;
    --cp-white: #fff;
    --cp-shadow: 0 10px 30px rgba(20, 63, 105, .09);
}

html, body {
    background: #fff !important;
    color: var(--cp-ink);
    font-family: "Segoe UI", Arial, sans-serif;
}

body:before,
.master-wrapper-page:before,
.master-wrapper-page:after {
    display: none !important;
}

a { color: var(--cp-blue); }
a:hover { color: var(--cp-blue-dark); }

input, select, textarea, button {
    font-family: inherit;
}

input[type="text"], input[type="email"], input[type="tel"], input[type="password"],
select, textarea {
    border: 1px solid #cfd9e3;
    border-radius: 6px;
    background: #fff;
    color: var(--cp-ink);
    box-shadow: none;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--cp-blue);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(20, 121, 187, .12);
}

.button-1, .button-2,
button, input[type="button"], input[type="submit"] {
    border-radius: 5px;
    font-weight: 700;
    letter-spacing: .01em;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

/* Header */
.cp-header {
    position: relative;
    z-index: 1050;
    background: #fff;
    box-shadow: 0 1px 0 var(--cp-line);
}

.cp-header .header-top {
    min-height: 32px;
    background: var(--cp-navy-dark) !important;
    color: #fff;
}

.cp-announcement {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 32px;
    padding: 0 22px;
    font-size: 12px;
    font-weight: 600;
}

.cp-announcement span { margin: 0 8px; color: #9fc0dd; }
.cp-announcement a { color: #fff; text-decoration: none; }
.cp-announcement-contact a:before { content: "\260E"; margin-right: 7px; }

.cp-header .header-bottom {
    height: auto;
    background: #fff !important;
}

.cp-header .header-bottom > .header-centering {
    display: flex;
    align-items: center;
    gap: 30px;
    min-height: 86px;
    padding: 14px 22px;
}

.cp-header .header-logo {
    position: static;
    flex: 0 0 330px;
    margin: 0;
}

.cp-header .header-logo .logo {
    display: flex;
    align-items: center;
    width: auto;
    height: auto;
}

.cp-header .header-logo img {
    width: auto;
    max-width: 100%;
    max-height: 62px;
}

.cp-desktop-search {
    position: relative;
    flex: 1 1 520px;
    max-width: 650px;
    margin-left: auto;
}

.cp-desktop-search form {
    display: flex;
    width: 100%;
}

.cp-desktop-search .search-box-text {
    width: 100% !important;
    height: 46px;
    padding: 0 116px 0 18px;
    border: 1px solid #cbd7e2;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
}

.cp-desktop-search .search-box-button {
    position: absolute;
    top: 0;
    right: 0;
    width: 104px;
    height: 46px;
    border: 0;
    border-radius: 0 6px 6px 0;
    background: var(--cp-blue) !important;
    color: #fff;
    font-size: 14px;
    text-indent: 0;
}

.cp-desktop-search .search-box-button:hover { background: var(--cp-blue-dark) !important; }

.cp-header-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 18px;
}

.cp-quick-order-link {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 14px;
    border: 1px solid var(--cp-blue);
    border-radius: 5px;
    background: #fff;
    color: var(--cp-blue) !important;
    font-size: 13px;
    font-weight: 750;
    line-height: 1;
    text-decoration: none !important;
    white-space: nowrap;
}

.cp-quick-order-link:hover {
    border-color: var(--cp-blue-dark);
    background: #edf7fd;
    color: var(--cp-blue-dark) !important;
}

.cp-quick-order-icon {
    display: inline-flex;
    width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--cp-green);
    color: #fff;
    font-size: 18px;
    font-weight: 500;
}

.cp-header-actions .shopping-cart-link { order: 2; float: none; margin: 0; }
.cp-account-links { order: 1; float: none; margin: 0; }
.cp-header-selectors { display: none; }

.cp-header-actions .header-links ul,
.cp-header-actions .header-links-wrapper,
.cp-header-actions .header-links {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.cp-header-actions .header-links li { margin: 0; }
.cp-account-links .ico-register,
.cp-account-links .ico-logout,
.cp-account-links .ico-inbox,
.cp-account-links .ico-wishlist { display: none !important; }

.cp-header-actions .ico-account,
.cp-header-actions .ico-login,
.cp-header-actions .ico-cart {
    display: flex;
    min-height: 42px;
    align-items: center;
    padding: 0 0 0 34px;
    background-position: left center !important;
    color: var(--cp-ink) !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.cp-header-actions .cart-label { display: inline; }
.cp-header-actions .cart-qty {
    margin-left: 4px;
    color: var(--cp-green);
    font-size: 12px;
}

.cp-header-actions #flyout-cart { top: 60px; right: 0; }

/* Main navigation / Mega Menu */
.header-menu {
    position: relative;
    z-index: 1000;
    min-height: 48px;
    border: 0;
    border-bottom: 1px solid var(--cp-line);
    background: #fff !important;
    box-shadow: 0 4px 14px rgba(21, 63, 105, .04);
}

.header-menu > ul,
.header-menu .mega-menu {
    display: flex;
    justify-content: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-menu > ul > li,
.header-menu .mega-menu > li { margin: 0; }

.header-menu > ul > li > a,
.header-menu .mega-menu > li > a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 22px;
    border: 0 !important;
    background: transparent !important;
    color: var(--cp-ink) !important;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

.header-menu > ul > li:hover > a,
.header-menu .mega-menu > li:hover > a {
    color: var(--cp-blue) !important;
}

.header-menu .sublist,
.mega-menu .dropdown {
    border: 1px solid var(--cp-line) !important;
    border-radius: 0 0 8px 8px;
    background: #fff !important;
    box-shadow: var(--cp-shadow) !important;
}

.header-menu .sublist a,
.mega-menu .dropdown a { color: var(--cp-ink) !important; }
.header-menu .sublist a:hover,
.mega-menu .dropdown a:hover { color: var(--cp-blue) !important; }

/* Layout and homepage */
.master-wrapper-page,
.master-wrapper-content {
    width: 100%;
    max-width: none;
    margin: 0;
    background: #fff;
}

.master-column-wrapper {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

.html-home-page .master-column-wrapper {
    max-width: none;
    padding: 0;
}

.html-home-page .home-page .page-body { margin: 0; }

.cp-home-hero {
    min-height: 365px;
    background: linear-gradient(100deg, #edf8ff 0%, #f9fcfe 58%, #eef3f7 100%);
    overflow: hidden;
}

.cp-home-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(480px, 1.1fr);
    align-items: center;
    max-width: 1280px;
    min-height: 365px;
    margin: 0 auto;
    padding: 38px 24px;
}

.cp-home-hero-copy { position: relative; z-index: 2; }
.cp-home-hero-copy .cp-eyebrow {
    margin: 0 0 12px;
    color: var(--cp-blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
}

.cp-home-hero-copy h1 {
    margin: 0 0 15px;
    color: var(--cp-navy-dark);
    font-size: clamp(38px, 4vw, 56px);
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: 1.04;
}

.cp-home-hero-copy > p:not(.cp-eyebrow) {
    max-width: 560px;
    margin: 0 0 24px;
    color: #40546a;
    font-size: 18px;
    line-height: 1.5;
}

.cp-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cp-button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    border: 2px solid transparent;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none !important;
    text-transform: uppercase;
}

.cp-button-primary { background: var(--cp-green); color: #fff !important; }
.cp-button-primary:hover { background: var(--cp-green-dark); }
.cp-button-secondary { border-color: var(--cp-blue); background: #fff; color: var(--cp-blue) !important; }
.cp-button-secondary:hover { background: #edf7fd; }

.cp-home-hero-art { align-self: end; margin: 0 -25px -15px -35px; }
.cp-home-hero-art img { display: block; width: 100%; height: auto; }

.cp-home-intro {
    position: relative;
    z-index: 3;
    max-width: 1280px;
    margin: -18px auto 0;
    padding: 0 24px;
}

.cp-home-intro > * {
    max-width: 1280px;
    margin-right: auto !important;
    margin-left: auto !important;
}

.cp-home-intro .topic-block,
.cp-home-intro .topic-block-body {
    margin: 0;
    border-radius: 9px;
    background: #fff;
}

.cp-home-intro .topic-block {
    border: 1px solid var(--cp-line);
    box-shadow: var(--cp-shadow);
    overflow: hidden;
}

.cp-home-intro .topic-block-title {
    margin: 0;
    padding: 20px 24px 0;
    border: 0;
    color: var(--cp-ink);
    text-align: left;
}

.cp-home-intro .topic-block-body { padding: 10px 24px 24px; }
.cp-home-intro .topic-block-body > p:first-child,
.cp-home-intro .topic-block-body > div:first-child > p:first-child { margin-top: 0; }

.html-home-page .slider-wrapper,
.html-home-page .anywhere-slider {
    max-width: none;
    margin: 0 auto;
    box-shadow: none;
}

.html-home-page .slider-wrapper img,
.html-home-page .anywhere-slider img {
    width: 100%;
    max-height: 390px;
    object-fit: cover;
}

.cp-home-benefits {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 18px auto 28px;
    padding: 0 24px;
}

.cp-benefit {
    display: flex;
    min-height: 84px;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid var(--cp-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(21, 63, 105, .05);
}

.cp-benefit-icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eaf5fc;
    color: var(--cp-blue);
    font-size: 21px;
}

.cp-benefit strong,
.cp-benefit small { display: block; }
.cp-benefit strong { color: var(--cp-blue-dark); font-size: 14px; }
.cp-benefit small { margin-top: 4px; color: var(--cp-muted); font-size: 12px; }

.html-home-page .home-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 55px;
}

.html-home-page .home-page-category-grid,
.html-home-page .product-grid,
.html-home-page .news-list-homepage,
.html-home-page .home-page-polls {
    margin: 42px 0 0;
}

.home-page .title,
.product-grid .title,
.product-carousel .carousel-title,
.nop-jcarousel .carousel-title,
.smart-product-collections .title {
    margin: 0 0 22px;
    border: 0 !important;
    background: none !important;
    text-align: left;
}

.home-page .title strong,
.product-grid .title strong,
.product-carousel .carousel-title strong,
.nop-jcarousel .carousel-title strong,
.smart-product-collections .title strong {
    color: var(--cp-ink) !important;
    font-size: 28px;
    font-weight: 750;
    letter-spacing: -.02em;
    text-transform: none;
}

/* Category and brand tiles */
.item-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.category-grid .item-box,
.manufacturer-grid .item-box {
    float: none;
    width: auto !important;
    margin: 0 !important;
    border: 1px solid var(--cp-line);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 5px 18px rgba(21, 63, 105, .05);
}

.category-grid .item-box:hover,
.manufacturer-grid .item-box:hover {
    border-color: #b8cfdf;
    box-shadow: var(--cp-shadow);
}

.category-grid .item-box .title,
.manufacturer-grid .item-box .title {
    padding: 15px;
    text-align: center;
}

/* Product cards, grids and carousels */
.product-grid .item-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-grid .item-box,
.product-list .item-box,
.product-carousel .item-box,
.nop-jcarousel .item-box,
.jCarouselMainWrapper .item-box,
.smart-product-collections .item-box {
    float: none;
    width: auto !important;
    margin: 0 !important;
    padding: 0;
    border: 1px solid var(--cp-line);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(21, 63, 105, .05);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.product-grid .item-box:hover,
.product-carousel .item-box:hover,
.nop-jcarousel .item-box:hover,
.jCarouselMainWrapper .item-box:hover,
.smart-product-collections .item-box:hover {
    border-color: #bfd1e0;
    transform: translateY(-3px);
    box-shadow: var(--cp-shadow);
}

.item-box .product-item {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    border: 0 !important;
    background: #fff !important;
}

.item-box .picture {
    position: relative;
    margin: 0 !important;
    padding: 18px 18px 8px;
    background: #fff;
}

.item-box .picture a:before { padding-top: 78% !important; }
.item-box .picture img { object-fit: contain; }

.item-box .details {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 14px 18px 18px !important;
    text-align: left;
}

.item-box .product-title {
    min-height: 44px;
    margin: 0 0 8px;
    line-height: 1.35;
}

.item-box .product-title a {
    color: var(--cp-ink) !important;
    font-size: 15px;
    font-weight: 650;
}

.item-box .product-title a:hover { color: var(--cp-blue) !important; }
.item-box .sku { margin: 0 0 7px; color: var(--cp-muted); font-size: 12px; }
.item-box .description { display: none !important; }
.item-box .product-rating-box { margin: 0 0 8px; }

.item-box .add-info {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    margin-top: auto;
}

.item-box .prices {
    min-height: 35px;
    margin: 3px 0 12px !important;
    text-align: left !important;
}

.item-box .prices .actual-price {
    color: var(--cp-navy) !important;
    font-size: 21px !important;
    font-weight: 800;
}

.item-box .prices .old-price { color: #8793a0 !important; }
.item-box .buttons { display: flex; gap: 8px; margin-top: auto; }

.item-box .product-box-add-to-cart-button {
    width: 100% !important;
    height: 42px;
    border: 0 !important;
    background: var(--cp-blue) !important;
    color: #fff !important;
    font-size: 13px;
    text-indent: 0 !important;
}

.item-box .product-box-add-to-cart-button:before {
    content: "\1F6D2";
    margin-right: 7px;
    font-size: 13px;
}

.item-box .product-box-add-to-cart-button:hover { background: var(--cp-blue-dark) !important; }
.item-box .add-to-wishlist-button,
.item-box .add-to-compare-list-button { display: none !important; }

/* Hard resets for Motion's legacy card treatments */
.page .item-box .prices,
.page .item-box .prices:before,
.page .products .item-info .prices,
.page .products .item-info .prices:after {
    width: auto !important;
    min-height: 0 !important;
    margin: 4px 0 14px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--cp-navy) !important;
}
.page .item-box .prices:before,
.page .products .item-info .prices:after { display: none !important; content: none !important; }
.page .item-box .prices .actual-price,
.page .item-box .prices .old-price { display: inline-block !important; background: transparent !important; }
.page .item-box .prices .old-price { margin-right: 8px; font-size: 13px !important; }
.page .item-box .buttons {
    display: flex !important;
    width: 100% !important;
    margin-top: auto !important;
}
.page .item-box .buttons .product-box-add-to-cart-button {
    display: inline-flex !important;
    width: 100% !important;
    min-width: 0 !important;
    align-items: center;
    justify-content: center;
    padding: 0 16px !important;
    background-image: none !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 750 !important;
    line-height: 42px !important;
    text-indent: 0 !important;
}

/* SevenSpikes carousels and collections */
.jCarouselMainWrapper,
.product-carousel,
.nop-jcarousel,
.smart-product-collections {
    max-width: 1280px;
    margin: 42px auto 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

/* Final header reset: one SevenSpikes-enhanced search form, no legacy positioning */
@media all and (min-width: 1025px) {
    .responsive-nav-wrapper-parent { display: none !important; }
    .cp-header .header-bottom > .header-centering {
        position: relative !important;
        width: min(100%, 1400px) !important;
        min-height: 78px !important;
        margin: 0 auto !important;
        padding: 10px 24px !important;
    }
    .cp-header .header-logo {
        position: static !important;
        top: auto !important;
        left: auto !important;
        width: 280px !important;
        flex-basis: 280px !important;
    }
    .cp-header .cp-desktop-search,
    .cp-header .cp-desktop-search.store-search-box {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        float: none !important;
        width: auto !important;
        max-width: none !important;
        margin: 0 !important;
        flex: 1 1 460px !important;
        background: transparent !important;
    }
    .cp-header .cp-header-actions,
    .cp-header .cp-header-actions .shopping-cart-link,
    .cp-header .cp-header-actions .header-links-wrapper,
    .cp-header .cp-header-actions .header-links {
        position: static !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        float: none !important;
        width: auto !important;
        margin: 0 !important;
    }
    .cp-header .cp-header-actions { gap: 10px !important; }
}

/* SevenSpikes Instant Search — integrated with the single header form */
.cp-desktop-search #small-search-box-form { display: flex !important; align-items: stretch; }
.cp-desktop-search .k-autocomplete,
.cp-desktop-search span.search-box-text {
    display: block !important;
    position: relative !important;
    float: none !important;
    width: 100% !important;
    flex: 1 1 auto !important;
    border: 0 !important;
    background: transparent !important;
}
.cp-desktop-search input.search-box-text,
.cp-desktop-search input.search-box-text.narrow {
    width: 100% !important;
    height: 46px !important;
    padding: 0 116px 0 18px !important;
    border: 1px solid #cbd7e2 !important;
    border-radius: 8px !important;
    background-color: #fff !important;
    color: var(--cp-ink) !important;
    box-shadow: none !important;
}
.cp-desktop-search .search-box-select {
    order: -1;
    width: 145px !important;
    height: 46px !important;
    margin: 0 -1px 0 0 !important;
    padding: 0 34px 0 13px !important;
    border: 1px solid #cbd7e2 !important;
    border-radius: 8px 0 0 8px !important;
    background-color: #f7fafc !important;
    color: #40566c !important;
}
.cp-desktop-search .search-box-select + .k-autocomplete input.search-box-text,
.cp-desktop-search.search-option-enabled input.search-box-text { border-radius: 0 8px 8px 0 !important; }
.cp-desktop-search .search-box-button {
    position: absolute !important;
    z-index: 3;
    top: 0 !important;
    right: 0 !important;
    width: 104px !important;
    height: 46px !important;
    border-radius: 0 8px 8px 0 !important;
}
.instantSearch,
.instantSearch.resize {
    width: min(620px, calc(100vw - 32px)) !important;
    height: auto !important;
    overflow: hidden !important;
    border: 1px solid #d5e0ea !important;
    border-radius: 10px !important;
    background: #fff !important;
    box-shadow: 0 18px 45px rgba(18, 45, 73, .2) !important;
}
.instantSearch .k-list-container { border: 0 !important; box-shadow: none !important; }
.instantSearch .k-list-item { border-color: #e5edf3 !important; }
.instantSearch .instant-search-item { padding: 12px !important; }
.instantSearch .instant-search-item .img-block { border-radius: 7px; }
.instantSearch .instant-search-item .detail .title { color: var(--cp-ink); font-weight: 700; }
.instantSearch .instant-search-item .detail .price { color: var(--cp-blue-dark) !important; font-weight: 800; }

@media (max-width: 1024px) {
    .responsive-nav-wrapper .search-box .search-box-select { display: none !important; }
}

.jCarouselMainWrapper .slick-list,
.product-carousel .slick-list { padding: 4px 2px 24px; }
.nop-jcarousel .slick-list { padding: 4px 2px 24px; }

.jCarouselMainWrapper .slick-slide,
.product-carousel .slick-slide { margin: 0 8px; }
.nop-jcarousel .slick-slide { margin: 0 8px; }

.jCarouselMainWrapper .slick-prev,
.jCarouselMainWrapper .slick-next,
.product-carousel .slick-prev,
.product-carousel .slick-next,
.nop-jcarousel .slick-prev,
.nop-jcarousel .slick-next {
    width: 40px;
    height: 40px;
    border: 1px solid var(--cp-line) !important;
    border-radius: 50%;
    background-color: #fff !important;
    box-shadow: 0 4px 14px rgba(21, 63, 105, .12);
}

.smart-product-collections .navigation { border-color: var(--cp-line) !important; }
.smart-product-collections .navigation li a { color: var(--cp-muted) !important; }
.smart-product-collections .navigation li.active a,
.smart-product-collections .navigation li a:hover { color: var(--cp-blue) !important; }

/* Ajax Filters */
.nopAjaxFilters7Spikes,
.block.product-filters {
    border: 1px solid var(--cp-line) !important;
    border-radius: 8px;
    background: #fff !important;
    box-shadow: 0 4px 16px rgba(21, 63, 105, .05);
    overflow: hidden;
}

.nopAjaxFilters7Spikes .block .title,
.product-filters .filter-title {
    border: 0 !important;
    border-bottom: 1px solid var(--cp-line) !important;
    background: var(--cp-soft) !important;
    color: var(--cp-ink) !important;
    font-weight: 700;
    text-transform: none;
}

.nopAjaxFilters7Spikes .clearFilterOptions,
.nopAjaxFilters7Spikes .clearAllFilters { color: var(--cp-blue) !important; }

/* Instant search and Ajax Cart */
.instant-search-busy { border-color: var(--cp-blue) !important; }
.instant-search-results {
    border: 1px solid var(--cp-line) !important;
    border-radius: 0 0 8px 8px;
    background: #fff !important;
    box-shadow: var(--cp-shadow) !important;
    overflow: hidden;
}

.instant-search-item { border-color: #edf1f5 !important; }
.instant-search-item:hover { background: #f2f8fc !important; }

.ajaxCart .k-window,
.productAddedToCartWindow,
.miniProductDetailsView {
    border: 0 !important;
    border-radius: 10px !important;
    background: #fff !important;
    box-shadow: 0 20px 65px rgba(13, 47, 81, .2) !important;
}

.ajaxCart .k-window-titlebar,
.productAddedToCartWindowTitle {
    background: var(--cp-navy) !important;
    color: #fff !important;
}

/* Product details */
.product-details-page,
.shopping-cart-page,
.wishlist-page,
.account-page,
.contact-page,
.search-page {
    padding: 30px 0 55px;
}

.product-details-page .overview,
.product-details-page .gallery {
    border: 1px solid var(--cp-line);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(21, 63, 105, .05);
}

.product-details-page .overview { padding: 28px; }
.product-details-page .product-name h1 { color: var(--cp-ink); font-size: 28px; line-height: 1.25; }
.product-details-page .product-price span { color: var(--cp-navy) !important; }
.product-details-page .add-to-cart-button { background: var(--cp-green) !important; color: #fff !important; }
.product-details-page .add-to-cart-button:hover { background: var(--cp-green-dark) !important; }

/* Topic and informational pages */
.html-topic-page { background: var(--cp-soft) !important; }

.html-topic-page .master-column-wrapper,
.html-contact-page .master-column-wrapper {
    max-width: 1120px;
    padding-top: 36px;
    padding-bottom: 64px;
}

.topic-page,
.contact-page {
    border: 1px solid var(--cp-line);
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--cp-shadow);
    overflow: hidden;
}

.topic-page .page-title,
.contact-page .page-title {
    margin: 0;
    padding: 32px 44px 22px;
    border: 0;
    border-bottom: 1px solid var(--cp-line);
    background: linear-gradient(90deg, #f0f8fd, #fff);
    text-align: left;
}

.topic-page .page-title h1,
.contact-page .page-title h1 {
    color: var(--cp-navy);
    font-size: 32px;
    font-weight: 750;
    letter-spacing: -.02em;
    text-transform: none;
}

.cp-page-eyebrow {
    display: block;
    margin-bottom: 7px;
    color: var(--cp-blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
}

.topic-page .page-body,
.contact-page .page-body {
    max-width: 900px;
    margin: 0;
    padding: 36px 44px 48px;
    color: #3f5061;
    font-size: 16px;
    line-height: 1.75;
    text-align: left;
}

.topic-page .page-body h2,
.topic-page .page-body h3,
.topic-page .page-body h4 {
    margin: 1.5em 0 .55em;
    color: var(--cp-ink);
    line-height: 1.3;
}

.topic-page .page-body h2 { font-size: 24px; }
.topic-page .page-body h3 { font-size: 20px; }
.topic-page .page-body p { margin: 0 0 1.1em; }
.topic-page .page-body ul,
.topic-page .page-body ol { margin: 0 0 1.2em 24px; }
.topic-page .page-body li { margin-bottom: .45em; }
.topic-page .page-body img { max-width: 100%; height: auto; border-radius: 8px; }

.cp-topic-content { width: 100%; }
.cp-topic-lead {
    margin: 0 0 24px !important;
    color: #334b62;
    font-size: 19px;
    line-height: 1.55;
}

.cp-updated {
    margin: -12px 0 26px !important;
    color: var(--cp-muted);
    font-size: 13px;
}

.cp-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 24px 0 34px;
}

.cp-info-card {
    display: flex;
    min-height: 128px;
    flex-direction: column;
    justify-content: center;
    padding: 22px;
    border: 1px solid var(--cp-line);
    border-radius: 8px;
    background: var(--cp-soft);
    color: var(--cp-ink) !important;
    text-decoration: none !important;
}

a.cp-info-card:hover { border-color: #b7d1e3; background: #edf7fd; }
.cp-info-card strong { margin-bottom: 7px; color: var(--cp-navy); font-size: 17px; }
.cp-info-card span { color: #526579; font-size: 14px; line-height: 1.55; }

.cp-callout {
    margin: 26px 0;
    padding: 18px 20px;
    border-left: 4px solid var(--cp-green);
    border-radius: 0 7px 7px 0;
    background: #f4faee;
    color: #405447;
}

.cp-steps { counter-reset: cp-step; margin-left: 0 !important; padding: 0; list-style: none; }
.cp-steps li {
    position: relative;
    min-height: 48px;
    margin: 0 0 15px !important;
    padding: 8px 0 8px 58px;
}

.cp-steps li:before {
    counter-increment: cp-step;
    content: counter(cp-step);
    position: absolute;
    top: 2px;
    left: 0;
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--cp-blue);
    color: #fff;
    font-weight: 800;
}

.cp-contact-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 15px;
    margin-top: 36px;
    padding: 20px 22px;
    border-radius: 8px;
    background: var(--cp-navy);
    color: #fff;
}

.cp-contact-strip a { color: #fff; text-decoration: underline; }
.cp-reward-banner {
    display: flex;
    align-items: center;
    gap: 22px;
    margin: 22px 0 34px;
    padding: 25px;
    border-radius: 9px;
    background: var(--cp-navy);
    color: #fff;
}

.cp-reward-number {
    display: flex;
    width: 68px;
    height: 68px;
    flex: 0 0 68px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--cp-green);
    font-size: 34px;
    font-weight: 800;
}

.cp-reward-banner strong,
.cp-reward-banner span { display: block; }
.cp-reward-banner strong { margin-bottom: 5px; font-size: 22px; }
.cp-reward-banner div span { color: #d7e4ef; font-size: 14px; }

.cp-faq details {
    margin: 0 0 10px;
    border: 1px solid var(--cp-line);
    border-radius: 7px;
    background: #fff;
    overflow: hidden;
}

.cp-faq summary {
    position: relative;
    padding: 16px 48px 16px 18px;
    color: var(--cp-ink);
    font-weight: 700;
    line-height: 1.4;
    cursor: pointer;
    list-style: none;
}

.cp-faq summary::-webkit-details-marker { display: none; }
.cp-faq summary:after { content: "+"; position: absolute; top: 13px; right: 18px; color: var(--cp-blue); font-size: 23px; }
.cp-faq details[open] summary { background: var(--cp-soft); }
.cp-faq details[open] summary:after { content: "\2212"; }
.cp-faq details > div { padding: 17px 18px 20px; border-top: 1px solid var(--cp-line); }

.cp-contact-page .page-body { max-width: none; }
.cp-contact-page .cp-contact-form { max-width: 760px; margin-top: 28px; }
.cp-contact-page .form-fields { padding: 24px; border: 1px solid var(--cp-line); border-radius: 8px; background: var(--cp-soft); }

.topic-page .page-body table {
    display: block;
    max-width: 100%;
    margin: 24px 0;
    border: 1px solid var(--cp-line);
    border-radius: 8px;
    overflow-x: auto;
    border-collapse: separate;
    border-spacing: 0;
}

.topic-page .page-body th { background: var(--cp-soft); color: var(--cp-ink); }
.topic-page .page-body th,
.topic-page .page-body td { padding: 12px 15px; border-bottom: 1px solid var(--cp-line); }

.contact-page .fieldset { margin: 0; }
.contact-page .inputs { text-align: left; }
.contact-page .inputs label { width: 180px; color: var(--cp-ink); font-weight: 650; }
.contact-page .inputs input,
.contact-page .inputs textarea { width: calc(100% - 205px); max-width: 620px; }
.contact-page .buttons { margin-left: 185px; text-align: left; }
.contact-page .contact-us-button { background: var(--cp-blue) !important; color: #fff !important; }

/* Real One Page Checkout */
.html-real-one-page-checkout { background: var(--cp-soft) !important; }

.ropc-page,
.real-one-page-checkout {
    max-width: 1320px;
    margin: 0 auto;
    padding: 34px 24px 64px;
}

.ropc-page .page-title,
.real-one-page-checkout .page-title {
    border: 0 !important;
    text-align: left;
}

.ropc-page .page-title h1,
.real-one-page-checkout .page-title h1 {
    color: var(--cp-ink) !important;
    font-size: 30px !important;
    text-transform: none !important;
}

.ropc .section,
.ropc .panel,
.real-one-page-checkout .section {
    margin-bottom: 18px !important;
    border: 1px solid var(--cp-line) !important;
    border-radius: 9px !important;
    background: #fff !important;
    box-shadow: 0 5px 20px rgba(21, 63, 105, .06) !important;
    overflow: hidden;
}

.ropc .section .title,
.ropc .panel .title,
.ropc .section-title,
.real-one-page-checkout .section .title {
    padding: 16px 20px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--cp-line) !important;
    background: var(--cp-soft) !important;
    color: var(--cp-ink) !important;
    text-align: left !important;
    text-transform: none !important;
}

.ropc .section .title strong,
.ropc .section-title strong,
.real-one-page-checkout .section .title strong { font-size: 17px !important; }

.ropc .section-title strong:before { background: var(--cp-green) !important; }

.ropc .section-body,
.ropc .panel-body,
.real-one-page-checkout .section-body { padding: 20px !important; }

.ropc input[type="text"], .ropc input[type="email"], .ropc input[type="tel"],
.ropc select, .real-one-page-checkout input, .real-one-page-checkout select {
    min-height: 42px;
    border-radius: 6px !important;
}

.ropc .complete-button,
.ropc .confirm-order-button,
.real-one-page-checkout .confirm-order-button {
    min-height: 50px;
    border: 0 !important;
    background: var(--cp-green) !important;
    color: #fff !important;
    font-size: 16px !important;
}

.ropc .complete-button:hover,
.ropc .confirm-order-button:hover,
.real-one-page-checkout .confirm-order-button:hover { background: var(--cp-green-dark) !important; }

/* Footer */
.cp-footer {
    margin: 0;
    background: var(--cp-navy-dark) !important;
    color: #cbd9e6;
}

.cp-footer .footer-top,
.cp-footer .footer-middle,
.cp-footer .footer-bottom {
    border: 0 !important;
    background: transparent !important;
}

.cp-footer .footer-top { padding: 42px 0 26px; }
.cp-footer .footer-middle { padding: 10px 0 36px; }
.cp-footer .footer-bottom { border-top: 1px solid rgba(255,255,255,.12) !important; padding: 18px 0; }

.cp-footer .footer-centering {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 34px;
    max-width: 1280px;
    padding: 0 24px;
}

.cp-footer .footer-block {
    float: none;
    width: auto;
    margin: 0;
    padding: 0;
    text-align: left;
}

.cp-footer .footer-block h3,
.cp-footer .footer-block .title,
.cp-footer .topic-block-title strong {
    margin: 0 0 15px;
    color: #fff !important;
    font-size: 14px;
    font-weight: 750;
    letter-spacing: .02em;
    text-transform: none;
}

.cp-footer .footer-menu li,
.cp-footer .footer-menu a,
.cp-footer .topic-block-body,
.cp-footer .topic-block-body p {
    color: #cbd9e6 !important;
    font-size: 13px;
    line-height: 1.7;
}

.cp-footer .footer-menu a:hover { color: #fff !important; }
.cp-footer .footer-menu li { margin: 0 0 5px; background: none !important; padding-left: 0 !important; }
.cp-footer .cp-footer-contact .phone:before { content: "Call: "; color: #fff; font-weight: 700; }
.cp-footer .cp-footer-contact .email:before { content: "Email: "; color: #fff; font-weight: 700; }
.cp-footer .cp-footer-contact .location:before { content: "Location: "; color: #fff; font-weight: 700; }
.cp-footer .cp-footer-social { align-self: start; }

.cp-footer .newsletter-email {
    display: flex;
    max-width: 360px;
}

.cp-footer .newsletter-subscribe-text {
    width: 100% !important;
    height: 42px;
    border: 0;
    border-radius: 5px 0 0 5px;
    padding: 0 12px;
}

.cp-footer .newsletter-subscribe-button {
    height: 42px;
    border: 0;
    border-radius: 0 5px 5px 0;
    background: var(--cp-green) !important;
    color: #fff !important;
    padding: 0 15px;
}

.cp-footer .footer-bottom .footer-centering {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 24px;
}

.cp-footer .footer-disclaimer { margin-right: auto; color: #9fb2c5; }
.cp-footer .footer-powered-by,
.cp-footer .footer-designed-by,
.cp-footer .footer-tax-shipping { color: #9fb2c5; }
.cp-footer .footer-powered-by a,
.cp-footer .footer-designed-by a { color: #cbd9e6; }
.cp-footer .accepted-payment-methods { order: 4; }

/* Tablet */
@media (max-width: 1024px) {
    .cp-header .header-bottom > .header-centering { gap: 18px; }
    .cp-header .header-logo { flex-basis: 260px; }
    .cp-header-actions { gap: 12px; }
    .cp-quick-order-link { padding: 0 10px; }
    .cp-header-actions .ico-account,
    .cp-header-actions .ico-login,
    .cp-header-actions .ico-cart { width: 38px; padding-left: 38px; overflow: hidden; white-space: nowrap; }
    .header-menu > ul > li > a,
    .header-menu .mega-menu > li > a { padding: 0 13px; }
    .product-grid .item-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .cp-home-hero-inner { grid-template-columns: minmax(0, 1fr) minmax(390px, .9fr); }
    .cp-home-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cp-footer .footer-centering { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Mobile */
@media (max-width: 768px) {
    .cp-announcement { justify-content: center; padding: 6px 14px; text-align: center; }
    .cp-announcement-contact { display: none; }
    .cp-header .header-bottom > .header-centering { min-height: 72px; padding: 10px 14px; }
    .cp-header .header-logo { flex: 1 1 auto; }
    .cp-header .header-logo img { max-height: 50px; }
    .cp-desktop-search { display: none; }
    .cp-header-actions .cp-account-links { display: none; }
    .cp-quick-order-link {
        min-height: 38px;
        padding: 0 9px;
        border-color: var(--cp-line);
        font-size: 12px;
    }
    .cp-header-actions .ico-cart { width: 40px; min-height: 40px; padding-left: 40px; }
    .responsive-nav-wrapper-parent { background: #fff !important; border-bottom: 1px solid var(--cp-line); }
    .responsive-nav-wrapper { min-height: 48px; background: #fff !important; }
    .responsive-nav-wrapper .menu-title,
    .responsive-nav-wrapper .search-wrap { color: var(--cp-ink) !important; }
    .header-menu { border: 0; }
    .master-column-wrapper { padding-right: 15px; padding-left: 15px; }
    .html-home-page .home-page { padding: 0 15px 38px; }
    .cp-home-hero { min-height: 0; }
    .cp-home-hero-inner { display: block; min-height: 0; padding: 38px 20px 18px; text-align: center; }
    .cp-home-hero-copy > p:not(.cp-eyebrow) { margin-right: auto; margin-left: auto; font-size: 16px; }
    .cp-hero-actions { justify-content: center; }
    .cp-home-hero-art { max-width: 620px; margin: 18px auto -8px; }
    .cp-home-intro { margin-top: 0; padding: 0 15px; }
    .cp-home-benefits { margin-top: 14px; padding: 0 15px; }
    .html-home-page .slider-wrapper img,
    .html-home-page .anywhere-slider img { max-height: 260px; }
    .item-grid,
    .product-grid .item-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .item-box .details { padding: 12px !important; }
    .item-box .picture { padding: 12px 12px 4px; }
    .home-page .title strong,
    .product-grid .title strong,
    .product-carousel .carousel-title strong { font-size: 23px; }
    .nop-jcarousel .carousel-title strong { font-size: 23px; }
    .topic-page .page-title,
    .contact-page .page-title { padding: 24px 22px 18px; }
    .topic-page .page-title h1,
    .contact-page .page-title h1 { font-size: 27px; }
    .topic-page .page-body,
    .contact-page .page-body { padding: 26px 22px 34px; font-size: 15px; }
    .cp-info-grid { grid-template-columns: 1fr; }
    .cp-info-card { min-height: 0; }
    .cp-contact-strip { display: block; }
    .cp-contact-strip strong,
    .cp-contact-strip span { display: block; }
    .cp-contact-strip strong { margin-bottom: 5px; }
    .contact-page .inputs label { display: block; width: auto; margin-bottom: 6px; }
    .contact-page .inputs input,
    .contact-page .inputs textarea { width: 100%; }
    .contact-page .buttons { margin-left: 0; }
    .cp-footer .footer-centering { grid-template-columns: 1fr; gap: 24px; }
    .cp-footer .footer-bottom .footer-centering { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 480px) {
    .cp-announcement-message span { display: none; }
    .cp-announcement-message { line-height: 1.5; }
    .cp-header .header-logo img { max-width: 230px; }
    .cp-quick-order-text { display: none; }
    .cp-quick-order-link { width: 38px; padding: 0; border: 0; }
    .item-grid,
    .product-grid .item-grid { grid-template-columns: 1fr; }
    .cp-home-hero-copy h1 { font-size: 36px; }
    .cp-home-benefits { grid-template-columns: 1fr; }
    .item-box .picture a:before { padding-top: 62% !important; }
    .product-details-page,
    .shopping-cart-page,
    .wishlist-page,
    .account-page,
    .contact-page,
    .search-page { padding-top: 20px; }
}

/* Header search: Kendo Instant Search is one grid, not separate controls */
.cp-desktop-search #small-search-box-form {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 104px;
    width: 100% !important;
    align-items: stretch;
}
.cp-desktop-search.search-option-enabled #small-search-box-form {
    grid-template-columns: 145px minmax(0, 1fr) 104px;
}
.cp-desktop-search .k-autocomplete,
.cp-desktop-search span.search-box-text {
    position: relative !important;
    grid-column: 1;
    width: 100% !important;
    min-width: 0 !important;
}
.cp-desktop-search.search-option-enabled .k-autocomplete,
.cp-desktop-search.search-option-enabled span.search-box-text { grid-column: 2; }
.cp-desktop-search .search-box-select {
    grid-column: 1;
    grid-row: 1;
    width: 145px !important;
    border-radius: 8px 0 0 8px !important;
}
.cp-desktop-search .search-box-button {
    position: static !important;
    grid-column: 2;
    grid-row: 1;
    width: 104px !important;
    margin: 0 !important;
    border-radius: 0 8px 8px 0 !important;
}
.cp-desktop-search.search-option-enabled .search-box-button { grid-column: 3; }
.cp-desktop-search input.search-box-text,
.cp-desktop-search input.search-box-text.narrow {
    float: none !important;
    width: 100% !important;
    padding-right: 16px !important;
    border-radius: 8px 0 0 8px !important;
}
.cp-desktop-search.search-option-enabled input.search-box-text,
.cp-desktop-search.search-option-enabled input.search-box-text.narrow { border-radius: 0 !important; }

/* Hardcoded navigation */
@media all and (min-width: 1025px) {
    .header-menu .cp-main-menu { display: flex !important; align-items: stretch; justify-content: center; }
    .header-menu .cp-main-menu > li { position: relative; }
    .header-menu .cp-main-menu > li > a {
        display: flex !important;
        min-height: 48px;
        align-items: center;
        padding: 0 22px !important;
        background: transparent !important;
        color: var(--cp-ink) !important;
        font-size: 13px !important;
        font-weight: 750 !important;
    }
    .header-menu .cp-main-menu > li:hover > a { background: #f2f7fb !important; color: var(--cp-blue-dark) !important; }
    .header-menu .cp-main-menu .sublist-wrap {
        display: none;
        position: absolute;
        z-index: 1002;
        top: 100%;
        left: 0;
        min-width: 240px;
    }
    .header-menu .cp-main-menu > li:hover > .sublist-wrap { display: block; }
    .header-menu .cp-main-menu .sublist {
        display: grid !important;
        min-width: 240px;
        padding: 10px !important;
        border: 1px solid var(--cp-line) !important;
        border-radius: 0 0 10px 10px;
        background: #fff !important;
        box-shadow: var(--cp-shadow) !important;
        text-align: left;
    }
    .header-menu .cp-main-menu .cp-brand-menu { grid-template-columns: repeat(2, 190px); }
    .header-menu .cp-main-menu .sublist li { display: block !important; }
    .header-menu .cp-main-menu .sublist a {
        display: block !important;
        padding: 10px 12px !important;
        border-radius: 6px;
        background: transparent !important;
        color: var(--cp-ink) !important;
        font-size: 13px !important;
        font-weight: 600 !important;
    }
    .header-menu .cp-main-menu .sublist a:hover { background: #edf5fb !important; color: var(--cp-blue-dark) !important; }
}

/* Unified footer, overriding Motion's fixed widths and angled separators */
.cp-footer .cp-footer-main {
    padding: 46px 0 38px;
    background: var(--cp-navy-dark) !important;
}
.cp-footer .cp-footer-main:before,
.cp-footer .cp-footer-main:after,
.cp-footer .footer-bottom:before,
.cp-footer .footer-bottom:after { display: none !important; content: none !important; }
.cp-footer .footer-centering.cp-footer-grid {
    display: grid !important;
    grid-template-columns: 1.15fr .8fr .95fr 1.25fr;
    gap: 54px;
    width: 100% !important;
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding: 0 24px !important;
    overflow: visible !important;
}
.cp-footer .cp-footer-grid > section,
.cp-footer .cp-footer-grid .footer-block,
.cp-footer .cp-footer-grid .footer-block:nth-child(n) {
    float: none !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}
.cp-footer .cp-footer-grid h3 {
    margin: 0 0 16px !important;
    padding: 0 0 12px !important;
    border-bottom: 1px solid rgba(255,255,255,.13);
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 800 !important;
}
.cp-footer .cp-footer-grid h3:before { display: none !important; }
.cp-footer .cp-footer-grid p { margin: 0 0 18px; color: #b9cada !important; font-size: 13px; line-height: 1.65; }
.cp-footer .cp-footer-grid .footer-menu { margin: 0 !important; padding: 0 !important; }
.cp-footer .cp-footer-grid .footer-menu li {
    margin: 0 0 9px !important;
    padding: 0 !important;
    background: none !important;
    color: #b9cada !important;
    font-size: 13px !important;
    line-height: 1.55;
}
.cp-footer .cp-footer-grid a { color: #d5e2ed !important; }
.cp-footer .cp-footer-grid a:hover { color: #fff !important; }
.cp-footer .cp-footer-newsletter .newsletter .title { display: none !important; }
.cp-footer .cp-footer-newsletter .block-newsletter { padding: 0 !important; }
.cp-footer .cp-footer-newsletter .newsletter-email {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 48px;
    width: 100%;
    max-width: none;
    padding: 0 !important;
    overflow: hidden;
    border-radius: 7px;
    background: #fff !important;
}
.cp-footer .cp-footer-newsletter .newsletter-subscribe-text { width: 100% !important; border-radius: 0 !important; }
.cp-footer .cp-footer-newsletter .newsletter-subscribe-button { width: 48px !important; border-radius: 0 !important; }
.cp-footer .cp-footer-social { margin-top: 18px; }
.cp-footer .cp-footer-social h3 { display: none !important; }
.cp-footer .cp-footer-bottom-row {
    display: flex !important;
    width: 100% !important;
    max-width: 1280px !important;
    align-items: center;
    gap: 22px;
    margin: 0 auto !important;
    padding: 0 24px !important;
    overflow: visible !important;
}
.cp-footer .footer-bottom { padding: 18px 0 !important; border-top: 1px solid rgba(255,255,255,.1) !important; }
.cp-footer .cp-footer-bottom-row .accepted-payment-methods { order: 2; margin: 0 0 0 auto !important; }
.cp-footer .cp-footer-bottom-row .footer-powered-by { order: 3; }

@media (max-width: 900px) {
    .cp-footer .footer-centering.cp-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; }
}
@media (max-width: 600px) {
    .cp-footer .footer-centering.cp-footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .cp-footer .cp-footer-bottom-row { align-items: flex-start; flex-direction: column; }
    .cp-footer .cp-footer-bottom-row .accepted-payment-methods { margin-left: 0 !important; }
}

/* Compact Instant Search: the SevenSpikes autocomplete owns the only field */
.cp-header .cp-desktop-search,
.cp-header .cp-desktop-search.search-option-enabled { background: transparent !important; }
.cp-header .cp-desktop-search #small-search-box-form,
.cp-header .cp-desktop-search.search-option-enabled #small-search-box-form {
    display: grid !important;
    grid-template-columns: minmax(260px, 1fr) 104px !important;
    gap: 0 !important;
    width: 100% !important;
}
.cp-header .cp-desktop-search #small-search-box-form > .k-input,
.cp-header .cp-desktop-search #small-search-box-form > .k-autocomplete,
.cp-header .cp-desktop-search #small-search-box-form > span.search-box-text,
.cp-header .cp-desktop-search #small-search-box-form > input.search-box-text {
    position: relative !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    float: none !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
}
.cp-header .cp-desktop-search #small-search-box-form .search-box-select,
.cp-header .cp-desktop-search #small-search-box-form .k-dropdownlist { display: none !important; }
.cp-header .cp-desktop-search #small-search-box-form input.search-box-text,
.cp-header .cp-desktop-search #small-search-box-form input.search-box-text.narrow {
    display: block !important;
    width: 100% !important;
    height: 46px !important;
    padding: 0 17px !important;
    border: 1px solid #cbd7e2 !important;
    border-radius: 8px 0 0 8px !important;
    background: #fff !important;
    color: var(--cp-ink) !important;
    font-size: 14px !important;
    line-height: 46px !important;
}
.cp-header .cp-desktop-search #small-search-box-form .search-box-button,
.cp-header .cp-desktop-search.search-option-enabled #small-search-box-form .search-box-button {
    position: static !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: 104px !important;
    height: 46px !important;
    margin: 0 !important;
    border-radius: 0 8px 8px 0 !important;
}

/* Keep all header actions visible and make Instant Search results compact */
@media all and (min-width: 1025px) {
    .cp-header .header-bottom > .header-centering {
        flex-wrap: nowrap !important;
        gap: 18px !important;
    }
    .cp-header .header-logo {
        width: 360px !important;
        max-width: 360px !important;
        flex: 0 1 360px !important;
    }
    .cp-header .header-logo img {
        width: auto !important;
        max-width: 360px !important;
        max-height: 66px !important;
    }
    .cp-header .cp-desktop-search,
    .cp-header .cp-desktop-search.store-search-box {
        width: min(100%, 620px) !important;
        max-width: 620px !important;
        min-width: 330px !important;
        flex: 1 1 520px !important;
    }
    .cp-header .cp-header-actions {
        flex: 0 0 auto !important;
        margin-left: auto !important;
    }
}

.instantSearch,
.instantSearch.resize {
    width: min(540px, calc(100vw - 32px)) !important;
    max-height: 430px !important;
    overflow: hidden !important;
}
.instantSearch .k-list-container,
.instantSearch .k-list,
.instantSearch .k-list-content,
.instantSearch .k-list-scroller {
    width: 100% !important;
    max-width: 100% !important;
}
.instantSearch .k-list-content,
.instantSearch .k-list-scroller {
    max-height: 430px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}
.instantSearch .k-list-item { width: 100% !important; overflow: hidden !important; }
.instantSearch .instant-search-item {
    width: 100% !important;
    min-height: 104px !important;
    padding: 11px 14px !important;
    overflow: hidden !important;
}
.instantSearch .instant-search-item > a {
    display: grid !important;
    grid-template-columns: 82px minmax(0, 1fr) !important;
    gap: 14px !important;
    width: 100% !important;
    align-items: center !important;
}
.instantSearch .instant-search-item .img-block {
    float: none !important;
    width: 82px !important;
    height: 82px !important;
}
.instantSearch .instant-search-item .detail {
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
}
.instantSearch .instant-search-item .detail .title {
    display: -webkit-box !important;
    max-width: 100% !important;
    margin: 0 0 7px !important;
    overflow: hidden !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
    text-overflow: ellipsis !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.instantSearch .instant-search-item .detail .sku {
    max-width: 100% !important;
    overflow: hidden !important;
    color: var(--cp-muted) !important;
    font-size: 11px !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}
.instantSearch .instant-search-item .detail .price {
    margin-top: 3px !important;
    font-size: 15px !important;
    line-height: 1.25 !important;
}

@media (max-width: 1250px) and (min-width: 1025px) {
    .cp-header .header-logo { max-width: 285px !important; flex-basis: 285px !important; }
    .cp-header .header-logo img { max-width: 285px !important; }
    .cp-header .cp-desktop-search,
    .cp-header .cp-desktop-search.store-search-box { max-width: 450px !important; min-width: 280px !important; }
    .cp-header-actions .cp-quick-order-link,
    .cp-header-actions .cp-account-links .ico-account,
    .cp-header-actions .cp-account-links .ico-login { min-width: auto !important; padding-right: 11px !important; padding-left: 11px !important; }
}

/* Account uses the same outlined treatment as Quick Order */
.cp-header-actions .cp-account-links .ico-account,
.cp-header-actions .cp-account-links .ico-login {
    display: inline-flex !important;
    width: auto !important;
    min-width: 112px !important;
    min-height: 42px !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 15px !important;
    overflow: visible !important;
    border: 1px solid var(--cp-blue) !important;
    border-radius: 6px !important;
    background: #fff !important;
    color: var(--cp-blue-dark) !important;
    font-size: 13px !important;
    font-weight: 750 !important;
    line-height: 1 !important;
    text-indent: 0 !important;
    white-space: nowrap !important;
}
.cp-header-actions .cp-account-links .ico-account:hover,
.cp-header-actions .cp-account-links .ico-login:hover { background: #edf7fd !important; }

/* Prevent prices and carousel card content from being cropped */
.page .item-box,
.nop-jcarousel .item-box,
.product-carousel .item-box { overflow: visible !important; }
.page .item-box .details,
.nop-jcarousel .item-box .details { min-width: 0 !important; overflow: visible !important; }
.page .item-box .prices,
.nop-jcarousel .item-box .prices {
    display: flex !important;
    min-width: 0 !important;
    align-items: baseline !important;
    flex-wrap: wrap !important;
    gap: 4px 10px !important;
    overflow: visible !important;
    white-space: normal !important;
}
.page .item-box .prices .actual-price,
.nop-jcarousel .item-box .prices .actual-price {
    max-width: 100% !important;
    font-size: clamp(21px, 1.65vw, 27px) !important;
    line-height: 1.2 !important;
    overflow: visible !important;
    white-space: nowrap !important;
}
.page .item-box .prices .old-price,
.nop-jcarousel .item-box .prices .old-price { line-height: 1.35 !important; white-space: nowrap !important; }
.jCarouselMainWrapper .slick-list,
.product-carousel .slick-list,
.nop-jcarousel .slick-list { padding-top: 12px !important; padding-bottom: 30px !important; }

/* Keep the legacy promotional slider near the end of the homepage */
.cp-original-slider-bottom {
    width: 100vw;
    margin: 52px calc(50% - 50vw) 0;
    overflow: hidden;
}
.cp-original-slider-bottom .slider-wrapper,
.cp-original-slider-bottom .anywhere-slider { margin: 0 !important; }
.cp-original-slider-bottom img { display: block; width: 100%; height: auto; max-height: 360px; object-fit: cover; }

/* Final product-card flow reset for Motion's floated price/button strip */
.page .item-box .add-info,
.nop-jcarousel .item-box .add-info,
.product-carousel .item-box .add-info,
.smart-product-collections .item-box .add-info {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    align-items: stretch !important;
    overflow: visible !important;
    font-size: inherit !important;
}
.page .item-box .add-info > *,
.nop-jcarousel .item-box .add-info > *,
.product-carousel .item-box .add-info > *,
.smart-product-collections .item-box .add-info > * {
    float: none !important;
    clear: both !important;
}
.page .item-box .prices,
.nop-jcarousel .item-box .prices,
.product-carousel .item-box .prices,
.smart-product-collections .item-box .prices {
    position: static !important;
    z-index: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 42px !important;
    margin: 8px 0 16px !important;
    padding: 0 !important;
}
.page .item-box .prices > *,
.nop-jcarousel .item-box .prices > *,
.product-carousel .item-box .prices > *,
.smart-product-collections .item-box .prices > * {
    max-width: none !important;
    max-height: none !important;
    overflow: visible !important;
}
.page .item-box .buttons,
.nop-jcarousel .item-box .buttons,
.product-carousel .item-box .buttons,
.smart-product-collections .item-box .buttons {
    position: static !important;
    width: 100% !important;
    min-height: 44px !important;
    margin: 0 !important;
    overflow: visible !important;
}
.page .item-box .buttons .product-box-add-to-cart-button,
.nop-jcarousel .item-box .buttons .product-box-add-to-cart-button,
.product-carousel .item-box .buttons .product-box-add-to-cart-button,
.smart-product-collections .item-box .buttons .product-box-add-to-cart-button {
    position: static !important;
    width: 100% !important;
    height: 44px !important;
    margin: 0 !important;
}
.page .item-box .details,
.nop-jcarousel .item-box .details,
.product-carousel .item-box .details,
.smart-product-collections .item-box .details { min-height: 220px !important; }

/* Keep the Instant Search field and submit button physically joined */
.cp-header .cp-desktop-search #small-search-box-form,
.cp-header .cp-desktop-search.search-option-enabled #small-search-box-form {
    display: flex !important;
    width: 100% !important;
    height: 46px !important;
    align-items: stretch !important;
    gap: 0 !important;
}
.cp-header .cp-desktop-search #small-search-box-form > .k-input,
.cp-header .cp-desktop-search #small-search-box-form > .k-autocomplete,
.cp-header .cp-desktop-search #small-search-box-form > span.search-box-text {
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 46px !important;
    flex: 1 1 auto !important;
    margin: 0 !important;
    border-radius: 8px 0 0 8px !important;
}
.cp-header .cp-desktop-search #small-search-box-form > input.search-box-text {
    width: auto !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
}
.cp-header .cp-desktop-search #small-search-box-form input.search-box-text,
.cp-header .cp-desktop-search #small-search-box-form input.search-box-text.narrow {
    width: 100% !important;
    min-width: 0 !important;
    height: 46px !important;
    margin: 0 !important;
    border-right: 0 !important;
    border-radius: 8px 0 0 8px !important;
}
.cp-header .cp-desktop-search #small-search-box-form .search-box-button,
.cp-header .cp-desktop-search.search-option-enabled #small-search-box-form .search-box-button {
    position: static !important;
    width: 104px !important;
    min-width: 104px !important;
    height: 46px !important;
    flex: 0 0 104px !important;
    margin: 0 !important;
    border-radius: 0 8px 8px 0 !important;
}
