/* EA Media – My Account & Order Tracker Styles v1.0.0 */

/* ── Tracker Wrapper ── */
.ea-tracker-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.ea-tracker-section {
    margin-bottom: 36px;
}

.ea-tracker-heading {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 6px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f2f5;
}

.ea-tracker-desc {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 16px;
}

.ea-empty-state {
    padding: 20px;
    background: #f8f9fb;
    border-radius: 10px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

.ea-empty-state a {
    color: #c0392b;
    text-decoration: none;
    font-weight: 600;
}

/* ── Orders Grid ── */
.ea-orders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

/* ── Order Card ── */
.ea-order-card {
    background: #ffffff;
    border: 1.5px solid #e8ecf0;
    border-radius: 12px;
    padding: 18px 20px 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.ea-order-card:hover {
    border-color: #c0392b;
    box-shadow: 0 4px 16px rgba(192,57,43,0.08);
}

.ea-order-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.ea-order-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ea-order-num {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
}

.ea-order-date {
    font-size: 12px;
    color: #9ca3af;
}

.ea-order-total {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
}

.ea-order-items {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.ea-order-item-name {
    font-size: 12px;
    padding: 3px 8px;
    background: #f0f2f5;
    border-radius: 20px;
    color: #374151;
    font-weight: 500;
}

.ea-order-url {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 14px;
    overflow: hidden;
}

.ea-order-url a {
    color: #185FA5;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ea-order-url a:hover {
    text-decoration: underline;
}

/* ── Progress Steps ── */
.ea-progress-wrap {
    margin: 12px 0 10px;
}

.ea-progress-steps {
    display: flex;
    align-items: center;
}

.ea-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    position: relative;
    flex-shrink: 0;
}

.ea-step-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #e8ecf0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #d0d5dd;
    transition: all 0.3s;
    position: relative;
}

.ea-step.done .ea-step-dot {
    background: #1d9e75;
    border-color: #1d9e75;
    color: white;
}

.ea-step.done .ea-step-dot svg {
    width: 12px;
    height: 12px;
}

.ea-step.active .ea-step-dot {
    background: #c0392b;
    border-color: #c0392b;
}

.ea-step-pulse {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: ea-order-pulse 1.4s ease-in-out infinite;
}

@keyframes ea-order-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.8); }
}

.ea-step-label {
    font-size: 10px;
    color: #9ca3af;
    white-space: nowrap;
    margin-top: 4px;
    font-weight: 500;
}

.ea-step.done .ea-step-label,
.ea-step.active .ea-step-label {
    color: #374151;
}

.ea-step-line {
    flex: 1;
    height: 2px;
    background: #e8ecf0;
    margin: 0 3px;
    margin-bottom: 16px;
    transition: background 0.3s;
}

.ea-step-line.done {
    background: #1d9e75;
}

/* ── Status Badge ── */
.ea-order-status-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    margin: 6px 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ea-status-completed  { background: #d1fae5; color: #065f46; }
.ea-status-processing { background: #dbeafe; color: #1e40af; }
.ea-status-in-progress{ background: #fef3c7; color: #92400e; }
.ea-status-pending    { background: #f3f4f6; color: #374151; }
.ea-status-on-hold    { background: #fef3c7; color: #92400e; }
.ea-status-cancelled  { background: #fee2e2; color: #991b1b; }
.ea-status-refunded   { background: #ede9fe; color: #5b21b6; }

.ea-order-view-link {
    display: block;
    font-size: 12px;
    color: #c0392b;
    text-decoration: none;
    font-weight: 600;
    padding-top: 8px;
    border-top: 1px solid #f0f2f5;
}

.ea-order-view-link:hover {
    text-decoration: underline;
}

/* ── Lookup Form ── */
.ea-lookup-form {
    background: #f8f9fb;
    border: 1.5px solid #e2e6ea;
    border-radius: 10px;
    padding: 20px 22px;
}

.ea-lookup-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.ea-lookup-field {
    flex: 1;
    min-width: 180px;
}

.ea-lookup-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.ea-lookup-field input {
    width: 100%;
    padding: 10px 13px;
    font-size: 14px;
    border: 1.5px solid #d0d5dd;
    border-radius: 8px;
    background: #ffffff;
    color: #1a1a2e;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.ea-lookup-field input:focus {
    border-color: #c0392b;
    box-shadow: 0 0 0 3px rgba(192,57,43,0.1);
}

.ea-lookup-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 20px;
    background: #c0392b;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, transform 0.1s;
    height: 42px;
}

.ea-lookup-btn:hover   { background: #a93226; }
.ea-lookup-btn:active  { transform: scale(0.98); }
.ea-lookup-btn:disabled { background: #9ca3af; cursor: not-allowed; }

/* ── Lookup Result ── */
#ea-lookup-result {
    margin-top: 18px;
}

.ea-result-error {
    padding: 12px 16px;
    background: #fff5f5;
    border: 1px solid #fecaca;
    border-radius: 8px;
    font-size: 14px;
    color: #b91c1c;
}

.ea-result-success {
    border: 1.5px solid #e8ecf0;
    border-radius: 12px;
    overflow: hidden;
    background: white;
}

.ea-result-header {
    background: #1a1a2e;
    color: white;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ea-result-order-num {
    font-size: 16px;
    font-weight: 700;
}

.ea-result-body {
    padding: 18px;
}

/* ── Nav Account Link ── */
.ea-nav-account > a {
    display: flex !important;
    align-items: center;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .ea-orders-grid { grid-template-columns: 1fr; }
    .ea-lookup-row  { flex-direction: column; }
    .ea-lookup-btn  { width: 100%; justify-content: center; }
}
