/* Shared feedback component. Its own element classes avoid legacy storefront overrides. */
#main #dgp-customer-feedback {
  border: 0;
  background: #f3f4f6 !important;
  box-shadow: none !important;
  color: #303030;
  font-family: "Be Vietnam Pro", Arial, sans-serif;
}

.dgp-feedback__inner {
  position: relative;
  box-sizing: border-box;
  width: calc(100% - var(--retail-header-gutter, 24px) * 2);
  max-width: var(--retail-header-width, 1400px);
  margin: 0 auto;
  padding: 24px 0 20px;
}

.dgp-feedback__header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  text-align: center;
}

.dgp-feedback__header h2 {
  margin: 0;
  color: #293992;
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 700;
  line-height: 1.3;
  text-transform: none;
}

.dgp-feedback__track {
  display: flex;
  align-items: stretch;
  gap: 20px;
  overflow-x: auto;
  padding: 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.dgp-feedback__track::-webkit-scrollbar { display: none; }

.dgp-feedback__card {
  box-sizing: border-box;
  display: flex;
  flex: 0 0 calc((100% - 80px) / 5);
  flex-direction: column;
  min-width: 0;
  min-height: 166px;
  margin: 0;
  padding: 16px;
  border: 0;
  border-radius: 20px;
  background: #fff;
  box-shadow: none;
  scroll-snap-align: start;
}

.dgp-feedback__head {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  margin-bottom: 14px;
}

.dgp-feedback__portrait {
  position: relative;
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  overflow: hidden;
  place-items: center;
  border-radius: 50%;
  background: #e9edf8;
  color: #293992;
  font-size: 15px;
  font-weight: 600;
}

.dgp-feedback__portrait img.dgp-feedback__avatar {
  position: absolute;
  inset: 0;
  display: block;
  width: 48px;
  min-width: 48px;
  max-width: none;
  height: 48px;
  margin: 0;
  border: 0;
  border-radius: 50%;
  object-fit: cover;
  opacity: 0;
}

.dgp-feedback__portrait img.is-loaded { opacity: 1; }

.dgp-feedback__author {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.dgp-feedback__author strong {
  overflow: hidden;
  color: #282828;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dgp-feedback__rating {
  color: #ff9800;
  font-size: 17px;
  letter-spacing: .02em;
  line-height: 1;
  white-space: nowrap;
}

.dgp-feedback__quote {
  margin: 0 0 16px;
  color: #343434;
  font-size: 14px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.dgp-feedback__product {
  display: block;
  margin-top: auto;
  color: #343434;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.dgp-feedback__product:hover { color: #293992; text-decoration: underline; }

.dgp-feedback__controls { display: block; }

.dgp-feedback__controls button {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 36px;
  min-width: 0;
  height: 36px;
  min-height: 0;
  margin: 0;
  padding: 0;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid #e2e4e9;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(27, 38, 62, .05);
  color: #293992;
  cursor: pointer;
}

.dgp-feedback__controls button[data-dgp-feedback-direction="-1"] { left: -18px; }
.dgp-feedback__controls button[data-dgp-feedback-direction="1"] { right: -18px; }
.dgp-feedback__controls button[data-dgp-feedback-direction="-1"] svg { transform: rotate(180deg); }
.dgp-feedback__controls button[hidden] { display: none; }
.dgp-feedback__controls button:disabled { cursor: default; opacity: .45; }
.dgp-feedback__controls button:hover:not(:disabled) { background: #293992; color: #fff; }

.dgp-feedback__controls svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dgp-feedback__controls button:focus-visible,
.dgp-feedback__track:focus-visible,
.dgp-feedback__product:focus-visible {
  outline: 2px solid #293992;
  outline-offset: 3px;
}

@media (min-width: 1101px) {
  .dgp-feedback__track {
    overflow-x: auto;
    overflow-y: hidden;
    clip-path: none;
    scroll-snap-type: x mandatory;
  }

  .dgp-feedback__card {
    flex: 0 0 clamp(240px, 20vw, 280px);
  }

  .dgp-feedback__track > .is-loop-clone,
  .dgp-feedback__track > .is-desktop-hidden { display: none; }
  .dgp-feedback__track > .is-slide-visible { display: flex; }
}

@media (max-width: 1100px) {
  .dgp-feedback__inner {
    width: calc(100% - 48px);
    padding: 24px 0 20px;
  }

  .dgp-feedback__header { margin-bottom: 16px; }

  .dgp-feedback__track {
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
  }

  .dgp-feedback__card {
    flex-basis: calc((100% - 36px) / 4);
    min-height: 166px;
    padding: 14px;
  }

  .dgp-feedback__head {
    gap: 8px;
    min-height: 40px;
    margin-bottom: 10px;
  }

  .dgp-feedback__portrait,
  .dgp-feedback__portrait img.dgp-feedback__avatar {
    width: 40px;
    height: 40px;
  }

  .dgp-feedback__portrait,
  .dgp-feedback__portrait img.dgp-feedback__avatar {
    flex-basis: 40px;
  }

  .dgp-feedback__author strong { font-size: 12px; }
  .dgp-feedback__rating { font-size: 14px; }
  .dgp-feedback__quote { font-size: 12px; }
  .dgp-feedback__product { font-size: 10px; }
  .dgp-feedback__controls button { display: none; }
}

@media (max-width: 600px) {
  .dgp-feedback__inner {
    width: calc(100% - 32px);
    padding: 20px 0 18px;
  }

  .dgp-feedback__header {
    margin-bottom: 16px;
  }

  .dgp-feedback__header h2 { font-size: 22px; }

  .dgp-feedback__track {
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .dgp-feedback__card {
    flex-basis: calc((100% - 12px) / 2);
    min-height: 166px;
    padding: 12px;
  }

  .dgp-feedback__head {
    gap: 10px;
    min-height: 42px;
    margin-bottom: 12px;
  }

  .dgp-feedback__portrait,
  .dgp-feedback__portrait img.dgp-feedback__avatar {
    width: 42px;
    height: 42px;
  }

  .dgp-feedback__portrait,
  .dgp-feedback__portrait img.dgp-feedback__avatar {
    flex-basis: 42px;
  }

  .dgp-feedback__quote { margin-bottom: 12px; }

}
