
.tracking-header {
    text-align: center;
    margin-bottom: 40px;
}

.tracking-header h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--ins-text);
    font-weight: 600;
    letter-spacing: 0.03em;
    margin: 8px 0 10px;
}

.tracking-header p {
    color: var(--ins-muted);
    letter-spacing: 0.08em;
}

.tracking-card {
    background-color: var(--ins-surface);
    border-radius: 14px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.9);
}

.order-info {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
    gap: 30px;
}

.info-block {
    flex: 1;
    min-width: 200px;
}

.info-block h3 {
    color: var(--ins-muted);
    font-size: 14px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-block p {
    color: var(--ins-text);
    font-weight: 600;
    font-size: 16px;
}

.tracking-status {
    margin-bottom: 40px;
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.status-header h2 {
    font-family: 'Cormorant Garamond', serif;
    color: var(--ins-text);
    font-size: 1.5rem;
    letter-spacing: 0.03em;
}

.current-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.status-shipped {
    background-color: rgba(220, 174, 48, 0.14);
    border: 1px solid var(--ins-line);
    color: var(--ins-gold-bright, #e8c860);
}

.status-processing {
    background-color: rgba(220, 174, 48, 0.12);
    border: 1px solid var(--ins-line);
    color: var(--ins-gold-bright, #e8c860);
}

.status-delivered {
    background-color: rgba(90, 190, 110, 0.14);
    border: 1px solid rgba(90, 190, 110, 0.35);
    color: #97e2a9;
}

.tracking-timeline {
    position: relative;
    margin-left: 15px;
}

.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 15px;
    width: 2px;
    /* gold progress running down to the current step, fading to hairline */
    background: linear-gradient(180deg,
        var(--ins-gold) 0%,
        var(--ins-gold) 42%,
        var(--ins-line) 60%,
        var(--ins-line) 100%);
    box-shadow: 0 0 12px rgba(220, 174, 48, 0.25);
    z-index: 1;
}

.timeline-event {
    position: relative;
    padding-left: 45px;
    padding-bottom: 30px;
    z-index: 2;
}

.timeline-event:last-child {
    padding-bottom: 0;
}

.event-dot {
    position: absolute;
    left: 8px;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--ins-gold);
    background-color: var(--ins-surface);
}

.event-dot.active {
    background-color: var(--ins-gold);
    box-shadow: 0 0 0 5px rgba(220, 174, 48, 0.2), 0 0 18px rgba(220, 174, 48, 0.6);
}

.event-dot.completed {
    background-color: var(--ins-gold);
    box-shadow: 0 0 0 4px rgba(220, 174, 48, 0.15);
}

.event-dot.pending {
    border-color: var(--ins-line);
}

.event-content {
    background-color: var(--ins-surface-2);
    padding: 20px;
    border-radius: 8px;
}

.event-content.active {
    background-color: var(--ins-surface-2);
    border: 1px solid var(--ins-line);
    box-shadow: 0 12px 30px -18px rgba(220, 174, 48, 0.4);
}

.event-content.completed {
    background-color: var(--ins-surface-2);
}

.event-content.pending {
    background-color: var(--ins-surface-2);
    opacity: 0.6;
}

.event-date {
    color: var(--ins-muted);
    font-size: 14px;
    margin-bottom: 5px;
}

.event-title {
    color: var(--ins-text);
    font-weight: 600;
    margin-bottom: 8px;
}

.event-description {
    color: var(--ins-text);
    font-size: 14px;
}

.event-location {
    display: flex;
    align-items: center;
    margin-top: 10px;
    font-size: 14px;
    color: var(--ins-muted);
}

.location-icon {
    margin-right: 5px;
}

.delivery-map {
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    height: 300px;
    background-color: var(--ins-line);
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-placeholder {
    text-align: center;
    color: var(--ins-muted);
}

.order-details {
    background-color: var(--ins-surface);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.order-details h2 {
    font-family: 'Cormorant Garamond', serif;
    color: var(--ins-text);
    font-size: 1.5rem;
    letter-spacing: 0.03em;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--ins-line);
}

.order-details .item-price {
    color: var(--ins-gold);
}

.order-items {
    margin-bottom: 20px;
}

.order-item {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px solid var(--ins-line);
}

.order-item:last-child {
    border-bottom: none;
}

.item-image {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    margin-right: 15px;
    background-color: var(--ins-line);
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-image img {
    max-width: 100%;
    max-height: 100%;
}

.item-details {
    flex: 1;
}

.item-name {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--ins-text);
}

.item-qty {
    font-size: 14px;
    color: var(--ins-muted);
}

.item-price {
    font-weight: 600;
    color: var(--ins-text);
}

.address-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.address-block {
    flex: 1;
    min-width: 250px;
    padding: 20px;
    background-color: var(--ins-surface-2);
    border-radius: 8px;
}

.address-block h3 {
    color: var(--ins-text);
    font-size: 16px;
    margin-bottom: 15px;
}

.address-text {
    color: var(--ins-text);
    line-height: 1.7;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 40px;
}

.action-btn {
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.primary-btn {
    background: linear-gradient(135deg, var(--ins-gold-bright), var(--ins-gold) 55%, var(--ins-gold-deep));
    color: var(--ins-on-gold, #010001);
    border: none;
    border-radius: 999px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    box-shadow: 0 14px 34px -16px rgba(220, 174, 48, 0.55);
}

.primary-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    color: var(--ins-on-gold, #010001);
}

.secondary-btn {
    background-color: transparent;
    color: var(--ins-gold);
    border: 1px solid var(--ins-gold);
    border-radius: 999px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.secondary-btn:hover {
    background-color: rgba(220, 174, 48, 0.12);
    border-color: var(--ins-gold);
    color: var(--ins-gold-bright, #e8c860);
    transform: translateY(-2px);
}

.button-icon {
    margin-right: 8px;
}

.help-section {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--ins-line);
}

.help-section h3 {
    color: var(--ins-text);
    margin-bottom: 15px;
}

.help-section p {
    color: var(--ins-muted);
    max-width: 600px;
    margin: 0 auto 20px;
}

.contact-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.contact-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: var(--ins-surface-2);
    border-radius: 30px;
    color: var(--ins-text);
    text-decoration: none;
    transition: all 0.2s;
}

.contact-button:hover {
    background-color: var(--ins-line);
}

.search-another {
    margin-top: 60px;
    text-align: center;
    padding: 30px;
    background-color: var(--ins-surface);
    border-radius: 14px;
    box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.9);
}

.search-another h2 {
    font-family: 'Cormorant Garamond', serif;
    color: var(--ins-text);
    font-size: 1.5rem;
    letter-spacing: 0.03em;
    margin-bottom: 20px;
}

.search-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    gap: 10px;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--ins-line);
    border-radius: 8px;
    font-size: 16px;
}

.search-input:focus {
    outline: none;
    border-color: var(--ins-gold);
    box-shadow: 0 0 0 3px rgba(220, 174, 48, 0.15);
}

.search-btn {
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--ins-gold-bright), var(--ins-gold) 55%, var(--ins-gold-deep));
    color: var(--ins-on-gold, #010001);
    border: none;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
    box-shadow: 0 14px 34px -16px rgba(220, 174, 48, 0.55);
}

.search-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

@media (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .search-btn {
        width: 100%;
    }
}