#photos {
  height: 78vh;
  background: #101010;
  /* padding-top: 100px; */
}

#swiper {
  width: 100%;
  height: 78vh;
}

.swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}
.swiper-slide img {
  max-height: 78vh;
  max-width: 90vw;
  object-fit: contain;
}

.swiper-button {
  width: 36px;
  height: 36px;
  background: #666666aa;
  border-radius: 50%;
  opacity: 0.95;
  margin-top: -18px;
}
.swiper-button:after {
  font-size: 16px;
  color: #fff;
}

#photo-empty {
  position: absolute;
  color: #bbb;
  background: rgba(0,0,0,0.4);
  padding: 6px 10px;
  border-radius: 6px;
}


#car-info {
  background-color: #181818;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 10px 15px;
}

#car-info-left {
  display: flex;
  flex-direction: row;
  gap: 30px;
  align-items: center;
}

#car-info-name {
  color: #a2a2a2;
  font-size: 20px;
  line-height: normal;
  font-weight: 400;
  letter-spacing: 1px;
}

#car-info-favorite {
  align-self: center;
  width: 22px;
  height: 22px;
}

#car-info-center {
  display: flex;
  flex-direction: row;
  gap: 15px;
  align-items: center;
}

.car-info-field {
  display: flex;
  flex-direction: row;
  gap: 7px;
  align-items: center;
}
.car-info-field-icon {
  height: 30px;
  width: 30px;
}
.car-info-field-text {
  color: #888;
  font-size: 12px;
}
#car-info-color-icon {
  width: 26px;
  height: 26px;
}
#car-info-fuel-icon {
  width: 24px;
  height: 24px;
}

#car-info-right {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: end;
}

#car-info-price {
  color: #ec5e1c;
  font-size: 22px;
  font-weight: 500;
}

#car-info-price-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

#car-info-price-old {
  color: #888;
  font-size: 14px;
  text-decoration: line-through #f44336;
  font-weight: 400;
  white-space: nowrap;
}

#car-info-price-day {
  color: #777;
  font-weight: 400;
}


/* #car-table {
  margin: 0 auto;
  margin-top: 20px;
  width: 40vw;
}

.table-name {
  font-weight: 400;
} */


#price-calc {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 30px;

  background-color: #181818;
  margin: 40px 20%;
  padding: 40px;
}

#price-calc-top {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
}

#price-calc-start {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

#price-calc-start-price {
  font-size: 15px;
}
#price-calc-start-price-old {
  text-decoration: line-through #ff2a00;
  color: #888;
}
.price-calc-start-price-new {
  font-size: 22px;
  font-weight: 700;
  color: #e0320b;
  text-shadow:
    4px 4px 2px #360404,
    3px 3px 2px #000303,
    2px 2px 2px #000303,
    1px 1px 2px #000303;
  font-style: italic;
}
#price-calc-start-price-day {
  color: #888;
}

#price-calc-sale {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#price-calc-promocode {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#price-calc-promocode-top {
  gap: 10px;
  display: flex;
  flex-direction: row;
}
#price-calc-promocode-input {
  width: 60%;
  background: #1b1b1b;
  border: 1px solid #2a2a2a;
  border-radius: 5px;
  padding: 10px 10px;
}
#price-calc-promocode-input input {
  background: none;
  border: none;
  color: #ddd;
  text-align: center;
  outline: none;
  appearance: textfield;
}
#price-calc-promocode-input:focus-visible {
  outline: none;
  border: 1px solid #ec5e1c;
}
#price-calc-promocode-msg-error {
  color: #ff2a00;
  font-size: 14px;
}
#price-calc-promocode-msg-search, #price-calc-promocode-msg-warning, #price-calc-promocode-msg-warning b {
  color: gold;
  font-size: 14px;
}
#price-calc-promocode-msg-success, #price-calc-promocode-msg-discount {
  color: #4CAF50;
  font-size: 14px;
}

#price-calc-miles {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

/* slider */
#price-calc-miles-input {
  --value: 1200;
  --max: 7000;
  --progress: calc(var(--value) / var(--max) * 100%);

  position: relative;
  width: 100%;
  height: 20px;
}

#price-calc-miles-input-thumb {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 20px;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  -webkit-appearance: none;
  appearance: none;
  transform: translateY(-50%);
  z-index: 3;
  cursor: pointer;
}

/* firefox slider */
#price-calc-miles-input-thumb::-moz-range-track {
  height: 3px;
  background: #2a2a2a;
  border-radius: 2px;
  border: none;
}

#price-calc-miles-input-thumb::-moz-range-progress {
  height: 3px;
  background: #EB5E1B;
  border-radius: 2px;
}

#price-calc-miles-input-thumb::-moz-range-thumb {
  width: 13px;
  height: 13px;
  background: #fff;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 3px rgba(0,0,0,0.4);
  margin-top: -5px;
}

/* crome slider */
#price-calc-miles-input-thumb::-webkit-slider-runnable-track {
  background: transparent;
  border: none;
  height: 20px;
}

#price-calc-miles-input-thumb::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 13px;
  height: 13px;
  background: #fff;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 3px rgba(0,0,0,0.4);
  position: relative;
  top: 50%;
  transform: translateY(-50%);
}

@supports (-webkit-appearance: none) and (not (-moz-appearance: none)) {
  #price-calc-miles-input-track, #price-calc-miles-input-progress {
    position: absolute;
    top: 50%;
    left: 0;
    height: 3px;
    border-radius: 2px;
    transform: translateY(-50%);
    z-index: 1;
  }

  #price-calc-miles-input-track {
    width: 100%;
    background: #2a2a2a;
    z-index: 1;
  }

  #price-calc-miles-input-progress {
    width: var(--progress);
    background: #EB5E1B;
    z-index: 2;
  }
}

#price-calc-miles-values {
  position: relative;
  width: 100%;
  margin-bottom: 10px;
}
.price-calc-miles-value {
  position: absolute;
  top: 0;
  white-space: nowrap;
  transform: translateX(-50%);
  font-size: 13px;
  color: #888;
}
.price-calc-miles-value[data-pos="0"] {
  left: 0%;
  transform: translateX(0);
  text-align: left;
}
.price-calc-miles-value[data-pos="1200"] {
  left: 18%;
}
.price-calc-miles-value[data-pos="7000"] {
  left: 100%;
  transform: translateX(-100%);
  text-align: right;
}

#price-calc-miles-label {
  font-weight: 500;
  color: #ccc;
}

#price-calc-miles-note, #price-calc-sale-note {
  color: #666;
  font-size: 13px;
  width: max-content;
  text-align: right;
}

#price-calc-miles-note-price {
  color: #bc4d19;
}

#price-calc-miles-current {
  color: #ec5e1c;
  font-size: 13px;
  font-weight: 400;
}

#price-calc-bottom {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
}
#price-calc-bottom-final {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

#price-calc-book-success {
  color: #4CAF50;
}
#price-calc-book-error {
  color: #ff2a00;
}

#price-calc-final {
  font-weight: 500;
  font-size: 16px;
}


.dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;

  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 12;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.1s ease;
}
.dialog-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.dialog {
  background: #181818;
  color: #eee;
  padding: 32px;
  text-align: center;
  width: max-content;
  opacity: 0;
  transition: opacity 0.1s ease;
  display: flex;
  flex-direction: column;
}

.dialog-overlay.open .dialog {
  opacity: 1;
}

.dialog h3 {
  margin: 0 0 20px;
  font-size: 20px;
  color: #ec5e1c;
}

/* Block page scroll when dialog is open */
body.dialog-open {
  overflow: hidden !important;
  /* height: 100vh !important; */
  position: fixed;
  width: 100%;
}

.dialog-input {
  background-color: transparent;
  border: none;
  padding: 12px 10px;
  border-bottom: 1px #666 solid;
  width: 90%;
  font-size: 15px;
  outline: none;
  margin-bottom: 5px;
  margin: 0 auto;
}
.dialog-input:focus {
  outline: none;
  border: none;
  border-bottom: #EB5E1B 1px solid !important;
}
.dialog-input:user-invalid:not(:placeholder-shown) {
  border-bottom: #ff2a00 1px solid;
}
.dialog-input::placeholder {
  color: #666;
  font-size: 15px;
}


#dialog-price {
  display: flex;
  flex-direction: row;
  padding: 15px;
  background-color: #202020;
  justify-content: space-around;
  gap: 10px;
  width: 100%;
  font-size: 13px;
}

#dialog-price-value {
  display: flex;
  flex-direction: column;
}

#dialog-price-default-price {
  color: #FF854D;
}
#dialog-price-default-price-day {
  margin-left: auto;
  font-size: 11px;
  color: #777;
}

#dialog-price-miles-value {
  color: #FF854D;
}

#dialog-consents {
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
  font-size: 13px;
}
.dialog-consent {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dialog-consent span {
  text-align: left;
}

#dialog-consent-policy {
  display: flex;
  justify-content: end;
  text-align: right;
  gap: 5px;
  align-items: center;
}
#dialog-consent-policy img {
  width: 18px;
  height: 18px;
}

#dialog-final {
  margin-top: 5px;
  margin-left: auto;
  font-size: 16px;
}
#dialog-final-value {
  color: #ec5e1c;
  font-weight: 400;
}

.dialog-buttons {
  margin-left: auto;
  margin-top: 10px;
}

#dialog-2, #dialog-3, #dialog-4 {
  display: none;
}

#dialog-paytype {
  display: flex;
  flex-direction: column;
  align-items: start;
}

#dialog-date-title {
  margin-top: 20px;
  font-weight: 500;
  font-size: 16px;
  text-align: left;
}

#dialog-topay {
  margin-top: 10px;
  margin-left: auto;
  font-size: 16px;
}
#dialog-topay-value {
  color: #ec5e1c;
  font-weight: 400;
}


#dialog-3-waiting {
  margin-top: 20px;
  font-size: 22px;
  font-weight: 500;
  color: #ffaa55;
}

#dialog-3-success-text {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 400;
  color: #ccc;
}

#dialog-3-summary {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #202020;
  padding: 14px;
  border-radius: 10px;
  margin: 10px auto;
  width: 280px;
  text-align: left;
}

.dialog-3-line {
  display: flex;
  justify-content: space-between;
}

.dialog-3-label {
  font-size: 14px;
  color: #aaa;
}

.dialog-3-value {
  font-size: 15px;
  color: #ec5e1c;
  font-weight: 500;
}

#dialog-3-check-status {
  margin-top: 14px;
  margin-bottom: 14px;
  font-size: 13px;
  color: #888;
}

#dialog-4 {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #181818;
  padding: 32px;
  color: #eee;
}

#dialog-4 h3 {
  margin: 0 0 10px;
  font-size: 20px;
  color: #4CAF50;
  font-weight: 600;
}

#dialog-4-status, #dialog-4-amount, #dialog-4-method, #dialog-4-date {
  font-size: 16px;
  margin-top: 10px;
}

#dialog-4-status {
  font-weight: 500;
  color: #9df59d;
}

#dialog-4-amount {
  color: #ec5e1c;
  font-weight: 500;
}

#dialog-4-method {
  color: #ccc;
  font-size: 15px;
}

#dialog-4-date {
  color: #aaa;
  font-size: 14px;
}

#dialog-4 button {
  margin-top: 25px;
}

#car-info-mobile {
  display: none;
  justify-content: space-around;
  padding: 10px;
  flex-wrap: wrap;
}

@media (max-width: 800px) {
  #car-info-center {
    display: none;
  }
  #car-info-mobile {
    display: flex;
  }
  .car-info-field {
    flex-direction: column;
    justify-content: center;
  }
  #price-calc * {
    font-size: 15px;
  }
  #price-calc {
    margin: 40px 10%;
  }
  #price-calc-top {
    flex-direction: column;
    gap: 15px;
  }
  #price-calc-start {
    align-items: center;
  }
}