

.commerce-sponsors h3 { margin: 0 0 4px; font-size: 16px; }
.commerce-sponsors > .commerce-heading { margin-bottom: 14px; }
.commerce-sponsors .commerce-product-row { padding-left: 0; padding-right: 0; }
.commerce-sponsor-choices { margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 9px; display: flex; flex-wrap: wrap; gap: 10px 16px; max-height: 220px; overflow-y: auto; }
.commerce-sponsor-choices legend { font-weight: 750; font-size: 13px; }
.commerce-sponsor-choices p { width: 100%; margin: 0; }
.commerce-sponsor-choices label { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.commerce-sponsor-editor [aria-invalid="true"] { outline: 2px solid var(--amber); border-color: var(--amber); background: #fff7ed; }
.commerce-sponsor-report { overflow-x: auto; }
.commerce-sponsor-report table { width: 100%; border-collapse: collapse; font-size: 12px; }
.commerce-sponsor-report th, .commerce-sponsor-report td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); }
.commerce-sponsor-report caption { text-align: left; font-weight: 750; padding-bottom: 10px; }

.sponsor-activation small { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.sponsor-logo-field { min-width: 0; }
.sponsor-upload { justify-self: start; }
.sponsor-logo-field > p { margin: 6px 0; }
.sponsor-logo-preview { display: flex; align-items: center; gap: 12px; margin: 8px 0; }
.sponsor-logo-preview img { width: 96px; height: 64px; object-fit: contain; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.sponsor-logo-url { margin-top: 8px; font-size: 12px; }
.sponsor-logo-url summary { cursor: pointer; color: var(--muted); }
.sponsor-logo-url .commerce-field { margin-top: 8px; }

/* The added destination must not push the first tab outside the scrollable area. */
#adminNav { justify-content: flex-start; }
.commerce-sponsor-editor .commerce-field { align-content: start; }
.commerce-sponsor-editor { display: none; }
.commerce-sponsor-editor[open] { display: flex; flex-direction: column; }
.commerce-sponsor-editor .commerce-editor-header { flex: 0 0 auto; }
.commerce-sponsor-editor .commerce-product-form { min-height: 0; max-height: none; grid-auto-rows: max-content; }
