/* TFC Campaign Shipping — shared UI styles */

/* ------------------------------------------------------------------ */
/* Status badges                                                        */
/* ------------------------------------------------------------------ */
.tfc-badge,
.tfc-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}
.tfc-badge--draft,   .tfc-status--draft    { background: #f0f0f0; color: #555; }
.tfc-badge--active,  .tfc-status--active   { background: #d4edda; color: #155724; }
.tfc-badge--shipping,.tfc-status--shipping { background: #cce5ff; color: #004085; }
.tfc-badge--complete,.tfc-status--complete { background: #e2e3e5; color: #383d41; }
.tfc-badge--warning  { background: #fff3cd; color: #856404; }

/* ------------------------------------------------------------------ */
/* Creator portal layout                                               */
/* ------------------------------------------------------------------ */
.tfc-creator-dashboard {
    max-width: 960px;
}

.tfc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.tfc-header h2 {
    margin: 0;
}

.tfc-nav {
    font-size: 14px;
}

.tfc-nav a {
    color: inherit;
}

/* ------------------------------------------------------------------ */
/* Tables                                                               */
/* ------------------------------------------------------------------ */
.tfc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-top: 16px;
}

.tfc-table th,
.tfc-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #e5e5e5;
}

.tfc-table th {
    background: #f8f8f8;
    font-weight: 600;
    color: #333;
}

.tfc-backers-table td {
    font-size: 13px;
}

.tfc-detail-table th {
    width: 160px;
    color: #666;
    font-weight: normal;
}

/* ------------------------------------------------------------------ */
/* Stats row                                                            */
/* ------------------------------------------------------------------ */
.tfc-stats-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.tfc-stat {
    flex: 1;
    min-width: 120px;
    background: #f8f8f8;
    border-radius: 6px;
    padding: 16px;
    text-align: center;
    border-left: 4px solid #ccc;
}

.tfc-stat--success { border-left-color: #28a745; }
.tfc-stat--warning { border-left-color: #ffc107; }

.tfc-stat__value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
}

.tfc-stat__label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

/* ------------------------------------------------------------------ */
/* Forms                                                                */
/* ------------------------------------------------------------------ */
.tfc-form {
    max-width: 600px;
}

.tfc-form-row {
    margin-bottom: 16px;
}

.tfc-form-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
}

.tfc-form-row small {
    font-weight: normal;
    color: #888;
    margin-left: 6px;
}

.tfc-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.tfc-form-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 20px;
}

.tfc-message {
    padding: 10px 14px;
    border-radius: 4px;
    margin-top: 12px;
    font-size: 14px;
}

.tfc-message--success { background: #d4edda; color: #155724; }
.tfc-message--error   { background: #f8d7da; color: #721c24; }

/* ------------------------------------------------------------------ */
/* Import sections                                                      */
/* ------------------------------------------------------------------ */
.tfc-import-section {
    margin-bottom: 24px;
}

.tfc-import-section h3 {
    margin-bottom: 4px;
}

.tfc-import-result {
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 13px;
}

.tfc-import-result--success { background: #d4edda; color: #155724; }
.tfc-import-result--error   { background: #f8d7da; color: #721c24; }

/* ------------------------------------------------------------------ */
/* Backer flow — campaign header on cart/checkout                       */
/* ------------------------------------------------------------------ */
.tfc-flow-header {
    display: none;
}

.tfc-campaign-header {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    display: block;
}

.tfc-campaign-header--placeholder {
    background: #1a1a2e;
    padding: 28px 20px;
    text-align: center;
}

.tfc-campaign-header--placeholder h2 {
    color: #fff;
    margin: 0;
    font-size: 20px;
}

.tfc-breadcrumb--inline {
    max-width: 680px;
    margin: 16px auto;
    padding: 0 20px;
}
