@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
    /* Inherit from Woodmart theme variables if available */
    --pwct-primary: var(--wd-primary-color, #007cba);
    --pwct-primary-light: var(--wd-primary-color-hover, #00a0d2);
    --pwct-success: #10b981;
    --pwct-bg: transparent;
    --pwct-card-bg: #ffffff;
    --pwct-text: var(--wd-text-color, #333);
    --pwct-text-muted: #777;
    --pwct-border: #ddd;
}

.pwct-tracking-container {
    font-family: inherit;
    max-width: 700px;
    margin: 30px auto;
    padding: 10px;
    color: var(--pwct-text);
}

/* Form Container - Simple and clean */
.pwct-glass-form {
    background: var(--pwct-card-bg);
    border: 1px solid var(--pwct-border);
    border-radius: 8px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.pwct-form-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    color: var(--pwct-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pwct-input-group {
    margin-bottom: 25px;
}

.pwct-input-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--pwct-text);
    text-transform: uppercase;
}

/* Let theme handle input style mostly */
.pwct-input-group input {
    width: 100%;
    padding: 12px 18px;
    border-radius: 5px;
    border: 1px solid rgba(0,0,0,0.1);
    background: #f9f9f9;
    font-size: 14px;
}

.pwct-submit-btn {
    width: 100%;
    padding: 15px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.pwct-btn-icon {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px;
    display: inline-block;
}

/* Result Card */
.pwct-result-card {
    background: #fff;
    border: 1px solid var(--pwct-border);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.pwct-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--pwct-border);
    padding-bottom: 15px;
}

.pwct-result-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.pwct-order-date {
    color: var(--pwct-text-muted);
    font-size: 13px;
}

/* Timeline */
.pwct-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 30px;
}

.pwct-timeline::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 40px;
    right: 40px;
    height: 4px;
    background: #e2e8f0;
    z-index: 1;
}

.pwct-timeline-step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.pwct-step-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pwct-text-muted);
    transition: all 0.5s ease;
    margin-bottom: 15px;
}

.pwct-step-icon svg {
    width: 24px;
    height: 24px;
}

.pwct-step-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-width: 80px;
    padding: 0 5px;
}

.pwct-step-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--pwct-text-muted);
    text-align: center;
    line-height: 1.2;
}

.pwct-step-date {
    display: block;
    font-size: 10px;
    color: var(--pwct-text-muted);
    font-weight: 400;
    margin-top: 3px;
    opacity: 0.8;
}

/* Active and Completed States */
.pwct-timeline-step.active .pwct-step-icon {
    border-color: var(--pwct-primary);
    background: var(--pwct-primary);
    color: #fff;
    box-shadow: 0 0 20px rgba(0, 124, 186, 0.4);
}

.pwct-timeline-step.active .pwct-step-label {
    color: var(--pwct-primary);
}

.pwct-timeline-step.completed .pwct-step-icon {
    border-color: var(--pwct-success);
    background: var(--pwct-success);
    color: #fff;
}

.pwct-timeline-step.completed .pwct-step-label {
    color: var(--pwct-success);
}

/* Order Summary */
.pwct-order-summary {
    background: rgba(248, 250, 252, 0.5);
    border-radius: 16px;
    padding: 24px;
}

.pwct-order-summary h4 {
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 600;
}

.pwct-items-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.pwct-items-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed var(--pwct-border);
}

.pwct-items-list li:last-child {
    border-bottom: none;
}

.pwct-order-total {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    padding-top: 15px;
    border-top: 2px solid var(--pwct-border);
}

/* Responsive */
@media (max-width: 600px) {
    .pwct-timeline {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .pwct-timeline::before {
        display: none;
    }
    .pwct-timeline-step {
        flex-direction: row;
        gap: 20px;
        width: 100%;
        align-items: center;
    }
    .pwct-step-icon {
        margin-bottom: 0;
        flex-shrink: 0;
    }
    .pwct-step-content {
        align-items: flex-start;
        min-width: 0;
        text-align: left;
    }
    .pwct-step-label, .pwct-step-date {
        text-align: left;
    }
}
