.tracking {
    display: none;
}
.tracking p {
    color: #fff;
}

.tracking.show {
    display: block;
}

.order-tracker {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin: 50px 0 100px 0;
}

.step {
    position: relative;
    text-align: center;
    flex: 1;
}

.step .label {
    position: absolute;
    top: 100%; /* підпис одразу під кружечком */
    left: 50%;
    transform: translateX(-50%);
    margin-top: 5px; /* відстань від кружечка */
    color: var(--chinazes-color);
}

.label .date {
    color: #fff;
}

/* Базовий вигляд кружків і +N */
.circle,
.more {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #ccc;
    margin: 0 auto 8px;
    position: relative;
    z-index: 2;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 1;
}

.step.completed .circle,
.step.completed .more {
    background: #d0ff33;
}

.step.active .circle,
.step.active .more {
    background: #d0ff33;
    box-shadow: 0 0 0 6px rgba(208, 255, 51, 0.3);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(208, 255, 51, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(208, 255, 51, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(208, 255, 51, 0);
    }
}

/* Сіра лінія */
.order-tracker::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #ddd;
    z-index: 1;
    transform: translateY(-50%);
}

/* Зелена лінія для completed і active */
.step.completed::after,
.step.active::after {
    content: "";
    position: absolute;
    top: 50%;
    left: -50%;
    width: 100%;
    height: 2px;
    background: #d0ff33;
    z-index: 1;
    transform: translateY(-50%); /* зсунути рівно по центру */
}

.step:first-child::after {
    content: none;
}

/* Tooltip */
.more:hover .tooltip {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 105px);
}

.tooltip {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 6px 10px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: 0.2s;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tooltip__status {
    color: var(--chinazes-color);
}

.tooltip .tooltip__item {
    display: flex;
    justify-content: space-between; /* перший span ліворуч, другий праворуч */
    width: 100%;
    gap: 5px;
}

.tracking__grid {
    display: grid;
    grid-template-columns: 1fr 1fr 300px;
    gap: 20px;
}
.tracking__col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.tracking__card {
    background: linear-gradient(180deg, #33383a 0%, #1f2022 100%);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.tracking__card, .tracking__photos h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--chinazes-color);
}
.tracking__photos {
    background: linear-gradient(180deg, #33383a 0%, #1f2022 100%);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.tracking__photos ul {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}
.tracking__photos li {
    margin: 5px 0;
}
.tracking__photos a {
    text-decoration: none;
    color: var(--chinazes-color);
}
.btn {
    display: inline-block;
    background: var(--chinazes-color);
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
}

/* VIN FORM */
.vin-search {
    margin-top: 100px;
    text-align: center;
}
.vin-search__form {
    display: flex;
    justify-content: center;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
}
.vin-search__form input {
    flex: 1;
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
}
.vin-search__form input:focus {
    border-color: var(--chinazes-color);
}
.vin-search__form button {
    background: var(--chinazes-color);
    color: var(--bg-darker);
    font: 700 20px var(--font-family);
    border: none;
    border-radius: 10px;
    padding: 12px 20px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.vin-search__form button:hover {
    background-color: rgba(190, 235, 40, 0.9);
}
.vin-search__error {
    margin-top: 10px;
    color: red;
    font-size: 14px;
}

/* Адаптивність для форми */
@media (max-width: 600px) {
    .vin-search__form {
        flex-direction: column;
    }
    .vin-search__form button {
        width: 100%;
    }

    .tracking__grid {
        display: grid;
        grid-template-columns: unset;
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .order-tracker {
        flex-direction: column;
        align-items: flex-start;
        margin: 0;
    }

    .order-tracker::before {
        width: 2px;
        height: 100%;
        left: 13px;
        top: 0;
        transform: none;
    }

    .step {
        display: flex;
        align-items: center;
        position: relative;
        margin: 10px 0;
    }

    .circle,
    .more {
        margin: 0;
        flex-shrink: 0;
    }

    .step .label {
        position: relative;
        left: 10px;
        top: 0;
        transform: none;
        margin: 0;
    }

    /* Вертикальна зелена лінія */
    .step.completed::after,
    .step.active::after {
        content: "";
        position: absolute;
        left: 13px;
        top: -10px;
        width: 2px;
        height: 100%;
        background: #d0ff33;
        z-index: 1;
    }

    /* Для першого кроку прибрати зелену лінію */
    .step:first-child::after {
        content: none;
    }

    .more:hover .tooltip {
        transform: translate(10%, 55px);
    }
}

/* Спіннер у вигляді колеса */
.tracking-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px; /* або по потребі */
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #ccc;
    border-top-color: var(--chinazes-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}







.tracking__photos h3 {
  margin-bottom: 10px;
}

.photo-group {
  margin-bottom: 20px;
}

.photo-group h4 {
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.photo-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.photo-thumbs a img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: transform 0.2s;
  cursor: pointer;
}

.photo-thumbs a img:hover {
  transform: scale(1.05);
}

.fancybox__thumbs .carousel__slide .fancybox__thumb::after {
	border-color: var(--chinazes-color)!important;
}