/* ============================================================
   Order Tracker styles
   ============================================================ */

#ordertracker {
    max-width: 640px;
}

/* ---- input form ---- */
.ot-form {
    margin: 1.5em 0;
    padding: 1.25em 1.5em;
    background: #f4f6f8;
    border: 1px solid #dfe3e8;
    border-radius: 6px;
}
.ot-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.9em;
}
.ot-field label {
    font-weight: 700;
    margin-bottom: 0.3em;
}
.ot-field input {
    padding: 0.55em 0.7em;
    font-size: 1em;
    border: 1px solid #c3c9d0;
    border-radius: 4px;
}
.ot-field input:focus {
    outline: none;
    border-color: #1f6feb;
    box-shadow: 0 0 0 2px rgba(31, 111, 235, 0.2);
} 
.ot-hint {
    font-size: 0.82em;
    color: #6b7280;
    margin-top: 0.25em;
}
.ot-submit {
    padding: 0.6em 1.6em;
    font-size: 1em;
    font-weight: 700;
    color: #fff;
    background: #1f6feb;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.ot-submit:hover { background: #1a5fd0; }
.ot-submit:disabled { background: #9db4d8; cursor: default; }

/* ---- result area ---- */
#ot-result { margin-top: 1.75em; }
#ot-result[hidden] { display: none; }

/* generic (inline) error, e.g. wrong credentials / missing fields */
.ot-error {
    padding: 0.9em 1.1em;
    background: #fdecea;
    border: 1px solid #f5c2c0;
    border-left: 4px solid #d93025;
    border-radius: 4px;
    color: #8a1c14;
}

/* ---- current-status card ---- */
.ot-status-card {
    padding: 1.1em 1.3em;
    border: 1px solid #dfe3e8;
    border-left-width: 5px;
    border-radius: 6px;
    background: #fff;
}
.ot-status-label {
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
    margin: 0 0 0.35em;
}
.ot-status-headline {
    font-size: 1.35em;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

/* tone colouring of the status card left border + headline */
.ot-tone-progress    { border-left-color: #1f6feb; }
.ot-tone-shipped     { border-left-color: #1e7d34; }
.ot-tone-shipped .ot-status-headline { color: #1e7d34; }
.ot-tone-action      { border-left-color: #e8a400; }
.ot-tone-unavailable { border-left-color: #9aa0a6; }
.ot-tone-unavailable .ot-status-headline { color: #5f6368; font-size: 1.1em; font-weight: 600; }

/* ---- action-required callout ---- */
.ot-action {
    margin-top: 1em;
    padding: 1em 1.2em;
    background: #fff8e6;
    border: 1px solid #f2d98a;
    border-radius: 6px;
    display: flex;
    align-items: flex-start;
    gap: 0.7em;
}
.ot-action-icon {
    flex: 0 0 auto;
    font-size: 1.3em;
    line-height: 1.2;
}
.ot-action-title {
    font-weight: 700;
    margin: 0 0 0.2em;
    color: #8a6100;
}
.ot-action-text { margin: 0; }

/* ---- details ---- */
.ot-details {
    margin-top: 1.4em;
    border-top: 1px solid #eceff1;
}
.ot-detail-row {
    display: flex;
    justify-content: space-between;
    gap: 1em;
    padding: 0.6em 0;
    border-bottom: 1px solid #eceff1;
}
.ot-detail-label { color: #6b7280; }
.ot-detail-value { font-weight: 600; text-align: right; }
.ot-detail-value a { color: #1f6feb; }

/* ---- comments ---- */
.ot-comments {
    margin-top: 1.2em;
    padding: 0.9em 1.1em;
    background: #f4f6f8;
    border-radius: 4px;
    font-size: 0.95em;
}
.ot-comments-label {
    font-weight: 700;
    display: block;
    margin-bottom: 0.3em;
}

@media (max-width: 480px) {
    .ot-detail-row { flex-direction: column; gap: 0.15em; }
    .ot-detail-value { text-align: left; }
}
