/* Amrod Admin Styles */

.amrod-settings-wrap h1 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.amrod-settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.amrod-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,.07);
}

.amrod-card h2 {
    margin-top: 0;
    font-size: 1.1em;
    border-bottom: 1px solid #edf2f7;
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.amrod-card .form-table th {
    width: 180px;
}

/* Status badges */
.amrod-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.amrod-badge-success,
.amrod-badge-submitted  { background: #c6f6d5; color: #22543d; }
.amrod-badge-error,
.amrod-badge-failed     { background: #fed7d7; color: #742a2a; }
.amrod-badge-info,
.amrod-badge-pending    { background: #bee3f8; color: #2a4365; }
.amrod-badge-not_submitted { background: #e2e8f0; color: #4a5568; }

/* Order panel */
.amrod-order-panel { font-size: 13px; }
.amrod-order-panel hr { border: none; border-top: 1px solid #edf2f7; margin: 12px 0; }
.amrod-order-result { padding: 8px; background: #f7fafc; border-radius: 4px; font-size: 12px; }
.amrod-order-result pre { margin: 0; }
.amrod-order-branding { margin-top: 10px; }

/* ── Message styles ── */
.amrod-msg-success { color: #2d6a2d; font-weight: 500; }
.amrod-msg-error   { color: #c0392b; font-weight: 500; white-space: pre-wrap; }
.amrod-version     { font-size: 13px; font-weight: normal; color: #999; margin-left: 8px; }
.amrod-info-box    { background: #e8f4f8; padding: 10px 14px; border-radius: 4px; border-left: 4px solid #17a2b8; font-size: 12px; margin-bottom: 16px; line-height: 1.6; }
.amrod-auth-status { background: #f8f9fa; padding: 8px 12px; border-radius: 4px; margin-bottom: 12px; font-size: 12px; }
.amrod-sync-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.required { color: red; }

/* Diagnostic buttons */
.amrod-diag-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.amrod-diag-btn:disabled { opacity: 0.5; cursor: not-allowed; }

#amrod-diag-result { border: 1px solid #ddd; border-radius: 6px; padding: 16px; background: #fafafa; }
#amrod-diag-title  { margin: 0 0 4px; font-size: 15px; }

/* Sync status box */
#amrod-sync-status { border: 1px solid #e2e8f0; border-radius: 6px; }

/* ── Amrod frontend product meta ─────────────────────────────────────────── */
.amrod-product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin: 12px 0;
    padding: 10px 14px;
    background: #f8f8f8;
    border-left: 3px solid #0073aa;
    font-size: 0.9em;
}
.amrod-meta-item { display: flex; gap: 4px; align-items: center; }
.amrod-meta-item strong { color: #333; }
.amrod-moq { color: #c0392b; font-weight: 600; }
.amrod-branding-guide-link { color: #0073aa; text-decoration: none; }
.amrod-branding-guide-link:hover { text-decoration: underline; }
.amrod-attributes { width: 100%; border-collapse: collapse; }
.amrod-attributes th { width: 160px; font-weight: 600; color: #555; padding: 4px 8px 4px 0; vertical-align: top; }
.amrod-attributes td { padding: 4px 0; color: #333; }
