.vv-post-carousel {
  position: relative;
  padding: 0 42px;
  margin-bottom: 0;
  color: #14234b;
}

.vv-post-carousel__viewport {
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.vv-post-carousel__track {
  display: flex;
  align-items: flex-start;
  transition: transform 0.35s ease;
  will-change: transform;
}

.vv-post-carousel.is-dragging .vv-post-carousel__viewport {
  cursor: grabbing;
}

.vv-post-carousel.is-dragging .vv-post-carousel__track {
  transition: none;
}

.vv-post-carousel__slide {
  box-sizing: border-box;
  padding: 0 18px;
}

.vv-post-carousel__card {
  display: flex;
  flex-direction: column;
  background: #fff;
}

.vv-post-carousel__card-link {
  color: inherit;
  text-decoration: none;
}

.vv-post-carousel__image-link {
  display: block;
  position: relative;
}

.vv-post-carousel__image {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  background: #efefef;
}

.vv-post-carousel--thumbnail-4-3 .vv-post-carousel__image {
  aspect-ratio: 4 / 3;
}

.vv-post-carousel--thumbnail-3-4 .vv-post-carousel__image {
  aspect-ratio: 3 / 4;
}

.vv-post-carousel__staff {
  display: flex;
  align-items: center;
  align-self: flex-start;
  gap: 10px;
  margin-top: -22px;
  margin-left: 0;
  padding: 8px 14px 8px 8px;
  width: fit-content;
  max-width: calc(100% - 24px);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 24px rgba(18, 35, 75, 0.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  position: relative;
  z-index: 1;
  justify-content: flex-start;
  text-align: left;
}

.vv-post-carousel__staff-avatar {
  width: 44px;
  min-width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #c9cfdb;
  border: 4px solid #fff;
  overflow: hidden;
}

.vv-post-carousel__staff-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vv-post-carousel__staff-name {
  margin: 0;
  color: #13285c;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  word-break: break-word;
  text-align: left;
  display: block;
}

.vv-post-carousel__staff-store {
  margin: 2px 0 0;
  font-size: 11px;
  color: #46536f;
  line-height: 1.35;
  word-break: break-word;
  text-align: left;
  display: block;
}

.vv-post-carousel__body {
  margin-top: 24px;
  display: flex;
  flex: 0 1 auto;
  flex-direction: column;
  padding: 0 8px;
}

.vv-post-carousel__title {
  margin: 0;
  color: #10265b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  display: block;
}

.vv-post-carousel__excerpt {
  margin: 14px 0 0;
  color: #25324e;
  font-size: 11px;
  line-height: 1.85;
  display: block;
}

.vv-post-carousel--post .vv-post-carousel__title,
.vv-post-carousel--post .vv-post-carousel__excerpt {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.vv-post-carousel--post .vv-post-carousel__title {
  -webkit-line-clamp: 2;
}

.vv-post-carousel--post .vv-post-carousel__excerpt {
  -webkit-line-clamp: 2;
}

.vv-post-carousel__stats {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 18px;
  color: #33415f;
  font-size: 15px;
}

.vv-post-carousel__stat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.vv-post-carousel__stat-icon {
  font-size: 22px;
  line-height: 1;
}

.vv-post-carousel__button-wrap {
  margin: 0;
  padding-top: 24px;
}

.vv-post-carousel__button {
  display: block;
  padding: 16px 18px;
  background: #111;
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.vv-post-carousel__nav {
  position: absolute;
  top: var(--vv-post-carousel-nav-top, 42%);
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  color: #2d8f49;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.vv-post-carousel__nav span {
  font-size: 36px;
  line-height: 1;
}

.vv-post-carousel__nav:disabled {
  opacity: 0.4;
  cursor: default;
}

.vv-post-carousel__nav--prev {
  left: -4px;
}

.vv-post-carousel__nav--next {
  right: -4px;
}

.vv-post-carousel + .wp-block-buttons,
.vv-post-carousel ~ .wp-block-buttons,
.vv-post-carousel + .center_btn,
.vv-post-carousel ~ .center_btn,
.wp-block-valuvari-post-carousel + .wp-block-buttons,
.wp-block-valuvari-product-carousel + .wp-block-buttons {
  margin-top: 32px !important;
}

.vv-post-carousel--product {
  padding: 0;
  color: #000;
}

.vv-post-carousel--product .vv-post-carousel__slide {
  padding: 0 5px;
}

.vv-product-carousel__card {
  color: #000;
}

.vv-product-carousel__image {
  background: #f1f1f1;
}

.vv-product-carousel__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 14px;
  min-height: 24px;
}

.vv-product-carousel__tag {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 1px 5px 2px;
  border: 1px solid #000;
  color: #000;
  background: #fff;
  font-size: 12px;
  line-height: 1.2;
}

.vv-product-carousel__body {
  margin-top: 16px;
  padding: 0 8px;
  text-align: center;
}

.vv-product-carousel__title {
  color: #000;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
}

.vv-product-carousel__price {
  display: block;
  margin-top: 4px;
  color: #000;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}

.vv-product-carousel__price .woocommerce-Price-amount {
  display: inline !important;
  margin-top: 0 !important;
  font-size: inherit !important;
  line-height: inherit !important;
  text-align: inherit !important;
}

.vv-product-carousel__price .woocommerce-Price-amount bdi,
.vv-product-carousel__price .woocommerce-Price-currencySymbol {
  font-size: inherit !important;
  line-height: inherit !important;
}

.vv-product-carousel__tax {
  margin-left: 2px;
  font-size: 0.9em;
}

.vv-post-carousel--product .vv-post-carousel__nav {
  width: 38px;
  height: 38px;
  border-radius: 0;
  background: rgba(0, 0, 0, 0.45);
  box-shadow: none;
  color: #fff;
}

.vv-post-carousel--product .vv-post-carousel__nav span {
  font-size: 30px;
}

.vv-post-carousel--product .vv-post-carousel__nav--prev {
  left: 5px;
}

.vv-post-carousel--product .vv-post-carousel__nav--next {
  right: 5px;
}

.wp-block-valuvari-post-tile-list,
.vv-post-tile-list {
  margin: 0 !important;
  padding: 0;
}

.vv-post-tile-list {
  display: grid;
  grid-template-columns: repeat(var(--vv-post-tile-columns-desktop, 2), minmax(0, 1fr));
  gap: 0;
}

.vv-post-tile-list__item {
  margin: 0;
  padding: 0;
  list-style: none;
}

.vv-post-tile-list__link {
  position: relative;
  display: block;
  overflow: hidden;
  color: #fff;
  background: #e8e8e8;
  text-decoration: none;
}

.vv-post-tile-list__image,
.vv-post-tile-list__placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
}

.vv-post-tile-list--ratio-4-3 .vv-post-tile-list__image,
.vv-post-tile-list--ratio-4-3 .vv-post-tile-list__placeholder {
  aspect-ratio: 4 / 3;
}

.vv-post-tile-list--ratio-3-4 .vv-post-tile-list__image,
.vv-post-tile-list--ratio-3-4 .vv-post-tile-list__placeholder {
  aspect-ratio: 3 / 4;
}

.vv-post-tile-list__image {
  object-fit: cover;
}

.vv-post-tile-list__placeholder {
  background: linear-gradient(135deg, #ededed, #d8d8d8);
}

.vv-post-tile-list__title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: block;
  padding: 9px 10px 10px;
  background: rgba(0, 0, 0, 0.46);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}

.editor-styles-wrapper .vv-post-carousel,
.block-editor-block-preview__content .vv-post-carousel {
  margin: 0;
}

.editor-styles-wrapper .vv-post-carousel-block__preview {
  overflow: hidden;
}

.editor-styles-wrapper .vv-post-carousel-block__preview .vv-post-carousel {
  max-width: 100%;
}

.editor-styles-wrapper .vv-post-carousel-block__preview .vv-post-carousel__button {
  pointer-events: none;
}

.vv-post-carousel-block__preview .components-placeholder {
  min-height: 160px;
}

.vv-post-carousel-block__terms {
  max-height: 220px;
  overflow: auto;
  padding-right: 8px;
}

@media only screen and (max-width: 798px) {
  .vv-post-carousel {
    padding: 0;
  }

  .vv-post-carousel__slide {
    padding: 0 8px;
  }

  .vv-post-carousel__staff {
    gap: 8px;
    margin-top: -18px;
    margin-left: 0;
    padding: 7px 10px 7px 7px;
    max-width: calc(100% - 20px);
  }

  .vv-post-carousel__staff-avatar {
    width: 38px;
    min-width: 38px;
    height: 38px;
    border-width: 3px;
  }

  .vv-post-carousel__staff-name {
    font-size: 12px;
  }

  .vv-post-carousel__staff-store {
    font-size: 10px;
  }

  .vv-post-carousel__title {
    font-size: 12px;
  }

  .vv-post-carousel__excerpt {
    font-size: 11px;
    line-height: 1.8;
  }

  .vv-post-carousel--post .vv-post-carousel__excerpt {
    margin-top: 12px;
  }

  .vv-post-carousel__stats {
    gap: 18px;
    margin-top: 16px;
    font-size: 14px;
  }

  .vv-post-carousel__stat-icon {
    font-size: 20px;
  }

  .vv-post-carousel__button-wrap {
    padding-top: 20px;
  }

  .vv-post-carousel__button {
    padding: 14px 14px;
  }

  .vv-post-carousel__nav {
    width: 42px;
    height: 42px;
  }

  .vv-post-carousel__nav span {
    font-size: 30px;
  }

  .vv-post-carousel__nav--prev {
    left: -6px;
  }

  .vv-post-carousel__nav--next {
    right: -6px;
  }

  .vv-post-carousel--product .vv-post-carousel__slide {
    padding: 0 8px;
  }

  .vv-product-carousel__tags {
    margin-top: 10px;
  }

  .vv-product-carousel__tag {
    font-size: 11px;
  }

  .vv-product-carousel__body {
    margin-top: 12px;
  }

  .vv-product-carousel__title {
    font-size: 11px;
  }

  .vv-product-carousel__price {
    font-size: 11px;
  }

  .vv-post-carousel--product .vv-post-carousel__nav {
    width: 34px;
    height: 34px;
  }

  .vv-post-carousel--product .vv-post-carousel__nav--prev {
    left: 0;
  }

  .vv-post-carousel--product .vv-post-carousel__nav--next {
    right: 0;
  }

  .vv-post-tile-list {
    grid-template-columns: repeat(var(--vv-post-tile-columns-mobile, 2), minmax(0, 1fr));
    gap: 0;
  }

  .vv-post-tile-list__title {
    padding: 7px 8px 8px;
    font-size: 11px;
  }
}
