/* ===================================================
   TIF — VIN Search Shortcode CSS
   Shortcode: [tif_vin_search]
   =================================================== */

/* ---- Wrapper ---- */
.tif-vin-wrapper {
    max-width: 780px;
    margin: 0 auto;
    padding: 36px 32px;
    background: #fff;
    border: 1px solid #dde3ea;
    border-radius: 14px;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #1a1a1a;
    box-shadow: 0 2px 18px rgba(0,0,0,0.07);
}

.tif-vin-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a3a5c;
    margin: 0 0 24px;
    text-align: center;
}

/* ---- Search Box ---- */
.tif-vin-search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}

.tif-vin-input {
    flex: 1;
    padding: 13px 16px;
    font-size: 15px;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    letter-spacing: 1.5px;
    border: 2px solid #ccd4de;
    border-radius: 9px;
    outline: none;
    text-transform: uppercase;
    color: #1a3a5c;
    transition: border-color 0.2s;
}
.tif-vin-input:focus { border-color: #1a3a5c; }
.tif-vin-input::placeholder { font-weight: 400; letter-spacing: 0; color: #aab; font-family: 'Segoe UI', Arial, sans-serif; text-transform: none; }

.tif-vin-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 13px 22px;
    background: #1a3a5c;
    color: #fff;
    border: none;
    border-radius: 9px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    white-space: nowrap;
}
.tif-vin-btn:hover  { background: #0d2540; }
.tif-vin-btn:active { transform: scale(0.97); }
.tif-vin-btn:disabled { opacity: 0.55; cursor: not-allowed; }

.tif-vin-hint {
    font-size: 12px;
    color: #aaa;
    margin: 0 0 20px;
    text-align: center;
}

/* ---- Loader ---- */
.tif-vin-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    color: #1a3a5c;
    font-size: 14px;
}
.tif-vin-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid #dde3ea;
    border-top-color: #1a3a5c;
    border-radius: 50%;
    animation: tif-spin 0.7s linear infinite;
    display: inline-block;
}
@keyframes tif-spin { to { transform: rotate(360deg); } }

/* ---- Error ---- */
.tif-vin-error {
    background: #fff4f4;
    border: 1px solid #f5c2c2;
    border-radius: 9px;
    padding: 14px 18px;
    color: #c0392b;
    font-size: 14px;
    margin-top: 12px;
}

/* ---- Found msg ---- */
.tif-vin-found-msg {
    background: #f0faf4;
    border: 1px solid #a8dfc0;
    border-radius: 9px;
    padding: 10px 16px;
    color: #0a7c4a;
    font-size: 14px;
    margin-bottom: 16px;
}

/* ---- Card ---- */
.tif-vin-card {
    border: 1px solid #dde3ea;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 1px 8px rgba(0,0,0,0.05);
}

.tif-vin-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1a3a5c;
    color: #fff;
    padding: 12px 18px;
}

.tif-vin-card-badge {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.tif-vin-card-date {
    font-size: 12px;
    opacity: 0.8;
}

/* ---- VIN Highlight Strip ---- */
.tif-vin-highlight {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #eef6ff;
    border-bottom: 1px solid #d0e4f5;
    padding: 14px 18px;
}

.tif-vin-label {
    font-size: 11px;
    font-weight: 700;
    color: #1a3a5c;
    background: #d0e4f5;
    padding: 3px 9px;
    border-radius: 5px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.tif-vin-value {
    font-family: 'Courier New', monospace;
    font-size: 17px;
    font-weight: 700;
    color: #1a3a5c;
    letter-spacing: 2px;
}

/* ---- Section Title ---- */
.tif-vin-section-title {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: #2c5282;
    padding: 8px 18px;
    letter-spacing: 0.3px;
}

/* ---- Grid Fields ---- */
.tif-vin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0;
    border-bottom: 1px solid #eee;
}

.tif-vin-field {
    display: flex;
    flex-direction: column;
    padding: 11px 18px;
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.tif-vin-field-label {
    font-size: 10px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.tif-vin-field-value {
    font-size: 14px;
    color: #1a1a1a;
    font-weight: 500;
    word-break: break-word;
}

/* ---- Table ---- */
.tif-vin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.tif-vin-table thead tr {
    background: #f4f7fb;
}

.tif-vin-table th {
    padding: 8px 12px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border: 1px solid #e0e7ef;
}

.tif-vin-table td {
    padding: 8px 12px;
    border: 1px solid #e0e7ef;
    color: #333;
}

.tif-vin-table tbody tr:nth-child(even) { background: #f9fbfd; }
.tif-vin-table tbody tr:hover           { background: #eef4fd; }

/* Highlighted row (matched VIN in fleet table) */
.tif-vin-row-highlight td {
    background: #fffbe6 !important;
    font-weight: 700;
    border-color: #f0c040;
}

/* ---- Footer ---- */
.tif-vin-footer {
    font-size: 11px;
    color: #aaa;
    text-align: right;
    padding: 8px 18px;
    background: #fafbfc;
    border-top: 1px solid #eee;
}

/* ---- Responsive ---- */
@media (max-width: 560px) {
    .tif-vin-wrapper      { padding: 20px 14px; }
    .tif-vin-search-box   { flex-direction: column; }
    .tif-vin-btn          { justify-content: center; }
    .tif-vin-grid         { grid-template-columns: 1fr 1fr; }
    .tif-vin-value        { font-size: 14px; letter-spacing: 1px; }
}
