﻿/*#region PRODUCT DETAIL  */

.product-details-page {
    
}

.groupedProductDetailPage .groupedProductDetails {
  display: none;
}

/*hides the ribbon on group products*/
.NoRibbon + .ribbon-position {
  display: none;
}




.takeALookExtrasButton:before,
.file-attachments .video li .attachmentImg,
.productDetailVideoWrapper:before,
.file-attachments li .attachmentImg {
  cursor: pointer;
  display: inline-block;
  width: 8rem;
  min-width: 8rem;
  height: 8rem;
  cursor: pointer;
  border-radius: var(--element-border-radius);
  border: var(--element-border);
  content: "";
}

.file-attachments li .attachmentImg {
  background: url('/Themes/Cokesbury/Content/images/product_detail_download_icon_default.svg') center center;
}

.file-attachments li:hover .attachmentImg {
  background: url('/Themes/Cokesbury/Content/images/product_detail_download_icon_rollover.svg') center center;
}

.takeALookExtrasButton:before {
  background: url('/Themes/Cokesbury/Content/images/product_detail_seeInside_icon_default.svg') center center no-repeat;
}

.takeALookExtrasButton:hover:before {
  background: url('/Themes/Cokesbury/Content/images/product_detail_seeInside_icon_rollover.svg') center center no-repeat;
}

.file-attachments .video li .attachmentImg,
.productDetailVideoWrapper:before {
  background: url('/Themes/Cokesbury/Content/images/product_detail_video_icon_default.svg') center center no-repeat;
}

.file-attachments .video li:hover .attachmentImg,
.productDetailVideoWrapper:hover:before {
  background: url('/Themes/Cokesbury/Content/images/product_detail_video_icon_rollover.svg') center center no-repeat;
}

.ProductExtrasButton {
  display: flex;
  margin: 1rem 0;
  cursor: pointer;
}

  .ProductExtrasButton:hover .ProductExtrasButtonText {
    text-decoration: underline;
  }

.ProductExtrasButtonTextWrapper {
  display: flex;
  line-height: 8rem;
  height: 8rem;
  flex-direction: column;
  margin-left: 2rem;
  justify-content: space-around;
}

.ProductExtrasButtonText {
  line-height: normal;
}

.file-attachments ul {
  margin: 0;
  padding: 0;
}

.file-attachments .name {
  display: none;
}





/* content */
/* description */


.full-description:before {
  content: '';
  transition: all 0.3s ease;
  pointer-events: none;
}

.full-description.hideContent:before,
.full-description.showContent:before {
  background: linear-gradient( rgba(255, 255, 255, 0.001), 70px, white );
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  right: 0;
}

.full-description.hideContent:before {
  opacity: 1;
}

.full-description.showContent:before {
  opacity: 0;
}

.full-description {
  position: relative;
  overflow: hidden;
  height: auto;
}

  .full-description.hideContent {
    height: 13rem;
  }

  .full-description ul, .full-description ul li {
    list-style-type: disc;
  }

  .full-description ol, .full-description ol li {
    list-style-type: decimal;
  }

.readMore { /* this displays when the the height of .full-description reaches 13rem */
  margin-top: 1rem;
  display: none;
}

  .readMore:hover {
    text-decoration: underline;
    cursor: pointer;
  }

.shippingPredictability .shipping-message.warning {
  display: block;
  color: var(--tertiary-color-3);
  font-style: italic;
}

.shippingPredictabilityMessage {
  margin: 0;
}

.shippingIcons {
  display: flex;
}

  .shippingIcons > div {
    display: flex;
    height: 4rem;
    margin: auto 3rem auto 0;
  }

    .shippingIcons > div span {
      font-size: 1.4rem;
      width: 12rem;
      line-height: 1.6rem;
      margin: auto;
    }

  .shippingIcons .FreeShippingIconWrapper span {
    width: 12rem;
  }

  .shippingIcons .SubscriptionShippingIconWrapper span {
    width: 18rem;
  }

  .shippingIcons > div img {
    max-height: 100%;
    margin-right: 1rem;
  }

  /*SHOW TITLE WHEN ACTIVE*/
  .shippingIcons [data-title] {
    position: relative;
  }

    .shippingIcons [data-title]:hover::before {
      content: attr(data-title);
      position: absolute;
      bottom: -26px;
      left: 15px;
      display: inline-block;
      padding: 3px 6px;
      border-radius: 2px;
      background: #fff;
      border: 1px solid #666;
      color: #000;
      font-size: 1.25REM;
      white-space: nowrap;
    }



/* end description */

.automatic-shipment-radio-container {
  display: flex;
}

  .automatic-shipment-radio-container label {
    margin: 0;
  }

  .automatic-shipment-radio-container .p3 {
    font-weight: 700;
    margin: 0 3rem 0 1rem;
    line-height: 2.2rem;
    vertical-align: top;
  }

.autoShipSelectWrapper {
  margin-top: 2rem
}

  .autoShipSelectWrapper select {
    width: 268px;
  }

.addToCartWrapper .product-variant-options {
  margin-right: 3rem;
}

.product-variant-options .productOptionsWrapper {
  position: relative;
  min-width: 28rem;
}

.product-variant-options .toggleControl {
  color: #333;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-weight: 600;
  font-family: 'Open Sans', sans-serif;
  transition: all 0.3s ease;
  position: relative;
  display: block;
  cursor: pointer;
  font-size: 1.6rem;
  padding: 1.3rem 6rem 1.3rem 2rem;
  background-color: #fff;
  transition: all 0.3s ease;
  font-weight: 600;
}

  .product-variant-options .toggleControl:hover,
  .product-variant-options .toggleControl:active,
  .product-variant-options .toggleControl:focus {
    -webkit-box-shadow: 1px 4px 6px -2px rgba(0,0,0,0.3);
    -moz-box-shadow: 1px 4px 6px -2px rgba(0,0,0,0.3);
    box-shadow: 1px 4px 6px -2px rgba(0,0,0,0.3);
  }

  .product-variant-options .toggleControl:after {
    content: url('/Themes/Cokesbury/Content/images/filter_dropdown_arrow.svg');
    transform: rotate(0deg);
    transition: transform 200ms linear;
    position: absolute;
    right: 2rem;
    top: 1.3rem;
    max-width: 14px;
    display: block;
  }

.product-variant-options .toggleControl {
  display: none;
}

.ajaxCart .product-variant-options .toggleControl {
  display: block;
}

.product-variant-options .productSelector {
  background-color: #fff;
  border-radius: 5px;
  border: 1px solid #ccc;
  padding: 1rem 0;
  margin: 1rem 0 0;
  cursor: pointer;
  -webkit-box-shadow: 1px 4px 6px -2px rgba(0,0,0,0.3);
  -moz-box-shadow: 1px 4px 6px -2px rgba(0,0,0,0.3);
  box-shadow: 1px 4px 6px -2px rgba(0,0,0,0.3);
  width: 100%;
  position: absolute;
  transition: all 0.3s ease;
  z-index: 11;
  opacity: 0;
  visibility: hidden;
  top: 2rem;
}

  .product-variant-options .productSelector.active {
    top: 5.2rem;
    transition: all 0.3s ease;
    opacity: 1;
    visibility: visible;
  }

  .product-variant-options .productSelector li {
    padding: 0rem 2rem;
    line-height: 3rem;
  }

    .product-variant-options .productSelector li:hover {
      background: #eee;
    }

.gridPurchaseSection > * {
  margin: 1rem 0 0;
}

.gridPurchaseSection .addToCartWrapper {
  margin-bottom: 2rem;
}

.addToCartWrapper,
.shippingDetailsWrapper,
.productDetailSecondaryButtons {
  display: flex;
  flex-flow: row wrap;
}

  .productDetailSecondaryButtons .button-2 {
    margin: auto 0;
  }

  .productDetailSecondaryButtons > *,
  .shippingDetailsWrapper .shippingPredictability .shipping-message {
    margin: auto 0;
    padding: 1rem 0;
  }

.product-share-button {
  margin-left: auto;
}

.shippingDetailsWrapper .shippingPredictability {
  flex-grow: 1;
  flex-basis: 40rem;
}

.product-details-page .addToCartWrapper > * {
  margin: auto 2rem 0 0;
}

.addToCartWrapper .labelWrapper,
.addToCartWrapper .add-to-cart-button {
  margin: 0;
}


.overview .compare-products {
  margin-left: 2rem;
}

.overview .productDetailFormat {
  font-weight: 600;
  font-size: 2rem;
}

.overview .prices > .product-price,
.overview .prices > .old-product-price {
  margin-right: 1rem;
  display: inline-block;
}

.overview .product-price.call-for-price span {
  font-style: italic;
  color: var(--tertiary-color-3);
}

.overview .product-name h5 {
  margin-bottom: 0;
}

.overview .product-name .addthis_toolbox addthis_default_style {
  display: flex;
}

.overview .availability {
  margin: 2rem 0 0;
  overflow: hidden;
  /*display: none !important;*/
}

.product-contributors-list > ul {
  padding: 0;
}

.free-shipping:before {
  content: url('/Themes/Cokesbury/Content/images/free_shipping_icon.svg');
  display: inline-block;
}

.free-shipping span {
  vertical-align: top;
  text-transform: uppercase;
  display: inline-block;
  margin: 1.5rem 0 0 2rem;
}


/* tiered pricing */
.tier-prices table td {
  padding: 1REM;
  border-collapse: initial;
  border: 1px solid #dedede;
  color: var(--dark-gray-color);
}

.tier-prices .field-header {
  font-weight: 600;
  min-width: 80px;
}

.tier-prices {
  margin-bottom: 1REM;
}


/* styles */
.attributes dd {
  margin-bottom: 2rem;
}

  .attributes dd select {
    min-width: 268px;
  }

.attributes .option-list {
  display: flex;
  margin: 0;
  padding: 0;
}

  .attributes .option-list .customInputWrapper {
    margin: 0 4rem 0 0;
  }

    .attributes .option-list .customInputWrapper > * {
      vertical-align: middle;
    }

    .attributes .option-list .customInputWrapper > .radioButton {
      margin-right: 1rem;
    }

.productDetailTabMenu {
  background: var(--main-color);
  display: flex;
  justify-content: center;
  margin: 8rem 0 6rem;
  padding: 0;
}

  .productDetailTabMenu li {
    background: var(--main-color);
    padding: 2rem 0;
    color: #fff;
    font-weight: 600;
    font-size: 2rem;
    text-transform: uppercase;
    transition: background .3s ease-in-out;
    position: relative;
    cursor: pointer;
  }

    .productDetailTabMenu li:hover {
      background: var(--main-color-darken)
    }

    .productDetailTabMenu li span {
      padding: .5rem 4rem;
    }

    .productDetailTabMenu li:not(:last-child) span {
      border-right: 1px solid #fff;
    }

    .productDetailTabMenu li.active {
      background: var(--main-color-darken);
      border: solid #fff;
      border-width: 0 1px;
    }
      /*
        .productDetailTabMenu li::after {
            content: '';
            position: absolute;
            left: calc(50% - 2rem);
            bottom: 0;
            width: 0;
            height: 0;
            border-left: 2rem solid transparent;
            border-right: 2rem solid transparent;
            border-top: 2rem solid var(--main-color-darken);
            transition: all .3s ease-in-out;
            z-index: -1;
        }
        .productDetailTabMenu li.active::after {
            bottom: -2rem;
        } */
      .productDetailTabMenu li.active > span,
      .productDetailTabMenu li.sibling > span {
        border: none;
      }



.tabsWrapper > * {
  display: none;
}

/* only the ACTIVE tab panel may render, no matter what inline styles say:
   productDetail.js force-shows the kit LI with jQuery .show() (needed for the
   phone accordion, where the 767 tier re-reveals every panel), which otherwise
   stacks the kit panel under the active tab's panel on desktop */
.tabsWrapper > li:not(.active) {
  display: none !important;
}

.additionalDetailsWrapper .hiddenProductDetails {
  display: flex;
  padding: 0 3%;
}

  .additionalDetailsWrapper .hiddenProductDetails > div {
    flex: 1;
  }

    .additionalDetailsWrapper .hiddenProductDetails > div:first-child {
      border-right: 1px solid #ccc;
      margin: 0 3% 0 0;
    }

.additionalDetailsWrapper ul {
  padding: 0;
  column-count: 2;
}

  .additionalDetailsWrapper ul > li {
    padding: .3rem 0;
  }

.hiddenProductDetails ul > li > span:first-child,
.availability .stock .label {
  font-weight: 600;
}

.shippingMessage {
  margin-top: 2rem;
  display: block;
}
/* social icons */
/*.addthis_toolbox {
    display: flex;
    width: auto;
}
    .addthis_toolbox > a {
        margin:0 .6rem;
    }
        .addthis_toolbox > a.addthis_button_email svg {
            height:2.1rem;
        }
    .addthis_toolbox svg {
        width: auto;
        height: 2.4rem;
    }
        .addthis_toolbox svg .socialIcon,
        .addthis_toolbox svg .socialIcon2 {
            fill: none;
            stroke-width: 1.4px;
            stroke:var(--main-color);
        }
        .addthis_toolbox svg:hover .socialIcon {
            stroke:var(--main-color);
            fill:var(--main-color);
        }
            .addthis_toolbox svg:hover .socialIcon2 {
                stroke: #fff;
            }

.addthis_button_email svg {
    width: 3.4rem;
    margin-top: 0.3rem;
    max-width:3.4rem;
}
.addthis_button_facebook svg {
    max-width: 1.6rem;
}
.addthis_button_twitter  svg {
    max-width: 2.8rem;
}*/
/* product reviews 
.product-review-box {
    margin: 2rem 0;
}

.rating {
    background: url('/Themes/Cokesbury/Content/images/star_empty.svg') repeat-x;
    width: 160px;
    height: 30px;
}

    .rating div {
        background: url('/Themes/Cokesbury/Content/images/star_filled.svg') repeat-x;
        height: 30px;
    }

.item-box .rating {
    width: 105px;
    height: 20px;
}

    .item-box .rating div {
        height: 20px;
    }*/
.product-details-page .product-grid {
  padding: 0 4.5%;
}

  .product-details-page .product-grid .item-grid {
    padding: 3% 0;
  }

.productUnavailable {
  opacity: .4;
}

.product-variant-options.productUnavailable > label,
.product-variant-options.productUnavailable > select {
  display: none;
}

.no-associated-products {
  font-style: italic;
}

.overview .discontinued-product {
  display: inline-block;
  padding: 1rem 2rem;
  background: #fff;
  margin: 1.5rem 0;
  color: var(--error-red-color);
  border-radius: 5px;
  position: relative;
  transition: all 0.3s ease;
  border: 1px solid var(--error-red-color);
}

  .overview .discontinued-product h4 {
    font-size: 2rem;
    margin-bottom: 0;
  }

  .overview .discontinued-product:after {
    bottom: 100%;
    left: -20px;
    top: 2rem;
    border: solid transparent;
    content: " ";
    position: absolute;
    border-color: rgba(204, 13, 51, 0);
    border-bottom-color: var(--error-red-color);
    border-width: 10px;
    transition: all 0.3s ease;
    transform: rotate(-90deg);
  }

/*#endregion*/
/* grouped product detail page */
.groupedProductDetailPage .productDetailWrapper .prices {
  display: none;
}






.contributorDisplay {
  white-space: nowrap;
}




.gallery {
  grid-area: gallery;
}

.gridRowTitleContributor {
  grid-area: gridRowTitleContributor;
}

.gridRowPriceDescription {
  grid-area: gridRowPriceDescription;
}

.priceWrapper {
  grid-area: priceWrapper;
}

.gridDescriptionWrapper {
  grid-area: gridDescriptionWrapper;
}

.qtyWrapper {
  grid-area: qtyWrapper;
}

.prodDetailATC2 { /* add to cart on simple pages, format dropdown on grouped */
  grid-area: prodDetailATC2;
}

.prodDetailATC3 { /* add to cart on grouped pages, blank on simple */
  grid-area: prodDetailATC3;
}

.shippingDetails {
  grid-area: shippingDetails;
}

.productDetailSecondaryButtons {
  grid-area: productDetailSecondaryButtons;
}

.optionalProductFields {
  grid-area: optionalProductFields;
}

.product-details-page .product-essential {
  display: grid;
  column-gap: 3rem;
  row-gap: 2rem;
  align-items: flex-start;
  grid-template-areas: 'gallery gridRowTitleContributor' 'gallery gridRowPriceDescription';
  /* minmax(0,1fr), not bare 1fr: 1fr cannot shrink below the content's min width, so the
     qty/format/add-to-cart row used to force the column past the viewport and clip
     (grouped/kit pages lost the add-to-cart button off-screen at narrow widths) */
  grid-template-columns: minmax(300px, 30%) minmax(0, 1fr);
  grid-template-rows: minmax(auto, auto) 1fr;
  transform: var(--transition);
}

.product-details-page .gridRowPriceDescription {
  display: grid;
  row-gap: 2rem;
  column-gap: 2rem;
  align-items: flex-end;
  grid-template-columns: max-content auto 1fr;
  grid-template-areas: 'priceWrapper priceWrapper priceWrapper' 'gridDescriptionWrapper gridDescriptionWrapper gridDescriptionWrapper' 'optionalProductFields optionalProductFields optionalProductFields' 'qtyWrapper prodDetailATC2 prodDetailATC3' 'shippingDetails shippingDetails shippingDetails' 'productDetailSecondaryButtons productDetailSecondaryButtons productDetailSecondaryButtons';
}

.product-details-page .attribute-description {
  display: inline-block;
  font-size: 1.5REM;
  font-style: italic;
}


/* MODIFIED DISPLAY FORMAT*/
.groupedProductDetailPage .product-variant-options .productSelector {
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
}

.groupedProductDetailPage .productSelector li.selected .radioButton:after {
  content: '';
  color: transparent;
  position: absolute;
  left: 50%;
  top: 50%;
  -webkit-transform: translate(-50%,-50%);
  -moz-transform: translate(-50%,-50%);
  -ms-transform: translate(-50%,-50%);
  transform: translate(-50%,-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--main-color);
}

.groupedProductDetailPage .product-variant-options .productSelector.active {
  position: relative;
  top: 0px;
  margin: 0px;
}

.groupedProductDetailPage .product-variant-options .productSelector li {
  padding: 1rem 1rem;
  display: flex;
}

.groupedProductDetailPage .productSelector.expandable {
  height: 320px;
  overflow-y: scroll;
}

/* (a dead rule lived here: `.groupedProductDetailPage .product-details-page …` —
   those are classes on the SAME element, so the descendant selector never matched;
   removed in PR #43) */

.groupedProductDetailPage .productSelector li.selected {
  background-color: rgba(229, 153, 17,0.1);
}

.pricingDisclaimer {
  display: inline-block;
}

.divCurrAutoShipDetailMore {
  background-color: var(--main-color);
  text-align: center;
  padding: 10px;
  margin-bottom: 2REM;
}

  .divCurrAutoShipDetailMore a {
    color: var(--light-text-color);
    font-size: 1.5REM;
  }

.divCurrAutoShipDetailSubscribe {
  background-color: #fff;
  border: 2px solid rgb(255, 179, 44);
  border-radius: 5px;
  text-align: center;
  padding: 10px;
  margin-top: -2REM;
  margin-bottom: 2REM;
  display: inline-block;
  transition: all 0.3s ease;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

  .divCurrAutoShipDetailSubscribe:hover {
    background-color: var(--main-action-color-darker, #de910a);
    border: 2px solid var(--main-action-color-darker, #de910a);
  }

  .divCurrAutoShipDetailSubscribe a {
    color: #000;
    font-size: 1.5REM;
    line-height: 1.5;
    text-decoration: none;
    font-weight: bold;
  }

    .divCurrAutoShipDetailSubscribe a:hover {
      color: #fff;
      font-size: 1.5REM;
      line-height: 1.5;
      text-decoration: none;
      font-weight: bold;
    }


.product-details-page .gridRowPriceDescription {
  display: grid;
  row-gap: 2rem;
  column-gap: 2rem;
  align-items: flex-end;
  grid-template-columns: max-content auto 1fr;
  grid-template-areas:
    'priceWrapper priceWrapper priceWrapper'
    'gridDescriptionWrapper gridDescriptionWrapper gridDescriptionWrapper'
    'optionalProductFields optionalProductFields optionalProductFields'
    'qtyWrapper prodDetailATC2 prodDetailATC3'
    'shippingDetails shippingDetails shippingDetails'
    'productDetailSecondaryButtons productDetailSecondaryButtons productDetailSecondaryButtons'
    'productDetailsKitComponentWrapper productDetailsKitComponentWrapper productDetailsKitComponentWrapper';
}


.productDetailsKitComponentWrapper {
  grid-area: productDetailsKitComponentWrapper;
}

.productDetailsKitComponent {
  display: flex;
  flex-flow: row wrap;
  border-top: 1px solid #cecece;
  padding: 20px;
  flex-basis: 100%;
  justify-content: flex-end;
}

.productDetailsKitComponentSmallGrid {
  display: block;
  border-bottom: 1px solid #cecece;
  width: calc(100% - 190px);
}

.KitthumbnailWrapper {
  display: inline-block;
  vertical-align: top;
  padding: 10px;
}

  .KitthumbnailWrapper img {
    max-width: 48px;
    max-height: 48px;
  }

.KitURLWrapper {
  display: inline-block;
  vertical-align: top;
  padding: 10px;
}

.KitPriceWrapper {
  display: inline-block;
  vertical-align: top;
  float: right;
  padding: 10px;
}

.tblKitContents {
  border: none;
}

  .tblKitContents tr {
    border-bottom: 1px solid #ccc;
  }

  .tblKitContents th {
    border-top: 1px solid #cccccc;
    border-bottom: 1px solid #cccccc;
    background-color: #f6f6f6;
    height: 60px;
    text-align: center;
  }

  .tblKitContents td {
    padding: 5px;
    text-align: center;
    border-right: none;
  }

    .tblKitContents td a img {
      max-height: 180px;
      border: none;
    }

.additionalDetailsWrapper .hiddenProductDetails > div:first-child {
  border: none;
}

.productDetailsKitComponent .FreeShippingIconWrapper {
  margin: 0px 30px 0px 0px;
}

  .productDetailsKitComponent .FreeShippingIconWrapper img {
    float: left;
    margin: 0px 10px 0px 0px;
  }

.productDetailsKitComponent .thumbnailWrapper img {
  max-height: 60px;
}


/*image*/
.product-details-page .gallery .picture-gallery a img { }
.groupedProductDetailPage .gallery .picture-gallery a img { }

.groupedProductDetailPage.product-details-page .gallery .picture {
  display: none;
}

.product-details-page .gallery .picture {
  border: 1px solid #ccc;
  border-radius: 5px;
  justify-content: space-around;
}

  .product-details-page .gallery .picture img {
    padding: 4rem;
    width: 100%;
  }

.picture-thumbs {
  margin-top: 2rem;
}

/* the media strip scrolls horizontally instead of wrapping — matters on phones and
   whenever a product carries several videos/images. Covers the simple template
   (.picture-gallery) and the grouped per-variant strips (.gallery); jQuery's
   show()/hide() toggling on the grouped strips restores display:'' so this flex
   still applies. Ties with styles.css (.picture-gallery .picture-thumbs
   overflow:hidden) resolve here — page css registers after the head list. */
.gallery .picture-thumbs,
.picture-gallery .picture-thumbs {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 0.5rem; /* breathing room for the scrollbar */
}

  .gallery .picture-thumbs::-webkit-scrollbar,
  .picture-gallery .picture-thumbs::-webkit-scrollbar {
    height: 6px;
  }

  .gallery .picture-thumbs::-webkit-scrollbar-thumb,
  .picture-gallery .picture-thumbs::-webkit-scrollbar-thumb {
    background: var(--tertiary-color-2);
    border-radius: 3px;
  }

  .gallery .picture-thumbs .thumb-item,
  .picture-gallery .picture-thumbs .thumb-item {
    flex: 0 0 auto;
  }

  .picture-thumbs .thumb-item {
    display: inline-block;
    margin-right: 2rem;
    cursor: pointer;
  }

    .picture-thumbs .thumb-item img {
      max-height: 80px;
    }

  /* video tile in the media strip (injected by productDetailVideosInitJS /
     productDetailGroupedVideosInitJS): a poster frame capped to the image thumbs'
     80px row height, dark fallback when no poster exists (non-YouTube hosts),
     centered play badge. Selectors carry four classes deliberately — the legacy
     styles.css .picture-gallery .picture-thumbs .thumb-item (100x100) outranks
     anything weaker regardless of file order. The .gallery variant covers the
     grouped template's per-variant strips, which sit outside .picture-gallery. */
  .gallery .picture-thumbs .thumb-item.video-thumb-item,
  .picture-gallery .picture-thumbs .thumb-item.video-thumb-item {
    position: relative;
    width: 180px;
    height: 80px;
    max-height: 80px;
    vertical-align: top;
    background-color: var(--dark-gray-color);
    background-size: cover;
    background-position: center;
    border-radius: 3px;
    /* the tile is a real <button> for keyboard access — undo atoms' button skin
       (border/padding/hover shadow); the shared :focus-visible ring stays */
    border: 0;
    padding: 0;
    min-width: 0;
  }

  .gallery .picture-thumbs .thumb-item.video-thumb-item:hover,
  .picture-gallery .picture-thumbs .thumb-item.video-thumb-item:hover {
    box-shadow: none;
  }

  .videoPlayBadge {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    transition: background 0.3s ease;
  }

    .videoPlayBadge::after {
      content: '';
      position: absolute;
      left: 13px;
      top: 9px;
      border-style: solid;
      border-width: 8px 0 8px 13px;
      border-color: transparent transparent transparent var(--light-text-color);
    }

  .picture-thumbs .video-thumb-item:hover .videoPlayBadge {
    background: var(--main-color);
  }

/* ===== Magnific lightbox (product picture zoom/gallery) — style-guide pass =====
   The vendor magnific-popup.css is injected in the BODY by _ProductDetailsPictures,
   after the head css — every selector here is parent-qualified (.mfp-wrap …) to
   outrank it regardless of load order. */

/* overlay matches the theme's other modal backdrops (ui-widget-overlay: black @ .5).
   div-qualified: the vendor's bare .mfp-bg (0.8 near-black) loads later and wins a
   plain class tie */
div.mfp-bg {
  background: #000;
  opacity: 0.5;
}

/* the image card: white surface with the theme radius + shadow (magnific's default
   is a dark #444 slab); the geometry (40px top/bottom bands) is the vendor's */
.mfp-wrap .mfp-figure::after {
  background: var(--surface-color);
  border-radius: 5px;
  box-shadow: 1px 4px 6px -2px rgba(0, 0, 0, 0.5);
}

/* no caption under the image (the picture titles are auto-generated "Picture of …"
   boilerplate); the counter stays for gallery orientation */
.mfp-wrap .mfp-title {
  display: none;
}

.mfp-wrap .mfp-counter {
  color: rgba(255, 255, 255, 0.75);
}

/* close: ONE control, fixed at the viewport's top-right on a white chip — the
   vendor's in-figure default sits on top of the photo, where image-click gallery
   navigation swallows the click. !important throughout: the body-loaded vendor css
   (.mfp-image-holder .mfp-close etc.) wins ordinary ties, and this control must be
   unambiguous. font-size:0 kills the × glyph regardless of color rules. */
.mfp-wrap .mfp-close,
.mfp-wrap .mfp-image-holder .mfp-close,
.mfp-wrap .mfp-iframe-holder .mfp-close {
  position: fixed !important;
  top: 16px !important;
  right: 16px !important;
  width: 44px !important;
  height: 44px !important;
  opacity: 1 !important;
  font-size: 0 !important;
  color: transparent !important;
  padding: 0 !important;
  background: var(--surface-color) url('/Themes/Cokesbury/Content/images/search_dropdown_close_x.svg') center no-repeat !important;
  border-radius: 50%;
  box-shadow: 1px 4px 6px -2px rgba(0, 0, 0, 0.5);
  z-index: 1046; /* magnific wrap is 1043 */
}

.mfp-wrap .mfp-close:focus-visible {
  outline: 2px solid var(--main-color);
  outline-offset: 2px;
}

/* gallery arrows: the theme chevron (filter_dropdown_arrow.svg, as in the accordions
   and hamburger) replaces magnific's CSS-triangle arrows. Compact 44px buttons inset
   from the viewport edges — the vendor's 90px-wide edge-flush buttons put the left
   chevron half off screen */
.mfp-wrap .mfp-arrow {
  width: 44px;
  height: 44px;
  margin-top: -22px;
  opacity: 1;
}

.mfp-wrap .mfp-arrow-left {
  left: 8px;
}

.mfp-wrap .mfp-arrow-right {
  right: 8px;
}

  .mfp-wrap .mfp-arrow::before {
    display: none;
  }

  .mfp-wrap .mfp-arrow::after {
    content: url('/Themes/Cokesbury/Content/images/filter_dropdown_arrow.svg');
    position: absolute;
    left: 50%;
    top: 50%;
    width: 28px;
    height: 28px;
    border: none;
    margin: 0;
    /* the svg's navy fill disappears on the dark overlay: flatten to white, then a
       soft dark halo keeps it visible when it overlaps a light photo */
    filter: brightness(0) invert(1) drop-shadow(0 1px 3px rgba(0, 0, 0, 0.7));
  }

  .mfp-wrap .mfp-arrow-left::after {
    transform: translate(-50%, -50%) rotate(90deg);
  }

  .mfp-wrap .mfp-arrow-right::after {
    transform: translate(-50%, -50%) rotate(-90deg);
  }