.user-car-page {
  --car-accent: #c34c9e;
  --car-ink: #343342;
  --car-muted: #777784;
  --car-line: #ece5ed;
  background: #faf7fb;
}

.user-car-page .mainCaption {
  align-items: center;
  padding: 14px 16px 8px;
  background: #fff;
}
.user-car-page .mainCaption h1 {
  color: var(--car-ink);
  font-size: 19px;
  font-weight: 700;
}
.user-car-page .mainCaption .link-back a {
  width: 36px;
  height: 36px;
  justify-content: center;
  padding: 0;
  border-radius: 12px;
  background: #f7f2f8;
  color: var(--car-accent);
  font-size: 20px;
}
.user-car-page > .boxForm { align-items: stretch; padding: 14px 16px 28px; }
.user-car-page__intro {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  padding: 17px;
  border: 1px solid #f1e3ee;
  border-radius: 20px;
  background: linear-gradient(110deg, #fff4fb, #fffaf6);
}
.user-car-page__intro-icon {
  display: grid;
  flex: 0 0 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #bf429d, #ec8390);
  color: #fff;
}
.user-car-page__intro strong { color: var(--car-ink); font-size: 16px; }
.user-car-page__intro p { margin: 4px 0 0; color: var(--car-muted); font-size: 13px; line-height: 1.4; }
.user-car-page__notice { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: #eff9f3; color: #267a50; font-size: 13px; }
.user-car-page__notice--error { background: #fff0f2; color: #b34a61; }
.user-car-page #profileCars { width: 100%; }
.user-car-page #profileCars > .flex-line p {
  margin: 0 0 10px;
  color: var(--car-muted);
  font-size: 13px;
}
.user-car-page .profile__cars { gap: 11px; padding: 0; }
.user-car-page .profile__cars li { min-width: 0; }
.user-car-page .profile__cars-item { position: relative; flex-wrap: wrap; }
.user-car-page .profile__cars li.profile__cars-item--deletable > a { padding-right: 52px; }
.user-car-page .profile__cars li a {
  min-height: 80px;
  height: auto;
  gap: 13px;
  margin: 0;
  padding: 13px 16px;
  border: 1px solid var(--car-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(49, 38, 53, .045);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.user-car-page .profile__cars li a:active { transform: scale(.99); }
.user-car-page .profile__cars li.selected a {
  border-color: #df8ac4;
  background: linear-gradient(110deg, #fff2fa, #fffaf6);
  box-shadow: 0 8px 24px rgba(195, 76, 158, .1);
  color: var(--car-ink);
}
.user-car-page .profile__cars-icon {
  display: grid;
  flex: 0 0 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  background: #f8edf5;
  color: var(--car-accent);
  font-size: 17px;
}
.user-car-page .profile__cars li.selected .profile__cars-icon {
  background: linear-gradient(135deg, #bf429d, #ec8390);
  color: #fff;
}
.user-car-page .profile__cars li strong {
  min-width: 0;
  flex: 1;
  color: var(--car-ink);
  font-size: 15px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.user-car-page .profile__cars li > a > span:last-child { flex: 0 0 auto; color: var(--car-muted); font-size: 13px; }
.user-car-page .profile__cars li.selected > a > span:last-child { color: #a13d85; }
.user-car-page .profile__cars .forActive small { display: block; margin-top: 5px; color: #a13d85; font-size: 11px; }
.user-car-page .profile__cars-add a {
  justify-content: flex-start !important;
  border-style: dashed !important;
  color: var(--car-accent) !important;
}
.user-car-page .profile__cars-add strong { color: var(--car-accent) !important; }
.user-car-page .profile__cars-delete {
  position: absolute;
  top: 22px;
  right: 12px;
  z-index: 2;
}
.user-car-page .profile__cars-delete summary {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 11px;
  background: #f8edf5;
  color: #a13d85;
  cursor: pointer;
  list-style: none;
}
.user-car-page .profile__cars-delete summary::-webkit-details-marker { display: none; }
.user-car-page .profile__cars-delete summary:focus-visible { outline: 2px solid #a13d85; outline-offset: 2px; }
.user-car-page .profile__cars-delete[open] {
  position: static;
  width: 100%;
  margin-top: 9px;
}
.user-car-page .profile__cars-delete[open] summary { top: 22px; right: 12px; }
.user-car-page .profile__cars-delete form {
  width: 100%;
  padding: 15px;
  border: 1px solid var(--car-line);
  border-radius: 14px;
  background: #fff8fb;
}
.user-car-page .profile__cars-delete form span { display: block; margin-bottom: 12px; color: var(--car-ink); font-size: 13px; font-weight: 700; }
.user-car-page .profile__cars-delete-actions { display: flex; gap: 8px; }
.user-car-page .profile__cars-delete form button {
  flex: 1;
  min-height: 38px;
  border: 0;
  border-radius: 10px;
  background: #b34a61;
  color: #fff;
  font-weight: 700;
}
.user-car-page .profile__cars-delete form button[type="button"] { background: #fff; color: var(--car-muted); border: 1px solid var(--car-line); }
.user-car-page #addCar {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid var(--car-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(49, 38, 53, .06);
}
.user-car-page #addCar form { padding-bottom: 0; }
.user-car-page #addCar .row span { text-align: left; color: var(--car-muted); font-size: 13px; font-weight: 600; }
.user-car-page #addCar input, .user-car-page #addCar .mySelect {
  height: 52px;
  border: 1px solid var(--car-line);
  border-radius: 13px;
  background: #fff;
}
.user-car-page #addCar .mySelect div { padding: 0 15px; }
.user-car-page #addCar button {
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(110deg, #bd419e, #e56788 70%, #f39563);
  box-shadow: 0 10px 22px rgba(195, 76, 158, .18);
  font-weight: 700;
}
@media (max-width: 420px) {
  .user-car-page > .boxForm { padding-inline: 12px; }
  .user-car-page .profile__cars li a { padding-inline: 12px; gap: 9px; }
  .user-car-page .profile__cars-icon { flex-basis: 38px; height: 38px; }
}
