/* Cloud White product view. Load after the shared storefront and category shell. */
body.wg-store-product {
  & [hidden] { display: none !important; }

  & :is(#LayoutColumn1, #LayoutColumn3) .Block h2 {
    padding-block: 6px;
    background: #45546c;
  }

  & :is(#LayoutColumn3, #LayoutColumn3 .Block h2) { font-size: 12px; }

  & #LayoutColumn1 #SideCategoryList h2::before { background: #f2b755; }
  & #SideCartContents > h2 svg { color: #f2b755; }
  & #LayoutColumn1 #SideCategoryList li { border-color: #e6e8e9; }
  & #SideCategoryList li a:not(:hover, :focus-visible) { color: var(--wg-ink); }

  & #LayoutColumn3 #SideProductAddToWishList { padding-block-end: 13px; }
  & #SideProductAddToWishList .BlockContent { color: #828288; }
  & #SideProductAddToWishList .wg-add-wishlist { margin-block-start: 8px; }

  & #jquery-overlay { z-index: 1000; }
  & #jquery-lightbox { z-index: 1001; }

  & #ProductBreadcrumb {
    margin-bottom: 4px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #fff;
  }

  & #ProductBreadcrumb a { text-decoration: none; }

  & #ProductDetails {
    border: 1px solid var(--style-line);
    border-radius: 0;
    background: var(--style-surface);
  }

  & #ProductDetails > .BlockContent {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    align-items: start;
    gap: 12px;
    padding: 11px;
  }

  & #ProductDetails > .BlockContent > .ErrorMessage { grid-column: 1 / -1; }
  & #ProductDetails > .BlockContent > .Clear { display: none; }

  & #ProductDetails :is(.ProductThumb, .ProductMain) {
    float: none;
    width: auto;
    min-width: 0;
    min-height: 0;
    margin: 0;
  }

  & #ProductDetails .ProductThumb {
    box-sizing: border-box;
    padding: 7px;
    border: 0;
    border-radius: 0;
    background: #fff;
    text-align: center;
  }

  & #ProductDetails #LightBoxImages { border: 0; }

  & #ProductDetails .ProductThumb > a {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    min-height: 0;
    background: var(--style-wash);
  }

  & #ProductDetails .ProductThumb > a > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  & #ProductDetails .ProductThumb p { margin: 6px 0 0; }
  & #ProductDetails .ViewLarger { font-weight: 700; }

  & #ProductDetails .wg-photo-badges {
    display: grid;
    justify-items: center;
    gap: 32px;
    margin-top: 32px;
  }

  & #ProductDetails .wg-photo-badges .wg-made-in-usa {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    box-sizing: border-box;
    padding: 4px 8px;
    border: 0;
    background: #fff;
    color: var(--style-ink);
    font-size: 14px;
    line-height: 1.2;
  }

  & #ProductDetails .wg-photo-badges .wg-flag {
    position: relative;
    display: block;
    flex: none;
    box-sizing: border-box;
    width: 28px;
    height: 17px;
    border: 1px solid #c5d5df;
    background: repeating-linear-gradient(#b23b4a 0 7.692%, #fff 7.692% 15.384%);
  }

  & #ProductDetails .wg-photo-badges .wg-flag::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 42%;
    height: 54%;
    background: radial-gradient(circle, #fff 0.4px, transparent 0.7px) 0 0 / 3px 3px, #29466b;
  }

  & #ProductDetails .wg-photo-badges .wg-product-resources {
    display: grid;
    grid-template-columns: 1fr 34px minmax(0, max-content) 1fr;
    justify-self: stretch;
    gap: 10px;
  }

  & #ProductDetails .wg-photo-badges .wg-product-resources a {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: subgrid;
    align-items: center;
    min-height: 34px;
    box-sizing: border-box;
    float: none;
    margin: 0;
    padding: 4px 6px;
    border: 2px solid var(--style-line);
    background: var(--style-wash);
    color: var(--style-accent);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.25;
    text-align: start;
    text-decoration: none;
    overflow-wrap: anywhere;
  }

  & #ProductDetails .wg-photo-badges .wg-product-resources a:is(:hover, :focus-visible) {
    border-color: var(--style-accent);
    background: var(--style-surface);
    text-decoration: underline;
  }

  & #ProductDetails .wg-photo-badges .wg-product-resources img {
    display: block;
    grid-column: 2;
    width: 100%;
    height: 22px;
    object-fit: contain;
  }

  & #ProductDetails .wg-photo-badges .wg-product-resources a > span { grid-column: 3; }

  & #ProductDetails .ProductMain :is(h1, h2) {
    min-height: 0;
    margin: 0 0 8px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    color: #446cb3;
    font: 650 18px / 1.25 var(--style-heading, system-ui);
    overflow-wrap: anywhere;
  }

  & #ProductDetails :is(.ProductDetailsGrid, .ProductAddToCart),
  & #ProductOtherDetails .ProductDetailsGrid {
    display: grid;
    grid-template-columns: minmax(77px, max-content) minmax(0, 1fr);
    align-items: baseline;
    gap: 4px 8px;
    margin: 0;
  }

  & #ProductDetails :is(.ProductDetailsGrid, .ProductAddToCart) > :is(dt, dd),
  & #ProductOtherDetails .ProductDetailsGrid > :is(dt, dd) {
    float: none;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    clear: none;
    overflow-wrap: anywhere;
  }

  & #ProductDetails .VariationProductPrice {
    padding-left: 0;
    color: var(--style-accent);
    font-size: 21px;
    font-weight: 850;
    font-variant-numeric: tabular-nums;
  }

  & #ProductDetails .YouSave { color: var(--style-muted); }

  & #ProductDetails .ProductAddToCart {
    align-items: center;
    gap: 6px 8px;
    padding: 8px;
    border: 1px solid var(--style-line);
    border-radius: 0;
    outline: 0;
    background: var(--style-wash);
  }

  & #ProductDetails .ProductAddToCart select { max-width: 100%; }

  & #ProductDetails .ProductAddToCart .AddCartButton {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
  }

  & #ProductDetails .ProductAddToCart .AddCartButton > :is(span, .BulkDiscount) {
    float: none;
    margin: 0;
    padding: 0;
  }

  & #Wrapper :is(.wg-add-cart, .wg-add-wishlist) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 31px;
    padding: 5px 10px;
    border: 1px solid var(--wg-blue);
    border-radius: var(--preference-control-radius, 6px);
    background: var(--wg-blue);
    color: #fff;
    font: inherit;
    font-weight: 750;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
  }

  & #Wrapper :is(.wg-add-cart, .wg-add-wishlist):hover {
    border-color: var(--wg-blue-hover);
    background: var(--wg-blue-hover);
  }

  & #Wrapper :is(.wg-add-cart, .wg-add-wishlist):disabled {
    opacity: .65;
    cursor: default;
  }

  & :is(#LayoutColumn2, #LayoutColumn3) .ProductList:not(.List) > li:is(:hover, :focus-within) {
    border-color: var(--style-accent);
    background: var(--style-surface);
    color: var(--style-ink);

    & :is(.ProductDetails a, em, em strike, .Rating) { color: var(--style-ink); }
  }

  & #LayoutColumn2 .wg-product-disclosure {
    margin: 0 0 6px;
    border: 1px solid var(--style-line);
    background: var(--style-surface);
    scroll-margin-top: 8px;
  }

  & #LayoutColumn2 .wg-product-disclosure > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    box-sizing: border-box;
    min-height: 38px;
    padding: 7px 10px;
    background: var(--style-wash);
    color: var(--style-ink);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.3;
    list-style: none;
    cursor: pointer;
  }

  & #LayoutColumn2 .wg-product-disclosure > summary::-webkit-details-marker { display: none; }

  & #LayoutColumn2 .wg-product-disclosure > summary::after {
    content: "";
    flex: none;
    inline-size: 7px;
    block-size: 7px;
    margin-inline-end: 3px;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
  }

  & #LayoutColumn2 .wg-product-disclosure > summary:is(:hover, :focus-visible) {
    color: var(--style-accent);
  }

  & #LayoutColumn2 .wg-product-disclosure[open] > summary {
    background: #45546c;
    color: var(--style-wash);
  }

  & #LayoutColumn2 .wg-product-disclosure[open]:has(> #ProductDescription) > summary { background: #39414d; }

  & #LayoutColumn2 .wg-product-disclosure[open] > summary::after { transform: rotate(225deg); }

  & #LayoutColumn2 .wg-product-disclosure > :is(#ProductDescription, #ProductOtherDetails, #ProductWarranty, #ProductReviews, #ProductByCategory) {
    box-sizing: border-box;
    margin: 0;
    padding: 0 9px 9px;
    border: 0;
    border-radius: 0;
    background: var(--style-surface);
  }

  & #LayoutColumn2 .wg-product-disclosure > :is(#ProductDescription, #ProductOtherDetails, #ProductWarranty, #ProductByCategory) {
    padding-block-start: 8px;

    & > h3 { display: none; }
  }

  & #LayoutColumn2 #ProductReviews > h3 {
    margin: 0 -9px 8px;
    padding: 7px 9px;
    border: 0;
    border-radius: 0;
    background: var(--wg-slate, #293e51);
    color: var(--style-wash, aliceblue);
    box-shadow: none;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.3;
  }

  &:has(#ProductTabs:not([hidden])) {
    & #LayoutColumn2 #ProductTabs.TabNav {
      display: flex;
      flex-wrap: wrap;
      gap: 4px;
      margin: 0 0 -5px;
      padding: 0 0 4px;
      border: 0;
      border-bottom: 1px solid var(--style-line);
      background: transparent;
      list-style: none;
      scroll-margin-top: 8px;
    }

    & #ProductTabs.TabNav > li {
      display: block;
      min-width: 0;
      margin: 0;
      padding: 0;
    }

    & #ProductTabs.TabNav > li > a {
      position: static;
      display: flex;
      align-items: center;
      box-sizing: border-box;
      min-height: 31px;
      margin: 0;
      padding: 5px 7px;
      border: 1px solid var(--style-line);
      border-radius: 0;
      background: var(--style-wash);
      color: var(--style-ink);
      font-size: 12px;
      font-weight: 750;
      text-decoration: none;
    }

    & #ProductTabs.TabNav > li > a:is(:hover, :focus-visible) {
      border-color: var(--style-accent);
      color: var(--style-accent);
    }

    & #ProductTabs.TabNav > li > a[aria-selected="true"] {
      border-color: var(--style-muted);
      background: var(--style-muted);
      color: var(--style-wash);
    }

    & #ProductTabs.TabNav a#ProductDescription_Link[aria-selected="true"] {
      border-color: #40639f;
      background: #40639f;
    }

    & #LayoutColumn2 .wg-product-disclosure {
      margin-bottom: 10px;

      &:not([open]), & > summary { display: none; }

      & > .Block { padding-block-start: 0; }

      & > .Block > h3 {
        display: block;
        margin: 0 -9px 8px;
        padding: 7px 9px;
        border: 0;
        border-radius: 0;
        background: var(--wg-slate, #293e51);
        color: var(--style-wash);
        box-shadow: none;
        font-size: 13px;
        font-weight: 800;
        line-height: 1.3;
      }

      & > #ProductDescription > h3 { background: #39414d; }
    }
  }

  & #ProductDescription .ProductDescriptionContainer {
    --description-inset: 20px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 3px 3px 2px;
    color: var(--style-ink);
    font: 13px / 1.55 system-ui, sans-serif;
    overflow-wrap: anywhere;
  }

  & #ProductDescription .wg-description-intro > p { margin: 0; }

  & #ProductDescription .wg-description-intro > .wg-description-note {
    margin-block-start: 17px;
    color: var(--style-muted);
    font-size: 12px;
  }

  & #ProductDescription .ProductDescriptionContainer h4 {
    margin: 0 0 5px;
    color: var(--style-ink);
    font: 750 13px / 1.4 system-ui, sans-serif;
  }

  & #ProductDescription .wg-kit-panel {
    padding: 16px clamp(12px, 6.5%, 38px);
    border: 1px solid var(--style-line);
    background: #f7f7f7;
  }

  & #ProductDescription .wg-kit-contents {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
    gap: 2px 24px;
    margin: 0;
    padding-inline-start: 16px;
    list-style: disc outside;
  }

  & #ProductDescription .wg-kit-contents > li { margin-block-end: 0; }
  & #ProductDescription .wg-kit-contents li::marker { color: var(--style-accent); }

  & #ProductDescription .wg-description-bullets {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  & #ProductDescription .wg-description-bullets > li {
    position: relative;
    margin-block-end: 7px;
    padding: 4px 0 4px 20px;
  }

  & #ProductDescription .wg-description-bullets > li::before {
    content: "";
    position: absolute;
    inset-block-start: .65em;
    inset-inline-start: 6px;
    border-block: 5px solid transparent;
    border-inline-start: 8px solid currentColor;
  }

  & #ProductDescription .wg-description-bullets > li:last-child {
    margin-block-end: 0;
    padding-block-end: 0;
  }

  & #ProductDescription .wg-kit-contents .quicklookmanual {
    grid-column: 1 / -1;
    list-style-image: url("../images/wg-printed-instructions.gif");

    & a {
      color: #585858;
      text-decoration: underline;
    }

    & a:is(:hover, :focus-visible) { color: var(--style-accent); }
  }

  & #ProductDescription :is(#ProductDescriptionVideo, .wg-install-steps ol) {
    margin-inline: var(--description-inset);
  }

  & #ProductDescription .wg-install-steps ol {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin-block: 0;
    padding: 0;
    list-style: none;
    counter-reset: wg-install-step;
  }

  & #ProductDescription .wg-install-steps li {
    overflow: hidden;
    border: 1px solid var(--style-line);
    background: var(--style-wash);
    counter-increment: wg-install-step;
  }

  & #ProductDescription .wg-install-steps li > img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
  }

  & #ProductDescription .wg-install-steps li > span {
    display: grid;
    grid-template-columns: 17px minmax(0, 1fr);
    gap: 4px;
    padding: 5px;
    color: var(--style-ink);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.35;
  }

  & #ProductDescription .wg-install-steps li > span::before {
    content: counter(wg-install-step) / "";
    display: grid;
    place-items: center;
    height: 17px;
    background: var(--wg-slate, #293e51);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
  }

  & #ProductDescriptionVideo details {
    border: 1px solid var(--style-line);
    background: var(--style-wash);
  }

  & #ProductDescriptionVideo summary {
    padding: 8px 9px;
    color: var(--style-accent);
    font-weight: 750;
    cursor: pointer;
  }

  & #ProductDescriptionVideo :is(iframe, video) {
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border: 0;
    background: #111a21;
  }

  & #ProductDescriptionVideo video {
    width: min(100%, 440px);
    margin: 0 auto;
    aspect-ratio: 4 / 3;
  }

  & #ProductDescriptionVideo .wg-install-video { padding: 0 9px 8px; }
  & #ProductDescriptionVideo .wg-install-video p { margin: 6px 0 0; }

  @media (max-width: 650px) {
    & #ProductDetails > .BlockContent { grid-template-columns: minmax(0, 1fr); }
    & #LayoutColumn2 .wg-product-disclosure > summary { min-height: 44px; }

    & #ProductDetails .ProductThumb {
      justify-self: center;
      width: min(100%, 330px);
    }

    & #ProductDetails .ProductThumb > a { aspect-ratio: 4 / 3; }

    & #ProductDetails .wg-photo-badges { gap: 12px; margin-top: 12px; }

    & #ProductDescription .ProductDescriptionContainer {
      --description-inset: 0px;
      gap: 10px;
      padding-inline: 0;
    }

    & #ProductDescription .wg-kit-panel { padding: 12px; }
    & #ProductDescription .wg-install-steps ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }

}
