/* Moved from inline <style> in powerflex.products.cfm. */
.powerflex-container {
  display: grid;
  grid-template-columns: 0.5fr 1.5fr;
  grid-template-rows: max-content;
  gap: 0px 0px;
  grid-auto-flow: row;
  grid-template-areas: "Photo Text";
  background-color: #35003a !important;
  align-items:center;
  /*justify-items: center;
  align-items: center;*/
	}

.powerflex-container.equal {
  grid-template-columns: 1fr 1fr; }

.powerflex-container.bigphoto {
  grid-template-columns: 1.5fr 0.5fr; }

.powerflex-container.alt {
  grid-template-columns: 1.5fr 0.5fr;
  grid-template-areas: "Text Photo"; }

.powerflex-container.alt.equal {
  grid-template-columns: 1fr 1fr; }

.powerflex-container.alt.bigphoto {
  grid-template-columns: 0.5fr 1.5fr;
  grid-template-areas: "Text Photo"; }
  
.powerflex-container.white {
    background-color: #fff !important;
    color: #35003a !important;
}

.powerflex-container.extra-space {
    margin: 4vh 0;
}

.Photo {
  grid-area: Photo;
  background-size: cover; 
  text-align: center;
  }

.Text {
  grid-area: Text;
  padding: 5rem;
  color: #fff;
  font-family: Montserrat, sans-serif !important;
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: .02em; }

.Text h3 {
  font-family: Montserrat, sans-serif !important;
  margin-bottom: 8px;
  line-height: 1.5;
  font-size: 1.6rem; }

.Text p {
  /*font-family: "museo", serif;
  font-weight: 500;
  font-style: normal;*/ }
	
	.Text a {
		display: inline-block;
		padding: 15px 20px;
		margin-top: 20px;
		text-decoration: none;
		color: #35003a;
		background: #00f783;
		font-weight: 700;
        border: 3px solid transparent;
	}
    .Text a:hover {
        background: #35003a;
        color: #00f783;
        border-color: #00f783;
    }
    
.powerflex-container.white .Text h3, .powerflex-container.white .Text p {
    color: #35003a !important;
}
    
.powerflex-logo {
    width: 100%;
    padding: 2.5vh 0 0 0;
    margin-top: 2.5vh;
    background: #fff;
}
.powerflex-logo img{
    max-width: 600px;
    margin: 0 auto 2.5vh auto;
}
.mib {
    max-width: 50%;
    padding-top: 1.5vh;
}
.part-collection {
    padding: 3.5vh 0;
    text-align: center;
}

.selectContainer {
    display: flex;
    flex-wrap: wrap;
}
    .selectContainer .select {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 10px;
    }
    .selectContainer .select select {
        display: block;
        width: 100%;
        height: calc(1.5em + .75rem + 2px);
        padding: .375rem .75rem;
        font-size: 1rem;
        font-weight: 400;
        line-height: 1.5;
        color: #495057;
        background-color: #fff;
        background-clip: padding-box;
        border: 1px solid #ced4da;
        border-radius: .25rem;
        transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
        -moz-appearance: auto !important;
        -webkit-appearance: auto !important;
    }
    

@media only screen and (max-width: 1024px) {
  .powerflex-container, .powerflex-container.equal, .powerflex-container.equal.alt {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
    grid-template-areas: 
    "Photo" 
    "Text"; 
    justify-items: center; 
    align-items: start; 
    }
.powerflex-container.equal.alt {
    grid-template-areas: 
    "Text"
    "Photo"; 
}

  .Photo {
    padding-top: 0;
    padding-bottom: 0;
    justify-self: stretch; 
      align-self: center; 
      grid-area: Photo;
}
  .Text {
	 padding: 2.5rem;
     justify-self: stretch; 
      grid-area: Text; 
	}
    
    .probite-logo {
        background-image: none;
    }
    .probite-logo img{
        max-width: 90%;
    }
    
}

#bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  user-select: none;
  aspect-ratio: 16/9;
}

h1.vehicledescription {
    color: #35003a;
    border-bottom: 3px solid #00f783;
    display: inline-block;
    padding: 0 4px 4px 4px;
    margin: 0 0 0.5vh 0;
    font-family: Montserrat, sans-serif !important;
}
p.vehicledetail {
    font-size: 120%;
    font-weight: bold;
    margin-top: 0;
    font-family: Montserrat, sans-serif !important;
}
div.fitting-position {
    text-align: center;
}
h2.fitting-position {
    font-size: 300%;
    color: #35003a;
    border-bottom: 3px solid #00f783;
    display: inline-block;
    padding: 0 4px 4px 4px;
    margin: 2.5vh 0;
    text-transform: uppercase;
}
.changevehicle {
    display: block;
    font-size: 80%;
}
    .changevehicle a, .jumptonext a {
    color: #2F2F2F;
}
.jumptonext {
    display: block;
    margin-top: -2vh;
    margin-bottom: 2vh;
    font-size: 80%;
}

.txtSmaller {
    font-size: 80%;
}
.txtEvenSmaller {
    font-size: 60%;
    font-weight: normal;
}

.series-road {
    color: #6e1287;
}
.series-black {
    color: #000;
}
.series-heritage {
    color: #1d5f30;
}

.diagram-reference {
    width: 100%;
    background-color: #000;
    color: #fff;
    padding: 10px 0 6px 0;
    position: absolute;
    bottom: 0
}

.diagram-reference.series-road {
    background-color: #6e1287;
}
.diagram-reference.series-black {
    background-color: #000;
}
.diagram-reference.series-heritage {
    background-color: #1d5f30;
}

.part-container {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: flex-start;
  font-family: Montserrat, sans-serif !important;
  justify-content: flex-start;
  gap: 20px;
  margin-top: 20px;
  margin-bottom: 20px;
  width: 100%;
}
    .part-option-container {
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
        align-items: flex-start;
        font-family: Montserrat, sans-serif !important;
        justify-content: flex-start;
    }
        .part-option-choose {
            font-size: 150%;
            font-weight: bold;
            color: #35003a;
            margin: 0 auto 10px auto;
            text-align: center;
        }
        .part-option {
            flex: 0 0 50%;
            text-align: center;
            align-self: stretch;
        }

.part-item {
    flex: 0 0 24%;
    text-align: center;
    align-self: stretch;
    border: 5px solid #555;
    padding-bottom: 30px;
    position: relative;
    background-color: #fff;
}
    .part-item.series-road {
        border-color: #6e1287;
    }
    .part-item.series-black {
       border-color: #000;
    }
    .part-item.series-heritage {
        border-color: #1d5f30;
    }
    .part-item.partinstock {
        border-color: #78af2d;
    }
.part-item a p, .part-item p {
    margin-left: 20px;
    margin-right: 20px;
}
.part-item a img {
    margin: 0 auto;
    height: 250px;
    width; auto;
    overflow: hidden;
}
.part-item h3 {
        /*margin-top: -30px;*/
        font-size: 100%;
        color: #000;
        padding: 0 4px 4px 4px;
        margin-left: 10px;
        margin-right: 10px;
        margin-bottom: 0;
        margin-top: 0;
    }
    .part-item h4 {
        font-size: 120%;
        margin: 10px 0 0 0;
    }
.part-item a, .part-item a:hover, .part-item a:active, .part-item a:visited {
    color: #35003a;
    text-decoration: none;
}
.part-pricing {
    font-size: 80%;
}
.perbush {
    font-size: 90%;
    margin-top: 10px;
}
.part-explanation {
    font-family: Montserrat, sans-serif !important;
    padding: 2.5vh 7.5vw;
    color: #35003a;
}
.part-explanation h3 {
    font-size: 200%;
}

.price-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  align-content: center;
  column-gap: 20px;
  margin-bottom: 20px;
}

.price-left, .price-right {
    display: block;
    flex-grow: 0;
    flex-shrink: 1;
    flex-basis: auto;
    align-self: auto;
    font-size: 120%;
    font-weight: bold;
}

.price-heading, .price-margin {
    flex-basis: 100%;
    font-size: 90%;
    font-weight: bold;
    margin-bottom: 10px;
}
.price-margin {
    margin-top: 10px;
    font-size: 100%;
}
.price-left { justify-content: right; }
.price-right { justify-content: left; }
.price-desc {
    font-size: 80%;
    font-weight: normal;
}
.price-break {
    flex-basis: 100%;
    height: 10px;
}

table tbody tr td {
    text-align: center;
}
table tbody tr td img {
    margin: 0 auto 5vh auto;
}


@media (max-width: 1280px) {
  .part-item {
    flex: 0 0 48.1%;
  }
      .part-item a img {
          height: 300px;
      }
      .part-item h3 {
            font-size: 200%;
        }
}

@media (max-width: 800px) {
  .part-item {
    flex: 0 0 100%;
  }
  .part-item a img {
    height: auto;
    width: 100%;
    }
  .part-option {
        flex: 0 0 33.3333%;
        border: none;
    }
}

.diagram-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 2vh auto;
    background-color: #fff;
    padding: 20px;
    justify-items: center;
    align-items: center;
}

.diagram-item img {
    max-width: 100%;
    height: auto;
}
                .filter-panel h3 {
                    font-size: 150%;
                    font-weight: bold;
                }
                .filter-panel h4 {
                    font-size: 120%;
                    font-weight: bold;
                    margin-bottom: 10px;
                }
                .series-toggle {
                    background-color: #969696;
                    color: #fff;
                    font-weight: bold;
                    border: 2px solid #35003a;
                    padding: 10px 20px;
                    margin: 0 5px;
                    cursor: pointer;
                    border-radius: 5px;
                }

                /*.series-toggle.active {
                    background-color: #35003a;
                    color: #fff;
                }*/
                
                .series-toggle.road.active {
                    background-color: #6e1287;
                }
                .series-toggle.black.active {
                    background-color: #000;
                }
                .series-toggle.heritage.active {
                    background-color: #1d5f30;
                }
                .part-item {
                    transition: opacity 0.3s ease, transform 0.3s ease;
                }
                .part-item[style*="display: none"] {
                    opacity: 0;
                    transform: scale(0.98);
                }
                .filter-panel #diagramRefSelect {
                    width: auto !important;
                }

/* ---- Powerflex per-vehicle part note (powerflex.products.cfm) ---------------
   Sits below the card anchor. Clamped to four lines so a kit-contents note
   does not stretch the whole row; the card gets .note-open on click to show it
   all. Links inside are the sibling parts the note names. */
.pf-card-note {
    text-align: left;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #333;
    background: #f6f6f6;
    border-top: 1px solid #e3e3e3;
    /* The diagram-reference bar is absolutely positioned at the card bottom and
       is taller than the 30px the card reserves, so leave room under the note. */
    margin: 10px 0 30px 0;
    /* No bottom padding: inside a line-clamped -webkit-box it lets a sliver of
       the next line show beneath the ellipsis. */
    padding: 10px 14px 0 14px;
    cursor: pointer;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.part-item.note-open .pf-card-note {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
}
.pf-card-note a {
    font-weight: 600;
    color: #ff3200;
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: nowrap;
}
.pf-card-note a:hover { color: #d92b00; }