.calio-stylish-list {
  --calio-stylish-list-entrance-duration: 650ms;
  --calio-stylish-item-delay: 0ms;
  --calio-stylish-list-divider-width: 1px;
}

.calio-stylish-list-items {
  display: grid;
  gap: 16px;
}

.calio-stylish-list.layout-horizontal .calio-stylish-list-items {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.calio-stylish-list-item {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.92));
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease, opacity 220ms ease;
}

.calio-stylish-list.layout-horizontal .calio-stylish-list-item {
  height: 100%;
}

.calio-stylish-list-item.no-start {
  grid-template-columns: minmax(0, 1fr) auto;
}

.calio-stylish-list-item.no-start:not(.has-badge) {
  grid-template-columns: 1fr;
}

.calio-stylish-list-item:not(.has-badge) {
  grid-template-columns: auto minmax(0, 1fr);
}

.calio-stylish-list.has-divider.layout-vertical .calio-stylish-list-item {
  border-bottom-style: solid;
  border-bottom-width: var(--calio-stylish-list-divider-width);
  border-bottom-color: rgba(148, 163, 184, 0.2);
}

.calio-stylish-list.has-divider.layout-vertical .calio-stylish-list-item:last-child {
  border-bottom-color: transparent;
}

.calio-stylish-list.has-divider.layout-horizontal .calio-stylish-list-item {
  border-right-style: solid;
  border-right-width: var(--calio-stylish-list-divider-width);
  border-right-color: rgba(148, 163, 184, 0.2);
}

.calio-stylish-list.has-divider.layout-horizontal .calio-stylish-list-item:last-child {
  border-right-color: transparent;
}

.calio-stylish-list-start {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
}

.calio-stylish-list-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  min-height: 30px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  color: #334155;
  background: rgba(148, 163, 184, 0.14);
}

.calio-stylish-list-media {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  overflow: hidden;
  color: #4f46e5;
  background: rgba(79, 70, 229, 0.12);
}

.calio-stylish-list-media i {
  font-size: 18px;
}

.calio-stylish-list-media svg {
  width: 18px;
  height: 18px;
}

.calio-stylish-list-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.calio-stylish-list-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
}

.calio-stylish-list-title {
  margin: 0 0 4px;
  color: #0f172a;
  font-size: 1.03rem;
  line-height: 1.28;
}

.calio-stylish-list-title a {
  color: inherit;
  text-decoration: none;
}

.calio-stylish-list-title a:hover,
.calio-stylish-list-title a:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
}

.calio-stylish-list-description {
  color: #475569;
  font-size: 0.93rem;
  line-height: 1.68;
}

.calio-stylish-list-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--calio-stylish-item-badge-text, #4f46e5);
  background: var(--calio-stylish-item-badge-bg, rgba(79, 70, 229, 0.12));
}

.calio-stylish-list-item-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
}

.calio-stylish-list-item-link:focus-visible {
  outline: 2px solid rgba(79, 70, 229, 0.45);
  outline-offset: -2px;
}

.calio-stylish-list.hover-slide .calio-stylish-list-item:hover,
.calio-stylish-list.hover-slide .calio-stylish-list-item:focus-within {
  transform: translateX(4px);
}

.calio-stylish-list.layout-horizontal.hover-slide .calio-stylish-list-item:hover,
.calio-stylish-list.layout-horizontal.hover-slide .calio-stylish-list-item:focus-within {
  transform: translateY(-3px);
}

.calio-stylish-list.hover-blur:hover .calio-stylish-list-item {
  opacity: 0.62;
  filter: blur(0.7px);
}

.calio-stylish-list.hover-blur:hover .calio-stylish-list-item:hover,
.calio-stylish-list.hover-blur:hover .calio-stylish-list-item:focus-within {
  opacity: 1;
  filter: none;
  transform: translateX(3px);
}

.calio-stylish-list-item.has-particular-style {
  background-color: var(--calio-stylish-item-bg, transparent);
  border-color: var(--calio-stylish-item-border, transparent);
}

.calio-stylish-list-item.has-particular-style .calio-stylish-list-media {
  color: var(--calio-stylish-item-icon, inherit);
  background: var(--calio-stylish-item-icon-bg, transparent);
}

.calio-stylish-list.use-entrance-animation .calio-stylish-list-item {
  opacity: 0;
  transition-duration: var(--calio-stylish-list-entrance-duration);
  transition-delay: var(--calio-stylish-item-delay);
}

.calio-stylish-list.use-entrance-animation.entrance-fade-up .calio-stylish-list-item {
  transform: translateY(18px);
}

.calio-stylish-list.use-entrance-animation.entrance-fade-left .calio-stylish-list-item {
  transform: translateX(-18px);
}

.calio-stylish-list.use-entrance-animation.entrance-zoom-in .calio-stylish-list-item {
  transform: scale(0.92);
}

.calio-stylish-list.use-entrance-animation .calio-stylish-list-item.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 767px) {
  .calio-stylish-list-item {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px;
  }

  .calio-stylish-list-start {
    min-height: 0;
  }

  .calio-stylish-list-badge {
    justify-self: start;
  }
}
