/* MB Scrollbar Styles - From temp.html */
.mb-container {
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.mb-container:hover.mb-scroll-x > .mb-buttons-x,
.mb-container:hover.mb-scroll-x > .mb-buttons-x > .mb-track-x,
.mb-container:hover.mb-scroll-x > .mb-track-x,
.mb-visible.mb-scroll-x > .mb-buttons-x,
.mb-visible.mb-scroll-x > .mb-buttons-x > .mb-track-x,
.mb-visible.mb-scroll-x > .mb-track-x {
    opacity: 1;
}

.mb-content {
    box-sizing: content-box;
    height: 100%;
    overflow: auto;
    width: auto;
}

/* Hide scrollbar for buildsheet images */
#buildsheet-images .mb-content {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
}

#buildsheet-images .mb-content::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.mb-track {
    -webkit-transition: opacity .25s;
    transition: opacity .25s;
}

.mb-bar,
.mb-track {
    border-radius: 5px;
    position: absolute;
}

.mb-bar {
    background-color: var(--ford-red);
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    z-index: 10;
    position: absolute;
    height: 100%;
    width: 20%;
    left: 0;
}

.mb-track-x {
    bottom: 5px;
    height: 10px;
    left: 5px;
    opacity: 1;
    width: calc(100% - 10px);
}

.mb-track-x .mb-bar {
    height: 100%;
    left: 0;
    min-width: 10px;
    top: 0;
}

.mb-buttons {
    position: relative;
}

.mb-buttons-x {
    height: 16px;
    opacity: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.mb-buttons-x .mb-decrease {
    left: 0;
}

.mb-buttons-x .mb-decrease:before {
    -webkit-transform: rotate(-135deg);
    transform: rotate(-135deg);
}

.mb-buttons-x .mb-increase {
    right: 0;
}

.mb-buttons-x .mb-increase:before {
    left: -1px;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}

.mb-nav .mb-bar {
    background-color: var(--ford-red);
}

.mb-nav .mb-bar:hover {
    background-color: #e88f2a;
}

.mb-nav .mb-track {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 0;
}

#buildsheet-images + .mb-buttons-x .mb-bar {
    background-color: var(--ford-red);
    border-radius: 3px;
    height: 100%;
}

#buildsheet-images + .mb-buttons-x .mb-track {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 1.5px;
}

.mb-nav .mb-track-x {
    height: 16px;
    left: 16px;
    width: calc(100% - 32px);
}

/* Specific styles for buildsheet slider */
#buildsheet-images + .mb-buttons-x {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 0;
    padding-bottom: 0;
    height: auto;
    opacity: 1;
}

#buildsheet-images + .mb-buttons-x .mb-track-x {
    position: relative;
    bottom: auto;
    left: auto;
    height: 6px;
    flex: 1;
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

#buildsheet-images + .mb-buttons-x .mb-button {
    background-color: #1a1a1a;
    border: 2px solid var(--ford-red);
    cursor: pointer;
    height: 48px;
    padding: 0;
    position: relative;
    width: 48px;
    color: var(--ford-red);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.1s ease;
}

#buildsheet-images + .mb-buttons-x .mb-button:hover {
    background-color: var(--ford-red);
    color: #fff;
}

#buildsheet-images + .mb-buttons-x .mb-button:before {
    content: none;
}

/* Use Font Awesome chevrons */
#buildsheet-images + .mb-buttons-x .mb-button.mb-decrease:after {
    content: "\f053";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: inherit;
}

#buildsheet-images + .mb-buttons-x .mb-button.mb-increase:after {
    content: "\f054";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: inherit;
}

.mb-track-x .mb-decrease {
    left: 0;
}

.mb-track-x .mb-increase {
    right: 0;
}

/* Override for visible state */
.mb-visible .mb-buttons-x {
    opacity: 1;
}

/* Inactive button state */
#buildsheet-images + .mb-buttons-x .mb-button.inactive {
    opacity: 0.3;
    cursor: not-allowed;
}

#buildsheet-images + .mb-buttons-x .mb-button.inactive:hover {
    background-color: #1a1a1a;
    color: var(--ford-red);
}