

/* =========================================================
Modal - Host 
========================================================= */
    
.bo-modal-dialog {
    /*width: 100%;*/
    /*margin: 0.75rem;*/
}

@media (min-width: 768px) {
    .bo-modal-dialog {
        /*margin: 1.5rem auto;*/
    }
}

.bo-modal {
    z-index: 99999;
}

.bo-modal-content {
    border: 0;
    border-radius: var(--bo-radius-lg);
    overflow: hidden;
}

.bo-modal-header {
    align-items: center;
    border-bottom: 1px solid var(--bo-alpha-black-03);
    padding: var(--bo-space-6) var(--bo-space-8);
}

.bo-modal-body {
    padding: var(--bo-space-4);
}

.bo-modal-info {
    font-size: .95rem;
}

.bo-modal-action {
    padding-block: 1rem;
}

.bo-modal .form-check-label,
.bo-modal .bo-lead-toggle {
    font-size: .95rem;
}

.bo-modal .bo-modal-consent-label {
    font-size: .875rem;
    line-height: 1.45;
}

.bo-modal .form-floating > .form-control,
.bo-modal .form-floating > .form-select,
.bo-modal .form-floating > label {
    font-size: .95rem;
}

.bo-modal-header .bo-modal-close {
    align-self: center;
    width: 2.25rem;
    height: 2.25rem;
    margin: 0 0 0 auto;
    padding: 0;
    box-sizing: border-box;
    border: 1px solid var(--bo-alpha-black-08);
    border-radius: 50%;
    background-color: var(--bo-soft);
    background-size: .75rem;
    opacity: 1;
    transition: border-color .15s ease, filter .15s ease;
}

.bo-modal-header .bo-modal-close:hover {
    border-color: var(--bo-alpha-black-15);
    filter: brightness(.97);
}

.bo-modal-header .bo-modal-close:focus {
    box-shadow: none;
}

.bo-modal-header .bo-modal-close:focus-visible {
    border-color: var(--bo-alpha-black-18);
    box-shadow: var(--bo-focus-ring);
}

.bo-modal-heading {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--bo-space-2);
    min-width: 0;
}

.bo-modal-subtitle {
    color: var(--bo-neutral-600);
    font-size: var(--bo-size-sm);
    line-height: 1.2;
}

.bo-modal-subtitle--status {
    display: inline-flex;
    align-items: center;
    min-height: 1.75rem;
    padding: .25rem .625rem;
    border: 1px solid var(--bo-alpha-black-08);
    border-radius: 999px;
    background: var(--bo-surface-subtle);
    color: var(--bo-neutral-800);
    font-size: .8125rem;
    font-weight: 600;
    white-space: nowrap;
}

.bo-modal-title {
    font-size: clamp(1.25rem, 1.18rem + .3vw, 1.4rem);
    font-weight: 700;
    line-height: 1.2;
}

.bo-modal-title--with-icon {
    display: inline-flex;
    align-items: center;
    gap: var(--bo-space-2);
}

.bo-modal-title-icon {
    width: var(--bo-size-7xl);
    height: var(--bo-size-7xl);
    flex: 0 0 auto;
}

.bo-modal-section-title {
    display: flex;
    align-items: center;
    gap: var(--bo-space-3);
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
}

.bo-modal-section-title::before {
    width: .5rem;
    height: .5rem;
    flex: 0 0 auto;
    border: .125rem solid var(--bo-surface);
    border-radius: 50%;
    background: var(--bo-theme-primary, #2563eb);
    box-shadow: 0 0 0 .1875rem var(--bo-alpha-black-06);
    content: '';
}

.bo-modal-section-title::after {
    height: 1px;
    min-width: var(--bo-space-6);
    flex: 1 1 auto;
    background: var(--bo-alpha-black-08);
    content: '';
}

/* Size presets controlled by JS */
.bo-modal--sm .bo-modal-dialog {
    max-width: 520px;
}

.bo-modal--md .bo-modal-dialog {
    max-width: 720px;
}

.bo-modal--lg .bo-modal-dialog {
    max-width: 900px;
}

.bo-modal--xl .bo-modal-dialog {
    max-width: 1100px;
}

/* Fullscreen on mobile for certain modals (gallery/forms) */
@media (max-width: 767.98px) {
    .bo-modal-header {
        padding-inline: var(--bo-space-4);
    }

    .bo-modal--mobile-full .bo-modal-dialog {
        max-width: none;
        width: 100%;
        height: 100%;
        margin: 0;
    }

    .bo-modal--mobile-full .bo-modal-content {
        border-radius: 0;
        height: 100%;
    }

    .bo-modal--mobile-full .bo-modal-body {
        height: calc(100vh - 3.5rem);
        overflow: auto;
    }
}

@media (max-width: 575.98px) {
    .bo-modal-heading--with-status {
        align-items: flex-start;
        flex-direction: column;
        gap: var(--bo-space-2);
    }
}

.bo-hidden {
    display: none !important;
}


/* =========================================================
Modal - Share 
========================================================= */

.bo-modal--share .bo-modal-body {
    padding: 0;
}

.bo-share-modal {
    padding: var(--bo-space-8);
}

.bo-share-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
}

.bo-share-tile {
    background: var(--bo-modal-tile-bg);
    border-radius: var(--bo-radius-3xl);
    padding: var(--bo-space-5) var(--bo-space-4);
    border: 1px solid var(--bo-alpha-black-06);
    display: grid;
    place-items: center;
    gap: var(--bo-space-3);
    text-align: center;
    cursor: pointer;
    user-select: none;
    transition: transform .15s ease, filter .15s ease;
}

.bo-share-tile:hover {
    transform: translateY(-1px);
    filter: brightness(.99);
}

.bo-share-tile:active {
    transform: translateY(0);
}

.bo-share-tile-icon {
    width: 3rem;
    height: 3rem;
    max-height:3rem;
}

.bo-share-label {
    font-size: 1rem;
}

.bo-share-urlbox {
    margin-top: var(--bo-space-6);
    background: var(--bo-modal-urlbox-bg);
    border-radius: var(--bo-radius-md);
    padding: 0.9375rem var(--bo-space-5);
    text-align: center;
    font-weight: 500;
    font-size: clamp(1rem, 1.6vw, 1rem);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 992px) {
    .bo-share-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .bo-share-modal {
        padding: var(--bo-space-4);
    }

    .bo-share-shell {
        padding: var(--bo-space-4);
    }

    .bo-share-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* =========================================================
Modal - Lead 
========================================================= */

.bo-modal--lead .bo-modal-body {
    padding: 0;
}

.bo-lead-modal {
    padding: var(--bo-space-8);
}

.bo-lead-head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: var(--bo-space-6);
}

.bo-lead-title {
    font-size: clamp(1.5rem, 2.2vw, 1.5rem);
    font-weight: 700;
    margin: 0;
}

.bo-lead-fields {
    display: grid;
    gap: var(--bo-space-4);
    align-content: start;
}

.bo-lead-consent {
    display: grid;
    gap: var(--bo-space-1);
}

.bo-lead-consent__control {
    display: flex;
    align-items: center;
    gap: var(--bo-space-2);
}

.bo-lead-consent__control .form-check-input {
    flex: 0 0 auto;
    margin-top: 0;
}

.bo-lead-car-img {
    width: var(--bo-size-11xl);
    height: var(--bo-size-10xl);
    border-radius: var(--bo-radius-xl);
    overflow: hidden;
    background: var(--bo-card-media-bg);
    flex: 0 0 auto;
}

.bo-lead-car-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bo-lead-car-title {
    display: -webkit-box;
    min-width: 0;
    overflow: hidden;
    overflow-wrap: anywhere;
    font-weight: 600;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.bo-lead-car-content {
    min-width: 0;
}

.bo-lead-message {
    min-height: 6.25rem;
}

.bo-lead-trade {
    margin-top: var(--bo-space-3);
}

.bo-lead-trade-fields,
.bo-lead-trade-input-wrapper {
    display: grid;
    gap: var(--bo-space-3);
}

.bo-lead-trade-inputs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--bo-space-3);
}

.bo-trade-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--bo-space-2);
}

.bo-lead-toggle {
    width: 100%;
    background: var(--bo-soft);
    border: 1px solid var(--bo-alpha-black-08);
    border-radius: var(--bo-radius-lg);
    padding: var(--bo-space-3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--bo-space-3);
    font-weight: 600;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.bo-lead-toggle__label {
    display: inline-flex;
    align-items: center;
    gap: var(--bo-space-3);
    min-width: 0;
}

.bo-lead-toggle__icon-wrap {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--bo-white);
    color: currentColor;
    transition: transform .15s ease, filter .15s ease;
}

.bo-lead-toggle__icon {
    width: 1.125rem;
    height: 1.125rem;
}

.bo-lead-toggle:hover .bo-lead-toggle__icon-wrap {
    transform: translateX(.125rem);
    filter: brightness(.97);
}

.bo-lead-toggle:hover {
    border-color: var(--bo-alpha-black-15);
}

.bo-lead-toggle:has(.bo-lead-checkbox:checked) {
    border-color: var(--bs-border-color, #dee2e6);
    background: var(--bo-theme-primary-soft, rgba(37, 99, 235, .1));
}

.bo-lead-toggle:has(.bo-lead-checkbox:checked) .bo-lead-toggle__icon-wrap {
    color: var(--bo-theme-primary, #2563eb);
}

.bo-lead-toggle:focus-within .bo-lead-toggle__icon-wrap {
    box-shadow: var(--bo-focus-ring);
}

.bo-lead-car-meta .bo-pill {
    display: inline-flex;
    align-items: center;
    padding: .25rem .5625rem;
    border-radius: 999px;
    border: 1px solid var(--bo-alpha-black-08);
    font-weight: 500;
    font-size: var(--bo-size-sm);
    color:var(--bo-neutral-900);
}

.bo-pill--lead {
    background: var(--bo-surface-subtle);
}

@media (max-width: 576px) {
    .bo-lead-modal {
        padding: var(--bo-space-4);
    }
}

.bo-chip {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: 0.45rem 0.65rem;
    border-radius: 999px;
    border: 1px solid var(--bo-alpha-black-10);
    background: var(--bo-white);
    font-weight: 700;
    font-size: .85rem;
}

.bo-chip .bo-chip-x {
    width: var(--bo-size-4xl);
    height: var(--bo-size-4xl);
    border-radius: 999px;
    display: grid;
    place-items: center;
    border: 1px solid var(--bo-alpha-black-15);
    background: transparent;
    cursor: pointer;
    font-weight: 900;
    line-height: 1;
}

.bo-lead-toggle {
    cursor: pointer;
}

.bo-lead-checkbox {
    flex: 0 0 auto;
    margin: 0;
    cursor: pointer;
}

.bo-lead-toggle {
    position: relative;
}

/* =========================================================
Modal - SpecsAll 
========================================================= */

/* Full-height modal layout (sticky head/foot, scroll body) */
.bo-specs-modal {
    display: flex;
    flex-direction: column;
    height: min(86vh, 56.25rem);
}

@media (max-width: 576px) {
    .bo-modal--mobile-full .modal-dialog {
        margin: 0;
        height: 100%;
        max-width: 100%;
    }

    .bo-modal--mobile-full .modal-content {
        height: 100%;
        border-radius: 0;
    }

    .bo-specs-modal {
        height: 100%;
    }
}

.bo-modal--specs .bo-modal-body,
.bo-modal--equipment .bo-modal-body {
    padding: 0;
}

.bo-specs-body {
    overflow: auto;
    padding: var(--bo-space-5) var(--bo-space-8);
}

.bo-specs-foot {
    position: sticky;
    bottom: 0;
    z-index: 2;
    background: var(--bo-white);
    padding: var(--bo-space-4) var(--bo-space-8) var(--bo-space-5);
}

/* Sections + rows */
.bo-specs-section {
    margin-bottom: var(--bo-space-6);
}

.bo-specs-section:last-child {
    margin-bottom: 0;
}

.bo-specs-h3 {
    margin-bottom: .75rem;
}

.bo-specs-table {
    border-radius: var(--bo-radius-3xl);
    overflow: hidden;
    border: var(--bo-border);
    background: var(--bo-white);
}

.bo-specs-row {
    display: grid;
    grid-template-columns: minmax(140px, 1fr) 1.4fr;
    gap: 1rem;
    padding: 0.85rem var(--bo-space-4);
    border-top: 1px solid var(--bo-alpha-black-06);
}

.bo-specs-row:first-child {
    border-top: none;
}

.bo-specs-k {
    font-weight: 500;
}

.bo-specs-v {
    color: rgba(0, 0, 0, .72);
}

/* =========================================================
Modal - Equipment 
========================================================= */
 
.bo-eq-modal {
    display: flex;
    flex-direction: column;
    height: min(86vh, 56.25rem);
}

@media (max-width: 576px) {
    .bo-modal--mobile-full .modal-dialog {
        margin: 0;
        height: 100%;
        max-width: 100%;
    }

    .bo-modal--mobile-full .modal-content {
        height: 100%;
        border-radius: 0;
    }

    .bo-eq-modal {
        height: 100%;
    }
}

.bo-eq-body {
    overflow: auto;
    padding: var(--bo-space-5) var(--bo-space-8);
}

.bo-eq-foot {
    position: sticky;
    bottom: 0;
    z-index: 2;
    background: var(--bo-white);
    padding: var(--bo-space-4) var(--bo-space-8) var(--bo-space-5);
}

/* Sections + rows */
.bo-eq-section {
    margin-bottom: var(--bo-space-6);
}

.bo-eq-h3 {
    font-weight: 800;
    font-size: 1.1rem;
    margin: 0 0 .75rem 0;
}

.bo-eq-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom:0;
    list-style:none;
    padding-left:0;
}

    @media (max-width: 767.98px) {

        .bo-eq-list {
            margin-bottom:var(--bo-space-4);
        }
    }


.bo-eq-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem var(--bo-space-4);
    border-radius: var(--bo-radius-3xl);
    background: var(--bo-white);
    border: var(--bo-border);
}

.bo-eq-icon {
    width: .75rem;
    height: .75rem;
    flex: 0 0 auto;
    margin-right:.25rem;
}

.bo-eq-text {
    font-weight: 600;
}

/* =========================================================
Modal - Testdrive 
========================================================= */

.bo-td-schedule {
    padding: var(--bo-space-3);
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: var(--bo-radius-lg);
    background: var(--bo-soft);
}

.bo-td-schedule__head {
    display: flex;
    align-items: center;
    gap: var(--bo-space-3);
    margin-bottom: var(--bo-space-3);
}

.bo-td-schedule__icon-wrap {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--bo-white);
}

.bo-td-schedule__icon {
    width: 1.125rem;
    height: 1.125rem;
}

.bo-td-schedule__title {
    font-size: .95rem;
    font-weight: 600;
}

.bo-td-slot {
    border-radius: var(--bo-radius-2xl);
    border: 1px solid var(--bo-alpha-black-06);
    background: var(--bo-td-slot-bg);
    padding: var(--bo-space-4);
    font-weight: 600;
}

.bo-td-date {
    margin-bottom: var(--bo-space-3);
}

.bo-td-time--segmented {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.bo-td-slot-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .25rem;
}

.bo-td-slot-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bo-td-time--segmented .bo-td-slot-grid {
    padding: .25rem;
    border: 1px solid var(--bo-alpha-black-08);
    border-radius: var(--bo-radius-2xl);
    background: var(--bo-soft);
}

.bo-td-time--segmented .bo-td-slot {
    min-height: 2.5rem;
    padding: .5rem .75rem;
    border-color: transparent;
    border-radius: var(--bo-radius-xl);
    background: transparent;
    font-size: .9rem;
    line-height: 1.2;
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.bo-td-time--segmented .bo-td-slot:not(:disabled):not(.is-active):hover {
    background: var(--bo-alpha-black-03);
}

.bo-td-time--segmented .bo-td-slot.is-active {
    border-color: var(--bo-alpha-black-10);
    background: var(--bo-surface);
    box-shadow: 0 .125rem .375rem var(--bo-alpha-black-08);
}

.bo-td-time--segmented .bo-td-slot:focus-visible {
    outline: 0;
    box-shadow: var(--bo-focus-ring);
}

.bo-td-slot:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.bo-td-slot.is-active {
    background: var(--bo-td-slot-bg-active);
    border-color: var(--bo-alpha-black-12);
}

.bo-reserve-nonbind {
    margin-top: var(--bo-space-4);
}

/* =========================================================
Modal - Secure 
========================================================= */

.bo-secure-modal {
    display: grid;
    gap: var(--bo-space-4);
}

.bo-secure-body {
    display: grid;
    justify-items: center;
    gap: var(--bo-space-4);
    padding: var(--bo-space-4);
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: var(--bo-radius-lg);
    line-height: 1.6;
    text-align: center;
}

.bo-secure-body > :last-child {
    margin-bottom: 0;
}

.bo-secure-visual {
    position: relative;
    display: grid;
    place-items: center;
    width: 8rem;
    height: 5.5rem;
    isolation: isolate;
}

.bo-secure-visual__car-wrap {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 4rem;
    height: 4rem;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 50%;
    background: var(--bo-surface);
    color: var(--bo-theme-primary, #2563eb);
    box-shadow: 0 .375rem 1rem var(--bo-alpha-black-08);
    opacity: 0;
    animation: bo-secure-car-reveal .55s cubic-bezier(.2, .8, .2, 1) .08s forwards;
}

.bo-secure-visual__car-icon {
    width: 2.125rem;
    height: 2.125rem;
}

.bo-secure-visual__value-badge {
    position: absolute;
    z-index: 2;
    right: .25rem;
    bottom: .25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .25rem;
    min-width: 3.25rem;
    height: 2.25rem;
    padding-inline: .5rem;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 999px;
    background: var(--bo-surface);
    color: var(--bo-theme-primary, #2563eb);
    box-shadow: 0 .25rem .75rem var(--bo-alpha-black-08);
    opacity: 0;
    animation: bo-secure-value-reveal .45s cubic-bezier(.2, .8, .2, 1) .38s forwards;
}

.bo-secure-visual__calc-icon {
    width: 1.125rem;
    height: 1.125rem;
}

.bo-secure-visual__arrow-icon {
    width: .875rem;
    height: .875rem;
}

.bo-secure-copy {
    max-width: 32rem;
}

.bo-secure-copy > :last-child {
    margin-bottom: 0;
}

@keyframes bo-secure-car-reveal {
    from {
        opacity: 0;
        transform: translateX(-.625rem) scale(.92);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes bo-secure-value-reveal {
    from {
        opacity: 0;
        transform: translateY(.5rem) scale(.88);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .bo-secure-visual__car-wrap,
    .bo-secure-visual__value-badge {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

.bo-secure-icon {
    width: var(--bo-size-7xl);
    height: var(--bo-size-7xl);
}

/* =========================================================
Modal - Residual
========================================================= */

.bo-modal--secure .bo-modal-body {
    padding: var(--bo-space-4) var(--bo-space-8) var(--bo-space-8);
}

.bo-modal--residual .bo-modal-body {
    padding: var(--bo-space-8);
}

.bo-residual-modal {
    display: grid;
    gap: var(--bo-space-5);
}

.bo-residual-intro {
    font-weight: 600;
}

.bo-residual-soft > :last-child,
.bo-residual-intro {
    margin-bottom: 0;
}

.bo-residual-soft {
    display: grid;
    gap: var(--bo-space-3);
    padding: var(--bo-space-5);
    border: 1px solid var(--bo-alpha-black-06);
    border-radius: var(--bo-radius-3xl);
    line-height: 1.55;
}

.bo-residual-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--bo-space-3);
}

.bo-residual-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: var(--bo-space-2);
    padding: var(--bo-space-4);
    border: 1px solid var(--bo-alpha-black-06);
    border-radius: var(--bo-radius-xl);
    background: var(--bo-surface-soft);
}

.bo-residual-option-icon {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: .0875rem;
    display: grid;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    background: var(--bo-white);
    color: var(--bo-primary, currentColor);
}

.bo-residual-option-icon .bo-icon {
    width: .5rem;
    height: .4375rem;
}

.bo-residual-option-copy {
    display: grid;
    gap: var(--bo-space-1);
    min-width: 0;
    font-size: .95rem;
    line-height: 1.5;
}

.bo-residual-option-copy strong {
    font-weight: 600;
}

@media (max-width: 575.98px) {
    .bo-modal--residual .bo-modal-body {
        padding: var(--bo-space-4);
    }

    .bo-residual-soft,
    .bo-residual-item {
        padding: var(--bo-space-4);
    }
}


/* =========================================================
Modal - Lightbox
========================================================= */

.bo-gallery-modal {
    z-index: 99999;
}

.bo-gallery-modal-dialog {
    width: 100%;
    margin: 0.75rem;
}

.bo-gallery-modal-content {
    border: 0;
    border-radius: 0;
    overflow: hidden;
    background: var(--bo-gallery-lightbox-stage-bg, #151a21);
    color: var(--bo-white);
}

@media (max-width: 767.98px) {
    .bo-gallery-modal-dialog {
        margin: 0;
        height: 100%;
    }

    .bo-gallery-modal-content {
        border-radius: 0;
        height: 100%;
    }
}

.bo-gallery-modal-header {
    min-height: 4.5rem;
    align-items: center;
    border-bottom: 1px solid var(--bo-gallery-border-dark);
    padding: var(--bo-space-3) clamp(var(--bo-space-4), 3vw, var(--bo-space-8));
    background: var(--bo-gallery-lightbox-chrome-bg, #0f141b);
}

.bo-gallery-modal-heading {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: var(--bo-space-3);
}

.bo-gallery-modal-title {
    overflow: hidden;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bo-gallery-modal-counter {
    flex: 0 0 auto;
    padding: .25rem .625rem;
    border: 1px solid var(--bo-alpha-white-12);
    border-radius: var(--bo-radius-pill);
    background: var(--bo-alpha-white-08);
    color: var(--bo-alpha-white-92);
    font-size: .8125rem;
    font-weight: 600;
    line-height: 1.2;
}

.bo-gallery-modal-close {
    width: 2.5rem;
    height: 2.5rem;
    margin: 0 0 0 auto;
    padding: .625rem;
    border: 1px solid var(--bo-alpha-white-12);
    border-radius: var(--bo-radius-pill);
    background-color: var(--bo-alpha-white-08);
    opacity: .9;
    transition: background-color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.bo-gallery-modal-close:focus {
    box-shadow: none;
}

.bo-gallery-modal-close:focus-visible {
    outline: 3px solid var(--bo-alpha-white-92);
    outline-offset: 3px;
}

.bo-gallery-modal-body {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 0;
    background: var(--bo-gallery-lightbox-stage-bg, #151a21);
}

/* Main swiper (stor bild) */
.bo-gallery-lightbox-swiper {
    width: 100%;
    min-height: 0;
    flex: 1 1 auto;
}

@media (max-width: 767.98px) {
    .bo-gallery-lightbox-swiper {
        height: auto;
        /* header + thumbs ungefär */
    }
}

/* Bild: contain i lightbox */
.bo-gallery-lightbox-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bo-gallery-lightbox-swiper img {
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* Prev/next */
.bo-gallery-lightbox-prev,
.bo-gallery-lightbox-next {
    position: absolute;
    top: 50%;
    z-index: 20;
    display: grid;
    place-items: center;
    width: var(--bo-size-8xl);
    height: var(--bo-size-8xl);
    padding: 0;
    border: 0;
    border-radius: var(--bo-radius-pill);
    background: var(--bo-theme-primary);
    color: var(--bo-text-on-primary);
    box-shadow: 0 .625rem 1.5rem var(--bo-alpha-black-25);
    cursor: pointer;
    transform: translateY(-50%);
    transition: box-shadow 180ms ease, filter 180ms ease, transform 180ms ease;
}

.bo-gallery-lightbox-prev {
    left: clamp(var(--bo-space-3), 3vw, var(--bo-space-8));
}

.bo-gallery-lightbox-next {
    right: clamp(var(--bo-space-3), 3vw, var(--bo-space-8));
}

.bo-gallery-lightbox-prev:focus-visible,
.bo-gallery-lightbox-next:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}

.bo-gallery-lightbox-prev:active,
.bo-gallery-lightbox-next:active {
    transform: translateY(-50%) scale(.96);
}

.bo-gallery-lightbox-prev.swiper-button-disabled,
.bo-gallery-lightbox-next.swiper-button-disabled {
    cursor: default;
    opacity: .45;
    pointer-events: none;
}

/* Thumbs */
.bo-gallery-lightbox-thumbs {
    flex: 0 0 auto;
    padding: var(--bo-space-3) clamp(var(--bo-space-4), 3vw, var(--bo-space-8)) var(--bo-space-4);
}

.bo-gallery-lightbox-thumbs .swiper-slide {
    width: 5.25rem;
    height: 3.75rem;
    opacity: 0.6;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--bo-gallery-border-dark-2);
    cursor: pointer;
}

.bo-gallery-lightbox-thumbs .swiper-slide-thumb-active {
    opacity: 1;
    border-color: var(--bo-gallery-border-dark-active);
}

.bo-gallery-lightbox-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* BO ADD: force gallery lightbox fullscreen look */
.bo-gallery-modal .modal-dialog {
    margin: 0;
    max-width: none;
}

.bo-gallery-modal .modal-content {
    border-radius: 0;
    height: 100vh;
    height: 100dvh;
    background: var(--bo-gallery-lightbox-stage-bg, #151a21);
}

.bo-gallery-modal .modal-body {
    height: auto;
    /* headerhöjd ungefär */
}

/* =========================================================
Modal - Watch
========================================================= */

@media (hover: hover) and (pointer: fine) {
    .bo-gallery-modal-close:hover {
        background-color: var(--bo-alpha-white-12);
        opacity: 1;
        transform: scale(1.05);
    }

    .bo-gallery-lightbox-prev:hover,
    .bo-gallery-lightbox-next:hover {
        filter: brightness(1.08);
        box-shadow: 0 .75rem 1.75rem var(--bo-alpha-black-25);
        transform: translateY(-50%) scale(1.06);
    }
}

@media (prefers-reduced-motion: reduce) {
    .bo-gallery-modal-close,
    .bo-gallery-lightbox-prev,
    .bo-gallery-lightbox-next {
        transition: none;
    }
}

.bo-modal--watch .bo-modal-body {
    padding: 0;
}

.bo-watch-modal {
    display: grid;
    gap: var(--bo-space-4);
    padding: var(--bo-space-8);
}

.bo-watch-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--bo-space-2);
}

.bo-watch-chips[hidden] {
    display: none;
}

.bo-watch-intro {
    padding: var(--bo-space-5);
    border: 1px solid var(--bo-alpha-black-06);
    border-radius: var(--bo-radius-3xl);
    line-height: 1.55;
}

.bo-watch-intro p {
    margin: 0;
}

.bo-watch-fields {
    display: grid;
    gap: var(--bo-space-4);
}

.bo-watch-consent {
    margin: 0;
}

.bo-watch-submit[disabled] {
    opacity: .6;
}

@media (max-width: 576px) {
    .bo-watch-modal {
        padding: var(--bo-space-4);
    }
}

.bo-lead-addmoretrade-btn {
    width: fit-content;
}

.bo-lead-addmoretrade-wrapper {
    margin-top: var(--bo-space-2);
}

@media (max-width: 767.98px) {
    .bo-specs-body,
    .bo-eq-body {
        padding-inline: var(--bo-space-4);
    }

    .bo-specs-foot,
    .bo-eq-foot,
    .bo-modal--secure .bo-modal-body {
        padding-inline: var(--bo-space-4);
    }
}

@media (max-width: 575.98px) {
    .bo-lead-trade-inputs {
        grid-template-columns: 1fr;
    }
}

.bo-no-select {
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* gamla Edge/IE */
    user-select: none; /* standard */
}

.bo-modal--result .bo-modal-body {
    padding: 0;
}

.bo-modal--result .bo-modal-header {
    display: none;
}

.bo-modal-result-view {
    --bo-result-accent: var(--bo-success-500, #00a67e);
    --bo-result-soft: rgba(0, 166, 126, .1);
    display: grid;
    justify-items: center;
    gap: var(--bo-space-3);
    padding: var(--bo-space-8);
    text-align: center;
}

.bo-modal-result-view--error {
    --bo-result-accent: var(--bo-danger-500, #dc3545);
    --bo-result-soft: var(--bo-danger-50, #fff1f2);
}

.bo-modal-result-visual {
    position: relative;
    display: grid;
    place-items: center;
    width: 6rem;
    height: 5rem;
    color: var(--bo-result-accent);
    isolation: isolate;
}

.bo-modal-result-visual::before,
.bo-modal-result-visual::after {
    position: absolute;
    z-index: -1;
    width: 4rem;
    height: 4rem;
    border: 1px solid currentColor;
    border-radius: 50%;
    content: '';
    opacity: 0;
    animation: bo-modal-result-ring .8s ease-out forwards;
}

.bo-modal-result-visual::after {
    animation-delay: .14s;
}

.bo-modal-result-icon-wrap {
    display: grid;
    place-items: center;
    width: 4rem;
    height: 4rem;
    border: 1px solid currentColor;
    border-radius: 50%;
    background: var(--bo-result-soft);
    box-shadow: 0 .375rem 1rem var(--bo-alpha-black-08);
    opacity: 0;
    animation: bo-modal-result-icon-reveal .48s cubic-bezier(.2, .8, .2, 1) .08s forwards;
}

.bo-modal-result-icon {
    display: block;
    width: 1.5rem;
    height: 1.5rem;
    color: var(--bo-result-accent);
    fill: currentColor;
    flex: 0 0 auto;
    overflow: visible;
    opacity: 1;
    visibility: visible;
}

.bo-modal-result-icon use {
    color: inherit;
    fill: currentColor;
}

.bo-modal-result-view--error .bo-modal-result-icon {
    width: 1.875rem;
    height: 1.875rem;
}

.bo-modal-result-view--error .bo-modal-result-icon-wrap {
    background: var(--bo-white, #fff);
}

.bo-modal-result-copy {
    display: grid;
    gap: var(--bo-space-2);
    max-width: 31rem;
    opacity: 0;
    animation: bo-modal-result-content-reveal .4s ease-out .24s forwards;
}

.bo-modal-result-title {
    margin: 0;
    font-size: clamp(1.25rem, 1.18rem + .3vw, 1.4rem);
    font-weight: 700;
    line-height: 1.25;
}

.bo-modal-result-message {
    margin: 0;
    color: var(--bo-neutral-700, #495057);
    font-size: .95rem;
    line-height: 1.6;
}

.bo-modal-result-action {
    margin-top: var(--bo-space-2);
    opacity: 0;
    animation: bo-modal-result-content-reveal .4s ease-out .32s forwards;
}

@keyframes bo-modal-result-ring {
    0% {
        opacity: 0;
        transform: scale(.72);
    }
    42% {
        opacity: .35;
    }
    100% {
        opacity: 0;
        transform: scale(1.35);
    }
}

@keyframes bo-modal-result-icon-reveal {
    from {
        opacity: 0;
        transform: scale(.72) rotate(-6deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

@keyframes bo-modal-result-content-reveal {
    from {
        opacity: 0;
        transform: translateY(.5rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 575.98px) {
    .bo-modal-result-view {
        padding: var(--bo-space-6) var(--bo-space-4);
    }
}

@media (prefers-reduced-motion: reduce) {
    .bo-modal-result-visual::before,
    .bo-modal-result-visual::after {
        animation: none;
    }

    .bo-modal-result-icon-wrap,
    .bo-modal-result-copy,
    .bo-modal-result-action {
        animation: none;
        opacity: 1;
        transform: none;
    }
}
