.sp-lk-pets,
.sp-lk-pet-form-card {
    padding: 16px;
}

.sp-lk-pets__notices {
    margin-bottom: 16px;
}

.sp-lk-pets__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.sp-lk-pets__title,
.sp-lk-pet-form-card__title {
    margin: 0 0 6px;
    color: #1e1e1e;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;
}

.sp-lk-pets__subtitle,
.sp-lk-pet-form-card__subtitle,
.sp-lk-pet-form__section-hint {
    margin: 0;
    color: #7b7f8b;
    font-size: 16px;
    line-height: 1.35;
}

.sp-lk-pets__add-top,
.sp-lk-pets__add-card-button,
.sp-lk-pet-form__submit,
.sp-lk-pet-form__delete {
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 18px;
    border: 1px solid var(--e-global-color-primary, #ec168c);
    background: var(--e-global-color-primary, #ec168c);
    color: #fff;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 600;
    text-decoration: none !important;
}

.sp-lk-pets__add-top:not(.elementor-button):hover,
.sp-lk-pets__add-top:not(.elementor-button):focus,
.sp-lk-pets__add-top:not(.elementor-button):focus-visible {
    color: #fff !important;
}

.sp-lk-pets__add-top-icon {
    position: relative;
    width: 18px;
    height: 18px;
    margin-right: 17px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
}

.sp-lk-pets__add-top-icon::before,
.sp-lk-pets__add-top-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    background: #fff;
    transform: translate(-50%, -50%);
}

.sp-lk-pets__add-top-icon::before { width: 10px; height: 2px; }
.sp-lk-pets__add-top-icon::after { width: 2px; height: 10px; }

.sp-lk-pets__list {
    display: grid;
    gap: 12px;
}

.sp-lk-pets__card {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 12px 18px;
    border: 1px solid #001b9817;
    border-radius: 16px;
    background: #fff;
}

.sp-lk-pets__avatar,
.sp-lk-pets__avatar--placeholder {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    background: #f4f5f8 center/34px 34px no-repeat;
}

.sp-lk-pets__avatar--cat { background-image: url("vector/cat.svg"); }
.sp-lk-pets__avatar--dog { background-image: url("vector/dog.svg"); }

.sp-lk-pets__avatar-wrap > .sp-lk-pets__avatar--placeholder {
    background-size: 90px 90px;
}

.sp-lk-pets__name {
    margin: 0 0 8px;
    color: #1e1e1e;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 700;
}

.sp-lk-pets__meta-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
}

.sp-lk-pets__meta-icon {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    background: center/contain no-repeat;
}

.sp-lk-pets__meta-icon--male { background-image: url("vector/male.svg"); }
.sp-lk-pets__meta-icon--female { background-image: url("vector/female.svg"); }

.sp-lk-pets__meta-text {
    color: #1e1e1e;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 500;
}

.sp-lk-pets__age-line {
    margin: 0;
    color: #677088;
    font-size: 16px;
    line-height: 1.35;
}

.sp-lk-pets__aside {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    align-self: start;
    justify-self: end;
}

.sp-lk-pets__menu-panel {
    min-width: 190px;
}

.sp-lk-pets__menu-panel .sp-lk-pets__menu-link {
    display: block !important;
    width: 100% !important;
    min-height: 36px !important;
    margin: 0 !important;
    padding: 7px 16px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #202127 !important;
    font-size: 16px !important;
    line-height: 22px !important;
    font-weight: 400 !important;
    text-align: left !important;
    text-decoration: none !important;
    text-transform: none !important;
}

.sp-lk-pets__menu-panel .sp-lk-pets__menu-link:hover,
.sp-lk-pets__menu-panel .sp-lk-pets__menu-link:focus {
    background: #f7f7f9 !important;
    color: #202127 !important;
}

.sp-lk-pets__card--add {
    grid-template-columns: 88px minmax(0, 1fr) auto;
    color: inherit;
}

.sp-lk-pets__add-card-icon {
    width: 88px;
    height: 88px;
    border: 1px solid #7f7f7f;
    border-radius: 50%;
    background: #fff center / 58px 58px no-repeat;
    background-image: url("vector/paw.svg");
    opacity: 0.5;
}

.sp-lk-pets__add-card-title {
    margin: 0 0 8px;
    color: #4c5368;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 700;
}

.sp-lk-pets__add-card-text {
    margin: 0;
    max-width: 420px;
    color: #677088;
    font-size: 16px;
    line-height: 1.35;
}

.sp-lk-pets__add-card-button,
.sp-lk-pet-form__cancel {
    border-color: var(--e-global-color-primary, #ec168c);
    background: #fff;
    color: var(--e-global-color-primary, #ec168c);
    font-weight: 500;
}

.sp-lk-pet-form-page {
    display: grid;
    gap: 16px;
}

.sp-lk-pet-form-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eceff5;
}

.sp-lk-pet-form {
    padding-top: 20px;
}

.sp-lk-pet-form__error {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #fff1f4;
    color: #c43d67;
    font-size: 14px;
    line-height: 1.4;
}

.sp-lk-pet-form__field-error {
    margin: 8px 0 0;
    color: #c43d67;
    font-size: 13px;
    line-height: 1.4;
}

.sp-lk-pet-form__field.is-invalid input[type="text"],
.sp-lk-pet-form__field.is-invalid input[type="date"],
.sp-lk-pet-form__field.is-invalid input[type="number"],
.sp-lk-pet-form__field.is-invalid textarea,
.sp-lk-pet-form__field.is-invalid select {
    border-color: #c43d67;
    box-shadow: 0 0 0 1px rgba(196, 61, 103, 0.18);
}

.sp-lk-pet-form__segmented.is-invalid .sp-lk-pet-form__segmented-ui {
    border-color: #c43d67;
    box-shadow: 0 0 0 1px rgba(196, 61, 103, 0.18);
}

.sp-lk-pet-form__section + .sp-lk-pet-form__section {
    margin-top: 26px;
}

.sp-lk-pet-form__section-title {
    margin: 0 0 8px;
    color: #1e1e1e;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 700;
}

.sp-lk-pet-form__grid {
    display: grid;
    gap: 16px;
    margin-top: 15px;
}

.sp-lk-pet-form__grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sp-lk-pet-form__field {
    margin-top: 25px;
}

.sp-lk-pet-form__field label,
.sp-lk-pet-form__segmented legend {
    display: block;
    margin-bottom: 8px;
    color: #2a3143;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 600;
}

.sp-lk-pet-form__field label span,
.sp-lk-pet-form__segmented legend span {
    color: var(--e-global-color-primary, #ec168c);
}

.sp-lk-pet-form input[type="text"],
.sp-lk-pet-form input[type="date"],
.sp-lk-pet-form input[type="number"],
.sp-lk-pet-form textarea {
    border-radius: 10px;
    width: 100%;
    min-height: 44px;
    padding: 12px 14px;
    border: 1px solid #d8deea;
    background: #fff;
    color: #202127;
    font-size: 16px;
    line-height: 1.3;
}

.sp-lk-pet-form select {
    border-radius: 10px;
    width: 100%;
    min-height: 44px;
    padding: 12px 14px;
    border: 1px solid #d8deea;
    color: #202127;
    font-size: 16px;
    line-height: 1.3;
}

.sp-lk-pet-form textarea {
    min-height: 120px;
    resize: vertical;
}

.sp-lk-pet-form__readonly {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 12px 0;
    color: #2a3143;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 500;
}

.sp-lk-pet-form__segmented {
    margin: 16px 0 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

.sp-lk-pet-form__segmented-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.sp-lk-pet-form__segmented-option input { display: none; }

.sp-lk-pet-form__segmented-ui {
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 3px 14px;
    border: 1px solid #d8deea;
    background: #fff;
    color: #2a3143;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 500;
    cursor: pointer;
}

.sp-lk-pet-form__segmented-option input:checked + .sp-lk-pet-form__segmented-ui {
    border-radius: 10px;
    border-color: var(--e-global-color-primary, #ec168c);
    background-color: #fff4fa;
    color: var(--e-global-color-primary, #ec168c);
}

.sp-lk-pet-form__animal-icon,
.sp-lk-pet-form__gender-icon {
    width: 33px;
    height: 32px;
    background: center/contain no-repeat;
}

.sp-lk-pet-form__animal-icon--cat { background-image: url("vector/cat.svg"); }
.sp-lk-pet-form__animal-icon--dog { background-image: url("vector/dog.svg"); }
.sp-lk-pet-form__gender-icon--male { background-image: url("vector/male.svg"); }
.sp-lk-pet-form__gender-icon--female { background-image: url("vector/female.svg"); }

.sp-lk-pet-form__weight-head {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.sp-lk-pet-form__weight-head input {
    max-width: 80px;
}

.sp-lk-pet-form__weight-slider-wrap {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    width: 100%;
    margin-top: 0;
    color: #7b7f8b;
    font-size: 14px;
}

.sp-lk-pet-form__weight-slider {
    width: 100%;
    max-width: 100% !important;
    accent-color: var(--e-global-color-primary, #ec168c);
}

.sp-lk-pet-form__photos {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 14px;
}

.sp-lk-pet-form__photo-tile,
.sp-lk-pet-form__photo-upload {
    border-radius: 12px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 126px;
    height: 110px;
    border: 1px dashed #d8deea;
    background: #fff;
    overflow: hidden;
}

.sp-lk-pet-form__photo-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sp-lk-pet-form__photo-remove,
.sp-lk-pet-form__media-delete {
    position: absolute;
    top: 0;
    right: 0;
    width: 22px;
    height: 22px;
    border: 0;
    margin: 3px 3px 0 0;
    padding: 0 !important;
    border-radius: 999px !important;
    background: transparent center / 22px 22px no-repeat url("vector/del.svg");
    background-color: transparent !important;
    cursor: pointer;
}

.sp-lk-pet-form__delete-form {
    margin: 0;
}

.sp-lk-pet-form__photo-upload {
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    text-align: center;
    color: #4c5368;
    cursor: pointer;
}

.sp-lk-pet-form__photo-upload input { display: none; }
.sp-lk-pet-form__photo-upload-icon {
    width: 28px;
    height: 28px;
    background: center/contain no-repeat;
    background-image: url("vector/photo-camera-svgrepo-com.svg");
}

.sp-lk-pet-form__photo-upload-title { font-size: 12px; line-height: 1.2; font-weight: 500; }
.sp-lk-pet-form__photo-upload-subtitle { font-size: 11px; line-height: 1.2; color: #7b7f8b; }

.sp-lk-pet-form__media-thumb {
    position: relative;
    width: 126px;
    height: 110px;
    border-radius: 12px;
    overflow: hidden;
    background: #f4f5f8;
}

.sp-lk-pet-form__media-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sp-lk-pet-form__counter {
    margin-top: 8px;
    color: #7b7f8b;
    font-size: 12px;
    line-height: 1.2;
    text-align: right;
}

.sp-lk-pet-form__footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.sp-lk-pet-form__submit,
.sp-lk-pet-form__delete {
    min-height: 42px;
    padding: 8px 18px;
}

.sp-lk-pet-form__delete {
    background: #fff !important;
    color: #1f2430 !important;
    border: 1px solid #d4d5db !important;
}

@media (min-width: 768px) {
    .sp-lk-pet-form__delete-form {
        margin-left: auto;
    }
}

@media (max-width: 767px) {
    .sp-lk-pets,
    .sp-lk-pet-form-card { padding: 14px; }
    .sp-lk-pets__header { flex-direction: column; }
    .sp-lk-pet-form-card__header {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }
    .sp-lk-pets__card { grid-template-columns: 72px minmax(0, 1fr) auto; }
    .sp-lk-pets__card--add { grid-template-columns: 72px minmax(0, 1fr); }
    .sp-lk-pets__aside {
        grid-column: auto;
        align-self: start;
        justify-self: end;
    }
    .sp-lk-pets__add-card-action {
        grid-column: 1 / -1;
        justify-content: space-between;
    }
    .sp-lk-pets__card--add .sp-lk-pets__add-card-action {
        display: none;
    }
    .sp-lk-pets__avatar,
    .sp-lk-pets__avatar--placeholder,
    .sp-lk-pets__add-card-icon { width: 72px; height: 72px; }
    .sp-lk-pets__name,
    .sp-lk-pets__add-card-title,
    .sp-lk-pet-form__section-title { font-size: 18px; }
    .sp-lk-pets__meta-text,
    .sp-lk-pets__age-line,
    .sp-lk-pets__subtitle,
    .sp-lk-pet-form-card__subtitle,
    .sp-lk-pet-form__section-hint { font-size: 14px; }
    .sp-lk-pets__age-line { font-size: 12px; }
    .sp-lk-pet-form__grid--two { grid-template-columns: 1fr; }
    .sp-lk-pet-form__grid--persist-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sp-lk-pet-form__segmented-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sp-lk-pet-form__footer { flex-direction: column; align-items: stretch; }
    .sp-lk-pet-form__delete-form { margin-left: 0; }
    .sp-lk-pet-form__photos { gap: 10px; }
    .sp-lk-pet-form__photo-tile,
    .sp-lk-pet-form__photo-upload { width: calc(50% - 5px); height: 100px; }
}
