.pvl-variants {
  margin: 1.5rem 0;
}

.pvl-title {
  margin: 0 0 .75rem;
  font-size: 1rem;
}

.pvl-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .65rem;
}

.pvl-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: .35rem;
  color: inherit;
  text-decoration: none;
}

.pvl-image-wrap {
  display: block;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border: 1px solid #ddd;
  background: #f5f5f5;
}

.pvl-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pvl-card.is-current .pvl-image-wrap {
  border: 2px solid;
}

.pvl-name {
  overflow: hidden;
  font-size: .78rem;
  line-height: 1.25;
}

.pvl-more {
  margin-top: .85rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-decoration: underline;
}

/*
 * Full-height variant sheet, inspired by the large AmbienteDirect selector.
 * A restrained reveal keeps the page context visible without misaligning the
 * sheet with the overlay or the viewport.
 */
.pvl-overlay {
  position: fixed;
  inset: 0;
  z-index: 20040;
  background: rgba(32, 30, 29, .56);
  opacity: 1;
  transition: opacity .22s ease-in-out;
}

.pvl-drawer {
  --pvl-sheet-padding: clamp(1.5rem, 2.75vw, 2.5rem);
  position: fixed;
  top: 0 !important;
  right: 0;
  z-index: 20050;
  display: flex;
  box-sizing: border-box;
  width: 92vw;
  max-width: 82rem;
  height: 100vh !important;
  height: 100dvh !important;
  padding: var(--pvl-sheet-padding);
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  box-shadow: none;
  overscroll-behavior: contain;
  transform: translateX(100%);
  transition: transform .22s ease-in-out;
}

.pvl-drawer.is-open {
  transform: translateX(0);
}

.pvl-drawer-header {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 0 0 auto;
  min-height: 3.5rem;
  padding: 0 3.75rem 1rem 0;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #8c8c8c;
  background: #fff;
}

body.ce-kit-119 .pvl-drawer .pvl-drawer-header h3,
.pvl-drawer .pvl-drawer-header h3 {
  margin: 0;
  color: #201e1d;
  font-family: Arimo, Arial, sans-serif !important;
  font-size: clamp(1.35rem, 2.1vw, 1.75rem);
  font-weight: 600 !important;
  line-height: 1.15;
  letter-spacing: 0;
}

.pvl-close {
  position: absolute;
  top: 50%;
  right: 0;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #201e1d;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 2.2rem;
  font-weight: 300;
  line-height: 1;
  transform: translateY(calc(-50% - .5rem));
}

.pvl-close:hover {
  background: #f4f3f1;
}

.pvl-close:focus {
  outline: 0;
}

.pvl-close:focus-visible {
  outline: 2px solid #201e1d;
  outline-offset: 2px;
}

.pvl-close.is-programmatic-focus:focus-visible {
  outline: 0;
}

.pvl-drawer-list {
  display: grid;
  min-height: 0;
  padding: 1.5rem 0 max(2rem, env(safe-area-inset-bottom));
  flex: 1 1 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 1rem clamp(1.5rem, 3vw, 3rem);
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.pvl-drawer-product {
  display: grid;
  box-sizing: border-box;
  min-width: 0;
  min-height: 12rem;
  padding: .875rem 1rem;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  align-items: center;
  gap: 1.125rem;
  border: 1px solid transparent;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color .16s ease, background-color .16s ease;
}

a.pvl-drawer-product:hover {
  border-color: #c8c6c2;
  background: #faf9f7;
}

.pvl-drawer-product.is-current {
  border-color: #55514e;
  font-weight: 400;
}

.pvl-drawer-product img {
  display: block;
  width: 7.5rem;
  height: 7.5rem;
  background: #f6f5f3;
  object-fit: contain;
}

.pvl-drawer-product > .pvl-drawer-product__content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: .35rem;
}

.pvl-drawer-product strong {
  color: #201e1d;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.pvl-drawer-product small {
  color: #5d5956;
  font-size: .9rem;
  line-height: 1.3;
}

.pvl-drawer-product__description {
  display: -webkit-box;
  overflow: hidden;
  color: #77726e;
  font-size: .78rem;
  font-weight: 400;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.pvl-drawer-product__price {
  margin-top: .15rem;
  color: #4f4b48;
  font-size: .9rem;
  line-height: 1.3;
}

.pvl-drawer-product__delivery {
  display: flex;
  margin-top: .35rem;
  padding-top: .55rem;
  align-items: flex-start;
  gap: .55rem;
  border-top: 1px solid #e1dfdc;
  color: #5d5956;
  font-size: .75rem;
  font-weight: 400;
  line-height: 1.35;
}

.pvl-drawer-product__delivery-dot {
  width: .45rem;
  height: .45rem;
  margin-top: .22rem;
  flex: 0 0 .45rem;
  background: #4f7653;
}

.pvl-drawer-product__delivery.is-long-delay .pvl-drawer-product__delivery-dot {
  background: #9c3b2a;
}

.pvl-drawer-product__delivery > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: .12rem;
}

.pvl-drawer-product__delivery b {
  color: #302e2c;
  font-size: .76rem;
  font-weight: 600;
}

.pvl-drawer-product__delivery small {
  color: #77726e;
  font-size: .72rem;
}

html.pvl-lock-scroll,
html.pvl-lock-scroll body {
  overflow: hidden !important;
}

html.pvl-lock-scroll .mchp-mobile-buybar {
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

@media (max-width: 900px) {
  .pvl-drawer {
    width: calc(100vw - 2rem);
    max-width: none;
  }

  .pvl-drawer-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .pvl-drawer {
    --pvl-sheet-padding: 1.25rem;
    width: 100%;
  }

  .pvl-drawer-header {
    min-height: 3rem;
    padding-bottom: .875rem;
  }

  body.ce-kit-119 .pvl-drawer .pvl-drawer-header h3,
  .pvl-drawer .pvl-drawer-header h3 {
    font-size: 1.35rem;
  }

  .pvl-drawer-list {
    padding-top: 1rem;
    gap: .75rem;
  }

  .pvl-drawer-product {
    min-height: auto;
    padding: .75rem .75rem 1rem;
    grid-template-columns: 5.75rem minmax(0, 1fr);
    align-items: start;
    gap: 1rem;
  }

  .pvl-drawer-product img {
    width: 5.75rem;
    height: 5.75rem;
  }

  .pvl-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pvl-grid > .pvl-card:nth-child(n+4) {
    display: none;
  }
}

@media (max-width: 480px) {
  .pvl-grid {
    gap: .4rem;
  }

  .pvl-name {
    font-size: .7rem;
  }
}

@media (min-width: 768px) {
  .pvl-more--mobile-only {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pvl-overlay,
  .pvl-drawer,
  .pvl-drawer-product {
    transition-duration: .01ms;
  }
}
