/* Pack Modernisation: existing BKG blue, typography and page architecture. */
.modernisation {
    --pack-blue: #276ab2;
    --pack-ink: #171b2a;
    --pack-line: #dce5ef;
    --pack-soft: #f3f6fa;
    padding-top: 16px;
}
.modernisation [hidden] { display: none !important; }
.modernisation .modernisation-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.modernisation .category-nav-item {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 13px 25px; margin: 0 !important; border-radius: 0;
    border: 1px solid var(--pack-line); background: #fff; color: var(--pack-ink);
    font-size: 16px; line-height: 1.4; transition: background .15s, border-color .15s;
}
.modernisation .category-nav-item:hover { border-color: var(--pack-blue); color: var(--pack-blue); background: var(--pack-soft); }
.modernisation .category-nav-item.active { background: var(--pack-blue); border-color: var(--pack-blue); color: #fff; box-shadow: 0 4px 12px #276ab224; }
.modernisation .case-sidebar-content { background: var(--pack-soft); border: 1px solid var(--pack-line); border-radius: 0; padding: 24px 20px; }
.modernisation-filter-header { padding-bottom: 0; margin-bottom: 20px; border-bottom: 0; }
.modernisation-filter-header h2 { font-size: 18px; margin-bottom: 0; }
.modernisation-reset { background: transparent; border: 0; padding: 4px 0; color: var(--pack-blue); font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.modernisation-reset:disabled { color: #8a929d; cursor: not-allowed; font-weight: 400; text-decoration: none; }
.modernisation .filter-section { padding-bottom: 18px; border-bottom: 1px solid var(--pack-line); }
.modernisation .filter-section:last-child { border-bottom: 0; padding-bottom: 0; margin-bottom: 0 !important; }
.modernisation .case-sidebar-title { margin-bottom: 0; padding-bottom: 0; border: 0; }
.modernisation .case-sidebar-title::before { display: none; }
.modernisation .accordion-button { background: transparent; color: var(--pack-ink); border: 0; box-shadow: none; font-size: 14px; font-weight: 600; text-transform: none; line-height: 1.5; }
.modernisation .accordion-button::after { width: 14px; height: 14px; background-size: 14px; margin-left: 10px; }
.modernisation .filter-btns { width: 100%; }
.modernisation .filter-btns .input-cont { position: relative; margin: 3px 0; }
.modernisation .filter-radio { position: absolute; opacity: 0; width: 20px; height: 20px; top: 11px; left: 10px; }
.modernisation .filter-btns .input-cont label { display: flex !important; align-items: center; gap: 10px; min-height: 42px; margin: 0; padding: 9px 10px; border-radius: 0; font-size: 14px; font-weight: 400; line-height: 1.45; cursor: pointer; overflow-wrap: anywhere; }
.modernisation .filter-radio + label::before { content: ''; flex: 0 0 18px; height: 18px; border: 1.5px solid #8b9bad; border-radius: 50%; background: white; }
.modernisation .filter-radio:checked + label { color: var(--pack-blue); background: #e4edf7; font-weight: 600; }
.modernisation .filter-radio:checked + label::before { border: 5px solid var(--pack-blue); }
.modernisation .filter-radio + label:hover { background: #e8eef5; }
.modernisation :is(button, a):focus-visible,
.modernisation input:focus-visible + label { outline: 3px solid var(--pack-blue); outline-offset: 3px; }
.modernisation-results { padding: 0 0 20px; color: #536276; font-size: 15px; }
.modernisation-results [data-result-count] { font-weight: 700; color: var(--pack-ink); }
.modernisation .product-item { margin-bottom: 24px; }
.modernisation .service-item { height: 100%; margin-bottom: 0; padding: 18px; border: 1px solid var(--pack-line); border-radius: 0; box-shadow: 0 3px 14px #171b2a06; display: flex; flex-direction: column; overflow: hidden; }
.modernisation .service-item::before, .modernisation .service-item::after { display: none; }
.modernisation .service-item:hover { border-color: #a9c4e1; }
.modernisation .img-container { position: relative; height: 210px; border-radius: 0; background: #fff; overflow: hidden; }
.modernisation .img-container img { object-fit: cover; }
.modernisation .img2 { pointer-events: none; }
.modernisation .show-alt .img2 { pointer-events: auto; }
.modernisation .show-alt .img1 { pointer-events: none; opacity: 0; }
.modernisation .product-badges { display: flex; align-items: flex-start; gap: 6px; margin-bottom: 8px; }
.modernisation .product-item .badge { min-width: 0; overflow-wrap: anywhere; border: 1px solid transparent; align-self: flex-start; white-space: normal; text-align: left; line-height: 1.4; border-radius: 0; font-size: 11px; padding: 5px 8px; }
.modernisation .product-item .badge-secondary { background: transparent; border-color: #8b9bad; color: #536276; }
.modernisation .product-title { font-size: 19px; line-height: 1.35; margin: 8px 0 12px; }
.modernisation .product-desc p { line-height: 1.6; }
.modernisation .features { padding: 14px; margin-bottom: 18px; border-radius: 0; background: var(--pack-soft); }
.modernisation .features:empty { display: none; }
.modernisation .feature { font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.modernisation .feature:last-child { margin-bottom: 0; }
.modernisation .feature-title { font-weight: 600; }
.modernisation .service-arrow { margin-top: auto; padding-top: 12px; }
.modernisation .contact-circle { height: 42px; width: 42px; line-height: 42px; border-radius: 50%; }
.modernisation .shop-btn { border-radius: 0; }
.modernisation .product-image-nav { display: flex; align-items: center; justify-content: space-between; position: absolute; top: 50%; left: 8px; right: 8px; transform: translateY(-50%); z-index: 2; margin: 0; padding: 0; opacity: 0; pointer-events: none; transition: opacity .15s; }
.modernisation .product-image-nav button { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; font-size: 12px; border: 1px solid var(--pack-line); background: #fffffff2; color: var(--pack-blue); cursor: pointer; }
.modernisation .product-image-nav button:hover { background: var(--pack-soft); border-color: var(--pack-blue); }
.modernisation-filter-toggle { display: none; }
@media (max-width: 991px) {
    .modernisation-filter-title { display: none; }
    .modernisation-filter-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 8px 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
    .modernisation-filter-chevron { display: block; flex: 0 0 24px; width: 24px; height: 24px; align-self: center; transition: transform .15s; }
    .modernisation-filter-toggle[aria-expanded="true"] .modernisation-filter-chevron { transform: rotate(180deg); }
    .modernisation-filter-header { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
    .modernisation-filter-header h2 { margin-bottom: 0; }
    #modernisation-filter-body { margin-top: 20px; }
}
.modernisation-empty { padding: 32px; border: 1px solid var(--pack-line); border-radius: 0; background: var(--pack-soft); }
.modernisation-empty h2 { font-size: 22px; margin-bottom: 12px; }
@media (max-width: 991px) {
    .modernisation .case-sidebar { margin-bottom: 24px; }
    .modernisation .filters-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
}
@media (max-width: 575px) {
    .modernisation .modernisation-nav { gap: 8px; }
    .modernisation .category-nav-item { padding: 10px 14px; font-size: 14px; flex: 1 1 auto; }
    .modernisation .filters-products { display: block; }
    .modernisation .img-container { height: 240px; }
}
@media (prefers-reduced-motion: reduce) {
    .modernisation *, .modernisation *::before, .modernisation *::after { transition: none !important; }
}
.modernisation .product-title { text-transform: uppercase; }
@media (min-width: 1400px) and (max-width: 1699px) {
    .modernisation .product-item { flex: 0 0 auto; width: 33.333333%; }
}

/* The request stays reachable while browsing long product lists. */
body:has(.modernisation) { overflow-x: clip; }
.modernisation-request-bar { margin-bottom: 16px; }
.modernisation-request-button { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 16px; background: var(--pack-blue); border: 1px solid var(--pack-blue); color: #fff; font-weight: 600; text-align: center; line-height: 1.5; }
.modernisation-request-button:hover { background: #1c528d; color: #fff; }
.modernisation-request-bar > button { display: block; margin: 8px auto 0; }
.modernisation .contact-circle.is-selected { background: #174578; outline: 3px solid #b8d2ec; }
.modernisation-dialog { width: min(620px, calc(100% - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 32px; border: 1px solid var(--pack-line); color: var(--pack-ink); background: #fff; box-shadow: 0 20px 80px #171b2a40; overflow-y: auto; }
.modernisation-dialog::backdrop { background: #101e32a6; }
body:has(.modernisation-dialog[open]) { overflow: hidden; }
.modernisation-dialog h2 { font-size: 25px; padding-right: 24px; margin-bottom: 12px; }
.modernisation-dialog-close { position: absolute; top: 8px; right: 10px; width: 40px; height: 40px; background: transparent; border: 0; font-size: 30px; color: var(--pack-ink); }
.modernisation-selection-list { list-style: none; padding: 0; margin: 20px 0; }
.modernisation-selection-list li { display: flex; align-items: flex-start; gap: 16px; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--pack-line); font-size: 14px; line-height: 1.6; }
.modernisation-selection-list span { overflow-wrap: anywhere; }
.modernisation-dialog-actions { display: grid; gap: 12px; }
.modernisation-continue { padding: 14px 16px; background: var(--pack-soft); color: var(--pack-blue); border: 1px solid var(--pack-line); line-height: 1.5; }
.modernisation-dialog-note { font-size: 13px; margin: 16px 0 0; color: #536276; }
@media (min-width: 992px) {
    .modernisation .case-sidebar { position: sticky; top: 140px; max-height: calc(100dvh - 156px); display: flex; flex-direction: column; }
    .modernisation .case-sidebar-content { overflow-y: auto; min-height: 0; margin-bottom: 0; }
    .modernisation-request-bar { flex-shrink: 0; }
}
@media (max-width: 991px) {
    body:has(.modernisation-request-bar:not([hidden])) { padding-bottom: calc(140px + env(safe-area-inset-bottom)); }
    .modernisation-request-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1035; margin: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--pack-line); box-shadow: 0 -4px 20px #171b2a12; }
    .modernisation-dialog { padding: 28px 20px 20px; }
}

.modernisation .service-item:hover .product-image-nav,
.modernisation .service-item:focus-within .product-image-nav { opacity: 1; }
/* Touch devices have no hover; retain access to the alternate photo. */
@media (hover: none) {
    .modernisation .product-image-nav { opacity: 1; }
}
.modernisation-filter-reset { display: block; width: 100%; padding: 9px 12px; margin: 0 0 20px; border: 1px solid var(--pack-line); background: #fff; text-align: center; text-decoration: none; }
.modernisation-filter-reset:not(:disabled):hover { border-color: var(--pack-blue); background: #e4edf7; }
.modernisation-filter-reset:disabled { background: transparent; }
.modernisation-request-button[aria-disabled="true"] { background: #e3e7ec; border-color: #e3e7ec; color: #737d89; cursor: not-allowed; }
.modernisation-dialog [data-selection-empty] { margin-bottom: 24px; }

.modernisation .service-item:hover .product-image-nav button,
.modernisation .service-item:focus-within .product-image-nav button { pointer-events: auto; }
@media (hover: none) {
    .modernisation .product-image-nav button { pointer-events: auto; }
}
