.sr-app,
.sr-app * {
  box-sizing: border-box;
}

.sr-app {
  --sr-green: #50d868;
  --sr-bg: #f1eff2;
  --sr-card: #fff;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(360px, 0.92fr);
  height: clamp(680px, calc(100dvh - 90px), 960px);
  min-height: 680px;
  overflow: hidden;
  background: var(--sr-bg);
  color: #000;
  font-family: "Open Sans", sans-serif;
}

.sr-preview {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(280px, 1fr) auto;
  min-width: 0;
  padding: clamp(40px, 6vw, 90px) clamp(28px, 5vw, 80px) 38px;
  border-right: 1px solid rgba(0, 0, 0, 0.045);
}

.sr-preview-title {
  margin: 0 0 7px;
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 500;
  line-height: 1.05;
}

.sr-preview-description {
  margin: 0 0 22px;
  color: rgba(0, 0, 0, 0.62);
  font-size: 14px;
}

.sr-specs,
.sr-row-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.sr-spec {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 9px;
  background: #fff;
  color: #111;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.sr-spec img {
  width: 15px;
  height: 15px;
  object-fit: contain;
}

.sr-hero-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 280px;
  overflow: hidden;
}

.sr-hero-image {
  display: block;
  width: 90%;
  height: 100%;
  max-width: 760px;
  max-height: 470px;
  object-fit: contain;
  filter: none;
}

.sr-preview-copy,
.sr-hero-image {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  transition:
    opacity 0.58s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.72s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.58s ease;
  will-change: opacity, transform, filter;
}

.sr-preview.is-car-leaving .sr-preview-copy {
  opacity: 0;
  transform: translate3d(-8px, 0, 0);
  filter: blur(1.5px);
}

.sr-preview.is-car-leaving .sr-hero-image {
  opacity: 0;
  transform: translate3d(-14px, 0, 0) scale(0.992);
  filter: blur(2px);
}

.sr-preview.is-car-entering .sr-preview-copy {
  opacity: 0;
  transform: translate3d(8px, 0, 0);
  filter: blur(1.5px);
}

.sr-preview.is-car-entering .sr-hero-image {
  opacity: 0;
  transform: translate3d(14px, 0, 0) scale(0.992);
  filter: blur(2px);
}

@media (prefers-reduced-motion: reduce) {
  .sr-preview-copy,
  .sr-hero-image {
    transition-duration: 0.01ms;
  }
}

.sr-selected-strip {
  display: flex;
  gap: 9px;
  min-height: 112px;
  overflow-x: auto;
}

.sr-empty-strip {
  display: flex;
  align-items: center;
  color: rgba(0, 0, 0, 0.35);
  font-size: 13px;
}

.sr-strip-card {
  position: relative;
  flex: 0 0 126px;
  display: grid;
  grid-template-rows: 70px auto;
  place-items: center;
  gap: 5px;
  min-width: 0;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.45);
  color: #111;
  cursor: pointer;
  opacity: 0.48;
}

.sr-strip-card.is-active {
  border-color: rgba(0, 0, 0, 0.04);
  background: #fff;
  opacity: 1;
}

.sr-strip-card img {
  width: 100%;
  height: 68px;
  object-fit: contain;
}

.sr-strip-card > span:last-child {
  overflow: hidden;
  width: 100%;
  font-size: 10px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sr-count,
.sr-added-count {
  position: absolute;
  z-index: 2;
  top: 4px;
  right: 8px;
  padding: 2px 5px;
  border-radius: 4px;
  background: #000;
  color: #fff;
  font-size: 9px;
}

.sr-panel {
  position: relative;
  z-index: 2;
  min-width: 0;
  height: 100%;
  padding: clamp(34px, 5vw, 75px) clamp(24px, 3.5vw, 56px) 38px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  background: rgba(237, 235, 238, 0.74);
}

.sr-step {
  display: none;
  min-height: 100%;
}

.sr-step.is-active {
  display: flex;
  flex-direction: column;
}

.sr-field,
.sr-fieldset {
  display: block;
  margin: 0 0 27px;
  padding: 0;
  border: 0;
}

.sr-field > span,
.sr-fieldset legend,
.sr-label {
  display: block;
  margin: 0 0 10px;
  color: #111;
  font-size: 12px;
  font-weight: 400;
}

.sr-field select {
  width: 100%;
  min-height: 48px;
  padding: 0 32px 0 18px;
  border: 0;
  border-radius: 12px;
  outline: 0;
  appearance: none;
  -webkit-appearance: none;
  background-color: #fff;
  background-image: url('https://mmproject.sk/wp-content/uploads/2026/07/down.svg');
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 16px 16px;
  color: #111;
  font: inherit;
  font-size: 14px;
}

.sr-pills,
.sr-duration {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sr-pill,
.sr-brand,
.sr-duration-button {
  min-height: 44px;
  padding: 9px 19px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.sr-pill.is-active,
.sr-brand.is-active,
.sr-duration-button.is-active {
  background: #000;
  color: #fff;
}

.sr-duration {
  display: flex;
  justify-content: flex-start;
}

.sr-duration-button {
  flex: 0 0 64px;
  width: 64px;
  min-width: 64px;
  padding-inline: 8px;
  border-radius: 11px;
}

.sr-selection-list {
  display: grid;
  gap: 8px;
  max-height: min(268px, 34dvh);
  padding-right: 4px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.sr-empty-selection,
.sr-selection-row {
  width: 100%;
  min-height: 49px;
  border: 0;
  border-radius: 11px;
  background: #fff;
}

.sr-empty-selection {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 16px;
  color: rgba(0, 0, 0, 0.42);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.sr-add-more > span {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 5px;
  background: var(--sr-green);
  color: #fff;
  font-size: 16px;
  line-height: 1;
}

.sr-empty-icon,
.sr-chevron {
  display: block;
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.sr-empty-icon {
  flex: 0 0 16px;
}

.sr-selection-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  align-items: center;
  gap: 7px;
  background: transparent;
}

.sr-selection-main {
  display: grid;
  grid-template-columns: 20px 68px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 61px;
  padding: 4px 12px;
  overflow: hidden;
  border: 0;
  border-radius: 11px;
  background: #fff;
  color: #111;
  font: inherit;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}

.sr-selection-main .sr-selection-thumb {
  width: 68px;
  height: 53px;
  object-fit: contain;
}

.sr-selection-main > span:nth-child(3) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sr-selection-main b {
  padding: 2px 4px;
  border-radius: 3px;
  background: #000;
  color: #fff;
  font-size: 9px;
}

.sr-remove {
  width: 19px;
  height: 19px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: #000;
  color: #fff;
  font-size: 15px;
  line-height: 17px;
  cursor: pointer;
}

.sr-add-more {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #111;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.sr-primary,
.sr-secondary {
  width: 100%;
  min-height: 50px;
  padding: 12px 20px;
  border: 0;
  border-radius: 11px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.sr-primary {
  margin-top: auto;
  background: var(--sr-green);
  color: #000;
}

.sr-secondary {
  margin-top: 18px;
  margin-bottom: 0;
  background: rgba(0, 0, 0, 0.09);
  color: #111;
}

.sr-validation {
  min-height: 18px;
  margin: 0 0 8px;
  color: #b42318;
  font-size: 12px;
}

.sr-drawer-backdrop {
  position: absolute;
  z-index: 3;
  inset: 0;
  visibility: hidden;
  background: rgba(0, 0, 0, 0.03);
  opacity: 0;
  transition: 0.25s ease;
}

.sr-drawer {
  position: absolute;
  z-index: 4;
  display: flex;
  flex-direction: column;
  top: 10%;
  right: calc(30% + 36px);
  bottom: 10%;
  width: min(520px, 42%);
  padding: 28px 18px 20px;
  overflow: hidden;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.08);
  opacity: 0;
  transform: translateX(34px);
  pointer-events: none;
  transition: 0.25s ease;
}

.sr-app.has-open-drawer .sr-drawer-backdrop {
  visibility: visible;
  opacity: 1;
}

.sr-drawer.is-open {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.sr-drawer-header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 20px;
  font-size: 13px;
}

.sr-drawer-close {
  padding: 0;
  border: 0;
  background: transparent;
  color: #111;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.sr-brand-filters {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 15px;
  overflow: visible;
}

.sr-brand {
  flex: 0 0 auto;
  min-height: 40px;
  border-radius: 11px;
  background: #EDEDED66;
}

.sr-car-list {
  display: grid;
  flex: 1 1 auto;
  grid-auto-rows: 108px;
  align-content: start;
  gap: 8px;
  min-height: 0;
  height: auto;
  padding: 0 5px 16px 0;
  overflow-y: auto;
  scrollbar-width: thin;
}

.sr-car-row {
  position: relative;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 13px;
  height: 108px;
  min-height: 108px;
  padding: 12px 14px;
  border-radius: 13px;
  background: #EDEDED66;
}

.sr-car-thumb {
  width: 112px;
  height: 78px;
  object-fit: contain;
}

.sr-car-copy {
  min-width: 0;
}

.sr-car-copy strong,
.sr-car-copy small {
  display: block;
}

.sr-car-copy strong {
  margin-bottom: 2px;
  font-size: 15px;
}

.sr-car-copy small {
  margin-bottom: 7px;
  overflow: hidden;
  color: rgba(0, 0, 0, 0.65);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sr-row-specs {
  gap: 3px;
}

.sr-row-specs .sr-spec {
  gap: 3px;
  padding: 0 5px 0 0;
  background: transparent;
  font-size: 9px;
}

.sr-row-specs .sr-spec img {
  width: 12px;
  height: 12px;
}

.sr-plus {
  width: 25px;
  height: 25px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: #000;
  color: #fff;
  font-size: 19px;
  line-height: 23px;
  cursor: pointer;
}

.sr-added-count {
  top: 7px;
  right: 8px;
}

.sr-no-cars,
.sr-notice {
  padding: 20px;
  border-radius: 12px;
  background: #fff;
  color: #333;
  font-size: 13px;
}

/* Contact Form 7 */
.sr-step-contact .wpcf7-form {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  min-height: 100%;
}

.sr-step-contact .wpcf7,
.sr-step-contact .wpcf7-form,
.sr-step-contact .sr-cf7-grid {
  width: 100%;
}

.sr-step-contact .sr-cf7-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px 9px;
}

.sr-step-contact .sr-cf7-grid > p {
  display: contents;
}

.sr-step-contact .sr-cf7-grid > p > br {
  display: none;
}

.sr-step-contact .sr-cf7-full {
  grid-column: 1 / -1;
}

.sr-step-contact label {
  display: block;
  min-width: 0;
  font-size: 11px;
}

.sr-step-contact .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.sr-step-contact .wpcf7-form-control-wrap[data-name="sr_suhlas"] {
  display: inline-flex;
  width: auto;
  margin-right: 8px;
  vertical-align: middle;
}

.sr-step-contact .wpcf7-form-control-wrap[data-name="sr_suhlas"] .wpcf7-list-item {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.sr-step-contact input[type="checkbox"][name="sr_suhlas"] {
  width: 20px;
  height: 20px;
  margin: 0;
  vertical-align: middle;
}

.sr-step-contact input:not([type="checkbox"]):not([type="submit"]):not([type="hidden"]),
.sr-step-contact textarea {
  width: 100%;
  margin-top: 8px;
  padding: 13px 17px;
  border: 0;
  border-radius: 11px;
  outline: 0;
  background: #fff;
  color: #111;
  font: inherit;
  font-size: 13px;
}

.sr-step-contact textarea {
  min-height: 145px;
  resize: vertical;
}

.sr-step-contact .wpcf7-submit {
  width: 100%;
  min-height: 50px;
  margin-top: 8px;
  border: 0;
  border-radius: 11px;
  background: var(--sr-green);
  color: #000;
  font: inherit;
  cursor: pointer;
}

.sr-step-contact .wpcf7-spinner {
  position: absolute;
}

.sr-step-contact .wpcf7-response-output {
  margin: 10px 0 !important;
  font-size: 12px;
}

@media (max-width: 1024px) {
  .sr-app {
    grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.9fr);
  }

  .sr-preview {
    padding-inline: 32px;
  }

  .sr-drawer {
    right: calc(40% + 18px);
    width: min(500px, 55%);
  }
}

@media (max-width: 767px) {
  .sr-app {
    display: block;
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    overscroll-behavior-y: contain;
  }

  .sr-preview {
    display: block;
    padding: 34px 20px 22px;
    border: 0;
  }

  .sr-preview-title {
    font-size: 36px;
  }

  .sr-hero-image-wrap {
    height: 300px;
    min-height: 300px;
  }

  .sr-hero-image {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
  }

  .sr-selected-strip {
    min-height: 105px;
  }

  .sr-panel {
    height: auto;
    min-height: min(75dvh, 650px);
    padding: 34px 20px 22px;
    overflow: visible;
  }

  .sr-drawer {
    position: fixed;
    z-index: 99999;
    inset: auto 0 0;
    width: 100%;
    height: min(78vh, 720px);
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
  }

  .sr-drawer.is-open {
    transform: translateY(0);
  }

  .sr-drawer-backdrop {
    position: fixed;
    z-index: 99998;
  }

  .sr-car-row {
    grid-template-columns: 86px minmax(0, 1fr) 28px;
    padding-inline: 10px;
  }

  .sr-car-thumb {
    width: 86px;
  }

  .sr-row-specs {
    display: none;
  }
}
