.cotinder-style {
  padding: 0 0 8px;
}

.cotinder-style > h3 {
  font-size: 18px;
  line-height: 1.2;
  margin-bottom: 4px;
}

.cotinder-style > p {
  font-size: 13px;
  line-height: 1.35;
  margin-bottom: 8px;
}

.cotinder-style h3,
.cotinder-style h4 {
  margin: 0 0 8px;
  overflow-wrap: anywhere;
}

.cotinder-style p,
.cotinder-style li {
  margin: 0 0 10px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.cotinder-style__card {
  margin: 0 0 8px;
  padding: 8px 10px;
  border: 1px solid #eadfd6;
  border-radius: 12px;
  background: #fffaf6;
}

.cotinder-style__card h4 {
  font-size: 14px;
  line-height: 1.2;
  margin-bottom: 6px;
}

.cotinder-style__card p {
  font-size: 13px;
  margin-bottom: 6px;
}

.cotinder-style__cover img {
  display: block;
  width: min(220px, 100%);
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

.cotinder-style__swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cotinder-style__swatch {
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 4px 10px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  line-height: 1.2;
}

.cotinder-style__swatch--orange { background: #fd7728; }
.cotinder-style__swatch--blue { background: #2f6fed; }
.cotinder-style__swatch--green { background: #2f9e5d; }
.cotinder-style__swatch--purple { background: #7a4fd6; }
.cotinder-style__swatch--yellow { background: #d4a017; color: #1f1a12; }

.cotinder-style__swatch.is-on,
.cotinder-style__opt.is-on {
  box-shadow: 0 0 0 2px #1f1a12 inset;
}

.cotinder-style__row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cotinder-style__opt {
  padding: 4px 8px;
  border: 1px solid #eadfd6;
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
  line-height: 1.3;
}

.cotinder-style__form {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
}

.cotinder-style__form label {
  display: grid;
  gap: 4px;
  font-size: 13px;
}

.cotinder-style__form select,
.cotinder-style__form input[type="file"] {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.cotinder-style .btn {
  margin: 0 8px 8px 0;
}

.cotinder-style__error {
  color: #b42318;
}

.cotinder-style__font--comfortaa { font-family: Comfortaa, cursive; }
.cotinder-style__font--pacifico { font-family: Pacifico, cursive; }

/* Applied look on pet detail + canals cards */
.pet__top.cotinder-pet-style,
.card.user-slide.cotinder-pet-style {
  --cps-accent: #fd7728;
  --cps-soft: #fff3ea;
  position: relative;
}

.pet__top.cotinder-pet-style--theme-orange,
.card.user-slide.cotinder-pet-style--theme-orange {
  --cps-accent: #fd7728;
  --cps-soft: #fff3ea;
}

.pet__top.cotinder-pet-style--theme-blue,
.card.user-slide.cotinder-pet-style--theme-blue {
  --cps-accent: #2f6fed;
  --cps-soft: #ebf1ff;
}

.pet__top.cotinder-pet-style--theme-green,
.card.user-slide.cotinder-pet-style--theme-green {
  --cps-accent: #2f9e5d;
  --cps-soft: #eaf8f0;
}

.pet__top.cotinder-pet-style--theme-purple,
.card.user-slide.cotinder-pet-style--theme-purple {
  --cps-accent: #7a4fd6;
  --cps-soft: #f3ecff;
}

.pet__top.cotinder-pet-style--theme-yellow,
.card.user-slide.cotinder-pet-style--theme-yellow {
  --cps-accent: #d4a017;
  --cps-soft: #fff7df;
}

.pet-detail-page .pet__top.cotinder-pet-style {
  border-radius: 18px;
  background: var(--cps-soft);
}

.pet-detail-page .pet__top.cotinder-pet-style .tabs__content_title,
.pet-detail-page .pet__top.cotinder-pet-style .pet__top_image {
  border-color: var(--cps-accent);
}

.card.user-slide.cotinder-pet-style {
  box-shadow: inset 0 0 0 2px var(--cps-accent);
  background: var(--cps-soft);
}

.pet__top.cotinder-pet-style--font-comfortaa .tabs__content_title,
.card.user-slide.cotinder-pet-style--font-comfortaa .card-title,
.card.user-slide.cotinder-pet-style--font-comfortaa .card__title,
.card.user-slide.cotinder-pet-style--font-comfortaa a.card-title {
  font-family: Comfortaa, cursive;
}

.pet__top.cotinder-pet-style--font-pacifico .tabs__content_title,
.card.user-slide.cotinder-pet-style--font-pacifico .card-title,
.card.user-slide.cotinder-pet-style--font-pacifico .card__title,
.card.user-slide.cotinder-pet-style--font-pacifico a.card-title {
  font-family: Pacifico, cursive;
}

.pet__top.cotinder-pet-style--bg-pattern,
.card.user-slide.cotinder-pet-style--bg-pattern {
  background-image:
    radial-gradient(rgba(0, 0, 0, 0.06) 1px, transparent 1px);
  background-size: 12px 12px;
  background-color: var(--cps-soft);
}

.pet__top.cotinder-pet-style--bg-anim,
.card.user-slide.cotinder-pet-style--bg-anim {
  background:
    linear-gradient(120deg, var(--cps-soft), #fff, var(--cps-soft));
  background-size: 200% 200%;
  animation: cotinder-pet-style-shine 8s ease-in-out infinite;
}

@keyframes cotinder-pet-style-shine {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.pet__top.cotinder-pet-style--frame-spring .pet__top_image,
.card.user-slide.cotinder-pet-style--frame-spring .card-img-wrap {
  outline: 3px solid #f2a0c0;
  outline-offset: 2px;
  border-radius: 14px;
}

.pet__top.cotinder-pet-style--frame-yard .pet__top_image,
.card.user-slide.cotinder-pet-style--frame-yard .card-img-wrap {
  outline: 3px solid #c48a4a;
  outline-offset: 2px;
  border-radius: 14px;
}

.pet__top.cotinder-pet-style--frame-gold .pet__top_image,
.card.user-slide.cotinder-pet-style--frame-gold .card-img-wrap {
  outline: 3px solid #d4a017;
  box-shadow: 0 0 0 5px rgba(212, 160, 23, 0.25);
  outline-offset: 2px;
  border-radius: 14px;
}

@media (max-width: 767.98px) {
  .pet-detail-page.tabs__content_right--entity-page .index__tabs_tabs {
    flex-wrap: wrap;
  }

  .pet-detail-page.tabs__content_right--entity-page .index__tabs_tabs > div {
    flex: 1 1 45%;
  }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
  .pet-detail-page.tabs__content_right--entity-page .index__tabs_tabs {
    flex-wrap: wrap;
  }

  .pet-detail-page.tabs__content_right--entity-page .index__tabs_tabs > div {
    flex: 1 1 25%;
    max-width: 25%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pet__top.cotinder-pet-style--bg-anim,
  .card.user-slide.cotinder-pet-style--bg-anim {
    animation: none;
  }
}
